[pkg-gnupg-maint] Bug#911377: libgpg-error: building architecture-independent-only packages fails with "libgpg-error-l10n missing files: usr/share/locale'

Daniel Kahn Gillmor dkg at fifthhorseman.net
Fri Oct 19 02:43:48 BST 2018


Source: libgpg-error
Version: 1.32-2
Severity: normal
Control: tags -1 + help confirmed

when trying to build from source with "gbp buildpackage -A" or
"dpkg-buildpackage -A", the build fails, terminating the following
error message:

---------
[…]
make[5]: Leaving directory '/home/dkg/src/libgpg-error/libgpg-error/build-x86_64-w64-mingw32'
make[4]: Leaving directory '/home/dkg/src/libgpg-error/libgpg-error/build-x86_64-w64-mingw32'
make[3]: Leaving directory '/home/dkg/src/libgpg-error/libgpg-error/build-x86_64-w64-mingw32'
make[2]: Leaving directory '/home/dkg/src/libgpg-error/libgpg-error/build-x86_64-w64-mingw32'
make[1]: Leaving directory '/home/dkg/src/libgpg-error/libgpg-error'
   debian/rules override_dh_install
make[1]: Entering directory '/home/dkg/src/libgpg-error/libgpg-error'
sed -e"s, at DEB_HOST_MULTIARCH@,x86_64-linux-gnu,g" \
    debian/libgpg-error0.install.in > debian/libgpg-error0.install
sed -e"s, at DEB_HOST_MULTIARCH@,x86_64-linux-gnu,g" \
    debian/libgpg-error-dev.install.in > debian/libgpg-error-dev.install
dh_install
dh_install: Cannot find (any matches for) "usr/share/locale" (tried in ., debian/tmp)

dh_install: libgpg-error-l10n missing files: usr/share/locale
dh_install: missing files, aborting
make[1]: *** [debian/rules:29: override_dh_install] Error 25
make[1]: Leaving directory '/home/dkg/src/libgpg-error/libgpg-error'
make: *** [debian/rules:7: binary-indep] Error 2
dpkg-buildpackage: error: debian/rules binary-indep subprocess returned exit status 2
debuild: fatal error at line 1182:
dpkg-buildpackage -rfakeroot -us -uc -ui -i -I -A failed
gbp:error: 'debuild -i -I -A' failed: it exited with 29

---------

This doesn't seem to be a problem on the debian build daemons, because
the arch:all builder apparently also builds arch-dependent packages,
which lets the necessary files get created correctly before the
installation.

So i don't think this is a high priority, but it seems like it
*should* work, and we should be able to generate the libgpg-error-l10n
package OK.

some possible options i've thought of (but haven't tested):

 a) have the arch-independent builds actually kick off the
    arch-dependent packages as well, just to populate the files

 b) install the l10n files from one of the mingw builds instead of the
    stock installation.

I welcome well-tested patches that would resolve this and look
reasonable at the same time :)

           --dkg

-- System Information:
Debian Release: buster/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing'), (200, 'unstable-debug'), (200, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.18.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)


More information about the pkg-gnupg-maint mailing list