Skip to contentSkip to conversation

misc updates for release scripts

PATCH New Vishal Verma 1 participant 6 messages Jun 15, 2022 libnvdimm: non-volatile memory device

lore
Share & tools
lore

Vishal Verma

author maintainer
#0 lore raw

v2 cover misc updates for release scripts

Cleaning up pending branches, I noticed I had missed this series in the last release, so resending it with some updates.

Changes since v1[1]:
- Add a gitignore update
- Update for the meson conversion

[1]: https://lore.kernel.org/nvdimm/[email protected]/

---

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 (5):
ndctl: move developer scripts from contrib/ to scripts/
ndctl: remove obsolete m4 directory
ndctl: update .gitignore
scripts: fix contrib/do_abidiff for updated fedpkg
scripts: update release helper scripts for meson and cxl

 .gitignore                                  | 3 +++
 m4/.gitignore                               | 6 ------
 {contrib => scripts}/daxctl-qemu-hmat-setup | 0
 {contrib => scripts}/do_abidiff             | 5 +++--
 {contrib => scripts}/prepare-release.sh     | 5 +++--
 5 files changed, 9 insertions(+), 10 deletions(-)
 delete mode 100644 m4/.gitignore
 rename {contrib => scripts}/daxctl-qemu-hmat-setup (100%)
 rename {contrib => scripts}/do_abidiff (97%)
 rename {contrib => scripts}/prepare-release.sh (97%)
Signature · 1 line
2.36.1
author maintainer
#1 lore raw

PATCH v2 1/5 ndctl: move developer scripts from contrib/ to scripts/

Allow for scripts/ to be the defacto location for scripts and tooling that may be useful for developers of ndctl, but isn't distributed or installed. Move such scripts currently in contrib/ to scripts/.

---
 {contrib => scripts}/daxctl-qemu-hmat-setup | 0
 {contrib => scripts}/do_abidiff             | 0
 {contrib => scripts}/prepare-release.sh     | 2 +-
 3 files changed, 1 insertion(+), 1 deletion(-)
 rename {contrib => scripts}/daxctl-qemu-hmat-setup (100%)
 rename {contrib => scripts}/do_abidiff (100%)
 rename {contrib => scripts}/prepare-release.sh (99%)
scripts/daxctl-qemu-hmat-setup renamed from contrib/daxctl-qemu-hmat-setup +0 -0
similarity index 100%
rename from contrib/daxctl-qemu-hmat-setup
rename to scripts/daxctl-qemu-hmat-setup
scripts/do_abidiff renamed from contrib/do_abidiff +0 -0
similarity index 100%
rename from contrib/do_abidiff
rename to scripts/do_abidiff
scripts/prepare-release.sh renamed from contrib/prepare-release.sh +1 -1
similarity index 99%
rename from contrib/prepare-release.sh
rename to scripts/prepare-release.sh
index fb5cfe3..97ab964 100755
@@ -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.36.1
author maintainer
#2 lore raw

PATCH v2 2/5 ndctl: remove obsolete m4 directory

In reply to Vishal Verma

With the conversion to meson, the m4 directory, which may have held symlinks to libtool.m4 and friends, is no longer needed. Remove it.

---
 m4/.gitignore | 6 ------
 1 file changed, 6 deletions(-)
 delete mode 100644 m4/.gitignore
m4/.gitignore deleted +0 -6
deleted file mode 100644
index 8bab51c..0000000
@@ -1,6 +0,0 @@
-libtool.m4
-ltoptions.m4
-ltsugar.m4
-ltversion.m4
-lt~obsolete.m4
-
Signature · 1 line
2.36.1
author maintainer
#3 lore raw

PATCH v2 3/5 ndctl: update .gitignore

In reply to Vishal Verma

Add a few files and dirs to .gitignore:
- cscope.* (since we already ignore 'tags')
- release/ (created by scripts/prepare_release)
- scripts/docsurgeon_parser.sh (parser generated by argbash)

---
 .gitignore | 3 +++
 1 file changed, 3 insertions(+)
.gitignore +3 -0
index aa0ce8e..eeb275f 100644
@@ -1,5 +1,8 @@
 build/
+release/
 rhel/ndctl.spec
 sles/ndctl.spec
 *.swp
 tags
+cscope.*
+scripts/docsurgeon_parser.sh
Signature · 1 line
2.36.1
author maintainer
#4 lore raw

PATCH v2 4/5 scripts: fix contrib/do_abidiff for updated fedpkg

In reply to Vishal Verma

A recent fedpkg update wants --name instead of --module-name.

---
 scripts/do_abidiff | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/do_abidiff +1 -1
index 0bd7a16..e8c3a65 100755
@@ -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.36.1
author maintainer
#5 lore raw

PATCH v2 5/5 scripts: update release helper scripts for meson and cxl

In reply to Vishal Verma

The 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.

Additionally, move the checks over to the new meson regime. This does break any checking for the older autotools based build, but that should be okay.

---
 scripts/do_abidiff         | 3 ++-
 scripts/prepare-release.sh | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
scripts/do_abidiff +2 -1
index e8c3a65..ec3e344 100755
@@ -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
index 97ab964..8901b50 100755
@@ -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.36.1