Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 481936 - allow overlay-wide RESTRICT=mirror in metadata/layout.conf
Summary: allow overlay-wide RESTRICT=mirror in metadata/layout.conf
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: Normal normal with 2 votes (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 240187
  Show dependency tree
 
Reported: 2013-08-21 12:52 UTC by Sergei Trofimovich (RETIRED)
Modified: 2019-06-22 07:30 UTC (History)
5 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 Sergei Trofimovich (RETIRED) gentoo-dev 2013-08-21 12:52:40 UTC
haskell overlay has around 1000 packages
of them only 200 are in main tree.

Thus most of fetches from overlay first hit main gentoo tree
and then fallback to SRC_URI.

What do you think of allowing to mess with it right in layout.conf?

    metadata/layout.conf:
        restrict = mirror <anything else>

[ Don't know if it also needs to be addressed in PMS ]

Thanks!
Comment 1 Zac Medico gentoo-dev 2013-08-21 19:07:38 UTC
(In reply to Sergei Trofimovich from comment #0)
>     metadata/layout.conf:
>         restrict = mirror <anything else>

That sounds reasonable. We could also allow negative incrementals in ebuilds, so that things like RESTRICT="-mirror" are possible.
Comment 2 Cynede (RETIRED) gentoo-dev 2013-08-22 02:54:32 UTC
How RESTRICT="-mirror" should work?

restrict RESTRICT=mirror in overlay ebuilds?
Comment 3 Zac Medico gentoo-dev 2013-08-22 03:18:23 UTC
The restrict setting from metadata/layout.conf would provide default RESTRICT settings for all the ebuilds in the overlay, and the ebuilds could override the defaults. They would set RESTRICT="-mirror" to remove mirror from the current ebuild's RESTRICT, so it would not inherit mirror from the defaults.
Comment 4 Jonas Stein gentoo-dev 2019-05-30 18:10:05 UTC
I think it is important to keep this information in the ebuild itself.
Else it could get lost too easy by copying ebuilds and false RESTRICT information is 
a) a legal problem and 
b) very difficult to detect for us.
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2019-06-22 07:30:57 UTC
The original use case had nothing to do with license restrictions. Nothing prevents you from not putting RESTRICT=mirror to the ebuild in ::gentoo and be in trouble. Or having a bad license.

As for original request ::haskell ended up actually having a mirror for overlay as well.