From owner-freebsd-emulation@FreeBSD.ORG Wed Apr 30 06:23:04 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 124881065686 for ; Wed, 30 Apr 2008 06:23:04 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id B3B5C8FC1D for ; Wed, 30 Apr 2008 06:23:03 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A55235.dip.t-dialin.net [84.165.82.53]) by redbull.bpaserver.net (Postfix) with ESMTP id D39852E16C; Wed, 30 Apr 2008 08:22:54 +0200 (CEST) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id DDAFDAF20; Wed, 30 Apr 2008 08:22:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1209536572; bh=ie45nTm29Whc99uPcgWayZKe6C5l2KhTA pLichtgTD4=; h=Message-ID:Date:From:To:Cc:Subject:References: In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=g+vNJ+3FhT8hqhRJdpQxQiZ2nk3uRm9VXDP4kYhgvtep/F8omWweUTuS1AJrsW2qK CkLTzwAEEZypDjVkhZHSRX0irRS08Oo8BjwGDfU/AeYeIiZhFcbOcBVxm1CDLgqXmSF CIJsTTKAu+2Xq6JF1fCHjeP7RF5XgQtD7m5VK0J/P6HxGS/WAjuHhjBBqkUTZKeWMlU Wq2vc9vt8XkfsauxlazJUu5f93BYlO3km0uy3AZFSxIykgyP0Irk1AlMpvf6Oz09BCR FPs6Q+wEpCsWnxqScMcQljBUggiiBcDlDu3LPwlUPAVEsErQKpEVHfsN4rBJy6yxW2O +vwhPMTgA== Received: (from www@localhost) by webmail.leidinger.net (8.14.2/8.13.8/Submit) id m3U6Mppi083022; Wed, 30 Apr 2008 08:22:51 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Wed, 30 Apr 2008 08:22:51 +0200 Message-ID: <20080430082251.330631sseytpk7jv@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Wed, 30 Apr 2008 08:22:51 +0200 From: Alexander Leidinger To: John E Hein References: <48164CD5.9030109@gmail.com> <790a9fff0804281537p27003437p10ff1d9bf7c7bff@mail.gmail.com> <20080429045001.GW18958@deviant.kiev.zoral.com.ua> <42172269@ipt.ru> <20080429101459.GX18958@deviant.kiev.zoral.com.ua> <95766063@serv3.int.kfs.ru> <18455.7999.318965.875282@gromit.timing.com> <94009951@ipt.ru> <18455.33882.355026.28602@gromit.timing.com> In-Reply-To: <18455.33882.355026.28602@gromit.timing.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.2-RC2) / FreeBSD-8.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, ORDB-RBL, SpamAssassin (not cached, score=-12.827, required 6, BAYES_00 -15.00, DKIM_SIGNED 0.00, DKIM_VERIFIED -0.00, J_CHICKENPOX_52 0.60, MIME_QP_LONG_LINE 1.40, RDNS_DYNAMIC 0.10, TW_GT 0.08) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: freebsd-emulation@freebsd.org Subject: Re: linux_base-f8 giving me guff X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Apr 2008 06:23:04 -0000 Quoting John E Hein (from Tue, 29 Apr 2008 14:26:02 -0600= ): > Boris Samorodov wrote at 22:13 +0400 on Apr 29, 2008: > > We have packages for that purpose... Or I didn't understand you. > > Q: How do packages get built? > A: By running 'make package' which does a 'make install' > > So, the problem Kostik described still exists. > > When does the ldconfig really need to be run? At package build time > or at pkg_add time? At package install time. And if you look at the pkg-install script you =20 will see that it is run then. The problem is, that you don't really =20 know if the installation is just to create a package, or if the user =20 also wants to use the port after the installation (I create a package =20 after each update of a port). Have a look around in other ports, all =20 ports will do the pkg-install stuff during installation too. > > > > Also note that /etc/rc.d/abi runs /compat/linux/sbin/ldconfig. > > > > ...which will run while booting? That is not enough if you just > > install a linux port. > > I think I don't understand your point. As you know, you currently > need linux.ko installed and linux ldconfig setup right in order to run > certain linux ports that use linux shared libs. /etc/rc.d/abi does > both of those things (on boot or when run manually). Right, but if you want to install e.g. the acroread port, linux_base =20 and linux-gtk2 will be required. linux-gtk2 not only installs libs, it =20 also has to run a linux program to register some gtk plugins. There's =20 more to this than just not running ldconfig. > You need linux.ko installed to run linux ldconfig which some > linux ports do if they install linux shared libs. > > Kostik is requesting a [non-default] way to tell the ports > infrastructure not to die if I want to install a linux port without > linux.ko loaded. > > There were some concerns expressed about just warning if ldconfig > doesn't get run because that would leave the ldconfig cache possibly > set incorrectly. > > My point is that even if the linux ldconfig's cache is not right on a > port install, it will be corrected the next time /etc/rc.d/abi is run > (to that end, it's better than manually running 'sudo kldload linux'). > > So let's say you are installing a port to a chroot on removable media > that is intended to be installed on another box - a useful mode of > operation I hope you agree. The risk of having a incorrectly > populated ldconfig cache is mitigated by the /etc/rc.d/abi script that > will be run when the destination box is booted. And if the linux-gtk2 port is installed, a lot of stuff will just not work. I don't say it is not possible to do, I just say it is not as easy to =20 get right as most people think. Bye, Alexander. --=20 Superior ability breeds superior ambition. =09=09-- Spock, "Space Seed", stardate 3141.9 http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137