On Mon, Aug 08, 2016 at 09:33:50AM -0600, Theo de Raadt wrote:
> > On 2016-08-07, Carlin Bingham <[email protected]> wrote:
> >
> > > What should be done for ports like (just for example) calibre?
> > > It uses python, and uses PyQtWebkit to pull in Qt5Webkit which maps WX
> > > for its jit. Python itself doesn't need wxneeded but for calibre (and
> > > possibly other ports) to work it will.
> >
> > I don't know how to handle this. The model of tying wxneeded
> > permissions to an executable is ill suited for this.
> >
> > Maybe have both python and python-wx and use the latter for things
> > like calibre?
> > Do we have Perl module that violates W^X in the ports tree?
> >
> > Ideas?
>
> Just mark python, and move on.
>
> In a few months we'll be able to circle back and decide.
This does the trick and allows me to run something using PyQtWebkit/Qt5Webkit:
Index: Makefile.inc
===================================================================
RCS file: /cvs/ports/lang/python/Makefile.inc,v
retrieving revision 1.115
diff -u -p -r1.115 Makefile.inc
--- Makefile.inc 11 May 2016 22:43:49 -0000 1.115
+++ Makefile.inc 11 Aug 2016 15:24:15 -0000
@@ -123,7 +123,7 @@ CONFIGURE_ENV += OPT='${CFLAGS} -fPIC' C
LOCALBASE=${LOCALBASE} X11BASE=${X11BASE}
MAKE_ENV += LOCALBASE=${LOCALBASE} X11BASE=${X11BASE}
MAKE_FLAGS += LD_LIBRARY_PATH=${WRKSRC} PATH="${WRKDIST}:${PORTPATH}"
-MAKE_FLAGS += LDFLAGS='-L${WRKSRC}'
+MAKE_FLAGS += LDFLAGS='-L${WRKSRC} -Wl,-z,wxneeded'
FAKE_FLAGS += RANLIB=:
ALL_TARGET = all ./Lib/plat-openbsd6
Index: 2.7/Makefile
===================================================================
RCS file: /cvs/ports/lang/python/2.7/Makefile,v
retrieving revision 1.46
diff -u -p -r1.46 Makefile
--- 2.7/Makefile 3 Jul 2016 18:16:00 -0000 1.46
+++ 2.7/Makefile 11 Aug 2016 15:24:15 -0000
@@ -7,6 +7,7 @@
VERSION = 2.7
PATCHLEVEL = .12
+REVISION = 0
SHARED_LIBS = python2.7 0.0
VERSION_SPEC = >=2.7,<2.8
Index: 3.4/Makefile
===================================================================
RCS file: /cvs/ports/lang/python/3.4/Makefile,v
retrieving revision 1.12
diff -u -p -r1.12 Makefile
--- 3.4/Makefile 3 Jul 2016 18:16:00 -0000 1.12
+++ 3.4/Makefile 11 Aug 2016 15:24:15 -0000
@@ -7,6 +7,7 @@
VERSION = 3.4
PATCHLEVEL = .5
+REVISION = 0
SHARED_LIBS = python3.4m 1.0
VERSION_SPEC = >=3.4,<3.5
Index: 3.5/Makefile
===================================================================
RCS file: /cvs/ports/lang/python/3.5/Makefile,v
retrieving revision 1.9
diff -u -p -r1.9 Makefile
--- 3.5/Makefile 3 Jul 2016 18:16:00 -0000 1.9
+++ 3.5/Makefile 11 Aug 2016 15:24:15 -0000
@@ -7,6 +7,7 @@
VERSION = 3.5
PATCHLEVEL = .2
+REVISION = 0
SHARED_LIBS = python3.5m 0.0
VERSION_SPEC = >=3.5,<3.6
--
jasper