From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1FD715-0006i6-KM for garchives@archives.gentoo.org; Sat, 25 Feb 2006 21:31:52 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k1PLV90r028987; Sat, 25 Feb 2006 21:31:09 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id k1PLTJVM009213 for ; Sat, 25 Feb 2006 21:29:20 GMT Received: from c-24-10-122-88.hsd1.ca.comcast.net ([24.10.122.88] helo=phaenix.haell.com) by smtp.gentoo.org with esmtp (Exim 4.54) id 1FD6yd-0002P3-Lp for gentoo-dev@lists.gentoo.org; Sat, 25 Feb 2006 21:29:19 +0000 Received: by phaenix.haell.com (Postfix, from userid 1000) id 20A041DE502E; Sat, 25 Feb 2006 13:29:19 -0800 (PST) Date: Sat, 25 Feb 2006 13:29:19 -0800 From: Drake Wyrm To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] SRC_URI component naming collision Message-ID: <20060225212918.GA7304@phaenix.haell.com> Mail-Followup-To: gentoo-dev@gentoo.org References: <20060224141940.16864042@snowdrop.home> <200602251624.28125.pauldv@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oyUTqETQ0mS9luUI" Content-Disposition: inline In-Reply-To: <200602251624.28125.pauldv@gentoo.org> X-Arch: athlon_tbird-gentoo-linux-gnu X-Fnord: There is no conspiracy X-Fortune: Runners do it alone. User-Agent: Mutt/1.5.11 X-Archives-Salt: cf08ce52-915f-49a7-984c-13eaca500f0b X-Archives-Hash: a203a0af4ed758db69b0cecb029e34cb --oyUTqETQ0mS9luUI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Paul de Vrieze wrote: > On Friday 24 February 2006 15:19, Ciaran McCreesh wrote: [snip] > > To avoid this, ensure that your packages use versioned SRC_URI > > component names, and that the name part is something that's > > reasonably likely to be unique (e.g. includes the package name). Unfortunately, that's not always a possibility. I've bugged at least one upstream about non-versioned sources. How does one work around that if they won't fix it? > What about introducing a new variable in the ebuild file: DIST_PREFIX > that has as default value ${PN}. This should not break anything for > unaware portage versions. For aware portage versions, the files would > be retrieved from ${DISTDIR}/${DIST_PREFIX} instead of ${DISTDIR} That introduces a problem of redundancy. In some cases, more than one package will use a given set of sources, and it will need to be fetched and stored once for each package. Perhaps defaulting DIST_PREFIX to "" and allowing it to be used for workarounds in the odd cases could work. Just for the sake of demonstration, the following should show a list of the source files which are used multiple times on any given system and how many times they are used: emerge -p --fetch-all-uri --emptytree world 2>&1 1>/dev/null | sed -e '/^$/d;s/.*\///' | sort | uniq -D | uniq -c | sort -n --=20 There are problems in today's world that cannot be solved by the level of thinking that created them. -- Albert Einstein --oyUTqETQ0mS9luUI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (GNU/Linux) iEYEARECAAYFAkQAzC4ACgkQQWVmeKdhp/KNrwCePuKn1lkkJNDPwMe7+3Po4zvq kIYAn0gEHAP6BfWyXdMrA3t9b/jyRspb =RH2l -----END PGP SIGNATURE----- --oyUTqETQ0mS9luUI-- -- gentoo-dev@gentoo.org mailing list