pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
rust183: Limit patchelf hacks to NetBSD.
Module Name: pkgsrc-wip
Committed By: Jonathan Perkin <jonathan%perkin.org.uk@localhost>
Pushed By: jperkin
Date: Tue Feb 4 15:32:30 2025 +0000
Changeset: 88d97219e97365f6ef070ac568273c470c430c37
Modified Files:
rust183/Makefile
Log Message:
rust183: Limit patchelf hacks to NetBSD.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=88d97219e97365f6ef070ac568273c470c430c37
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
rust183/Makefile | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diffs:
diff --git a/rust183/Makefile b/rust183/Makefile
index c833115506..d4f1210fa1 100644
--- a/rust183/Makefile
+++ b/rust183/Makefile
@@ -19,10 +19,6 @@ USE_LANGUAGES= c c++
USE_LIBTOOL= yes
USE_TOOLS+= bash grep gmake perl:build pkg-config
-TOOL_DEPENDS+= patchelf-[0-9]*:../../devel/patchelf
-
-FORCE_RPATH= --force-rpath
-
# This is a bug:
# https://github.com/rust-lang/rust/issues/130708
# "Building rust 1.81.0 does network access in the "build" phase"
@@ -95,6 +91,11 @@ CHECK_SSP_SUPPORTED= no
.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == "NetBSD"
+TOOL_DEPENDS+= patchelf-[0-9]*:../../devel/patchelf
+FORCE_RPATH= --force-rpath
+.endif
+
# Allow overriding MAKE_JOBS_SAFE
# some may chose to mostly build faster,
# and deal with any failures due to deadlocks
@@ -561,7 +562,8 @@ do-install:
${RUN}${_ULIMIT_CMD} \
cd ${WRKSRC} && \
${SETENV} ${MAKE_ENV} ${INSTALL_ENV} \
- ${PYTHONBIN} ./x.py install -j ${_MAKE_JOBS_N}; \
+ ${PYTHONBIN} ./x.py install -j ${_MAKE_JOBS_N}
+.if ${OPSYS} == "NetBSD"
for bin in ${PATCH_BINARIES}; do \
f=${DESTDIR}${PREFIX}/$${bin}; \
if [ -f $$f ]; then \
@@ -570,6 +572,7 @@ cmd="${PREFIX}/bin/patchelf ${FORCE_RPATH} --set-rpath ${PREFIX}/lib $$f"; \
$$cmd; \
fi; \
done
+.endif
SUBST_CLASSES+= destdir
SUBST_STAGE.destdir= post-install
Home |
Main Index |
Thread Index |
Old Index