pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/libatomic-links



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.

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@localhost
+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"



Home | Main Index | Thread Index | Old Index