ports/55091: install ports no longer works on bento.
dirk.meyer at dinoex.sub.org
dirk.meyer at dinoex.sub.org
Thu Jul 31 04:10:15 UTC 2003
>Number: 55091
>Category: ports
>Synopsis: install ports no longer works on bento.
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Jul 30 21:10:13 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Dirk Meyer
>Release: FreeBSD 5.1-CURRENT i386
>Organization:
privat
>Environment:
bento package cluster
LOCALBASE=/home/dinoex/local
PKG_DBDIR=/home/dinoex/local/var.db.pk
PATH=/home/dinoex/batch:/home/dinoex/local/bin:/home/dinoex/local/sbin:${PATH}
LD_LIBRARY_PATH=/home/dinoex/local/lib
PACKAGES=/home/dinoex/local/packages
>Description:
on bento committers have no root access.
It is neccessary to install dpedencies e.g. libtool.
bsd.port.mk uses "su" for install now,
this breaks on bento where we have no root access.
>How-To-Repeat:
>Fix:
apply an option to bsd.port.mk to have the old functionality
Index: bsd.port.mk
===================================================================
RCS file: /home/pcvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.460
diff -u -r1.460 bsd.port.mk
--- bsd.port.mk 30 Jul 2003 15:42:22 -0000 1.460
+++ bsd.port.mk 31 Jul 2003 04:00:01 -0000
@@ -736,6 +736,8 @@
# the port still works with it.
# USE_PACKAGE_DEPENDS - Install dependencies from existing packages instead
# of building the port from scratch.
+# INSTALL_AS_USER - Define this to install as the current user, intended
+# for systems where you have no root access.
#
# End of the list of all variables that need to be defined in a port.
# Most port authors should not need to understand anything after this point.
@@ -3249,7 +3217,7 @@
.if !exists(${${target:U}_COOKIE})
-.if ${UID} != 0 && defined(_${target:U}_SUSEQ)
+.if ${UID} != 0 && defined(_${target:U}_SUSEQ) && !defined(INSTALL_AS_USER)
.if defined(USE_SUBMAKE)
${${target:U}_COOKIE}: ${_${target:U}_DEP}
@cd ${.CURDIR} && ${MAKE} ${__softMAKEFLAGS} ${_${target:U}_SEQ}
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list