Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 917047 - skip binpkgs when local user patches are supplied
Summary: skip binpkgs when local user patches are supplied
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-08 20:46 UTC by David Roman
Modified: 2024-01-19 22:03 UTC (History)
1 user (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 David Roman 2023-11-08 20:46:14 UTC
My setup consist of a generic binhost with FEATURES=getbinpkg which is very helpful in general, but when I need to apply a user patch for a given package portage fetches the binary package instead of applying the patch and building. Of course for this specific case I used --usepkg-exclude, but it have some problems:

 1- People that previously didn't have any binhost configured and decide to use a binhost may expect that their local patches are applied as usual, but instead when upgrading @world as usual their patches will be ignored by default, with in my opinion is not a very sane default.

 2- Some users can have an overlay, for example for llvm+musl, in which they add patches for packages that need them for whatever reason. Those users as well may want to take advantage of a generic binhost for the majority of packages that doesn't require any specific patches.

 3- And probably the least important issue: it's a little bit harder and more prone to errors if, for each package that a user wants to patch, it's required to add more flags to portage to exclude each single package for which packages are applied. If a patch is removed, then it would also be required to update the command/script accordingly, which is a little bit annoying.

It would be nice if portage can get smart enough to automatically ignore the binpkg of a specific package if this package has applicable local user patches. Another option could be to ignore binpkgs if the ebuild/overlay doesn't match the ebuild/overlay used for creating the binpkg.  

Thank you very much

Reproducible: Always