From owner-freebsd-ports Mon Jun 5 20:32:40 2000 Delivered-To: freebsd-ports@freebsd.org Received: from sabami.seaslug.org (ip18.gte13.rb1.bel.nwlink.com [207.202.150.18]) by hub.freebsd.org (Postfix) with ESMTP id 385F837B94C for ; Mon, 5 Jun 2000 20:32:35 -0700 (PDT) (envelope-from scott@sabmail.rresearch.com) Received: from sab.rresearch.com (sab.rresearch.com [207.202.150.18]) by sabami.seaslug.org (Postfix) with SMTP id 780F21037A for ; Mon, 5 Jun 2000 20:32:27 -0700 (PDT) To: freebsd-ports@freebsd.org Subject: building kdelibs2/kde-qt-addon into new PREFIX dir Reply-To: scott@sabami.seaslug.org From: Scott Blachowicz Date: 05 Jun 2000 20:32:26 -0700 Message-ID: <87g0qrlc1h.fsf@sab.rresearch.com> Lines: 81 User-Agent: Gnus/5.0805 (Gnus v5.8.5) XEmacs/21.1 (Canyonlands) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi- My boot disk died, so I'm in the process of reinstalling everything. I couldn't get FreeBSD 4.0 to play nice during installation, so I punted and went to 3.4 for all of this. In my /usr/ports/x11/kdelibs2, I did this (as root): mkdir /usr/local/kde2 make PREFIX=/usr/local/kde2 install (this is after having installed all the kde11 stuff into /usr/local/kde1). At the end when running the kde-qt-addon install, I get this: ===> Installing for kde-qt-addon-1.90 ===> kde-qt-addon-1.90 depends on shared library: qt2.3 - found Making install in kde-qt-addon gmake[1]: Entering directory `/files1/ports/x11-toolkits/kde-qt-addon/work/kde-qt-addon-1.90/kde-qt-addon' gmake[2]: Entering directory `/files1/ports/x11-toolkits/kde-qt-addon/work/kde-qt-addon-1.90/kde-qt-addon' /bin/sh ../admin/mkinstalldirs /usr/local/kde2/lib /bin/sh ../libtool --mode=install /usr/bin/install -c -o root -g wheel libkde-qt-addon.la /usr/local/kde2/lib/libkde-qt-addon.la /usr/bin/install -c -o root -g wheel .libs/libkde-qt-addon.so.4 /usr/local/kde2/lib/libkde-qt-addon.so.4 (cd /usr/local/kde2/lib && rm -f libkde-qt-addon.so && ln -s libkde-qt-addon.so.4 libkde-qt-addon.so) (cd /usr/local/kde2/lib && rm -f libkde-qt-addon.so && ln -s libkde-qt-addon.so.4 libkde-qt-addon.so) /usr/bin/install -c -o root -g wheel .libs/libkde-qt-addon.lai /usr/local/kde2/lib/libkde-qt-addon.la ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/kde2/lib If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,--rpath -Wl,LIBDIR' linker flag See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- /bin/sh ../admin/mkinstalldirs /usr/local/kde2/include install -c -o root -g wheel -m 444 qdom.h /usr/local/kde2/include/qdom.h install -c -o root -g wheel -m 444 qxml.h /usr/local/kde2/include/qxml.h install -c -o root -g wheel -m 444 qcanvas.h /usr/local/kde2/include/qcanvas.h install -c -o root -g wheel -m 444 qpolygonscanner.h /usr/local/kde2/include/qpolygonscanner.h rm -f /usr/local/kde2/include/qiconview.h gmake[2]: Leaving directory `/files1/ports/x11-toolkits/kde-qt-addon/work/kde-qt-addon-1.90/kde-qt-addon' gmake[1]: Leaving directory `/files1/ports/x11-toolkits/kde-qt-addon/work/kde-qt-addon-1.90/kde-qt-addon' gmake[1]: Entering directory `/files1/ports/x11-toolkits/kde-qt-addon/work/kde-qt-addon-1.90' gmake[2]: Entering directory `/files1/ports/x11-toolkits/kde-qt-addon/work/kde-qt-addon-1.90' gmake[2]: Nothing to be done for `install-exec-am'. gmake[2]: Nothing to be done for `install-data-am'. gmake[2]: Leaving directory `/files1/ports/x11-toolkits/kde-qt-addon/work/kde-qt-addon-1.90' gmake[1]: Leaving directory `/files1/ports/x11-toolkits/kde-qt-addon/work/kde-qt-addon-1.90' ===> Generating temporary packing list ===> Registering installation for kde-qt-addon-1.90 ===> Returning to build of kdelibs-1.90 Error: shared library "kde-qt-addon.4" does not exist *** Error code 1 So, even though these lines: @exec /sbin/ldconfig -m %B @unexec /sbin/ldconfig -R are in the pkg/PLIST file, it doesn't appear to happen (is that the correct behavior). I verified this with ldconfig -r | grep kde after that build. I ran the 'ldconfig -m /usr/local/kde2/lib' by hand and restarted the build and it's going now. Is there supposed to be something in the port Makefile to run the 'ldconfig -m'? Or is the PLIST @exec line supposed to be enough? Or is the '%B' escape the wrong thing for that command (I don't know where those are documented offhand). -- Scott Blachowicz To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message