Date: Tue, 8 Dec 2020 01:47:17 +0000 (UTC) From: Eric Turgeon <ericbsd@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r557259 - in head/emulators: . libc6-shim Message-ID: <202012080147.0B81lHWN054362@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ericbsd Date: Tue Dec 8 01:47:17 2020 New Revision: 557259 URL: https://svnweb.freebsd.org/changeset/ports/557259 Log: New port emulators/libc6-shim ABI-compatible glibc shim library A shim library providing limited glibc ABI compatibility on top of FreeBSD libc. It allows loading shared objects compiled on Linux and dynamically linked to glibc into native FreeBSD processes. PR: 250591 Submitted by: Alex S <iwtcex@gmail.com> Reviewed by: ericbsd Added: head/emulators/libc6-shim/ head/emulators/libc6-shim/Makefile (contents, props changed) head/emulators/libc6-shim/distinfo (contents, props changed) head/emulators/libc6-shim/pkg-descr (contents, props changed) head/emulators/libc6-shim/pkg-plist (contents, props changed) Modified: head/emulators/Makefile Modified: head/emulators/Makefile ============================================================================== --- head/emulators/Makefile Tue Dec 8 01:08:45 2020 (r557258) +++ head/emulators/Makefile Tue Dec 8 01:47:17 2020 (r557259) @@ -62,6 +62,7 @@ SUBDIR += kcemu SUBDIR += klh10 SUBDIR += lib765 + SUBDIR += libc6-shim SUBDIR += libdsk SUBDIR += libretro-ppsspp SUBDIR += libspectrum Added: head/emulators/libc6-shim/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/emulators/libc6-shim/Makefile Tue Dec 8 01:47:17 2020 (r557259) @@ -0,0 +1,49 @@ +# $FreeBSD$ + +PORTNAME= libc6-shim +DISTVERSION= 20201024 +CATEGORIES= emulators + +MAINTAINER= iwtcex@gmail.com +COMMENT= ABI-compatible glibc shim library + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +IGNORE_FreeBSD_11=not supported +ONLY_FOR_ARCHS= amd64 + +USE_RUBY= yes + +USE_GITHUB= yes +GH_ACCOUNT= shkhln +GH_PROJECT= libc6-shim +GH_TAGNAME= 6b6fa76812f7cb9625e24f12af99fcb9c46a0719 + +post-patch: + ${REINPLACE_CMD} -e 's|../icds|../${DATADIR_REL}/icds|' ${WRKSRC}/bin/nv-sglrun + ${REINPLACE_CMD} -e 's|../lib64|../lib/${PORTNAME}|' -e 's|../lib32|../lib32/${PORTNAME}|' ${WRKSRC}/bin/with-glibc-shim + +do-install: + ${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME} + ${MKDIR} ${STAGEDIR}${PREFIX}/lib32/${PORTNAME} + ${MKDIR} ${STAGEDIR}${DATADIR}/icds/ocl + ${MKDIR} ${STAGEDIR}${DATADIR}/icds/vk + ${INSTALL_SCRIPT} \ + ${WRKSRC}/bin/nv-sglrun \ + ${WRKSRC}/bin/with-glibc-shim \ + ${STAGEDIR}${PREFIX}/bin + ${INSTALL_LIB} \ + ${WRKSRC}/build/lib64/libc6*.so \ + ${STAGEDIR}${PREFIX}/lib/${PORTNAME} + ${INSTALL_LIB} \ + ${WRKSRC}/build/lib32/libc6*.so \ + ${STAGEDIR}${PREFIX}/lib32/${PORTNAME} + ${INSTALL_DATA} \ + ${WRKSRC}/icds/ocl/nv.icd \ + ${STAGEDIR}${DATADIR}/icds/ocl + ${INSTALL_DATA} \ + ${WRKSRC}/icds/vk/nv.json \ + ${STAGEDIR}${DATADIR}/icds/vk + +.include <bsd.port.mk> Added: head/emulators/libc6-shim/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/emulators/libc6-shim/distinfo Tue Dec 8 01:47:17 2020 (r557259) @@ -0,0 +1,3 @@ +TIMESTAMP = 1603542639 +SHA256 (shkhln-libc6-shim-20201024-6b6fa76812f7cb9625e24f12af99fcb9c46a0719_GH0.tar.gz) = 6885cd5f26441c2644852b62c83ba8c34253a2d24dd5dcb04f4eaaadc4293a1e +SIZE (shkhln-libc6-shim-20201024-6b6fa76812f7cb9625e24f12af99fcb9c46a0719_GH0.tar.gz) = 76397 Added: head/emulators/libc6-shim/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/emulators/libc6-shim/pkg-descr Tue Dec 8 01:47:17 2020 (r557259) @@ -0,0 +1,5 @@ +A shim library providing limited glibc ABI compatibility on top of FreeBSD libc. +It allows loading shared objects compiled on Linux and dynamically linked to +glibc into native FreeBSD processes. + +WWW: https://github.com/shkhln/libc6-shim Added: head/emulators/libc6-shim/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/emulators/libc6-shim/pkg-plist Tue Dec 8 01:47:17 2020 (r557259) @@ -0,0 +1,8 @@ +bin/nv-sglrun +bin/with-glibc-shim +lib/libc6-shim/libc6-debug.so +lib/libc6-shim/libc6.so +lib32/libc6-shim/libc6-debug.so +lib32/libc6-shim/libc6.so +%%DATADIR%%/icds/ocl/nv.icd +%%DATADIR%%/icds/vk/nv.json
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202012080147.0B81lHWN054362>