Hello. I downloaded mjpegtools-1.9.0rc2 and tried to build a debian package using the debian/* files inside the tarball.
This is what I did: [ as root, install all the packages in build-depends ] [ download mjpegtools-1.9.0rc2.tar.gz ] mv mjpegtools-1.9.0rc2.tar.gz mjpegtools_1.9.0.orig.tar.gz tar xzvf mjpegtools_1.9.0.orig.tar.gz mv mjpegtools-1.9.0rc2 mjpegtools-1.9.0 cd mjpegtools-1.9.0 dpkg-buildpackage -rfakeroot -uc -us and this is what happened: dpkg-buildpackage: source package is mjpegtools dpkg-buildpackage: source version is 1.7.0-1 dpkg-buildpackage: source changed by Kawamata/Hitoshi <[EMAIL PROTECTED]> dpkg-buildpackage: host architecture powerpc dpkg-buildpackage: source version without epoch 1.7.0-1 fakeroot debian/rules clean dh_testdir dh_testroot # Add here commands to clean up after the build process. for cpu in powerpc; do rm -rf debian/*-$cpu*; done rm -f config-stamp build-stamp install-stamp debian/libmjpegtools-1.9.files dh_clean dh_clean: Compatibility levels before 4 are deprecated. dpkg-source -b mjpegtools-1.9.0 dpkg-source: warning: source directory `./mjpegtools-1.9.0' is not <sourcepackage>-<upstreamversion> `mjpegtools-1.7.0' dpkg-source: building mjpegtools in mjpegtools_1.7.0-1.tar.gz dpkg-source: building mjpegtools in mjpegtools_1.7.0-1.dsc debian/rules build dh_testdir # Add here commands to configure the package. for cpu in powerpc; do \ mkdir debian/build-$cpu; \ cd debian/build-$cpu; \ ../../configure --host=$cpu-linux-gnu --build=powerpc-linux-gnu --prefix=/usr --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info \ --srcdir=../.. --with-dv-yv12; \ cd ../..; \ done checking build system type... powerpc-unknown-linux-gnu checking host system type... powerpc-unknown-linux-gnu checking target system type... powerpc-unknown-linux-gnu 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 configure: error: source directory already configured; run "make distclean" there first touch config-stamp dh_testdir # Add here commands to compile the package. for cpu in powerpc; do cd debian/build-$cpu; /usr/bin/make; cd ../..; done make[1]: Entering directory `/home/Debian/mjpegtools/mjpegtools-1.9.0/debian/build-powerpc' make[1]: *** No targets specified and no makefile found. Stop. make[1]: Leaving directory `/home/Debian/mjpegtools/mjpegtools-1.9.0/debian/build-powerpc' touch build-stamp fakeroot debian/rules binary dh_testdir dh_testroot dh_clean -k dh_clean: Compatibility levels before 4 are deprecated. dh_installdirs dh_installdirs: Compatibility levels before 4 are deprecated. # Add here commands to install the package into debian/tmp for cpu in powerpc; do cd debian/build-$cpu; /usr/bin/make install prefix=/home/Debian/mjpegtools/mjpegtools-1.9.0/debian/inst-$cpu/usr; cd ../..; done make[1]: Entering directory `/home/Debian/mjpegtools/mjpegtools-1.9.0/debian/build-powerpc' make[1]: *** No rule to make target `install'. Stop. make[1]: Leaving directory `/home/Debian/mjpegtools/mjpegtools-1.9.0/debian/build-powerpc' touch install-stamp dh_testdir dh_testroot dh_clean -k dh_clean: Compatibility levels before 4 are deprecated. rm -f install-stamp cp -f debian/libmjpegtools.files debian/libmjpegtools-1.9.files for cpu in powerpc; do \ case $cpu in \ powerpc) \ dh_movefiles --sourcedir=debian/inst-$cpu ;; \ *) \ cd debian; \ rm -f *-$cpu*.{docs,manpages,info}; \ for f in *.{docs,manpages,info}; do ln -sfn $f `echo $f | sed -e s/mjpegtools/mjpegtools-$cpu/`; done; \ cd ..; \ for f in debian/*.files; do mv $f `echo $f | sed -e s/mjpegtools/mjpegtools-$cpu/`; done; \ dh_movefiles --sourcedir=debian/inst-$cpu; \ for f in debian/*.files; do mv $f `echo $f | sed -e s/mjpegtools-$cpu/mjpegtools/`; done ;; \ esac; \ done dh_movefiles: Compatibility levels before 4 are deprecated. dh_movefiles: debian/inst-powerpc does not exist. make: *** [binary-arch] Error 1 My machine is a powerpc machine running Debian testing (aka etch). Suggestions: 1. dpkg-buildpackage believes the package is version 1.7.0-1 because of the first changelog entry in debian/changelog. Please put something like 1.9.0-0. You can also use 1.9.0-1~rc2, but the new ~ operator is only supported in Debian etch (future Debian 4.0, to be released soon), so there might be issues for people trying to build the package under Debian 3.1 (the current stable distribution). Suggestion for debian/changelog: mjpegtools (1.9.0-0) unstable; urgency=low * New upstream release. -- Kawamata/Hitoshi <[EMAIL PROTECTED]> Wed, 7 Mar 2007 17:03:26 +0100 2. Compatibility levels before 4 are deprecated. Please use "debhelper (>= 4)" in debian/control (and control.in) and use "export DH_COMPAT=4" in debian/rules. Unfortunately, I don't think this will fix the real error. Suggestions welcome. Thanks. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users