db-move: moved seahorse from [testing] to [extra] (x86_64)
[arch-packages.git] / autogen / trunk / 10_libopts_tarball_perms.diff
blobcce3befac972cb19071f03cc739c5836bc42f1be
1 Description: Sanitize file/directory permissions and owner in libopts
2 tarball. Override mtime with ${BUILD_DATE} which is exported in debian/rules.
3 Avoid gzip timestamp.
4 Author: Andreas Metzler <ametzler@debian.org>
5 Origin: vendor
6 Forwarded: no
7 Last-Update: 2018-07-19
9 --- a/pkg/libopts/mklibsrc.sh
10 +++ b/pkg/libopts/mklibsrc.sh
11 @@ -123,7 +123,7 @@ echo ! tar cvf ${tag}.${sfx} ${tag}
12 rbopts=""
13 [ -z "$SOURCE_DATE_EPOCH" ] \
14 || ! tar --help|grep -q sort= \
15 - || rbopts="--sort=name --format=gnu --clamp-mtime --mtime @$SOURCE_DATE_EPOCH"
16 + || rbopts="--sort=name --format=gnu --clamp-mtime --mtime @$SOURCE_DATE_EPOCH --owner=root --group=root --mode=u+w,g-w,a+r"
18 tar cvf - $rbopts ${tag} | \
19 $gz > ${top_builddir}/autoopts/${tag}.${sfx}