Summary: | [GURU overlay] dev-util/rust-analyzer-bin-9999 has PROPERTIES=live but a static distfile (was: GLEP 44: fetchables of live ebuilds in Manifest) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Anna Vyalkova <cyber+gentoo> |
Component: | Overlays | Assignee: | James K <contrib_x> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | mgorny, sam, ulm |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Anna Vyalkova
2021-07-20 23:20:41 UTC
PROPERTIES=live was never intended to affect SRC_URI. Not a bug in the GLEP, but exactly as designed. Distfiles in SRC_URI are static. Therefore they can be mirrored, and their integrity can be verified by a checksum in the Manifest. If an ebuild doesn't use a static distfile then it should not declare it in SRC_URI. Also, this has nothing to do with PROPERTIES. (In reply to jan Anja from comment #0) > a) It breaks packages of careless maintainers > Example: > https://gitweb.gentoo.org/repo/proj/guru.git/tree/dev-util/rust-analyzer-bin That ebuild should decide if it wants to be a live ebuild, in which case it should use git-r3.eclass. Otherwise, it should use a release tarball with a proper version number. Reassigning. I'm about to push a versioned ebuild for rust-analyzer-bin and I'll drop the 9999 ebuild, thanks for the feedback. This was a topic I brought up previously in #gentoo-dev-help before publishing the ebuild because I knew it would be sort of cheating the manifest. I was advised that the current way of doing it should be acceptable because in theory you'd have a live package but instead of live sources you have a live tarball. Out of curiousity, what would be the best way to create such a "live binary" ebuild? (In reply to James K from comment #3) > Out of curiousity, what would be the best way to create such a > "live binary" ebuild? Short answer: Don't. :) Seriously, this is strongly discouraged. If there is a release tarball then the ebuild should be versioned. Longer answer: If you absolutely must, use explicit wget in src_unpack, followed by unpack. Don't specify SRC_URI in that case. (In reply to Ulrich Müller from comment #4) > (In reply to James K from comment #3) > > Out of curiousity, what would be the best way to create such a > > "live binary" ebuild? > > Short answer: Don't. :) > Seriously, this is strongly discouraged. If there is a release tarball then > the ebuild should be versioned. > > Longer answer: If you absolutely must, use explicit wget in src_unpack, > followed by unpack. Don't specify SRC_URI in that case. Understood, thanks! I'll add a live dev-util/rust-analyzer from source eventually. rust-analyzer-bin will be only versioned releases. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f37e5467e4d5ca888aa29532cd8bd96d1d332a54 commit f37e5467e4d5ca888aa29532cd8bd96d1d332a54 Author: James Kalyan <contrib_x@protonmail.com> AuthorDate: 2021-07-23 03:52:55 +0000 Commit: James Kalyan <contrib_x@protonmail.com> CommitDate: 2021-07-23 03:52:55 +0000 dev-util/rust-analyzer-bin: drop 9999 Closes: https://bugs.gentoo.org/803125 Signed-off-by: James Kalyan <contrib_x@protonmail.com> .../rust-analyzer-bin-9999.ebuild | 22 ---------------------- 1 file changed, 22 deletions(-) |