[med-svn] r12389 - trunk/packages/conservation-code/trunk/debian

Laszlo Kajan lkajan-guest at alioth.debian.org
Thu Oct 11 14:38:12 UTC 2012


Author: lkajan-guest
Date: 2012-10-11 14:38:12 +0000 (Thu, 11 Oct 2012)
New Revision: 12389

Modified:
   trunk/packages/conservation-code/trunk/debian/README.source
   trunk/packages/conservation-code/trunk/debian/rules
Log:
._* are removed from upstream in get-orig-source - explained in d/README.source

Modified: trunk/packages/conservation-code/trunk/debian/README.source
===================================================================
--- trunk/packages/conservation-code/trunk/debian/README.source	2012-10-11 14:21:12 UTC (rev 12388)
+++ trunk/packages/conservation-code/trunk/debian/README.source	2012-10-11 14:38:12 UTC (rev 12389)
@@ -4,7 +4,7 @@
 Repackaged Upstream Source
 --------------------------
 The 'get-orig-source' target is provided to build the upstream tarball.
-The problem with the upstream tarball is that it is not versioned. It also contains the main executable with extension (.py). In 'get-orig-source' the upstream tarball gets versioned and the extension of the executable is removed.
+The problem with the upstream tarball is that there is a '._conservation_code' file in its root. This confuses 'dpkg-source -b': it tries to apply the patches at the wrong level. Curiously, nothing else breaks because of this. All '._*' files ('macos-resource-fork-file' as lintian calls them) are removed in 'get-orig-source'.
 
 Missing d/watch
 ---------------

Modified: trunk/packages/conservation-code/trunk/debian/rules
===================================================================
--- trunk/packages/conservation-code/trunk/debian/rules	2012-10-11 14:21:12 UTC (rev 12388)
+++ trunk/packages/conservation-code/trunk/debian/rules	2012-10-11 14:38:12 UTC (rev 12389)
@@ -16,10 +16,17 @@
 .PHONY: get-orig-source
 get-orig-source:
 	set -e; \
+	if ! ( which xz >/dev/null ); then \
+		echo "Could not find 'xz' tool for compression. Please apt-get install xz-utils." ; \
+		exit 1; \
+	fi ; \
 	t=$$(mktemp -d) || exit 1; \
 	trap "rm -rf -- '$$t'" EXIT; \
 	( cd "$$t"; \
 		wget -O conservation-code_20110309.0.orig.tar.gz http://compbio.cs.princeton.edu/conservation/conservation_code.tar.gz; \
+		gunzip *.tar.gz; \
+		tar --owner=root --group=root --mode=a+rX --delete -f *.tar --wildcards '*/._*'; \
+		xz --best *.tar; \
 	); \
 	mv $$t/*.tar.?z ./
 




More information about the debian-med-commit mailing list