From owner-freebsd-ports@FreeBSD.ORG Mon May 9 16:16:11 2005 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 7E71B16A4E9 for ; Mon, 9 May 2005 16:16:11 +0000 (GMT) Received: from mail-in-03.arcor-online.net (mail-in-03.arcor-online.net [151.189.21.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD9E343D60 for ; Mon, 9 May 2005 16:16:10 +0000 (GMT) (envelope-from lofi@freebsd.org) Received: from mail-in-01-z2.arcor-online.net (mail-in-01-z2.arcor-online.net [151.189.8.13]) by mail-in-03.arcor-online.net (Postfix) with ESMTP id 6873113400; Mon, 9 May 2005 18:16:09 +0200 (CEST) Received: from mail-in-09.arcor-online.net (mail-in-09.arcor-online.net [151.189.21.49]) by mail-in-01-z2.arcor-online.net (Postfix) with ESMTP id 45E8B29B37; Mon, 9 May 2005 18:16:09 +0200 (CEST) Received: from lofi.dyndns.org (dsl-213-023-205-018.arcor-ip.net [213.23.205.18]) by mail-in-09.arcor-online.net (Postfix) with ESMTP id BD1E723708; Mon, 9 May 2005 18:16:08 +0200 (CEST) Received: from kiste.my.domain (lofi@kiste.my.domain [192.168.8.4]) (authenticated bits=0) by lofi.dyndns.org (8.13.3/8.13.3) with ESMTP id j49GG6tt029706 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Mon, 9 May 2005 18:16:07 +0200 (CEST) (envelope-from lofi@freebsd.org) From: Michael Nottebrock To: "James E. Flemer" Date: Mon, 9 May 2005 18:16:01 +0200 User-Agent: KMail/1.8 References: <427E4687.40901@uvm.edu> <200505082049.31145.lofi@freebsd.org> <427ED102.6040406@uvm.edu> In-Reply-To: <427ED102.6040406@uvm.edu> X-Face: =Ym$`&q\+S2X$4`X%x%6"L4>Y,$]<":'L%c9"#7#`2tb&E&wsN31on!N\)3BD[g<=?utf-8?q?=2EjnfV=5B=0A=093=23?=>XchLK,o;>bD>c:]^;:>0>vyZ.X[,63GW`&M>}nYnr]-Fp``,[[@lJ!QL|sfW!s)=?utf-8?q?A2!*=0A=09vNkB/=7CL-?=>&QdSbQg X-Virus-Scanned: by amavisd-new cc: freebsd-ports@freebsd.org Subject: Re: Why are implicit package dependencies recorded? 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: Mon, 09 May 2005 16:16:11 -0000 --nextPart4769244.CdBNs6omHT Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday, 9. May 2005 04:54, James E. Flemer wrote: > Michael Nottebrock wrote: > > On Sunday, 8. May 2005 20:44, Michael Nottebrock wrote: > >>>Both of these cases can be avoided by building P with the same flags > >>>that D was built with. In the simple case, that does not seem like a > >>>bad solution, but in practice there can be a huge number of deps and > >>>sub-deps (mplayer has around 45). > > > > Ah, I've been reading too fast again. Yes, all packages in a > > dependency-chain will have to be built to match. It would be possible to > > make the pkg_* tools smarter in order to avoid that, but at the moment > > quite everything (from pkg_* to the package cluster scripts) relies on > > prerecorded (or > > pre-generated, i.e. INDEX) sub-deps. > > Actually, pkg_add does indeed do the right thing when only first-order > dependencies are recorded in the package. Only when you're adding packages locally. Here's what happens when you buil= d=20 packages of gmake & dependencies with your bpm-patch and then try to pkg_ad= d=20 =2Dr them: [lofi@kdeprison5]:1:/usr/ports > env=20 PACKAGESITE=3Dhttp://people.freebsd.org/~lofi/reduced-dep-packages/Latest/ = sudo=20 pkg_add -r gmake =46etching=20 http://people.freebsd.org/~lofi/reduced-dep-packages/Latest/gmake.tbz...=20 Done. =46etching=20 http://people.freebsd.org/~lofi/reduced-dep-packages/All/gettext-0.14.1.tbz= =2E..=20 Done. pkg_add: could not find package libiconv-1.9.2_1 ! pkg_add: pkg_add of dependency 'gettext-0.14.1' failed! [lofi@kdeprison5]:1:/usr/ports > (you can make a crosscheck with packages built with the current bsd.port.mk= by=20 using http://people.freebsd.org/~lofi/standard-packages/Latest/ as=20 PACKAGESITE). Now I'm not saying that this isn't a bug - I'm just maintaining that there'= s=20 more work involved in this than just patching bsd.port.mk.=20 =2D-=20 ,_, | Michael Nottebrock | lofi@freebsd.org (/^ ^\) | FreeBSD - The Power to Serve | http://www.freebsd.org \u/ | K Desktop Environment on FreeBSD | http://freebsd.kde.org --nextPart4769244.CdBNs6omHT Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQBCf4zFXhc68WspdLARAhdPAKChNwNPtxeZ00it8QA3nCkN5cvy5ACfcm7r 72Vc3F3CFAvqtwM7hhYEG3E= =kZM+ -----END PGP SIGNATURE----- --nextPart4769244.CdBNs6omHT--