Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 562812 - app-portage/repoman: repoman should test for variables in HOMEPAGE
Summary: app-portage/repoman: repoman should test for variables in HOMEPAGE
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Repoman (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL: https://devmanual.gentoo.org/ebuild-w...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-11 10:50 UTC by Jonas Stein
Modified: 2022-07-12 03:23 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas Stein gentoo-dev 2015-10-11 10:50:40 UTC
devmanual says:
===
Never refer to a variable name in the string; include only raw text. 
===

This should be tested by repoman. As of today there are 180 packages using variables. [1]

Some look like a testcase for a parser:
app-emulation/docker-swarm-0.4.0:HOMEPAGE="https://docs.docker.com/${PN##*-}/"

[1] tested with:
qgrep -NC HOMEPAGE= | grep "\\$" 

Reproducible: Always
Comment 1 Sebastian Pipping gentoo-dev 2015-10-11 14:41:50 UTC
What do you mean by "Some look like a testcase for a parser"?
Comment 2 Jonas Stein gentoo-dev 2015-10-11 15:09:15 UTC
just a comment on "${PN##*-}/" which makes it not trivial to get the URL from the .ebuild file.
Comment 3 Jonas Stein gentoo-dev 2017-08-24 20:56:55 UTC
working example code to check for server status in HOMEPAGE and SRC_URI:
https://github.com/mm1ke/gentoo-scripts
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-12 03:18:39 UTC
repoman support has been removed per bug 835013.

Please file a new bug (or, I suppose, reopen this one) if you feel this check is still applicable to pkgcheck and doesn't already exist.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-12 03:23:27 UTC
pkgcheck has ReferenceInMetadataVar (and HomepageInSrcUri).