[Debichem-devel] Bug#1110270: osra FTCBFS: Misses cross specific options with configure
Nilesh Patra
nilesh at iki.fi
Sun Aug 3 20:22:06 BST 2025
Forwarding to the bug now, missed in previous mail.
On 02/08/25 23:53, Nilesh Patra wrote:
>
>
> On 02/08/25 20:32, Nilesh Patra wrote:
>> Package: osra
>> Version: 2.1.3-1
>> Tags: patch
>> User: debian-cross at lists.debian.org
>> Usertags: ftcbfs
>> X-Debbugs-Cc: debian-cross at lists.debian.org, merkys at debian.org
>>
>> 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
>>
>
> This should be --host=$(DEB_HOST_GNU_TYPE) as this would otherwise fail on i386. I pasted a wrong patch in haste, sorry for that.
> re-pasting a patch below.
>
> diff --git a/debian/rules b/debian/rules
> index b5c4d20..d0912a8 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_GNU_TYPE) --enable-openmp
>
More information about the Debichem-devel
mailing list