Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
check use flags for available binpackages on binhost
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
kelvin34501
n00b
n00b


Joined: 05 Oct 2018
Posts: 11

PostPosted: Mon Nov 04, 2024 8:41 am    Post subject: check use flags for available binpackages on binhost Reply with quote

Is there a quick way to check the use flags for available binary packages given a package atom on the current binhost?

Currently, I download all binary package candidates and manually check the metadata. Does there exist any better way to do this?
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2388

PostPosted: Mon Nov 04, 2024 9:33 am    Post subject: Reply with quote

You can grep /var/cache/edb/binhost/<mirror>/releases/amd64/binpackages/23.0/x86-64-v3/Package in the following way:

Code:
grep -A8 " dev-qt/qtwebengine" /var/cache/edb/binhost/ftp.snt.utwente.nl/pub/os/linux/gentoo/releases/amd64/binpackages/23.0/x86-64-v3/Packages | grep -B1 "^--$" | grep -v "^--$"


This will match the PATH line and the 8th line below it is the USE line.

It should work the same for other binhosts, e.g. x86_64-v3 or a custom one.

Best Regards,
Georgi
Back to top
View user's profile Send private message
kelvin34501
n00b
n00b


Joined: 05 Oct 2018
Posts: 11

PostPosted: Mon Nov 04, 2024 10:56 am    Post subject: Reply with quote

logrusx wrote:
You can grep /var/cache/edb/binhost/<mirror>/releases/amd64/binpackages/23.0/x86-64-v3/Package in the following way:

Code:
grep -A8 " dev-qt/qtwebengine" /var/cache/edb/binhost/ftp.snt.utwente.nl/pub/os/linux/gentoo/releases/amd64/binpackages/23.0/x86-64-v3/Packages | grep -B1 "^--$" | grep -v "^--$"


This will match the PATH line and the 8th line below it is the USE line.

It should work the same for other binhosts, e.g. x86_64-v3 or a custom one.

Best Regards,
Georgi


Hope this could be in the wiki. Thank you very much!
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2388

PostPosted: Mon Nov 04, 2024 11:11 am    Post subject: Reply with quote

I think there are more civilized ways, but I don't remember them :)

I haven't actually needed it. When I emerge something, I always pass --verbose to emerge which leads to emerge giving me some extra output about what are my options to change use flags to accommodate the incompatible packages. It also gives me the setting for all the packages pulled in so I can immediately check their USE flags.

Best Regards,
Georgi
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum