Since my /tmp is mounted noexec, make configure fails:

Unable to create and execute files in /tmp.  Set the TMPDIR environment
variable to another directory and make sure that it is not mounted noexec.
Sanity test failed.

The attached patch fixes it for me (lifted from graphics/ffmpeg/Makefile).
Index: Makefile
===================================================================
RCS file: /a8v/pub2/cvsroot/OpenBSD/ports/multimedia/gstreamer1/plugins-libav/Makefile,v
retrieving revision 1.4
diff -u -p -u -p -r1.4 Makefile
--- Makefile	26 Sep 2012 07:39:59 -0000	1.4
+++ Makefile	27 Sep 2012 00:11:59 -0000
@@ -42,11 +42,19 @@ libav_CONFIGURE_ARGS=	${CONFIGURE_SHARED
 			--disable-debug \
 			--disable-iwmmxt
 
+# configure wants a directory it can execute files in
+WRKTMP =		${WRKDIR}/tmp
+
+CONFIGURE_ENV +=	TMPDIR=${WRKTMP}
+
 CONFIGURE_ARGS=		--with-libav-extra-configure="${libav_CONFIGURE_ARGS}"
 
 MAKE_ENV=		V=1
 
 # make sure bundled libav headers are chosen over the system FFmpeg ones
 CPPFLAGS +=		-I../../gst-libs -I../../gst-libs/ext/libav
+
+pre-configure:
+	@mkdir -p ${WRKTMP}
 
 .include <bsd.port.mk>

Reply via email to