XPost: linux.debian.bugs.dist
From:
[email protected]
Hi there,
thanks for this - the build scripts for uronode are particularly curious, with the list of credits in the configure file.
I'll get this tested and uploaded soon!
Cheers,
--
Hibby
Debian Developer
Packet Radioist
MM0RFN
On Sun, 25 Aug 2024, at 10:21 AM, Helmut Grohne wrote:
Source: uronode
Version: 2.15-3
Tags: patch
User: [email protected]
Usertags: ftcbfs
uronode fails to cross build from source for multiple reasons. The build
runs the build architecture compiler and that fails badly. Usually, when there is a configure script, we expect it to pick up the host from the
--host argument, but this is not what happens here. The buildsystem is
more similar to a bare Makefile based one where one passes cross tools
to make. Due to the presence of a configure script, dh_auto_build does
not pass cross tools here, but we can ask it to revert back to makefile
and pass cross tools. Then, in the install step the upstream Makefile
passes -s to install and that happens to use the build architecture
strip on host architecture ELF binaries, which doesn't work well either. Ideally, we defer all stripping to dh_strip. Doing otherwise (as is done here) also breaks DEB_BUILD_OPTIONS=nostrip as well as generation of
-dbgsym packages (both of which is broken here). The common way to
suppress the -s flag is passing an install with the --strip-program=true
and debhelper does this (for the makefile buildsystem). I'm attaching a combined patch for your convenience fixing the cross build, DEB_BUILD_OPTIONS=nostrip as well as generation of -dbgsym packages.
Helmut
Attachments:
* uronode_2.15-3.1.debdiff
--- SoupGate-Win32 v1.05
* Origin: you cannot sedate... all the things you hate (1:229/2)