Package: apt-build Version: 0.11.4 Severity: normal Hello Julien,
Here is the promised br ;-) Sorry, I was busy somewhere else but I come back to you with this pb to build a pkg with only src without bin (my case is the new xfce not yet in debian but already in <http://www.os-works.com/view/debian/packages/>. (apt-build 0.11.4) # diff -Nau /usr/bin/apt-build.Orig /usr/bin/apt-build --- /usr/bin/apt-build.Orig 2005-01-21 15:20:52.000000000 +0100 +++ /usr/bin/apt-build 2005-01-21 15:33:01.000000000 +0100 @@ -230,9 +230,9 @@ my ($srcpkg, $srcver, @packages); # apt-get here prints lines, we pick the one talking about .deb file. - read_apt_list("apt-get --print-uris @apt_args install $pkg |", "^'", + read_apt_list("apt-get --print-uris @apt_args source $pkg |", "^'", sub { - my ($n, $v) = extract_deb($_) or return; + my ($n, $v) = extract_dsc($_) or return; ($srcpkg, $srcver) = ($n, $v) }); =========><========= this first hunk make sens to me as it stand in "sub source" and help me to make: # apt-build source libexo-dev successfuly :-) Anyway (as discust in private) you could had good reason to not apply :-) This second hunk # diff -Nau /usr/bin/apt-build.Orig /usr/bin/apt-build --- /usr/bin/apt-build.Orig 2005-01-21 15:20:52.000000000 +0100 +++ /usr/bin/apt-build 2005-01-21 15:33:01.000000000 +0100 @@ -272,9 +272,9 @@ chdir $conf{build_dir}; - read_apt_list("apt-get --print-uris @apt_args install $pkg |", "^'", + read_apt_list("apt-get --print-uris @apt_args source $pkg |", "^'", sub { - my ($n, $v) = extract_deb($_) or return; + my ($n, $v) = extract_dsc($_) or return; ($srcpkg, $srcver) = ($n, $v) }); ========><======== (again just a work around ;-) ) just help me to go a bit further: # apt-build --sources-list=/Sources/AptBuild/apt-build-src.list build-source --build-only libexo-dev Building the following packages from source: libexo-dev libexo-1 W: Unable to locate package exo E: No packages found -----> Downloading exo source (exo 0.2.0-2) <----- -----> Updating package lists <----- Hit http://www.os-works.com testing/main Sources Hit http://www.os-works.com testing/main Release Reading Package Lists... Done Reading Package Lists... Done Building Dependency Tree... Done Need to get 514kB of source archives. Get:1 http://www.os-works.com testing/main exo 0.2.0-2 (dsc) [621B] Get:2 http://www.os-works.com testing/main exo 0.2.0-2 (tar) [507kB] Get:3 http://www.os-works.com testing/main exo 0.2.0-2 (diff) [6406B] Fetched 514kB in 0s (936kB/s) dpkg-source: extracting exo in exo-0.2.0 -----> Building exo <----- W: Unable to locate package exo E: No packages found dpkg-buildpackage: source package is exo dpkg-buildpackage: source version is 0.2.0-2 dpkg-buildpackage: source maintainer is root dpkg-buildpackage: host architecture is hppa debian/rules clean dh_testdir dh_testroot rm -f build-stamp # Add here commands to clean up after the build process. /usr/bin/make distclean make[1]: Entering directory `/Develop/AptBuild/build/exo-0.2.0' make[1]: *** No rule to make target `distclean'. Stop. make[1]: Leaving directory `/Develop/AptBuild/build/exo-0.2.0' make: [clean] Error 2 (ignored) cp -f /usr/share/misc/config.sub config.sub cp -f /usr/share/misc/config.guess config.guess dh_clean debian/rules build dh_testdir # Add here commands to configure the package. CFLAGS="-Wall -g -O2" ./configure --host=hppa-linux --build=hppa-linux --prefix=/usr --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info --sysconfdir=/etc --enable-final checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for style of include used by make... GNU checking for hppa-linux-gcc... hppa-linux-gcc checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details. make: *** [config.status] Error 77 ----> Cleaning up object files <----- dh_testdir dh_testroot rm -f build-stamp # Add here commands to clean up after the build process. /usr/bin/make distclean make[1]: Entering directory `/Develop/AptBuild/build/exo-0.2.0' make[1]: *** No rule to make target `distclean'. Stop. make[1]: Leaving directory `/Develop/AptBuild/build/exo-0.2.0' make: [clean] Error 2 (ignored) cp -f /usr/share/misc/config.sub config.sub cp -f /usr/share/misc/config.guess config.guess dh_clean Error while building libexo-dev! Some error occured building package ... not yet success? Even thought if I remove sources and grab it again to launch handy 'dpkg-buildpackage' there are no pb: :/Develop/AptBuild/build/exo-0.2.0# lrt .. total 756 -rw-r--r-- 1 root root 506686 Jan 5 00:59 exo_0.2.0.orig.tar.gz drwxr-xr-x 3 root root 4096 Jan 21 15:23 .. -rw-r----- 1 root root 0 Jan 21 15:45 lock -rw-r--r-- 1 root root 6461 Jan 21 15:47 exo_0.2.0-2.diff.gz -rw-r--r-- 1 root root 384 Jan 21 15:47 exo_0.2.0-2.dsc drwxrwxrwx 7 2000 users 4096 Jan 21 15:54 exo-0.2.0 -rw-r--r-- 1 root root 149060 Jan 21 15:55 libexo-dev_0.2.0-2_hppa.deb -rw-r--r-- 1 root root 72120 Jan 21 15:55 libexo-1_0.2.0-2_hppa.deb drwxr-xr-x 3 root root 4096 Jan 21 15:55 . -rw-r--r-- 1 root root 788 Jan 21 15:55 exo_0.2.0-2_hppa.changes thanks in advance for additonal help, Joel