From owner-freebsd-ports Tue Mar 26 4:45:39 2002 Delivered-To: freebsd-ports@freebsd.org Received: from straylight.ringlet.net (discworld.nanolink.com [217.75.135.248]) by hub.freebsd.org (Postfix) with SMTP id BA26837B41C for ; Tue, 26 Mar 2002 04:45:28 -0800 (PST) Received: (qmail 6698 invoked by uid 1000); 26 Mar 2002 12:45:30 -0000 Date: Tue, 26 Mar 2002 14:45:30 +0200 From: Peter Pentchev To: ports@FreeBSD.org Subject: Dependencies' list problem Message-ID: <20020326144530.E301@straylight.oblivion.bg> Mail-Followup-To: ports@FreeBSD.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="pY3vCvL1qV+PayAL" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i 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 --pY3vCvL1qV+PayAL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, We've got a problem :) The ALL-DEPENDS-LIST variable that is defined in bsd.port.mk lists (recursively) a port's dependencies, keeping a list of those processed and only adding new ones when they are not already in the list. Or is that right? [roam@straylight:v1 /usr/ports/x11/gnomecore]$ make all-depends-list | fgre= p gettext /usr/ports/devel/gettext /usr/ports/devel/gettext-old [roam@straylight:v1 /usr/ports/x11/gnomecore]$ cd ../../devel/bonobo-conf/ [roam@straylight:v1 /usr/ports/devel/bonobo-conf]$ make all-depends-list | = fgrep gettext /usr/ports/devel/gettext-old [roam@straylight:v1 /usr/ports/devel/bonobo-conf]$ As you can see, devel/bonobo-conf, which depends on gnomecore, does NOT list devel/gettext as a dependency. The reason? Simple: ALL-DEPENDS-LIST uses ${GREP} -qwv (bsd.port.mk, line 3050), and grep(1) treats '-' as a word separator, thus stating that 'devel/gettext' is contained within 'devel/gettext-old' and need not be added to the list of dependencies. How to repeat - either issue the commands above, or simply issue a 'make fetch-recursive' in ports/mail/evolution and watch it NOT fetch gettext-0.11.0.. Fix? No idea :( G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 If I had finished this sentence, --pY3vCvL1qV+PayAL Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjygbWoACgkQ7Ri2jRYZRVPAagCgvxEJ+CPJ9YH/NRZliRzgDGG3 sNkAn0/VVRXZ4ETC4wkED1CDPKm3kVih =rQdU -----END PGP SIGNATURE----- --pY3vCvL1qV+PayAL-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message