]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
make-debs.sh: Optionally rm version from build dir 63411/head
authorZack Cerza <zack@cerza.org>
Tue, 13 May 2025 23:55:08 +0000 (17:55 -0600)
committerZack Cerza <zack@cerza.org>
Wed, 21 May 2025 19:08:57 +0000 (13:08 -0600)
Signed-off-by: Zack Cerza <zack@cerza.org>
make-debs.sh

index 48ce555c1a539b5cb442f6b0b61d8dfc06f5c0de..197c7653dbe98765ad9d14feaffcc52f8e778595 100755 (executable)
@@ -60,10 +60,18 @@ cd $releasedir
 perl -ni -e 'print if(!(/^Package: .*-dbg$/../^$/))' ceph-$vers/debian/control
 perl -pi -e 's/--dbg-package.*//' ceph-$vers/debian/rules
 
+# For cache hit consistency, allow CI builds to use a build directory whose name
+# does not contain version information
+if [ "${CEPH_BUILD_NORMALIZE_PATHS}" = 'true' ]; then
+    mv ceph-$vers ceph
+    cd ceph
+else
+    cd ceph-$vers
+fi
+
 #
 # update the changelog to match the desired version
 #
-cd ceph-$vers
 chvers=$(head -1 debian/changelog | perl -ne 's/.*\(//; s/\).*//; print')
 if [ "$chvers" != "$dvers" ]; then
    DEBEMAIL="contact@ceph.com" dch -D $VERSION_CODENAME --force-distribution -b -v "$dvers" "new version"