From owner-freebsd-ports Wed Feb 19 12: 0:13 2003 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 9F46437B401 for ; Wed, 19 Feb 2003 12:00:11 -0800 (PST) Received: from mail.droso.net (koala.droso.net [193.162.142.59]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1CB6843FAF for ; Wed, 19 Feb 2003 12:00:10 -0800 (PST) (envelope-from erwin@mail.droso.net) Received: by mail.droso.net (Postfix, from userid 1001) id 78DC733052; Wed, 19 Feb 2003 21:00:08 +0100 (CET) Date: Wed, 19 Feb 2003 21:00:08 +0100 From: Erwin Lansing To: Kris Kennaway Cc: ports@FreeBSD.org Subject: Re: Bento package builds Message-ID: <20030219200008.GE22783@droso.net> Mail-Followup-To: Kris Kennaway , ports@FreeBSD.org References: <20030218183937.GC30562@rot13.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DrWhICOqskFTAXiy" Content-Disposition: inline In-Reply-To: <20030218183937.GC30562@rot13.obsecurity.org> X-Operating-System: FreeBSD/i386 4.7-RELEASE-p3 User-Agent: Mutt/1.5.3i Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --DrWhICOqskFTAXiy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 18, 2003 at 10:39:37AM -0800, Kris Kennaway wrote: >=20 > The last problem I mentioned is an interesting one. e.g.: >=20 > http://bento.freebsd.org/errorlogs/i386-5-latest/9term-1.6.3.log >=20 > =3D=3D=3D> Extracting for 9term-1.6.3 > >> Checksum OK for 9term.1.6.3.tar.gz. > =3D=3D=3D> 9term-1.6.3 depends on file: /nonexistent - not found > =3D=3D=3D> Verifying build for /nonexistent in /usr/ports/editors/sam > >> sam.msg.gz doesn't seem to exist in /tmp/distfiles/. > >> Attempting to fetch from ftp://ftp-master.freebsd.org/pub/FreeBSD/port= s/distfiles//. > fetch: ftp://ftp-master.freebsd.org/pub/FreeBSD/ports/distfiles//sam.msg.= gz: Permission denied > ... >=20 > I can fix this if I manually prefetch the distfiles into the jail > before running 'make package', but we do not appear to have a > bsd.port.mk target that fetches distfiles for only the dependencies > that are not already installed. e.g. 'make fetch-recursive' will also > fetch distfiles for all the packages that are already installed, which > is a big waste. >=20 > If anyone wants to work on a 'fetch-required' target that checks > dependencies and only fetches the distfile if the package is not > already installed, please let me know. >=20 I have a patch at http://panda.droso.net/~erwin/bsd.port.mk-fetch-required.diff which does exactly that, check dependencies and fetch only if not installed or fetched before. I'm not sure if there is a cleaner way to get PKGNAME from the dependencies, but this -V PKGNAME seems to work. Actually, the 9term port is a bad example because the sam dependency never gets installed anyhow :-) Cheers, -erwin --=20 _._ _,-'""`-._ Erwin Lansing (,-.`._,'( |\`-/| http://droso.org/ erwin@lansing.dk `-.-' \ )-`( , o o) http://fnidder.dk/ -bf- `- \`_`"'- --DrWhICOqskFTAXiy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+U+JIqy9aWxUlaZARAmwFAKDS85Msh7XL4NrUzjFkKDJeaXzoOACg3SQE gBr4E1BKhas52uyEuw0Us5c= =7lQF -----END PGP SIGNATURE----- --DrWhICOqskFTAXiy-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message