tag 474014 - moreinfo
tag 474014 patch
severity 474014 normal
thanks

Hi Niel,

I can reproduce this. Of course, this debian/rules triggers the
lintian warning debian-rules-uses-pwd, but from what Carl says this
causes other problems, and the fix for this shouldn't hurt anything.

$ head -7 debian/rules
#!/usr/bin/make -f

build:
        @echo PWD is: $(PWD)
        @echo CURDIR is: $(CURDIR)
        false

$ svn-buildpackage --svn-ignore-new
[...]
 debian/rules build
PWD is: /home/ryan52/pkg-perl/trunk/libtest-file-perl
CURDIR is: /server/home/ryan52/pkg-perl/trunk/build-area/libtest-file-perl-1.27
false
make: *** [build] Error 1
dpkg-buildpackage: failure: debian/rules build gave error exit status 2

after applying the attached patch, these are my results (as expected):
PWD is: /server/home/ryan52/pkg-perl/trunk/build-area/libtest-file-perl-1.27
CURDIR is: /server/home/ryan52/pkg-perl/trunk/build-area/libtest-file-perl-1.27

may I commit this patch (after updating the changelog, of course)?

Thanks,
Ryan

-- 
_________________________
Ryan Niebur
ryanrya...@gmail.com
Index: svn-buildpackage
===================================================================
--- svn-buildpackage	(revision 13119)
+++ svn-buildpackage	(working copy)
@@ -596,6 +596,7 @@
 }
 
 chdir $bdir || die "Mh, something is going wrong with builddir $bdir...";
+$ENV{PWD}=$bdir;
 
 if($opt_export) { print "Build directory exported to $bdir\n"; exit 0;}
 

Attachment: signature.asc
Description: Digital signature

Reply via email to