Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 434106 - sys-kernel/ck-sources : Material for building a 3.4.9 version
Summary: sys-kernel/ck-sources : Material for building a 3.4.9 version
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal enhancement (vote)
Assignee: Krzysztof Pawlik (RETIRED)
URL:
Whiteboard:
Keywords: EBUILD, PATCH
Depends on:
Blocks:
 
Reported: 2012-09-06 10:32 UTC by Eric F. GARIOUD
Modified: 2012-09-23 09:34 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ck-sources-3.4.9 ebuild (ck-sources-3.4.9.ebuild,1.16 KB, text/plain)
2012-09-06 10:35 UTC, Eric F. GARIOUD
Details
Patch providing the necessary descriptions of calc_load_*_idle introduced by GenPatches rev10 1005 (ck-sources-3.4.9-calc_load_idle-aCOSwt_P3.patch,383 bytes, patch)
2012-09-06 10:43 UTC, Eric F. GARIOUD
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric F. GARIOUD 2012-09-06 10:32:46 UTC
Purpose :
=============

Many having expressed their wish to get some > 3.3 version, I suggest in attachments the files necessary to build a ck-sources-3.4.9
I consider this version particularly interesting because :

- Linux-3.4 will be granted with long term support
- It is (today) in line with last gentoo-sources stable version

Short Descr
===========

- Build based on Linux 3.4 distribution + GenPatches Revision 10

- Warning : Needs an extra patch (see Long Descr)
- Warning : Might not build correctly if CONFIG_SCHED_BFS is not set but... who would want ck-sources without the bfs ?

- I have been running this kernel trouble-free on my x86_64 DAW for one week now.
- Performances as reported by sysbench threads and interbench benchmarks are in line with 3.2
- Performances as reported by sysbench mutex benchmark are a little bit worse than with 3.2. Of course, ck is in no way responsible for this. Figures are identical in plain gentoo-sources-3.4.9 

Enjoy immediately or... read the long descr first.

Reproducible: Always
Comment 1 Eric F. GARIOUD 2012-09-06 10:35:32 UTC
Created attachment 323060 [details]
ck-sources-3.4.9 ebuild
Comment 2 Eric F. GARIOUD 2012-09-06 10:43:28 UTC
Created attachment 323062 [details, diff]
Patch providing the necessary descriptions of calc_load_*_idle introduced by GenPatches rev10 1005

See Long Descr
Comment 3 Eric F. GARIOUD 2012-09-06 11:25:25 UTC
Long Desc
=========

- I reviewed all the GentPatches rev 10 patches and only one interferes with ck patches : 1005_linux-3.4.6.patch.

- This particular patch introduces two new procedures : calc_load_enter_idle and calc_load_exit_idle.

- These procedures are used in kernel/time/tick-sched.c and are declared in linux/includes/sched.h and kernel/sched.core.c

- Of course this stuff is just useless to ck. Moreover, if CONFIG_NOHZ is not set, these procedures just... do nothing.

- However, if CONFIG_NOHZ is set, and because kernel.sched.core.o is not linked if CONFIG_SCHED_BFS is set, then leaving things as is will make the link of the kernel fail.

=> I simply copied the way CK worked around this in his patch for the 3.5 kernel.
That is to say declaring these procedures (doing... nothing) within kernel/sched/bfs.c among the "Compatibility crap" section.

This is the purpose of the patch.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2012-09-06 14:19:47 UTC

*** This bug has been marked as a duplicate of bug 432320 ***
Comment 5 Eric F. GARIOUD 2012-09-06 14:30:40 UTC
I am very sorry Jeroen but this bug is not formally speaking a duplicate of bug 432320.

Formally speaking this Bug provides the material for installing a ck-sources-3.4.9
While bug 432320 asks for a ck-sources-3.5

Would you additionally please stop constantly changing the labeling of the bugs I submit.

Thank you.
Comment 6 Markos Chandras (RETIRED) gentoo-dev 2012-09-22 17:31:14 UTC
This line

epatch "${FILESDIR}"/${PN}-3.4.9-calc_load_idle-aCOSwt_P3.patch

was changed to 

epatch "${FILESDIR}"/${P}-calc_load_idle-aCOSwt_P3.patch

I bumped the package, and also removed the following ebuilds


I chose to leave one ebuild for each major kernel version. I hope that is ok
Comment 7 Markos Chandras (RETIRED) gentoo-dev 2012-09-22 17:32:10 UTC
(In reply to comment #6)
> 
> I bumped the package, and also removed the following ebuilds

-ck-sources-3.2.1.ebuild
-ck-sources-3.2.5.ebuild
-ck-sources-3.3.1.ebuild,
-ck-sources-3.3.4.ebuild:
Comment 8 Eric F. GARIOUD 2012-09-22 20:33:50 UTC
(In reply to comment #6)
> This line
> 
> epatch "${FILESDIR}"/${PN}-3.4.9-calc_load_idle-aCOSwt_P3.patch
> 
> was changed to 
> 
> epatch "${FILESDIR}"/${P}-calc_load_idle-aCOSwt_P3.patch
> 
> I bumped the package, and also removed the following ebuilds

I am happy with this. I had chosen the first syntax per pure laziness because I intend to support higher revisions of the 3.4 branch and this patch is more than likely to be needed with > 3.4.9
 
> I chose to leave one ebuild for each major kernel version. I hope that is ok

Perfect ! You could even have dropped all ebuilds < 3.4.9 as none of them match any currently supported gentoo-sources kernel.

Thanks a lot for your help Markos.
Comment 9 Markos Chandras (RETIRED) gentoo-dev 2012-09-23 09:34:27 UTC
(In reply to comment #8)
> (In reply to comment #6)
> > This line
> > 
> > epatch "${FILESDIR}"/${PN}-3.4.9-calc_load_idle-aCOSwt_P3.patch
> > 
> > was changed to 
> > 
> > epatch "${FILESDIR}"/${P}-calc_load_idle-aCOSwt_P3.patch
> > 
> > I bumped the package, and also removed the following ebuilds
> 
> I am happy with this. I had chosen the first syntax per pure laziness
> because I intend to support higher revisions of the 3.4 branch and this
> patch is more than likely to be needed with > 3.4.9
>  
> > I chose to leave one ebuild for each major kernel version. I hope that is ok
> 
> Perfect ! You could even have dropped all ebuilds < 3.4.9 as none of them
> match any currently supported gentoo-sources kernel.
> 
> Thanks a lot for your help Markos.

Understood. However, I do the same for pf-sources, as in keep one version per major release. I don't quite follow what gentoo-sources do (and I don't think it is relevant anyway ;) )