From nobody@FreeBSD.org  Sun Nov 11 15:25:32 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 4A278266
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 11 Nov 2012 15:25:32 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 31B1D8FC12
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 11 Nov 2012 15:25:29 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id qABFPTIp081217
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 11 Nov 2012 15:25:29 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id qABFPSCs081216;
	Sun, 11 Nov 2012 15:25:28 GMT
	(envelope-from nobody)
Message-Id: <201211111525.qABFPSCs081216@red.freebsd.org>
Date: Sun, 11 Nov 2012 15:25:28 GMT
From: Tilman Blumhagen <tilman.blumhagen@googlemail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: "portmaster math/lp_solve" fails when run from normal user login after duing su
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         173559
>Category:       ports
>Synopsis:       "portmaster math/lp_solve" fails when run from normal user login after duing su
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bdrewery
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 11 15:30:00 UTC 2012
>Closed-Date:    Sat Apr 13 13:03:41 CDT 2013
>Last-Modified:  Sat Apr 13 21:20:00 UTC 2013
>Originator:     Tilman Blumhagen
>Release:        9.0
>Organization:
>Environment:
>Description:
When running "portmaster math/lp_solve" from a normal user account after doing su it wants to execute ~/.shrc wich is not executable for the user that is created by the FreeBSD 9.0 installation. Making ~/.shrc executable makes the build succeed.

Executing ~/.shrc is probably not necessary. In fact I think building a port should not rely on anything in a users home directory.
>How-To-Repeat:
$ su
sternmull# portmaster math/lp_solve

===>>> Port directory: /usr/ports/math/lp_solve

===>>> Gathering distinfo list for installed ports

===>>> Launching 'make checksum' for math/lp_solve in background
===> No options to configure
===>>> Gathering dependency list for math/lp_solve from ports
===>>> No dependencies for math/lp_solve


===>>> Starting build for math/lp_solve <<<===

===>>> All dependencies are up to date

===>  Cleaning for lp_solve-5.5.2.0
===>>> Waiting on fetch & checksum for math/lp_solve <<<===


===>  Extracting for lp_solve-5.5.2.0
=> SHA256 Checksum OK for lp_solve_5.5.2.0_source.tar.gz.
===>  Patching for lp_solve-5.5.2.0
===>  Applying FreeBSD patches for lp_solve-5.5.2.0
===>  Configuring for lp_solve-5.5.2.0
===>  Building for lp_solve-5.5.2.0
cd /usr/ports/math/lp_solve/work/lp_solve_5.5/lp_solve  ; /home/kringel/.shrc TMPDIR="/tmp" /bin/sh -x ccc
/home/kringel/.shrc: Permission denied
*** [do-build] Error code 126

Stop in /usr/ports/math/lp_solve.

===>>> make failed for math/lp_solve
===>>> Aborting update

Terminated

===>>> You can restart from the point of failure with this command line:
       portmaster <flags> math/lp_solve 

sternmull# 

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->bdrewery 
Responsible-Changed-By: ak 
Responsible-Changed-When: Mon Feb 11 14:14:29 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=173559 

From: Colin Percival <cperciva@freebsd.org>
To: bug-followup@FreeBSD.org, tilman.blumhagen@googlemail.com
Cc:  
Subject: Re: ports/173559: "portmaster math/lp_solve" fails when run from
 normal user login after duing su
Date: Tue, 02 Apr 2013 12:43:08 -0700

 This port uses ${ENV} to refer to /usr/bin/env; the correct name is ${SETENV}:
 
 --- Makefile
 +++ Makefile
 @@ -21,3 +21,3 @@
  .if defined(TMPDIR)
 -BUILDENV=	${ENV} TMPDIR="${TMPDIR}"
 +BUILDENV=	${SETENV} TMPDIR="${TMPDIR}"
  .endif
 
 This fixes the build under portmaster.
 
 -- 
 Colin Percival
 Security Officer Emeritus, FreeBSD | The power to serve
 Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid
 
 ./devel/libtai/Makefile:        @${ENV} LD_LIBRARY_PATH=${WRKSRC} \
 ./math/lp_solve/Makefile:BUILDENV=      ${ENV} TMPDIR="${TMPDIR}"
 ./math/libjbigi/Makefile:               ${ENV} ${JBIGI_BUILD_ENV} \
 ./math/libjbigi/Makefile:               ${ENV} ${JBIGI_BUILD_ENV} \
 ./net-mgmt/zenoss/Makefile:     @cd ${WRKSRC} && ${ENV} ${BUILD_ENV}
 SVNVERSION=${FALSE} bash ./build.sh 2>/dev/null
State-Changed-From-To: open->closed 
State-Changed-By: bdrewery 
State-Changed-When: Sat Apr 13 13:03:40 CDT 2013 
State-Changed-Why:  
Fixed 

