On 02/08/25 23:35, Helmut Grohne wrote:
Hi Nilesh,
On Sat, Aug 02, 2025 at 08:32:46PM +0530, Nilesh Patra wrote:
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/
Thanks for working on this.
- 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
The value passed to --host should be $(DEB_HOST_GNU_TYPE).
This is subtle. The value of *_MULTIARCH and *_GNU_TYPE only differs on
i386 (and I cannot tell why we opted for doing so). The gist is that
*_MULTIARCH should be used for filesystem paths (e.g. libraries) whereas
*_GNU_TYPE should be used for prefixing tools (and --host as a
consequence).
I realised it minutes after filing the report and replied back which went to
the list
https://lists.debian.org/debian-cross/2025/08/msg00002.html
Looks like I missed to CC the bug. Done just now. Thanks for replying.
I've filed afew more and it'd be great if you could review those too.