Hi, Builds fails becauso of i486-linux-gnu.cache file. It is updated and configure: loading cache ../i486-linux-gnu.cache configure: error: `CFLAGS' has changed since the previous run: <<< configure: former value: -g -O2 configure: current value: -g -O2 -Os configure: error: changes in the environment can compromise the build configure: error: run `make distclean' and/or `rm ../i486-linux-gnu.cache' and start over make: *** [build-udeb/config.status] Error 1 dpkg-buildpackage: failure: debian/rules build gave error exit status 2 debuild: fatal error at line 1319: dpkg-buildpackage -rfakeroot -D -us -uc failed I checked usbutils log for arm i saw the line not updating unwritable cache ../arm-linux-gnu.cache Here if I download the source package with apt-get, so without emsource, the build is completed. The emdebian-rules.patch is simple --- usbutils.old/debian/rules Tue Jul 29 18:02:47 2008 +++ /opt/emdebian/trunk/u/usbutils/trunk/usbutils-0.73/debian/rules Tue Jul 29 18:02:47 2008 @@ -46,6 +46,7 @@ cd build-deb && CFLAGS="$(CFLAGS)" ../configure \ --host=$(DEB_HOST_GNU_TYPE) \ --build=$(DEB_BUILD_GNU_TYPE) \ + --cache-file=../$(DEB_HOST_GNU_TYPE).cache \ --prefix=/usr \ --datadir=/var/lib/usbutils \ --mandir=\$${prefix}/share/man \ @@ -59,6 +60,7 @@ cd build-udeb && CFLAGS="$(CFLAGS_UDEB)" ../configure \ --host=$(DEB_HOST_GNU_TYPE) \ --build=$(DEB_BUILD_GNU_TYPE) \ + --cache-file=../$(DEB_HOST_GNU_TYPE).cache \ --prefix=/usr \ --datadir=/usr/share/misc \ --mandir=\$${prefix}/share/man \ @@ -84,8 +86,7 @@ dh_installdirs -a $(MAKE) -C build-deb install DESTDIR=$(CURDIR)/debian/usbutils - sed -i -e "s#/usr/share/usb.ids#/var/lib/usbutils/usb.ids#g" \ - $(CURDIR)/debian/usbutils/usr/share/man/man8/lsusb.8 + $(RM) -r $(CURDIR)/debian/usbutils/usr/share/man/ install -m 755 -o root -g root $(CURDIR)/debian/update-usbids $(CURDIR)/debian/usbutils/usr/sbin gunzip $(CURDIR)/debian/usbutils/var/lib/usbutils/usb.ids.gz touch $@ @@ -107,11 +108,6 @@ dh_testdir dh_testroot # dh_installdebconf - dh_installdocs - dh_installexamples - dh_installman - dh_installinfo - dh_installchangelogs ChangeLog dh_link dh_strip dh_compress To be sure, I comment these lines in configure file if diff $cache_file confcache >/dev/null 2>&1; then :; else # if test -w $cache_file; then # test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" # cat confcache >$cache_file # else echo "not updating unwritable cache $cache_file" # fi fi and the build was finally complete. I do not known why. Anyone can say something? Regards, -- Herbert Parentes Fortes Neto (hpfn) Linux user number 416100 0x9834F79E -- http://pgp.mit.edu/
Attachment:
pgpx4Lp6s5Jd2.pgp
Description: PGP signature