[Debian-med-packaging] [med-svn] r13495 - trunk/packages/gnuhealth/trunk/debian

Thorsten Alteholz debian-med at alteholz.de
Thu May 9 20:31:45 UTC 2013


Hi Dmitry,

On Sun, 5 May 2013, Dmitry Smirnov wrote:
> Modified:
>   trunk/packages/gnuhealth/trunk/debian/rules
> Log:
> fixing get-orig-source
>
> Modified: trunk/packages/gnuhealth/trunk/debian/rules
> ===================================================================
> --- trunk/packages/gnuhealth/trunk/debian/rules	2013-05-05 12:13:50 UTC (rev 13494)
> +++ trunk/packages/gnuhealth/trunk/debian/rules	2013-05-05 23:17:13 UTC (rev 13495)
> @@ -35,6 +35,9 @@
> override_dh_builddeb:
> 	dh_builddeb -- -Zxz
>
> +DPATH := $(abspath $(dir $(MAKEFILE_LIST)))
> +VER   ?= $(shell dpkg-parsechangelog -l$(DPATH)/changelog | perl -ne 'print $$1 if m{Version:\s*([\d\.]+)}')
> +.PHONY: get-orig-source
> get-orig-source:
> -	mkdir -p ../tarballs
> -	uscan --verbose --force-download --destdir=../tarballs
> +	@echo "# Downloading..."
> +	uscan --noconf --verbose --rename --destdir=$(CURDIR) --check-dirname-level=0 --force-download --download-version $(VER) $(DPATH)

can you please explain this "fix".

Now the sources will be downloaded to the directory where you call 
get-orig-source.
Most of the time this will be from trunk/packages/gnuhealth/trunk/, which 
is not a place where svn-buildpackage expects it:

debian at debian-med:~/debian-med/beispiel/packages/gnuhealth/trunk$ svn-buildpackage 
Complete layout information:
         trunkDir=/home/debian/debian-med/beispiel/packages/gnuhealth/trunk

trunkUrl=svn+ssh://alteholz@svn.debian.org/svn/debian-med/trunk/packages/gnuhealth/trunk
dpkg-checkbuilddeps
Orig tarball not found (expected /home/debian/debian-med/beispiel/packages/gnuhealth/trunk../tarballs/gnuhealth_1.8.1.orig.tar.gz)
mergeWithUpstream mode detected, looking for /home/debian/debian-med/beispiel/packages/gnuhealth/trunk../tarballs/gnuhealth_1.8.1.orig.tar.gz
I: mergeWithUpstream property set, looking for upstream source tarball...
E: Could not find the upstream source file! (should be 
/home/debian/debian-med/beispiel/packages/gnuhealth/trunk../tarballs/gnuhealth_1.8.1.orig.tar.gz)


So what is the advantage of your approach?

    Thorsten




More information about the Debian-med-packaging mailing list