[rrdtool-maint] Bug#807024: rrdtool: FTBFS when built with dpkg-buildpackage -A (No such file or directory)

Santiago Vila sanvila at debian.org
Fri Dec 4 10:20:00 UTC 2015


Package: src:rrdtool
Version: 1.5.5-1
User: sanvila at debian.org
Usertags: binary-indep
Severity: important

Dear maintainer:

I tried to build this package with "dpkg-buildpackage -A"
(i.e. only architecture-independent packages), and it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
dh build-indep --with autoreconf,lua,python2,ruby
   dh_testdir -i
   dh_autoreconf -i
Copying file ABOUT-NLS
Copying file m4/codeset.m4
Copying file m4/gettext.m4
Copying file m4/glibc2.m4
Copying file m4/glibc21.m4
Copying file m4/iconv.m4
Copying file m4/intdiv0.m4
Copying file m4/intl.m4

[... snipped ...]

rm -f RRD.so
gcc -shared -o RRD.so main.o -L/<<PKGBUILDDIR>>/src/.libs -L. -L/usr/lib/x86_64-linux-gnu -L. -Wl,-z,relro -L/build/ruby2.2-TAju0T/ruby2.2-2.2.3/debian/lib -fstack-protector -rdynamic -Wl,-export-dynamic    -lruby-2.2 -lrrd  -lpthread -lgmp -ldl -lcrypt -lm   -lc
make[2]: Leaving directory '/<<PKGBUILDDIR>>/bindings/ruby'
make V=1 "DESTDIR=" install
make[2]: Entering directory '/<<PKGBUILDDIR>>/bindings/ruby'
/bin/mkdir -p . ./.gem.20151203-8014-8zueq7
exit > .RUBYARCHDIR.time
/usr/bin/install -c -m 0755 RRD.so ./.gem.20151203-8014-8zueq7
make[2]: Leaving directory '/<<PKGBUILDDIR>>/bindings/ruby'
rm -f /<<PKGBUILDDIR>>/debian/ruby-rrd/usr/lib/x86_64-linux-gnu/ruby/vendor_ruby/2.2.0/mkmf.log

┌──────────────────────────────────────────────────────────────────────────────┐
│ Install Rubygems integration metadata                                        │
└──────────────────────────────────────────────────────────────────────────────┘

/usr/bin/ruby2.2 /usr/bin/gem2deb-test-runner

┌──────────────────────────────────────────────────────────────────────────────┐
│ Run tests for ruby2.2: no test suite!                                        │
└──────────────────────────────────────────────────────────────────────────────┘


┌──────────────────────────────────────────────────────────────────────────────┐
│ dh_ruby --install finished                                                   │
└──────────────────────────────────────────────────────────────────────────────┘

make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   debian/rules override_dh_install
make[1]: Entering directory '/<<PKGBUILDDIR>>'
# We don't install systemd files yet, because it changes socket location.
# This may need a transition with other packages (TODO).
dh_install -X.la -X.txt -X.pod -Xsystemd --fail-missing
# remove duplicates:
rm debian/rrdtool/usr/bin/rrdcached
rm: cannot remove ‘debian/rrdtool/usr/bin/rrdcached’: No such file or directory
debian/rules:88: recipe for target 'override_dh_install' failed
make[1]: *** [override_dh_install] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:30: recipe for target 'binary-indep' failed
make: *** [binary-indep] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary-indep gave error exit status 2
--------------------------------------------------------------------------------

Sorry not to have a fix, as I am reporting many bugs similar to
this one. The common hints are:

* If the only architecture-independent packages are dummy transitional
ones and they were released with jessie, the easy fix is to drop them
now.

* When using "dh", it is allowed to use (independently)
optional targets override_dh_foo-arch and override_dh_foo-indep
(for several values of "foo").


Once that both "dpkg-buildpackage -A" and "dpkg-buildpackage -B" work
properly, the package would be suitable to be uploaded in source-only
form if you wish.

Thanks.



More information about the pkg-rrdtool-maint mailing list