pkgsrc-WIP-changes archive

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

rust184: 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:34:04 2025 +0000
Changeset:	6e53bb1950fcda23217e02ba0bae2202de4d4657

Modified Files:
	rust184/Makefile

Log Message:
rust184: 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=6e53bb1950fcda23217e02ba0bae2202de4d4657

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 rust184/Makefile | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diffs:
diff --git a/rust184/Makefile b/rust184/Makefile
index 3abf3587fe..347a081a25 100644
--- a/rust184/Makefile
+++ b/rust184/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
@@ -565,7 +566,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					\
@@ -574,6 +576,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