Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Jan 2004 19:33:53 +0300 (MSK)
From:      "Lev A. Serbryakov" <lev@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/61133: When INSTALL_AS_USER is specified, `ldconfig' stage of port installation should be ommited
Message-ID:  <200401091633.i09GXrbA044050@ftp.translate.ru>
Resent-Message-ID: <200401091640.i09GeDIF031804@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401091633.i09GXrbA044050>