Subject: pkg/15320: graphics/mplayer fails to build if /tmp is mounted 'noexec'
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dave@dtsp.co.nz>
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
>Closed-Date:
>Last-Modified:
>Originator:     David Sainty
>Release:        NetBSD 1.5X
>Organization:
Dynamic Technology Services and Products Ltd (NZ)
>Environment:
System: NetBSD tequila.dave.dtsp.co.nz 1.5X NetBSD 1.5X (TEQUILA) #0: Sat Dec 1 17:24:03 NZDT 2001 dave@tequila.dave.dtsp.co.nz:/vol/tequila/userD/NetBSD-tequila/src/sys/arch/i386/compile/TEQUILA i386
Architecture: i386
Machine: i386
>Description:
	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.

>How-To-Repeat:
	Attempt to build graphics/mplayer with a noexec /tmp.

>Fix:

--- 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...
+CONFIGURE_ENV+=		TMPDIR=${WRKDIR}
 
 post-configure:
 	${CP} ${FILESDIR}/vcd_read_nbsd.c ${WRKSRC}/libmpdemux/vcd_read_nbsd.h
>Release-Note:
>Audit-Trail:
>Unformatted: