Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Feb 2003 21:00:08 +0100
From:      Erwin Lansing <erwin@lansing.dk>
To:        Kris Kennaway <kris@obsecurity.org>
Cc:        ports@FreeBSD.org
Subject:   Re: Bento package builds
Message-ID:  <20030219200008.GE22783@droso.net>
In-Reply-To: <20030218183937.GC30562@rot13.obsecurity.org>
References:  <20030218183937.GC30562@rot13.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030219200008.GE22783>