ports/61133: When INSTALL_AS_USER is specified, `ldconfig' stage of port installation should be ommited

Lev A. Serbryakov lev at FreeBSD.org
Fri Jan 9 16:40:17 UTC 2004


>Number:         61133
>Category:       ports
>Synopsis:       When INSTALL_AS_USER is specified, `ldconfig' stage of port installation should be ommited
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 09 08:40:12 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Lev A. Serbryakov
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
>Environment:
System: FreeBSD ftp.translate.ru 4.8-STABLE FreeBSD 4.8-STABLE #0: Fri Apr 11 00:25:30 MSD 2003 lev at ftp.translate.ru:/usr/obj/usr/src/sys/FTPTR i386
Ports tree: 9 Jan 2004

>Description:

  INSTALL_AS_USER variable allows to install any port as user, without
root privileges. It is extremly useful for ports maintainers when
they check port installation/deinstallation, etc. 
But even in this case ports system try to run `ldconfig', if
INSTALLS_SHLIB is defined. And ldconfig fails!

  I think, it is good idea to skip ldconfig running, if port is
installed as user. 

  Here is a patch.

>How-To-Repeat:

  Try to install any port with INSTALLS_SHLIB as user.
 
>Fix:
--- bsd.port.mk.orig	2003-11-25 14:59:00.000000000 +0300
+++ bsd.port.mk	2004-01-09 19:32:02.843750000 +0300
@@ -3301,7 +3301,7 @@
 
 .if !target(run-ldconfig)
 run-ldconfig:
-.if defined(INSTALLS_SHLIB)
+.if defined(INSTALLS_SHLIB) && !defined(INSTALL_AS_USER)
 	@${ECHO_MSG} "===>   Running ldconfig"
 	${LDCONFIG} -m ${LDCONFIG_RUNLIST}
 .else
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list