Subject: pkg/15320: graphics/mplayer fails to build if /tmp is mounted 'noexec'
To: None <>
From: None <>
List: netbsd-bugs
Date: 01/21/2002 01:42:42
>Number:         15320
>Category:       pkg
>Synopsis:       graphics/mplayer fails to build if /tmp is mounted 'noexec'
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 20 17:31:01 PST 2002
>Originator:     David Sainty
>Release:        NetBSD 1.5X
Dynamic Technology Services and Products Ltd (NZ)
System: NetBSD 1.5X NetBSD 1.5X (TEQUILA) #0: Sat Dec 1 17:24:03 NZDT 2001 i386
Architecture: i386
Machine: i386
	The graphics/mplayer package configuration script uses /tmp to build
	executables and then attempts to execute them there.  This fails if
	/tmp is mounted 'noexec'.  This is unusual behaviour, I can't recall
	any other software having an issue with that configuration, a 'noexec'
	/tmp is a sane thing to want.

	Attempt to build graphics/mplayer with a noexec /tmp.


--- graphics/mplayer/Makefile.orig	Mon Jan 21 00:41:47 2002
+++ graphics/mplayer/Makefile	Mon Jan 21 01:14:12 2002
@@ -31,7 +31,11 @@
 CONFIGURE_ARGS+=	--with-extraincdir="${BUILDLINK_DIR}/include"
 CONFIGURE_ARGS+=	--with-extralibdir="${LOCALBASE}/lib"
 CONFIGURE_ARGS+=	--with-win32libdir="${LOCALBASE}/lib/win32"
 CONFIGURE_ARGS+=	--enable-dvdread
+# The configure script attempts to execute compiled programs in /tmp, but
+# /tmp may be mounted with noexec flag set...
 	${CP} ${FILESDIR}/vcd_read_nbsd.c ${WRKSRC}/libmpdemux/vcd_read_nbsd.h