Package: dh-lua
Version: 24
Severity: important

Dear Maintainer,

Attempts to build the hamlib Lua bindings fail if the package was prepared on a 
different arch
to the one it's trying to build on (see #869120).

This was caused by there being an existing debian/<package>.install which 
dh-lua.Makefile.multiple
tried to append to without checking that the "gnu triplet" was the same.

This results in files which look like:

----------------------------------------------------
usr/lib/x86_64-linux-gnu/lua/5.2/Hamliblua.so
usr/lib/x86_64-linux-gnu/liblua5.2-hamlib2.so.*
usr/lib/x86_64-linux-gnu/lua/5.3/Hamliblua.so
usr/lib/x86_64-linux-gnu/liblua5.3-hamlib2.so.*
usr/lib/arm-linux-gnueabi/lua/5.2/Hamliblua.so
usr/lib/arm-linux-gnueabi/liblua5.2-hamlib2.so.*
usr/lib/arm-linux-gnueabi/lua/5.3/Hamliblua.so
usr/lib/arm-linux-gnueabi/liblua5.3-hamlib2.so.*
-----------------------------------------------------

Which fail to build with errors like:

dh_install: lua-hamlib2 missing files: 
usr/lib/x86_64-linux-gnu/liblua5.2-hamlib2.so.*
dh_install: Cannot find (any matches for) 
"usr/lib/x86_64-linux-gnu/lua/5.3/Hamliblua.so" (tried in ., debian/tmp)

The solution I've used is to remove the debian/<package>.install files in the 
clean step.
However there is obviously some reason that dh-lua is appending to the files 
rather than
over-writing them so removing them seems counter-productive.

Either dh-lua need to check that the "gnu triplet" of lines already in the file 
is valid for the
current build when appending to the file or it needs to overwrite the file 
instead (or possibly
throw an error about the file existing when it shouldn't).


-- System Information:
Debian Release: 9.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

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

Versions of packages dh-lua depends on:
ii  dctrl-tools             2.24-2+b1
ii  debhelper               10.2.5
ii  libfile-find-rule-perl  0.34-1
ii  liblua5.1-0-dev         5.1.5-8.1+b2
ii  liblua5.2-dev           5.2.4-1.1+b2
ii  liblua5.3-dev           5.3.3-1
ii  libluasandbox-bin       1.2.1-4
ii  libluasandbox-dev       1.2.1-4
ii  libtool                 2.4.6-2
ii  libtool-bin             2.4.6-2
ii  lua5.1                  5.1.5-8.1+b2
ii  lua5.2                  5.2.4-1.1+b2
ii  lua5.3                  5.3.3-1
ii  perl                    5.24.1-3
ii  pkg-config              0.29-4+b1

dh-lua recommends no packages.

dh-lua suggests no packages.

-- no debconf information

Reply via email to