Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
A way to apply the gentoo kernel patchset to pf-sources?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
as.gentoo
Guru
Guru


Joined: 07 Aug 2004
Posts: 319

PostPosted: Sun Nov 27, 2016 12:00 am    Post subject: A way to apply the gentoo kernel patchset to pf-sources? Reply with quote

Hello,

since sys-kernel/pf-sources is an "unsupported kernel package" the gentoo kernel patchset is not applied (right?).
What would have to be done to do that on a manual way?
A script like
Code:
apply_gentoo_patches.sh /usr/src/<kernel_source>
doesn't exist, does it?

I really need the functionality of tuxonice. The sys-kernel/tuxonice-4.5.4 package seems to be the latest in the portage-tree. Since sys-kernel/pf-sources-4.8_p8 is more recent and contains the tuxonice functionality and some more goodies (e.g. for gaming) I think this would be the best choice for me.

What should I do to switch from gentoo-sources to pf-sources?
I read https://forums.gentoo.org/viewtopic-t-1029336-highlight-tuxonice+patch.html but I really can't read any way to go in there.
Back to top
View user's profile Send private message
188562
Apprentice
Apprentice


Joined: 22 Jun 2008
Posts: 186

PostPosted: Sun Nov 27, 2016 3:10 am    Post subject: Reply with quote

With this, you can apply any patch to any kernel source. Sad but true - these features are not interested in almost anyone.
Back to top
View user's profile Send private message
Juippisi
Developer
Developer


Joined: 30 Sep 2005
Posts: 372
Location: /home

PostPosted: Sun Nov 27, 2016 9:17 am    Post subject: Reply with quote

I made my own pf-sources ebuild since it wasnt being updated in main portage for a long time. I just added
Code:
SRC_URI="${KERNEL_URI} ${PF_URI}
   http://kerneldedup.org/download/uksm/${UKSMV}/uksm-${UKSMV}-for-v${PV/_p*/}.patch
   https://dev.gentoo.org/~mpagano/genpatches/trunk/${PV/_p*/}/1500_XATTR_USER_PREFIX.patch"


to any gentoo patches I wanted. Then,
Code:

src_prepare(){
   epatch "${DISTDIR}/${PF_FILE}"
   epatch "${DISTDIR}/1500_XATTR_USER_PREFIX.patch"

   if use uksm ; then
      epatch "${DISTDIR}/uksm-${UKSMV}-for-v${PV/_p*/}.patch"
   fi


I didnt want to download the experimental.tar.gz patch set, since BFQ is already applied in pf-sources, so I thought I'd bring troubles.

But yeah, there might be an easier way. You could maybe try updating geek-sources ebuild manually...?
Back to top
View user's profile Send private message
as.gentoo
Guru
Guru


Joined: 07 Aug 2004
Posts: 319

PostPosted: Sun Nov 27, 2016 4:29 pm    Post subject: Reply with quote

Juippisi wrote:
You could maybe try updating geek-sources ebuild manually...?
The author of geek-sources just wrote above. Maybe he's the better address fo updating the ebuilds. ;)
Back to top
View user's profile Send private message
as.gentoo
Guru
Guru


Joined: 07 Aug 2004
Posts: 319

PostPosted: Sun Nov 27, 2016 4:42 pm    Post subject: Reply with quote

init_6 wrote:
With this, you can apply any patch to any kernel source. Sad but true - these features are not interested in almost anyone.
Thanks for those links! I have two questions:

Why is BFS commented out in the latest ebuild geek-sources-4.2? Is that a "selecting" patches and avoiding USE flags, kind of a personalised ebuild?
PF and LQX would partly apply the same or similar(?) patches (BFQ). Is that the reason why pf doesn't appear in the ebuild but here: https://github.com/init6/init_6/blob/97eb614b1b148dc4092d5de21aee588efaa66995/README.md (the other link you sent)? As far as I can see there is no xor statement(s) regarding USE flags.
Back to top
View user's profile Send private message
188562
Apprentice
Apprentice


Joined: 22 Jun 2008
Posts: 186

PostPosted: Mon Nov 28, 2016 5:16 am    Post subject: Reply with quote

Quote:
Why is BFS commented out in the latest ebuild geek-sources-4.2?


All patch{sets} get default pach URl/file name from eclass.

In some ebuild`s version sometimes need change URL or file name.

Quote:
PF and LQX would partly apply the same or similar(?) patches (BFQ)


USE="pf" apply PF USE="lqx" apply LQX patchest.

Quote:
As far as I can see there is no xor statement(s) regarding USE flags


All logic defined in wiki Read it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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