]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
make-debs.sh: invoke tar with --no-same-owner
authorDan Mick <dan.mick@redhat.com>
Sat, 23 Aug 2025 00:43:24 +0000 (17:43 -0700)
committerYuri Weinstein <yweinste@redhat.com>
Wed, 3 Sep 2025 15:07:25 +0000 (15:07 +0000)
When running as a normal user, tar does not attempt to preserve
owners set on the tar content files.  When running as root, it does.
Containerized builds are running as root.  Stop make-debs.sh from
trying to set other owners for files, and leaving files in the
host system with mapped UIDs other than the user running the container
(which causes jenkins to be unable to clear the workspace).

Signed-off-by: Dan Mick <dan.mick@redhat.com>
(cherry picked from commit 46c540444dd0dc4b4572e71ef452436a3b580d51)
(cherry picked from commit 431e48ff3a1167ec44ffe503e6640e3eff09885a)

make-debs.sh

index 485db6921ca44ae3c96345b7bf9f43e974e540d8..a5e6dcf4c8d0f94641669027b61bee71a341aec6 100755 (executable)
@@ -50,7 +50,7 @@ test -f "ceph-$vers.tar.bz2" || ./make-dist $vers
 #
 mkdir -p $releasedir
 mv ceph-$vers.tar.bz2 $releasedir/ceph_$vers.orig.tar.bz2
-tar -C $releasedir -jxf $releasedir/ceph_$vers.orig.tar.bz2
+tar -C $releasedir --no-same-owner -jxf $releasedir/ceph_$vers.orig.tar.bz2
 
 #
 # Optionally disable -dbg package builds