From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Jan 9 08:40:17 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 65B8C16A4CE for ; Fri, 9 Jan 2004 08:40:17 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3263943D1F for ; Fri, 9 Jan 2004 08:40:13 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i09GeDFR031805 for ; Fri, 9 Jan 2004 08:40:13 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i09GeDIF031804; Fri, 9 Jan 2004 08:40:13 -0800 (PST) (envelope-from gnats) Resent-Date: Fri, 9 Jan 2004 08:40:13 -0800 (PST) Resent-Message-Id: <200401091640.i09GeDIF031804@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Lev A. Serbryakov" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D019816A4CE for ; Fri, 9 Jan 2004 08:33:56 -0800 (PST) Received: from ftp.translate.ru (ftp.translate.ru [195.131.4.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 49B2A43D1F for ; Fri, 9 Jan 2004 08:33:55 -0800 (PST) (envelope-from lev@ftp.translate.ru) Received: from ftp.translate.ru (localhost [127.0.0.1]) by ftp.translate.ru (8.12.9/8.12.9) with ESMTP id i09GXrHK044051 for ; Fri, 9 Jan 2004 19:33:54 +0300 (MSK) (envelope-from lev@ftp.translate.ru) Received: (from lev@localhost) by ftp.translate.ru (8.12.9/8.12.9/Submit) id i09GXrbA044050; Fri, 9 Jan 2004 19:33:53 +0300 (MSK) (envelope-from lev) Message-Id: <200401091633.i09GXrbA044050@ftp.translate.ru> Date: Fri, 9 Jan 2004 19:33:53 +0300 (MSK) From: "Lev A. Serbryakov" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/61133: When INSTALL_AS_USER is specified, `ldconfig' stage of port installation should be ommited X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: "Lev A. Serbryakov" List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jan 2004 16:40:17 -0000 >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: