pkgsrc-Users archive

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

Re: rpath error in cython libraries



On 7/28/23 13:29, Martin Husemann wrote:
On Fri, Jul 28, 2023 at 12:32:44PM -0500, Jason Bacon wrote:
Are you saying that pkgsrc does not support $ORIGIN and this needs to be
replaced by the actual path(s)?

Yes, pkgsrc tries very hard to avoid $ORIGIN in binary pkgs. You need a
separately bootstrapped pkgsrc for different $PREFIX anyway, so just replace
$ORIGIN by the real path.

Martin

Replacing $ORIGIN didn't help in this case, since the flags in
cy_build.py are overridden anyway.

Fortunately, the build system respects LDFLAGS, so I was able to easily
fix these issues with the following in the pkgsrc Makefile:

# Help stage-qa find libs in the source tree
MAKE_ENV+=
LD_LIBRARY_PATH=${WRKSRC}/build/lib.netbsd-9.3-amd64-cpython-310/pysam/

# Locate installed libs at run time
LDFLAGS+=       ${COMPILER_RPATH_FLAG}${PREFIX}/${PYSITELIB}/pysam

Thanks again for the discussion.


Home | Main Index | Thread Index | Old Index