Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified)) by mollari.NetBSD.org (Postfix) with ESMTPS id CBF181A9217 for ; Sun, 29 Nov 2020 13:23:42 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 3CF6284DA2; Sun, 29 Nov 2020 13:23:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 7903D84D24 for ; Sun, 29 Nov 2020 13:23:41 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id BHbthLbVphDq for ; Sun, 29 Nov 2020 13:23:41 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id E79BC84CE7 for ; Sun, 29 Nov 2020 13:23:40 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id E5250FA9D; Sun, 29 Nov 2020 13:23:40 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1606656220197900" MIME-Version: 1.0 Date: Sun, 29 Nov 2020 13:23:40 +0000 From: "Havard Eidnes" Subject: CVS commit: pkgsrc/devel/libatomic-links To: pkgsrc-changes@NetBSD.org Reply-To: he@netbsd.org X-Mailer: log_accum Message-Id: <20201129132340.E5250FA9D@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1606656220197900 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: he Date: Sun Nov 29 13:23:40 UTC 2020 Added Files: pkgsrc/devel/libatomic-links: DESCR Makefile Log Message: Add a package which makes -latomic available from a unique directory. This is so that we can add that directory to the default link search path of rust without also automatically picking up other installed libraries. This is for the benefit of our powerpc ports, where recent rust has been changed to insist on using -latomic due to the lack of native 64-bit atomic operations. To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 pkgsrc/devel/libatomic-links/DESCR \ pkgsrc/devel/libatomic-links/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1606656220197900 Content-Disposition: inline Content-Length: 1922 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Added files: Index: pkgsrc/devel/libatomic-links/DESCR diff -u /dev/null pkgsrc/devel/libatomic-links/DESCR:1.1 --- /dev/null Sun Nov 29 13:23:40 2020 +++ pkgsrc/devel/libatomic-links/DESCR Sun Nov 29 13:23:40 2020 @@ -0,0 +1,8 @@ +This package puts symlinks to libatomic in a directory specific +to libatomic, so that we can add that directory to the default +link search path of rust without also automatically picking up +other installed libraries. + +This is for the benefit of our powerpc ports, where recent rust +has been changed to insist on using -latomic due to the lack of +native 64-bit atomic operations. Index: pkgsrc/devel/libatomic-links/Makefile diff -u /dev/null pkgsrc/devel/libatomic-links/Makefile:1.1 --- /dev/null Sun Nov 29 13:23:40 2020 +++ pkgsrc/devel/libatomic-links/Makefile Sun Nov 29 13:23:40 2020 @@ -0,0 +1,42 @@ +# $NetBSD: Makefile,v 1.1 2020/11/29 13:23:40 he Exp $ + +PKGNAME= libatomic-links-1.0 +CATEGORIES= devel + +MAINTAINER= pkgsrc-users@NetBSD.org +COMMENT= Make libatomic available from a unique directory +LICENSE= 2-clause-bsd + +DEPENDS+= libatomic-[0-9]*:../../devel/libatomic + +GENERATE_PLIST= cd ${DESTDIR}${PREFIX}; \ + ${FIND} lib/libatomic -type l | ${SORT}; + +# Almost a meta package... +PKG_DESTDIR_SUPPORT= user-destdir +NO_CONFIGURE= yes +NO_BUILD= yes +DISTFILES= # none +PLIST_SRC= # none +CHECK_PERMS= no +USE_LANGUAGES= # empty +WRKSRC= ${WRKDIR} + +INSTALLATION_DIRS+= lib/libatomic + +.include "../../mk/bsd.prefs.mk" + +do-patch: + @${DO_NADA} + +.if (${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "powerpc") +# Only needed here so far; need stems from rust which wants -latomic +# but rust most probably should not always search /usr/pkg/lib +do-install: + for f in $$(${PKG_INFO} -q -L libatomic); do \ + b=$$(basename $$f); \ + ${LN} -s -f $$f ${DESTDIR}${PREFIX}/lib/libatomic/$$b; \ + done +.endif + +.include "../../mk/bsd.pkg.mk" --_----------=_1606656220197900--