• Bug#1110270: osra FTCBFS: Misses cross specific options with configure

    From Nilesh Patra@21:1/5 to All on Sat Aug 2 17:10:01 2025
    Package: osra
    Version: 2.1.3-1
    Tags: patch
    User: [email protected]
    Usertags: ftcbfs
    X-Debbugs-Cc: [email protected], [email protected]

    Hi Andrius,

    osra Fails to cross-build because it uses a home-grown configure command instead of debhelper tooling. It seems this is because upstream
    discourages the use of this as documented in https://sourceforge.net/p/osra/bugs/20/

    The current command misses the --host option which it would need to
    prefix the relevant triplets. Along with this, the install option in
    configure tries to pass a `-s` with install to strip the binary.

    This would try to do it as the build arch and hence fails. Instead,
    dh_strip from debhelper already takes care of it so this should not be
    needed and we can just pass the strip-program to be "true".

    The patch at the end of the mail gets osra cross-building.
    Please consider applying.

    Best,
    Nilesh

    diff --git a/debian/rules b/debian/rules
    index b5c4d20..b5804a9 100755
    --- a/debian/rules
    +++ b/debian/rules
    @@ -11,4 +11,4 @@ override_dh_autoreconf:

    # --enable-java is not added as it causes FTBFS
    override_dh_auto_configure:
    - LIBS=-lpng ./configure --prefix=/usr --datarootdir=\$${prefix}/share/osra --enable-lib --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) --enable-openmp
    + LIBS=-lpng INSTALL_PROGRAM="install --strip-program=true" ./configure --prefix=/usr --datarootdir=\$${prefix}/share/osra --enable-lib --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) --host=$(DEB_HOST_MULTIARCH) --enable-openmp

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)