http://www.freebsd.org/cgi/query-pr.cgi?pr=173559 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/173559: commit references a PR
Date: Sat, 13 Apr 2013 18:03:42 +0000 (UTC)

 Author: bdrewery
 Date: Sat Apr 13 18:03:34 2013
 New Revision: 315797
 URL: http://svnweb.freebsd.org/changeset/ports/315797
 
 Log:
   - Fix build as non-root by using proper SETENV to reference /usr/bin/env
   - Trim header
   
   PR:		ports/173559
   Submitted by:	cperciva
   Reported by:	Tilman Blumhagen <tilman.blumhagen@googlemail.com>
   Approved by:	portmgr (implicit)
 
 Modified:
   head/math/lp_solve/Makefile
 
 Modified: head/math/lp_solve/Makefile
 ==============================================================================
 --- head/math/lp_solve/Makefile	Sat Apr 13 15:44:08 2013	(r315796)
 +++ head/math/lp_solve/Makefile	Sat Apr 13 18:03:34 2013	(r315797)
 @@ -1,9 +1,5 @@
 -# New ports collection makefile for:	lp_solve
 -# Date created:         31 June 2003
 -# Whom:			Pedro F. Giffuni <giffunip@asme.org>
 -#
 +# Created by: Pedro F. Giffuni <giffunip@asme.org>
  # $FreeBSD$
 -#
  
  PORTNAME=	lp_solve
  PORTVERSION=	5.5.2.0
 @@ -19,7 +15,7 @@ WRKSRC=		${WRKDIR}/${PORTNAME}_${PORTVER
  USE_LDCONFIG=	yes
  
  .if defined(TMPDIR)
 -BUILDENV=	${ENV} TMPDIR="${TMPDIR}"
 +BUILDENV=	${SETENV} TMPDIR="${TMPDIR}"
  .endif
  
  .include <bsd.port.pre.mk>
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/173559: commit references a PR
Date: Sat, 13 Apr 2013 21:12:35 +0000 (UTC)

 Author: bdrewery
 Date: Sat Apr 13 21:12:26 2013
 New Revision: 315798
 URL: http://svnweb.freebsd.org/changeset/ports/315798
 
 Log:
   - Fix builds when ENV is set and not executable by using proper SETENV for /usr/bin/env
     This fixes all cases of incorrect ENV/SETENV usage.
   
   Approved by:	portmgr (implicit)
   With hat:	portmgr
   PR:		ports/173559
 
 Modified:
   head/devel/libtai/Makefile
   head/math/libjbigi/Makefile
   head/net-mgmt/zenoss/Makefile
 
 Modified: head/devel/libtai/Makefile
 ==============================================================================
 --- head/devel/libtai/Makefile	Sat Apr 13 18:03:34 2013	(r315797)
 +++ head/devel/libtai/Makefile	Sat Apr 13 21:12:26 2013	(r315798)
 @@ -46,7 +46,7 @@ pre-install:
  .endfor
  
  post-build:
 -	@${ENV} LD_LIBRARY_PATH=${WRKSRC} \
 +	@${SETENV} LD_LIBRARY_PATH=${WRKSRC} \
  		${WRKSRC}/leapsecs < ${WRKSRC}/leapsecs.txt > \
  		${WRKSRC}/leapsecs.dat
  
 
 Modified: head/math/libjbigi/Makefile
 ==============================================================================
 --- head/math/libjbigi/Makefile	Sat Apr 13 18:03:34 2013	(r315797)
 +++ head/math/libjbigi/Makefile	Sat Apr 13 21:12:26 2013	(r315798)
 @@ -52,12 +52,12 @@ do-build:
  .ifdef(JBIGI_BUILD_JCPUID)
  # jcpuid
  	cd ${BUILD_WRKSRC}/jcpuid && \
 -		${ENV} ${JBIGI_BUILD_ENV} \
 +		${SETENV} ${JBIGI_BUILD_ENV} \
  			${SH} ./build.sh
  .endif
  # jbigi
  	cd ${BUILD_WRKSRC}/jbigi && \
 -		${ENV} ${JBIGI_BUILD_ENV} \
 +		${SETENV} ${JBIGI_BUILD_ENV} \
  			${SH} ./build_jbigi.sh dynamic
  ## prepare jar
  .ifdef(JBIGI_BUILD_JCPUID)
 
 Modified: head/net-mgmt/zenoss/Makefile
 ==============================================================================
 --- head/net-mgmt/zenoss/Makefile	Sat Apr 13 18:03:34 2013	(r315797)
 +++ head/net-mgmt/zenoss/Makefile	Sat Apr 13 21:12:26 2013	(r315798)
 @@ -1,9 +1,5 @@
 -# New ports collection makefile for:	zenoss
 -# Date created:		19 April 2011
 -# Whom:			Phil Phillips
 -#
 +# Created by: Phil Phillips
  # $FreeBSD$
 -#
  
  PORTNAME=	zenoss
  PORTVERSION=	3.1.0
 @@ -97,7 +93,7 @@ do-install:
  		&& ${LN} -sF ${ZENHOME}/libdata/pkgconfig \
  		${ZENHOME}/lib/pkgconfig
  
 -	@cd ${WRKSRC} && ${ENV} ${BUILD_ENV} SVNVERSION=${FALSE} bash ./build.sh 2>/dev/null
 +	@cd ${WRKSRC} && ${SETENV} ${BUILD_ENV} SVNVERSION=${FALSE} bash ./build.sh 2>/dev/null
  
  	@${RM} ${ZENHOME}/lib/pkgconfig
  
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
