From owner-freebsd-ports@FreeBSD.ORG Wed Mar 31 03:29:09 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CF13E16A52A for ; Wed, 31 Mar 2004 03:29:08 -0800 (PST) Received: from cleopatra.aha.ru (cleopatra.zenon.net [195.2.72.69]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1EA5043D4C for ; Wed, 31 Mar 2004 03:29:07 -0800 (PST) (envelope-from fedya@zenon.net) Received: from [192.168.9.152] (HELO mp.aha.ru) by cleopatra.aha.ru (CommuniGate Pro SMTP 4.1.8) with ESMTP id 4698072 for freebsd-ports@freebsd.org; Wed, 31 Mar 2004 15:29:04 +0400 Received: from [192.168.9.253] (HELO zenon.net) by mp.aha.ru (CommuniGate Pro SMTP 4.1.8) with ESMTP id 5486730 for freebsd-ports@freebsd.org; Wed, 31 Mar 2004 15:29:04 +0400 Message-ID: <406AAB7E.4080208@zenon.net> Date: Wed, 31 Mar 2004 15:29:02 +0400 From: Feodor Trubetskoy User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040322 X-Accept-Language: ru, en-us, en MIME-Version: 1.0 To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: INSTALL_AS_USER & ldconfig problem. X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Mar 2004 11:29:09 -0000 Good day! I'm trying to install ports in my home directory with non-root privileges (having ports-tree in my home directory also). Ports usually install ok, except that the port depends on "library" port, which tries to register installed libraries with ldconfig. "Library" port install its libraries fine, ldconfig fails as expected (I'm non-root), but depending port don't see just installed libraries in LD_LIBRARY_PATH and fails. Any suggestions how to make depending port recognize libraries in LD_LIBRARY_PATH? Here is typical output: Environment: ===================== setenv PREFIX $HOME/usr setenv LOCALBASE $HOME/usr setenv INSTALL_AS_USER yes setenv NO_PKG_REGISTER yes setenv DISTDIR $HOME/tmp/dist setenv WRKDIRPREFIX $HOME/tmp/work setenv DEPENDS_TARGET 'install clean' setenv LD_LIBRARY_PATH $LOCALBASE/lib setenv PORTSDIR $HOME/usr/ports #setenv PKG_DBDIR $HOME/var/db/pkg ==================================== fedya@shell:~/usr/ports/mail/crm114> make clean all install ===> Cleaning for libiconv-1.9.1_3 ===> Cleaning for gettext-0.13.1_1 ===> Cleaning for gmake-3.80_2 ===> Cleaning for libgnugetopt-1.2 ===> Cleaning for libtool-1.3.5_2 ===> Cleaning for pkgconfig-0.15.0_1 ===> Cleaning for procmail-3.22_4 ===> Cleaning for expat-1.95.7 ===> Cleaning for libtre-0.6.6 ===> Cleaning for crm114-20040221_1 ===> Vulnerability check disabled ===> Extracting for crm114-20040221_1 >> Checksum OK for crm114-20040221-BlameYokohama.src.tar.gz. >> Checksum OK for crm114-20040221-BlameYokohama.css.tar.gz. ===> Patching for crm114-20040221_1 ===> Applying FreeBSD patches for crm114-20040221_1 ===> crm114-20040221_1 depends on shared library: tre.4 - not found ===> Verifying install clean for tre.4 in /bhome/fedya/usr/ports/textproc/libtre ===> Vulnerability check disabled ===> Extracting for libtre-0.6.6 >> Checksum OK for tre-0.6.6.tar.bz2. ===> Patching for libtre-0.6.6 ===> libtre-0.6.6 depends on file: /bhome/fedya/usr/libexec/libtool13/libtool - found ===> libtre-0.6.6 depends on executable: pkg-config - found ===> libtre-0.6.6 depends on shared library: gnugetopt.1 - not found ===> Verifying install clean for gnugetopt.1 in /bhome/fedya/usr/ports/devel/libgnugetopt ===> Vulnerability check disabled ===> Extracting for libgnugetopt-1.2 >> Checksum OK for libgnugetopt-1.2.tar.bz2. ===> Patching for libgnugetopt-1.2 ===> Configuring for libgnugetopt-1.2 ===> Building for libgnugetopt-1.2 cc -O -pipe -fPIC -o getopt.o -c -s getopt.c cc -O -pipe -fPIC -o getopt1.o -c -s getopt1.c cc -O -pipe -shared -Wl,-soname,libgnugetopt.so.1 -o libgnugetopt.so.1 getopt.o getopt1.o building static libgnugetopt library ar cq libgnugetopt.a `lorder getopt.o getopt1.o | tsort -q` ranlib libgnugetopt.a ===> Installing for libgnugetopt-1.2 ===> Generating temporary packing list Warning: not superuser, you may get some errors during installation. Warning: not superuser, can't run mtree. You may want to become root and try again to ensure correct permissions. ===> Running ldconfig (errors are ignored) /sbin/ldconfig -m /bhome/fedya/usr/lib ldconfig: /bhome/fedya/usr/lib: ignoring directory not owned by root ldconfig: mkstemp(/var/run/ld-elf.so.hints.DcTizp): Permission denied *** Error code 1 (ignored) ===> Cleaning for libgnugetopt-1.2 ===> Returning to build of libtre-0.6.6 Error: shared library "gnugetopt.1" does not exist *** Error code 1 Stop in /dzen/home/fedya/usr/ports/textproc/libtre. *** Error code 1 Stop in /dzen/home/fedya/usr/ports/mail/crm114. fedya@shell:~/usr/ports/mail/crm114> ============================================ fedya@shell:~> ls -al ~/usr/lib total 1839 drwxr-xr-x 4 fedya sadmin 512 Mar 25 16:25 . drwxr-xr-x 14 fedya sadmin 1024 Mar 25 13:51 .. -r--r--r-- 1 fedya sadmin 8382 Mar 25 15:13 libgnugetopt.a lrwxr-xr-x 1 fedya sadmin 17 Mar 25 15:13 libgnugetopt.so -> libgnugetopt.so.1 -r--r--r-- 1 fedya sadmin 9707 Mar 25 15:13 libgnugetopt.so.1 -rw-r--r-- 1 fedya sadmin 1043788 Mar 25 16:22 libruby18-static.a lrwxrwxrwx 1 fedya sadmin 15 Mar 25 16:25 libruby18.so -> libruby18.so.18 -rwxr-xr-x 1 fedya sadmin 792360 Mar 25 16:22 libruby18.so.18 drwxr-xr-x 4 fedya sadmin 512 Mar 25 10:08 m3 drwxr-xr-x 4 fedya sadmin 512 Mar 25 16:25 ruby ============================================ fedya@shell:~/usr/ports/sysutils/portupgrade> uname -a FreeBSD shell 4.8-STABLE FreeBSD 4.8-STABLE #0: Mon Oct 6 00:08:58 MSD 2003 root@pm5:/var/backup/3/FreeBSD/work/freebsd-stable-4.8/sys/compile/shell i386 ========================================== Thank you, -- fedya