Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ebuild: patching depending on .config settings?[solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3595

PostPosted: Wed Jan 19, 2022 12:30 pm    Post subject: ebuild: patching depending on .config settings?[solved] Reply with quote

How to apply patch if specific CONFIG_ is activated?
Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here.


Last edited by CaptainBlood on Wed Jan 19, 2022 2:50 pm; edited 3 times in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30888
Location: here

PostPosted: Wed Jan 19, 2022 12:50 pm    Post subject: Reply with quote

Maybe with linux_chkconfig_string <option> function from linux-info.eclass?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3595

PostPosted: Wed Jan 19, 2022 2:49 pm    Post subject: Reply with quote

fedeliallalinea,
Fine reply :)
Code:
if linux_chkconfig_builtin SPECIFIC_SET; then
   eapply "${FILESDIR}/${PN}-SPECIFIC.patch"
fil
made it as SPECIFIC_SET is boolean here.
Please note no CONFIG_ prefix at argument string.
Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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