On Sat, Jun 28, 2025 at 04:16:41PM +0200, Ulrich Müller wrote:
> >>>>> On Sat, 28 Jun 2025, kangie  wrote:
> 
> > -# Portage.
> > -SRC_URI="ftp://foo.example.org/${P}.tar.gz";
> > +# Portage. If a file needs to be renamed, use the "->" syntax.
> > +SRC_URI="https://files.example.org/foo/v${PV}.tar.xz -> ${P}.tar.xz"
> 
> Explaining "->" in the comment is fine, but not sure if it is a good
> idea in the actual SRC_URI example. New contributors will inevitably
> copy the line to their ebuild, even if it's not needed. (We've been
> there before, that's why "econf" and "emake" are commented out now).

Think I'd also prefer it be kept an example for "normal" tarballs rather
than what is more often automated git archive with v${PV} which we'd
rather not be used if normal tarballs exist.

I sometime do see people do ${P}.tar.xz -> ${P}.tar.xz just because they
copied it from somewhere too (pkgcheck can warn about that tho).

Note wouldn't hurt, but special knowledge (->) can in general be picked
up later when it's needed, skel.ebuild does not have cover every details
and is just a starting guideline.
-- 
ionen

Attachment: signature.asc
Description: PGP signature

Reply via email to