Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Rerun kernel config check for all packages?

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
Ghett_Klapson
n00b
n00b
User avatar
Posts: 38
Joined: Mon Oct 25, 2021 9:46 pm

Rerun kernel config check for all packages?

  • Quote

Post by Ghett_Klapson » Tue Jan 25, 2022 3:06 am

Hello all!

Currently configuring kernel from `allnoconfig`, is there a way to run kernel config checks for all the packages in the world set? Or will I have to do some scripting to run `ebuild <thing-###.ebuild> pretend` for everything?

Thanks a lot!
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31985
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Tue Jan 25, 2022 6:31 am

I don't think there's a way to do what you're asking, you can use grep -r CONFIG_CHECK /var/db/pkg/ command.
Another way is create a script like this (NOT TESTED):

Code: Select all

for i in $(grep -lr CONFIG_CHECK /var/db/pkg/ | cut -d'/' -f5-); do
    awk '/CONFIG_/{print}' <(ebuild $(equery w $(dirname ${i})) setup);
    ebuild $(equery w $(dirname ${i})) clean
done
The ebuild setup should show you if a kernel config is uset and clean remove sources from /var/tmp/portage .

This script is based on [profile=283094]khayyam[/profile] idea proposed on [post=7786514]this post[/post].
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
Ghett_Klapson
n00b
n00b
User avatar
Posts: 38
Joined: Mon Oct 25, 2021 9:46 pm

  • Quote

Post by Ghett_Klapson » Thu Jan 27, 2022 5:18 am

Thanks for linking me that post. I searched every combination of check, kernel, and config I could think of and couldn't find that...
Top
netfab
Advocate
Advocate
Posts: 2066
Joined: Thu Mar 03, 2005 1:27 pm
Location: 127.0.0.1

  • Quote

Post by netfab » Sun Jan 30, 2022 7:02 pm

This question periodically pops up on the forum.
There is an opened bug for this subject : https://bugs.gentoo.org/532674
Top
xicod
n00b
n00b
Posts: 19
Joined: Thu Oct 03, 2013 8:06 am

  • Quote

Post by xicod » Thu Feb 26, 2026 11:09 pm

I found the previous code to download the sources. The fix was to add FEATURES=noauto and --skip-manifest to basically only do the checks.

Hope you find this version useful (also posting in the bug report):

Code: Select all

grep -lr CONFIG_CHECK /var/db/pkg/ \
	| sed 's|^/var/db/pkg/||' \
	| sort \
	| xargs dirname \
	| xargs equery which \
	| while read eb; do
	echo -en "\n>>> Checking ${eb}:\n\n"
	FEATURES=noauto ebuild ${eb} --skip-manifest setup
	ebuild ${eb} clean
done
Top
Post Reply

5 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy