pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/56342: Fix developers/lua-compat53
>Number: 56342
>Category: pkg
>Synopsis: Fix developers/lua-compat53
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sun Aug 01 12:40:00 +0000 2021
>Originator: Jonathan Buschmann
>Release: current
>Organization:
>Environment:
>Description:
devel/lua-compat53 does not link on macOS as it's using -shared and -bundle at the same time.
Similar to the problem for devel/lua-BitOp
Below a possible fix.
>How-To-Repeat:
>Fix:
diff --git i/devel/lua-compat53/Makefile w/devel/lua-compat53/Makefile
index 3c1151a01ce..cc4ef0361f7 100644
--- i/devel/lua-compat53/Makefile
+++ w/devel/lua-compat53/Makefile
@@ -21,6 +21,12 @@ INSTALLATION_DIRS+= ${LUA_LDIR} ${LUA_CDIR} ${LUA_INCDIR}
INSTALLATION_DIRS+= ${LUA_LDIR}/compat53
INSTALLATION_DIRS+= ${LUA_CDIR}/compat53
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "Darwin"
+MAKE_ENV+= NO_SHARED_FLAG=true
+.endif
+
pre-build:
${CP} -f ${FILESDIR}/Makefile ${WRKSRC}/Makefile
diff --git i/devel/lua-compat53/files/Makefile w/devel/lua-compat53/files/Makefile
index 28330669a7a..3fd065bccfe 100644
--- i/devel/lua-compat53/files/Makefile
+++ w/devel/lua-compat53/files/Makefile
@@ -1,7 +1,9 @@
# $NetBSD: Makefile,v 1.2 2020/07/11 13:48:49 nia Exp $
CFLAGS+= -fPIC -Wall
+.if empty(NO_SHARED_FLAG:M*)
LDFLAGS+= -shared
+.endif
all: utf8.so table.so string.so tests/testmod.so
Home |
Main Index |
Thread Index |
Old Index