* Matthew Vernon <matth...@chiark.greenend.org.uk>, 2015-11-24, 12:15:
libpcre2-dev is marked as "Multi-Arch: same", but the following file is architecture-dependent:

/usr/bin/pcre2-config

Thanks for the bug report. I think this means libpcre2-dev should be marked as Multi-Arch: no?

That's the lazy^Weasy way, yes.

The hard way is to make the script identical across all architectures. Then the package could remain "Multi-Arch: same".

So let's look what the architecture-dependent bits are:

case `uname -s` in
 *SunOS*)
 libR=" -R${prefix}/lib/i386-linux-gnu"
 ;;
 *BSD*)
 libR=" -Wl,-R${prefix}/lib/i386-linux-gnu"
 ;;
esac

This is no-op on Linux, and adds harmful rpath on kFreeBSD.
This part can (and should!) be removed.

if test ${prefix}/lib/i386-linux-gnu != /usr/lib ; then
 libS=-L${prefix}/lib/i386-linux-gnu
fi

/usr/lib/i386-linux-gnu is already within linker's search path.
So this part can be safely removed, too.

So it looks like the hard way is not that hard after all. :-)

--
Jakub Wilk

Reply via email to