pkgsrc-WIP-changes archive

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

rust175: pull over from main pkgsrc fix for Darwin to fix -install_name.



Module Name:	pkgsrc-wip
Committed By:	Havard Eidnes <he%NetBSD.org@localhost>
Pushed By:	he
Date:		Sun Mar 3 13:47:53 2024 +0000
Changeset:	7d910897620bd744df9490b1d08c587ee376a1cd

Modified Files:
	rust175/cargo.mk

Log Message:
rust175: pull over from main pkgsrc fix for Darwin to fix -install_name.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=7d910897620bd744df9490b1d08c587ee376a1cd

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

diffstat:
 rust175/cargo.mk | 11 +++++++++++
 1 file changed, 11 insertions(+)

diffs:
diff --git a/rust175/cargo.mk b/rust175/cargo.mk
index 5651090b54..ac5a6f2b0e 100644
--- a/rust175/cargo.mk
+++ b/rust175/cargo.mk
@@ -97,3 +97,14 @@ do-cargo-install:
 	# remove files cargo uses for tracking installations
 	${RM} -f ${DESTDIR}${PREFIX}/.crates.toml
 	${RM} -f ${DESTDIR}${PREFIX}/.crates2.json
+
+.if ${OPSYS} == "Darwin"
+.PHONY: do-cargo-post-install-darwin-fix-rpath
+post-install: do-cargo-post-install-darwin-fix-rpath
+do-cargo-post-install-darwin-fix-rpath:
+	${RUN} cd ${DESTDIR};                                                           \
+	for i in $$(${FIND} .${PREFIX}/lib -name '*.so' | ${SED} -e 's|^\./||'); do     \
+	  install_name_tool -id /$$i $$i;                                               \
+	done
+.endif
+


Home | Main Index | Thread Index | Old Index