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

Re: autotools.mk



On Apr 23, 2010, at 7:43 PM, Scott Christley wrote:
> Has anybody put together a package that uses the standard GNU autotools to configure?  Everything I read seems to indicate that the debian/rules file is very simple, yet it is not working for me.  It complains that there is no configure file.  However, there is definitely a configure file in the source tarball.  What actually seems to be the problem is that the source tarball is not extracted into the build area.  Shouldn't this happen automatically?  Has anybody seen a problem like this?


My rules file is even simpler, just having this within it:


#! /usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk



Then when I use the svn-b alias (svn-buildpackage -us -uc -rfakeroot --svn-ignore) the output is this:



	origDir: ..
dpkg-checkbuilddeps
Complete layout information:
	buildArea=/home/scottc/Projects/tools/debian-med/trunk/packages/swarm/build-area
	origDir=..
	trunkDir=/home/scottc/Projects/tools/debian-med/trunk/packages/swarm/trunk
	trunkUrl=svn+ssh://schristley-guest@svn.debian.org/svn/debian-med/trunk/packages/swarm/trunk
fakeroot debian/rules clean || debian/rules clean
test -x debian/rules
dh_testroot
dh_clean 
dh_clean: Compatibility levels before 4 are deprecated.
/usr/bin/make -C . -k distclean
make[1]: Entering directory `/home/scottc/Projects/tools/debian-med/trunk/packages/swarm/trunk'
make[1]: *** No rule to make target `distclean'.
make[1]: Leaving directory `/home/scottc/Projects/tools/debian-med/trunk/packages/swarm/trunk'
make: [makefile-clean] Error 2 (ignored)
rm -f debian/stamp-makefile-build
rm -f debian/stamp-autotools-files
/home/scottc/Projects/tools/debian-med/trunk/packages/swarm/build-area/libswarm-2.3.0 exists, renaming to /home/scottc/Projects/tools/debian-med/trunk/packages/swarm/build-area/libswarm-2.3.0.obsolete.0.48768388394183
mkdir -p /home/scottc/Projects/tools/debian-med/trunk/packages/swarm/build-area/libswarm-2.3.0/debian
 cp --parents -laf debian/watch debian/control debian/rules debian/changelog /home/scottc/Projects/tools/debian-med/trunk/packages/swarm/build-area/libswarm-2.3.0
dpkg-buildpackage -us -uc -rfakeroot
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value: 
dpkg-buildpackage: set LDFLAGS to default value: 
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package libswarm
dpkg-buildpackage: source version 2.3.0-1
dpkg-buildpackage: source changed by Scott Christley <schristley@mac.com>
dpkg-buildpackage: host architecture i386
 fakeroot debian/rules clean
test -x debian/rules
dh_testroot
dh_clean 
dh_clean: Compatibility levels before 4 are deprecated.
/usr/bin/make -C . -k distclean
make[1]: Entering directory `/home/scottc/Projects/tools/debian-med/trunk/packages/swarm/build-area/libswarm-2.3.0'
make[1]: *** No rule to make target `distclean'.
make[1]: Leaving directory `/home/scottc/Projects/tools/debian-med/trunk/packages/swarm/build-area/libswarm-2.3.0'
make: [makefile-clean] Error 2 (ignored)
rm -f debian/stamp-makefile-build
rm -f debian/stamp-autotools-files
 dpkg-source -b libswarm-2.3.0
dpkg-source: info: using source format `1.0'
dpkg-source: info: building libswarm using existing libswarm_2.3.0.orig.tar.gz
dpkg-source: info: building libswarm in libswarm_2.3.0-1.diff.gz
dpkg-source: warning: ignoring deletion of file COPYING
dpkg-source: warning: ignoring deletion of file configure
dpkg-source: warning: ignoring deletion of file configure.in
dpkg-source: warning: ignoring deletion of file VERSION
dpkg-source: warning: ignoring deletion of file mkinstalldirs

[skip a whole bunch of these warnings]

dpkg-source: warning: ignoring deletion of file m4/aclinkflags.m4
dpkg-source: warning: ignoring deletion of file m4/acnextstep.m4
dpkg-source: info: building libswarm in libswarm_2.3.0-1.dsc
 debian/rules build
test -x debian/rules
mkdir -p "."
echo 5 >debian/compat
touch debian/stamp-autotools-files
chmod a+x /home/scottc/Projects/tools/debian-med/trunk/packages/swarm/build-area/libswarm-2.3.0/./configure
chmod: cannot access `/home/scottc/Projects/tools/debian-med/trunk/packages/swarm/build-area/libswarm-2.3.0/./configure': No such file or directory
make: *** [config.status] Error 1
dpkg-buildpackage: failure: debian/rules build gave error exit status 2
Command dpkg-buildpackage -us -uc -rfakeroot failed in <unknown>, how to continue now? [Qri?]: Aborting.



I'm still clueless.  Anybody have hints on how to debug?  The build process is still a big black box to me.

I did discover the --dont-purge option for svn-buildpackage, it seems to confirm my idea that the source code is not being copied into the build area.

thanks
Scott


Reply to: