From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 14 16:11:46 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4AF2216A496; Fri, 14 Dec 2007 16:11:46 +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 B439B13C508; Fri, 14 Dec 2007 16:11:45 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A55BF5.dip.t-dialin.net [84.165.91.245]) by redbull.bpaserver.net (Postfix) with ESMTP id 782942E332; Fri, 14 Dec 2007 17:11:30 +0100 (CET) Received: from webmail.leidinger.net (webmail.Leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 4A08278F06; Fri, 14 Dec 2007 17:11:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1197648686; bh=OFaey06hjXbNsl14u+L1yhvpQkG/Rhk2p FSgPKL8C38=; h=Message-ID:X-Priority:Date:From:To:Cc:Subject: References:In-Reply-To:MIME-Version:Content-Type: Content-Disposition:Content-Transfer-Encoding:User-Agent; b=Bsjqdv n88OwIEaxh5WEKU4gRpX2ZxO+B0tpE3L5ZUZ5DGWqnUxC9ea3ISOIEOZfx7Vc0xvbP7 td5Wev4IIY2aoy/4qF2kp9iNLEPNYVVfsZW4pOPV+J3iVB87pFzIolM498hWatDiRmX EbwFftX5OMucaJms7gdcUmlFj51k7bEKCD+kgupjzvGvHQQOsKwpAAfn2yApPUmFKBJ iCQld2B9AoZqZOd2FPqFlM2/P0BhHS1ToAqQOVhtUY57/7ag5OrToeA4X8Ggr4qYnJy c0scpPgl8qrBVKyt9Y73gZhD8HfsbwKF+W7VLf+zrlFWvBXflv0t131OUKDb4wPKHID A== Received: (from www@localhost) by webmail.leidinger.net (8.14.1/8.13.8/Submit) id lBEGBPSb092580; Fri, 14 Dec 2007 17:11:25 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Fri, 14 Dec 2007 17:11:25 +0100 Message-ID: <20071214171125.gffx3gbg8wos4gcc@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Fri, 14 Dec 2007 17:11:25 +0100 From: Alexander Leidinger To: Alex Dupre References: <1196470143.4750af7f6accf@webmail.rawbw.com> <4752F825.8020505@chuckr.org> <20071203144159.irjelm2c0c8o8csw@webmail.leidinger.net> <47544B5A.9080903@chuckr.org> <20071205122123.phwu6uh7jksgcwk8@webmail.leidinger.net> <4760A7FE.9070409@chuckr.org> <20071213100821.bet532peog8g488s@webmail.leidinger.net> <4762989F.9070507@FreeBSD.org> In-Reply-To: <4762989F.9070507@FreeBSD.org> 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.1.4) / FreeBSD-7.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, SpamAssassin (not cached, score=-14.9, required 6, BAYES_00 -15.00, DKIM_SIGNED 0.00, DKIM_VERIFIED -0.00, RDNS_DYNAMIC 0.10) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No X-Mailman-Approved-At: Fri, 14 Dec 2007 17:06:23 +0000 Cc: Chuck Robey , freebsd-hackers@FreeBSD.org, Yuri Subject: Re: Linux executable picks up FreeBSD library over linux one and breaks X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Dec 2007 16:11:46 -0000 Quoting Alex Dupre (from Fri, 14 Dec 2007 15:52:15 +0100): > Alexander Leidinger ha scritto: >> To achieve this goal we have 2 possibilities, either we install =20 >> everything into LINUXBASE and install a wrapper in LOCALBASE, or we =20 >> install everything in a safe location in LOCALBASE. The first part =20 >> requires that the maintainers of the linux program play some =20 >> tricks in their port (plist and/or Makfile). If they fail to do =20 >> this, it increases the load of portmgr from time to time (build =20 >> failures on the build cluster). In the second case (install into a =20 >> safe place in LOCALBASE), portmgr is out of the loop, as if =20 >> something goes wrong, the port maintainer and/or emulation@ is =20 >> asked for help, as it is a bug of the port. > > I admit that probably I'm using only one or two linux applications and > I've never created a linux port, but I think the right way is the > former possibility, the latter seems a hack to me. It could be harder > for unexperienced maintainers, but once we defined the correct way to > add a wrapper in LOCALBASE (and put it in the porter's handbook), I > think the work for maintainers/committers should be quite easy. What > are the other issues that make the former solution so difficult? Multiple prefixes in one port (pkg-plist). I know it is possible. I know that several native ports use it. I know =20 how the linux ports looked before I cleaned up several bad things in =20 most of them. We (Boris and me) managed to refine the linux-rpm bits into a .mk =20 which allows more easy porting, but I know the complexity behind and =20 sometimes I just wonder how some linux port managed to not produce a =20 hell of a lot of support requests. It allows to produce nice and easy =20 (sort of) installation of rpms into LINUXBASE. Judging from the =20 quality of most of the linux ports I've seen, I think requiring =20 multiple prefixes in the pkg-plist calls for more problems in the =20 generation of linux ports. On the other hand, if you can come up with some easy to use macros for =20 a .mk file which hides everything (WRAPPER_SBIN=3D${FILESDIR}/foobar, or =20 whatever), I happily review them and share my opinion about them based =20 upon my experience with the linux ports. Take maybe a game (one with =20 average porting complexity), and maybe acroread as an example which =20 shows how to use them Bye, Alexander. --=20 /Earth is 98% full ... please delete anyone you can. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137