From owner-freebsd-emulation@FreeBSD.ORG Sat Sep 3 09:41:15 2005 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 75D6216A420 for ; Sat, 3 Sep 2005 09:41:15 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id B59AA43D45 for ; Sat, 3 Sep 2005 09:41:13 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5F105.dip.t-dialin.net [84.165.241.5]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.1/8.13.1) with ESMTP id j839VWWr056504; Sat, 3 Sep 2005 11:31:44 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id j839eGlg052726; Sat, 3 Sep 2005 11:40:17 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Sat, 3 Sep 2005 11:40:15 +0200 From: Alexander Leidinger To: Boris Samorodov Message-ID: <20050903114015.38238e72@Magellan.Leidinger.net> In-Reply-To: <08559700@srv.sem.ipt.ru> References: <08559700@srv.sem.ipt.ru> X-Mailer: Sylpheed-Claws 1.9.13 (GTK+ 2.6.10; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new Cc: freebsd-emulation@freebsd.org Subject: Re: linux directory hier 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: Sat, 03 Sep 2005 09:41:15 -0000 On Fri, 02 Sep 2005 17:13:31 +0400 Boris Samorodov wrote: > The case with acroread7 was really in incorrect plist file at > emulation/linux_base-8 port. Plist is dynamic and doesn't use @unexec > command when uninstallig. Hehce we have errors at non-empty > directories (ie /compat/linux/share/locale) where third party > programms write files. Now that I had some time to look at this more closely: The right fix for the acroread7 port would be to install into PREFIX (be it LOCALBASE or X11BASE doesn't matter ATM) instead into LINUXBASE. The goal is to only install "support files" like libs and linux_base stuff into LINUXBASE and every application which an user wants to run (like acroread, a game, Oracle or something else) into the appropriate PREFIX (LOCALBASE or X11BASE). > The task is to create a static plist for emulation/linux_base-8 > port. Now I should decide which directories are used only by > linux_base port and which may be used by other programms. Seems to me As long as the dependency is correctly registered, one shouldn't remove the dependency. If he removes it, it's ok to get errors (e.g. from dirrm). The only big no-no is to overwrite existing files. If this is the case we have to find the right solution (somethimes we have to allow such behavior -- like with ld.so.cache -- and look how to solve this cleanly). The acroread port is not a good example how to do a linux port. It generates a plist at install time, it isn't PREFIX clean, and it plays tricks in the plist (setting the cwd). All of this isn't necessary and could be done cleanly. The existing acroread port works for most people and your @unexec patch for linux_base-8 is ok to silence the warnings you see. I'm willing to commit the fix in case you don't want to do the work to fixup the acroread port. Technically this isn't the right fix, but from a pragmatic (and political) point of view I'm willing to do it. Bye, Alexander. -- Give a man a fish and you feed him for a day; teach him to use the Net and he won't bother you for weeks. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7