Package: src:notion
Version: 3+2015061300-1
User: [email protected]
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
   dh_testdir -i
   dh_update_autotools_config -i
   dh_auto_configure -i
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<BUILDDIR>>/notion-3+2015061300'
CFLAGS="-g -O2 -fstack-protector-strong -Wformat -Werror=format-security 
-Wdate-time -D_FORTIFY_SOURCE=2" dh_auto_build
        make -j1
make[2]: Entering directory '/<<BUILDDIR>>/notion-3+2015061300'
set -e; for i in libmainloop libtu libextl mod_tiling mod_query mod_menu 
mod_dock mod_sp mod_sm mod_statusbar de mod_xinerama mod_xrandr mod_xkbevents 
mod_notionflux ioncore notion etc utils man po; do make -C $i; done
make[3]: Entering directory '/<<BUILDDIR>>/notion-3+2015061300/libmainloop'

[... snipped ...]

   debian/rules override_dh_install
make[1]: Entering directory '/<<BUILDDIR>>/notion-3+2015061300'
dh_install
# install headers
find . \( -name debian -o -name .pc -o -name config.h -o -name snprintf.h \) \
        -prune -o -name '*.h' -exec install -m644 -D {} \
        debian/notion-dev/usr/include/notion/{} \;
# this needs to be executable
chmod a+x debian/notion-dev/usr/lib/notion/libextl/libextl-mkexports
# notionflux should go into /usr/bin. The upstream install should probably do 
this
mv debian/notion/usr/lib/notion/notionflux debian/notion/usr/bin
mv: cannot stat 'debian/notion/usr/lib/notion/notionflux': No such file or 
directory
debian/rules:30: recipe for target 'override_dh_install' failed
make[1]: *** [override_dh_install] Error 1
make[1]: Leaving directory '/<<BUILDDIR>>/notion-3+2015061300'
debian/rules:5: recipe for target 'binary-indep' failed
make: *** [binary-indep] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary-indep gave error exit 
status 2
--------------------------------------------------------------------------------

This happens because debian/notion/[...] does not exist, because "notion"
is architecture-dependent and we are creating arch-independent packages only.

The solution is to use -arch and -indep suffixes for override_dh_* targets.

I'm going to provide a patch which fixes this bug and also Bug #830577.

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. I would strongly recommend that you do that.

Thanks.

Reply via email to