Blame SOURCES/0212-scripts-update-release-helper-scripts-for-meson-and-.patch

26ccd9
From 9ce0fa95778a76d2334848e2629d111c4d636515 Mon Sep 17 00:00:00 2001
26ccd9
From: Vishal Verma <vishal.l.verma@intel.com>
26ccd9
Date: Wed, 15 Jun 2022 16:48:13 -0600
26ccd9
Subject: [PATCH 212/217] scripts: update release helper scripts for meson and
26ccd9
 cxl
26ccd9
26ccd9
The prepare-release.sh and do_abidiff scripts perform sanity checking
26ccd9
for library versioning and also guard against accidental ABI breakage
26ccd9
by comparing the current release with the previous using 'abipkgdiff'
26ccd9
from libabigail. Teach the scripts about libcxl, so that it too can
26ccd9
participate in the above checks.
26ccd9
26ccd9
Additionally, move the checks over to the new meson regime. This does
26ccd9
break any checking for the older autotools based build, but that should
26ccd9
be okay.
26ccd9
26ccd9
Link: https://lore.kernel.org/r/20220615224813.523053-6-vishal.l.verma@intel.com
26ccd9
Cc: Dan Williams <dan.j.williams@intel.com>
26ccd9
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
26ccd9
---
26ccd9
 scripts/do_abidiff         | 3 ++-
26ccd9
 scripts/prepare-release.sh | 3 ++-
26ccd9
 2 files changed, 4 insertions(+), 2 deletions(-)
26ccd9
26ccd9
diff --git a/scripts/do_abidiff b/scripts/do_abidiff
26ccd9
index e8c3a65..ec3e344 100755
26ccd9
--- a/scripts/do_abidiff
26ccd9
+++ b/scripts/do_abidiff
26ccd9
@@ -53,7 +53,7 @@ do_diff()
26ccd9
 	local old_lib="$(find . -regex "./release/rel_${old}/${pkg}-libs-[0-9]+.*" | head -1)"
26ccd9
 	local new_lib="$(find . -regex "./release/rel_${new}/${pkg}-libs-[0-9]+.*" | head -1)"
26ccd9
 
26ccd9
-	[ -n "$pkg" ] || err "specify a package for diff (ndctl, daxctl)"
26ccd9
+	[ -n "$pkg" ] || err "specify a package for diff (ndctl, daxctl, cxl)"
26ccd9
 	[ -n "$old_base" ] || err "$pkg: old_base empty, possible build failure"
26ccd9
 	[ -n "$new_base" ] || err "$pkg: new_base empty, possible build failure"
26ccd9
 
26ccd9
@@ -75,3 +75,4 @@ build_rpm $old > release/buildlog_$old 2>&1
26ccd9
 build_rpm $new > release/buildlog_$new 2>&1
26ccd9
 do_diff ndctl
26ccd9
 do_diff daxctl
26ccd9
+do_diff cxl
26ccd9
diff --git a/scripts/prepare-release.sh b/scripts/prepare-release.sh
26ccd9
index 97ab964..8901b50 100755
26ccd9
--- a/scripts/prepare-release.sh
26ccd9
+++ b/scripts/prepare-release.sh
26ccd9
@@ -100,7 +100,7 @@ gen_lists()
26ccd9
 }
26ccd9
 
26ccd9
 # Check libtool versions in Makefile.am.in
26ccd9
-# $1: lib name (currently libndctl or libdaxctl)
26ccd9
+# $1: lib name (currently libndctl, libdaxctl, or libcxl)
26ccd9
 check_libtool_vers()
26ccd9
 {
26ccd9
 	local lib="$1"
26ccd9
@@ -181,6 +181,7 @@ next_fix=$(next_fix "$last_fix")
26ccd9
 
26ccd9
 check_libtool_vers "libndctl"
26ccd9
 check_libtool_vers "libdaxctl"
26ccd9
+check_libtool_vers "libcxl"
26ccd9
 
26ccd9
 # HEAD~1 because HEAD would be the release commit
26ccd9
 gen_lists ${last_ref}..HEAD~1
26ccd9
-- 
26ccd9
2.27.0
26ccd9