Package: src:webcamd
Version: 0.7.6-5.1
Severity: serious
Tags: patch

Dear maintainer:

I tried to build this package with "dpkg-buildpackage -A"
(which is what the "Arch: all" autobuilder would do to build it)
but it failed:

--------------------------------------------------------------------------------
[...]
 fakeroot debian/rules binary-indep
dh_testdir
dh_testroot
dh_clean -k
dh_clean: dh_clean -k is deprecated; use dh_prep instead
dh_installdirs
# Add here commands to install the package into debian/webcamd.
/usr/bin/make install DESTDIR=/<<PKGBUILDDIR>>/debian/webcamd
make[1]: Entering directory '/<<PKGBUILDDIR>>'
install -d -m 755 /<<PKGBUILDDIR>>/debian/webcamd/usr/bin
install -m 755 webcamd /<<PKGBUILDDIR>>/debian/webcamd/usr/bin
install -m 755 webcamd-setup /<<PKGBUILDDIR>>/debian/webcamd/usr/bin
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
 dpkg-genbuildinfo --build=all
dpkg-genbuildinfo: error: binary build with no binary artifacts found; 
.buildinfo is meaningless
dpkg-buildpackage: error: dpkg-genbuildinfo --build=all gave error exit status 2
--------------------------------------------------------------------------------

This usually happens when the binary-arch and binary-indep targets are swapped.

The patch below (untested) might help.

Please consider uploading in source-only form so that these kind of bugs
are discovered earlier.

Thanks.

--- a/debian/rules
+++ b/debian/rules
@@ -45,12 +45,12 @@ install: build
        $(MAKE) install DESTDIR=$(CURDIR)/debian/webcamd
 
 
-# Build architecture-independent files here.
-binary-indep: build install
-# We have nothing to do by default.
-
 # Build architecture-dependent files here.
 binary-arch: build install
+# We have nothing to do by default.
+
+# Build architecture-independent files here.
+binary-indep: build install
        dh_testdir
        dh_testroot
        dh_installdocs

Reply via email to