[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#1019738: searchandrescue: FTBFS on riscv64: add library search path



On Wed, 2022-09-14 at 21:32 +0800, Sakura286 wrote:

> Simply add library search path to sar/platform.ini and it works.

That means that future Debian porters will have to do the same porting,
it is better to invest a little more time up front to make the package
portable to any architecture instead of adding more hardcoding for a
single architecture that will not be useful to other new architectures.

Looking at the pconf code, I noticed that if you allow environment
variables to be used then it adds LD_LIBRARY_PATH to the library search
path, so if you change the ./configure in debian/rules to this:

   LD_LIBRARY_PATH=/usr/lib/$(DEB_HOST_MULTIARCH) ./configure Linux

Then all the Debian customisations to PlatformSearchPathLib in
sar/platforms.ini can be removed and the package will still build fine.

libc also uses LD_LIBRARY_PATH, but this use is compatible with it.

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: