[singular] 01/04: Debianization: harden debian/repack
Jerome Benoit
calculus-guest at moszumanska.debian.org
Tue Feb 23 02:58:35 UTC 2016
This is an automated email from the git hooks/post-receive script.
calculus-guest pushed a commit to branch master
in repository singular.
commit abcae0b0e5b1d19be10cdc858b8c9dd353fea335
Author: Jerome Benoit <calculus at rezozer.net>
Date: Mon Feb 22 23:30:57 2016 +0100
Debianization: harden debian/repack
---
debian/changelog | 7 +++++++
debian/repack | 4 +++-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 805babd..0722d4e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+singular (4.0.3+ds-0) UNRELEASED; urgency=medium
+
+ * Debianization:
+ - debian/repack, harden.
+
+ -- Jerome Benoit <calculus at rezozer.net> Mon, 22 Feb 2016 22:32:17 +0000
+
singular (4.0.2-p2+ds-3) unstable; urgency=medium
* FTBFS fix (Closes: #804892), harden omalloc check.
diff --git a/debian/repack b/debian/repack
index eeaf20a..74e3d61 100755
--- a/debian/repack
+++ b/debian/repack
@@ -58,6 +58,8 @@ REPACK_WORKING_FOLDER=$(pwd)
cd "${UPSTREAM_ROOTFOLDER}"
####. "${REPACK_WORKING_FOLDER}/debian/repack.local"
+## discard dot-git files
+rm --verbose --force -- .tarball-git-version
## discard other distribution material to avoid confusion
rm --verbose --force --recursive -- redhat
## discard third party packages
@@ -151,7 +153,7 @@ REPACK_TARBALL="${REPACK_TMPDIR}/repacked.tar"
REPACK_TARBALLXZ="${REPACK_TARBALL}.xz"
( cd "${REPACK_TMPDIR}" && \
find -L "${DEBIAN_ROOTFOLDERNAME}" -xdev -type f -print | sort | \
- tar -T- --owner=root --group=root --mode=a+rX --create --file "${REPACK_TARBALL}" \
+ tar -T- --numeric-owner --owner=root --group=root --mode=a+rX --create --file "${REPACK_TARBALL}" \
)
xz -9e < "${REPACK_TARBALL}" > "${REPACK_TARBALLXZ}"
mv "${REPACK_TARBALLXZ}" "${DEBIAN_TARBALLXZ}"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/singular.git
More information about the debian-science-commits
mailing list