misc updates for release scripts
Vishal Verma
maintainercover misc updates for release scripts
A few updates to the release helper scripts that fix fedpkg invocation, move the scripts to the new scripts/ directory, and teach them about cxl and libcxl.
Vishal Verma (3):
scripts: fix contrib/do_abidiff for updated fedpkg
scripts: move 'prepare-release.sh' and 'do_abidiff' into scripts/
scripts: teach release helper scripts about cxl and libcxl
{contrib => scripts}/do_abidiff | 5 +++--
{contrib => scripts}/prepare-release.sh | 5 +++--
2 files changed, 6 insertions(+), 4 deletions(-)
rename {contrib => scripts}/do_abidiff (97%)
rename {contrib => scripts}/prepare-release.sh (97%)base-commit: addc5fd8511b8436d89dcef3dd12131147236b09
Signature · 1 line
2.33.1
Vishal Verma
maintainerPATCH 1/3 scripts: fix contrib/do_abidiff for updated fedpkg
A recent fedpkg update wants --name instead of --module-name.
--- contrib/do_abidiff | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
contrib/do_abidiff +1 -1
@@ -29,7 +29,7 @@ build_rpm() version="$(./git-version)" release="f$(basename $(readlink -f /etc/mock/default.cfg) | cut -d- -f2)" git archive --format=tar --prefix="ndctl-${version}/" HEAD | gzip > ndctl-${version}.tar.gz - fedpkg --release $release --module-name ndctl mockbuild + fedpkg --release $release --name=ndctl mockbuild [ "$?" -eq 0 ] || err "error building $ref" mkdir -p release/rel_${ref}/ cp results_ndctl/*/*/*.x86_64.rpm release/rel_${ref}/
Signature · 1 line
2.33.1
Re: [ndctl PATCH 1/3] scripts: fix contrib/do_abidiff for updated fedpkg
Quoted 2 lines · Vishal Verma
A recent fedpkg update wants --name instead of --module-name.
Ugh, how annoying.
Quoted 11 lines
Signed-off-by Vishal Verma <[email protected]>--- contrib/do_abidiff | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)contrib/do_abidiff +0
-0
contrib/do_abidiff build_rpm() · line 32
Quoted 5 lines
contrib/do_abidiff +1
-1@@ -29,7 +29,7 @@ build_rpm() version="$(./git-version)" release="f$(basename $(readlink -f /etc/mock/default.cfg) | cut -d- -f2)" git archive --format=tar --prefix="ndctl-${version}/" HEAD | gzip > ndctl-${version}.tar.gz - fedpkg --release $release --module-name ndctl mockbuild + fedpkg --release $release --name=ndctl mockbuild
Would it be worthwhile to document the version of the fedpkg that this script targets?
Otherwise, looks good to me.
Quoted 6 lines
contrib/do_abidiff +0
-1[ "$?" -eq 0 ] || err "error building $ref" mkdir -p release/rel_${ref}/ cp results_ndctl/*/*/*.x86_64.rpm release/rel_${ref}/ --2.33.1
Vishal Verma
maintainerPATCH 2/3 scripts: move 'prepare-release.sh' and 'do_abidiff' into scripts/
In reply to Vishal VermaThe scripts directory in the ndctl tree is designated as the place for useful developer scripts that don't need to get packaged or distributed. Move the above out of contrib/ which does contain files that get packaged.
---
{contrib => scripts}/do_abidiff | 0
{contrib => scripts}/prepare-release.sh | 2 +-
2 files changed, 1 insertion(+), 1 deletion(-)
rename {contrib => scripts}/do_abidiff (100%)
rename {contrib => scripts}/prepare-release.sh (99%)scripts/do_abidiff renamed from contrib/do_abidiff +0 -0
scripts/prepare-release.sh renamed from contrib/prepare-release.sh +1 -1
@@ -186,7 +186,7 @@ check_libtool_vers "libdaxctl" gen_lists ${last_ref}..HEAD~1 # For ABI diff purposes, use the latest fixes tag -contrib/do_abidiff ${last_fix}..HEAD +scripts/do_abidiff ${last_fix}..HEAD # once everything passes, update the git-version sed -i -e "s/DEF_VER=[0-9]\+.*/DEF_VER=${next_ref#v}/" git-version
Signature · 1 line
2.33.1
Re: [ndctl PATCH 2/3] scripts: move 'prepare-release.sh' and 'do_abidiff' into scripts/
Quoted 6 lines · Vishal Verma
The scripts directory in the ndctl tree is designated as the place for useful developer scripts that don't need to get packaged or distributed. Move the above out of contrib/ which does contain files that get packaged.
LGTM
Vishal Verma
maintainerPATCH 3/3 scripts: teach release helper scripts about cxl and libcxl
In reply to Vishal VermaThe prepare-release.sh and do_abidiff scripts perform sanity checking for library versioning and also guard against accidental ABI breakage by comparing the current release with the previous using 'abipkgdiff' from libabigail. Teach the scripts about libcxl, so that it too can participate in the above checks.
--- scripts/do_abidiff | 3 ++- scripts/prepare-release.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-)
scripts/do_abidiff +2 -1
@@ -53,7 +53,7 @@ do_diff() local old_lib="$(find . -regex "./release/rel_${old}/${pkg}-libs-[0-9]+.*" | head -1)" local new_lib="$(find . -regex "./release/rel_${new}/${pkg}-libs-[0-9]+.*" | head -1)" - [ -n "$pkg" ] || err "specify a package for diff (ndctl, daxctl)" + [ -n "$pkg" ] || err "specify a package for diff (ndctl, daxctl, cxl)" [ -n "$old_base" ] || err "$pkg: old_base empty, possible build failure" [ -n "$new_base" ] || err "$pkg: new_base empty, possible build failure"
@@ -75,3 +75,4 @@ build_rpm $old > release/buildlog_$old 2>&1 build_rpm $new > release/buildlog_$new 2>&1 do_diff ndctl do_diff daxctl +do_diff cxl
scripts/prepare-release.sh +2 -1
@@ -100,7 +100,7 @@ gen_lists() } # Check libtool versions in Makefile.am.in -# $1: lib name (currently libndctl or libdaxctl) +# $1: lib name (currently libndctl, libdaxctl, or libcxl) check_libtool_vers() { local lib="$1"
@@ -181,6 +181,7 @@ next_fix=$(next_fix "$last_fix") check_libtool_vers "libndctl" check_libtool_vers "libdaxctl" +check_libtool_vers "libcxl" # HEAD~1 because HEAD would be the release commit gen_lists ${last_ref}..HEAD~1
Signature · 1 line
2.33.1