Bug#490748: It FTBFS because can't find tarball to unpack

2008-09-12 Thread Joost Yervante Damad
On Monday 14 July 2008 01:21:59 Marco Rodrigues wrote:
 Package: binutils-z80
 Severity: important
 Tags: patch

 Build log:

 ...
 mkdir -p src
 cd src  tar xj --strip-components=1  ../binutils-2.18.0.tar.bz2
 /bin/sh: cannot open ../binutils-2.18.0.tar.bz2: No such file
 make: *** [unpack-stamp] Error 2
 dpkg-buildpackage: failure: debian/rules build gave error exit status 2

 The tarball binutils-2.18.0.tar.bz2 is at root directory and at build
 process it goes to src/ and try to catch the tarball in previous directory
 (debian/), so that's why it can't find it. I don't know why it works in
 Debian buildd's. Maybe it's because I use dash, instead of bash.

The debian build doesn't run in the debian/ dir. It runs in the root directory 
of the package. 

 I'll attach a patch that make it to build fine. I've tested it with
 pbuilder.

Hi Marco,

I fail to see how your patch can work. The second change definitely is wrong.

Joost

-- 
homepage: http://damad.be/joost
photo/blog: http://damad.be/joost/blog



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#490748: It FTBFS because can't find tarball to unpack

2008-07-13 Thread Marco Rodrigues

Package: binutils-z80
Severity: important
Tags: patch

Build log:

...
mkdir -p src
cd src  tar xj --strip-components=1  ../binutils-2.18.0.tar.bz2
/bin/sh: cannot open ../binutils-2.18.0.tar.bz2: No such file
make: *** [unpack-stamp] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2

The tarball binutils-2.18.0.tar.bz2 is at root directory and at build process 
it goes to src/ and try to catch the tarball in previous directory (debian/), so 
that's why it can't find it. I don't know why it works in Debian buildd's. Maybe 
it's because I use dash, instead of bash.


I'll attach a patch that make it to build fine. I've tested it with pbuilder.

Thanks

--
Marco Rodrigues

http://Marco.Tondela.org
--- binutils-z80-2.18.0.orig/debian/rules	2008-07-14 00:15:04.0 +0100
+++ binutils-z80-2.18.0/debian/rules	2008-07-13 23:56:35.0 +0100
@@ -23,14 +23,14 @@
 unpack: unpack-stamp
 unpack-stamp:
 	mkdir -p $(SOURCE_DIR)
-	cd $(SOURCE_DIR)  tar xj --strip-components=1  ../$(TARFILE)
+	cd $(SOURCE_DIR)  tar xj --strip-components=1  ../../$(TARFILE)
 	touch unpack-stamp
 
 configure: configure-stamp
 configure-stamp: unpack-stamp
 	dh_testdir
 	mkdir -p $(BUILD_DIR)
-	cd $(BUILD_DIR)  env CC=gcc ../$(SOURCE_DIR)/configure $(CONFARGS)
+	cd $(BUILD_DIR)  env CC=gcc ../../$(SOURCE_DIR)/configure $(CONFARGS)
 	touch configure-stamp
 
 build: configure-stamp build-stamp