[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH] libdebian-installer build failure



--Boundary-00=_fFV8ADI/IwP6yB/
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

The first time that dpkg-buildpackage is executed the compilation fails:
--
debian/rules build
AUTOMAKE=automake-1.8 ACLOCAL=aclocal-1.8 \
        autoreconf -i -v
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal-1.8
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy
libtoolize: `config.guess' exists: use `--force' to overwrite
libtoolize: `config.sub' exists: use `--force' to overwrite
autoreconf: running: /usr/bin/autoconf
autoreconf: running: /usr/bin/autoheader
autoreconf: running: automake-1.8 --add-missing --copy --no-force
configure.ac: installing `./install-sh'
configure.ac: installing `./missing'
src/Makefile.am: installing `./depcomp'
autoreconf: Leaving directory `.'
make: *** [configure] Error 1
----

The attached patch removes the "@exit 1" (why was it there?) and makes sure 
that rules clean removes all generated files so that similar bugs are cached 
earlier.

Thanks.
Rafael

--Boundary-00=_fFV8ADI/IwP6yB/
Content-Type: text/x-diff;
  charset="us-ascii";
  name="patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="patch"

Index: packages/libdebian-installer/debian/rules
===================================================================
--- packages/libdebian-installer/debian/rules	(revision 17720)
+++ packages/libdebian-installer/debian/rules	(working copy)
@@ -22,11 +22,10 @@
 configure:
 	AUTOMAKE=automake-1.8 ACLOCAL=aclocal-1.8 \
 		autoreconf -i -v
-	@exit 1
 
 build/config.status: configure
 	dh_testdir
-	
+
 	-mkdir build
 	cd build && \
 	../configure \
@@ -50,14 +49,19 @@
 	dh_testroot
 	rm -f build-stamp
 
+	rm -rf configure depcomp ltmain.sh missing aclocal.m4 install-sh config.h.in config.guess config.sub
+	(for i in $$(find . -name Makefile.in); do \
+	 rm "$$i"; \
+	 done;\
+	)
 	rm -rf build
 
-ifneq "$(wildcard /usr/share/misc/config.sub)" ""
-	-cp -f /usr/share/misc/config.sub config.sub
-endif
-ifneq "$(wildcard /usr/share/misc/config.guess)" ""
-	-cp -f /usr/share/misc/config.guess config.guess
-endif
+#ifneq "$(wildcard /usr/share/misc/config.sub)" ""
+#	-cp -f /usr/share/misc/config.sub config.sub
+#endif
+#ifneq "$(wildcard /usr/share/misc/config.guess)" ""
+#	-cp -f /usr/share/misc/config.guess config.guess
+#endif
 
 	dh_clean
 

--Boundary-00=_fFV8ADI/IwP6yB/
Content-Type: Text/Plain;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The first time that dpkg-buildpackage is executed the compilation fails:
=2D ------------------------------------------------
debian/rules build
AUTOMAKE=3Dautomake-1.8 ACLOCAL=3Daclocal-1.8 \
        autoreconf -i -v
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal-1.8
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy
libtoolize: `config.guess' exists: use `--force' to overwrite
libtoolize: `config.sub' exists: use `--force' to overwrite
autoreconf: running: /usr/bin/autoconf
autoreconf: running: /usr/bin/autoheader
autoreconf: running: automake-1.8 --add-missing --copy --no-force
configure.ac: installing `./install-sh'
configure.ac: installing `./missing'
src/Makefile.am: installing `./depcomp'
autoreconf: Leaving directory `.'
make: *** [configure] Error 1
=2D -------------------------------------------------

The attached patch removes the "@exit 1" (why was it there?) and makes sure=
=20
that rules clean removes all generated files so that similar bugs are cache=
d=20
earlier.

Thanks.
Rafael
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFA8VFFLlrfGJ8JUHwRAovJAKCQq3w4QAs3J6+vqeEK/y4tSkEjbACeMJ+6
c9d/CjGsyDgHuabPcHllGRc=3D
=3DYNC5
=2D----END PGP SIGNATURE-----

--Boundary-00=_fFV8ADI/IwP6yB/
Content-Type: text/x-diff;
  charset="us-ascii";
  name="patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="patch"

Index: packages/libdebian-installer/debian/rules
===================================================================
--- packages/libdebian-installer/debian/rules	(revision 17720)
+++ packages/libdebian-installer/debian/rules	(working copy)
@@ -22,11 +22,10 @@
 configure:
 	AUTOMAKE=automake-1.8 ACLOCAL=aclocal-1.8 \
 		autoreconf -i -v
-	@exit 1
 
 build/config.status: configure
 	dh_testdir
-	
+
 	-mkdir build
 	cd build && \
 	../configure \
@@ -50,14 +49,19 @@
 	dh_testroot
 	rm -f build-stamp
 
+	rm -rf configure depcomp ltmain.sh missing aclocal.m4 install-sh config.h.in config.guess config.sub
+	(for i in $$(find . -name Makefile.in); do \
+	 rm "$$i"; \
+	 done;\
+	)
 	rm -rf build
 
-ifneq "$(wildcard /usr/share/misc/config.sub)" ""
-	-cp -f /usr/share/misc/config.sub config.sub
-endif
-ifneq "$(wildcard /usr/share/misc/config.guess)" ""
-	-cp -f /usr/share/misc/config.guess config.guess
-endif
+#ifneq "$(wildcard /usr/share/misc/config.sub)" ""
+#	-cp -f /usr/share/misc/config.sub config.sub
+#endif
+#ifneq "$(wildcard /usr/share/misc/config.guess)" ""
+#	-cp -f /usr/share/misc/config.guess config.guess
+#endif
 
 	dh_clean
 

--Boundary-00=_fFV8ADI/IwP6yB/--



Reply to: