pkgsrc-WIP-changes archive

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

rust176: 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:49:03 2024 +0000
Changeset:	2f007bd1f995dcc2dffedd5803f9ed1743ff27e4

Modified Files:
	rust176/cargo.mk

Log Message:
rust176: 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=2f007bd1f995dcc2dffedd5803f9ed1743ff27e4

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

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

diffs:
diff --git a/rust176/cargo.mk b/rust176/cargo.mk
index 5651090b54..ac5a6f2b0e 100644
--- a/rust176/cargo.mk
+++ b/rust176/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