Re: [gentoo-user] Easy (cough) way to build earlier gentoo-sources 3.18.x kernel?

2015-04-01 Thread Bob Wya
Sorry folks - I guess I've made a right dogs dinner of this whole thread...
I'll make more efforts not to be that noob next time :-)

But I've got the information I needed about how to build old
gentoo-sources kernels. So thanks!

I've done my tests and the outcome is:

3.8.8 (gentoo-sources - manually built)
= NO nfs suspend issue

3.8.9 (gentoo-sources - manually built - nfs specific patches, removed
from 1008_linux-3.18.9.patch)
= NO nfs suspend issue

3.8.9 (gentoo-sources, stock)
= boot hangs with pNFS block error

3.8.10 (gentoo-sources, stock)
= nfs suspend issue

Anyway that's pretty much what the ML thread was kicked off to achieve
- so thanks all! Plus I've written a
little script for ordered patch application - so that might come in
useful at some point :-)

Just wondering in passing what the motivation is for kernel eclass
dropping support for automated
building of, what many would consider, very recent kernel revisions?

Could support not be retained (for renaming kernel versions to build
older revisions)
- but say masking off these versions as not security patched / maintained?

Personally I was quite surprised I couldn't just rename the stock
gentoo-sources ebuild to say
gentoo-sources-3.18.8.ebuild to pull that kernel revision with
automated patching...
But perhaps I'm just showing my inexperience / naivety in this matter?

-- 

All the best  thanks,
Robert



Re: [gentoo-user] Easy (cough) way to build earlier gentoo-sources 3.18.x kernel?

2015-03-31 Thread Bob Wya
Neil,

Simply changing the ebuild version to 3.18.1 doesn't work. The kernel-2
eclass simply won't allow one to build a gentoo-sources 3.18.x kernel lower
than / before 3.18.9 now. (Try it if you don't believe me...) That was the
first thing I tried. :-)

On 31 March 2015 at 00:05, Neil Bothwick n...@digimed.co.uk wrote:

 On Mon, 30 Mar 2015 23:22:58 +0100, Bob Wya wrote:

  I'm getting a bit bogged down trying to build an early release of the
  3.18 kernel. Since I can't automatically go back before 3.18.9 now
  (using portage anyway)...


 https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-kernel/gentoo-sources/?hideattic=0

 Pick the versions you want and copy the ebuilds to a local overlay.


 --
 Neil Bothwick

 In a classified ad: Tired of cleaning yourself? Let me do it.




-- 

All the best,
Robert


Re: [gentoo-user] Easy (cough) way to build earlier gentoo-sources 3.18.x kernel?

2015-03-31 Thread Neil Bothwick
On Tue, 31 Mar 2015 09:51:11 +0100, Bob Wya wrote:

lease don't top-post, it is frowned upon on this list, and for good
reason.

 Simply changing the ebuild version to 3.18.1 doesn't work. The kernel-2
 eclass simply won't allow one to build a gentoo-sources 3.18.x kernel
 lower than / before 3.18.9 now. (Try it if you don't believe me...)
 That was the first thing I tried. :-)

I wasn't suggesting renaming the ebuild but downloading the older
version. However, on checking the content I see it still uses the
kernel-2 eclass. You can deal with this by downloading the older version
of the eclass from CVS and putting it in an overlay, but it's probably
easier to just apply the patches manually in this case.

gentoo-sources uses both the base and extra patchsets from genpatches.


-- 
Neil Bothwick

Fragile. Do not turn umop ap1sdn!


pgp5vRUdUxeDU.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Easy (cough) way to build earlier gentoo-sources 3.18.x kernel?

2015-03-31 Thread Bob Wya
Neil,

(a) Should I download the vanilla 3.18.1 kernel sources and apply all the
gentoo-sources tar-ball patches in numerical order??

(b) I tried downloading the vanilla 3.18.8 kernel. But of course the
earlier gentoo-sources 3.18.1 - 3.18.6 patches don't apply cleanly... Will
I get to the same place if I ignore these?? Or should I go with option (a)
:-)

Thanks

On 31 March 2015 at 12:00, Neil Bothwick n...@digimed.co.uk wrote:

 On Tue, 31 Mar 2015 09:51:11 +0100, Bob Wya wrote:

 lease don't top-post, it is frowned upon on this list, and for good
 reason.

  Simply changing the ebuild version to 3.18.1 doesn't work. The kernel-2
  eclass simply won't allow one to build a gentoo-sources 3.18.x kernel
  lower than / before 3.18.9 now. (Try it if you don't believe me...)
  That was the first thing I tried. :-)

 I wasn't suggesting renaming the ebuild but downloading the older
 version. However, on checking the content I see it still uses the
 kernel-2 eclass. You can deal with this by downloading the older version
 of the eclass from CVS and putting it in an overlay, but it's probably
 easier to just apply the patches manually in this case.

 gentoo-sources uses both the base and extra patchsets from genpatches.


 --
 Neil Bothwick

 Fragile. Do not turn umop ap1sdn!




-- 

All the best,
Robert


Re: [gentoo-user] Easy (cough) way to build earlier gentoo-sources 3.18.x kernel?

2015-03-31 Thread Peter Humphrey
On Tuesday 31 March 2015 16:45:08 Bob Wya wrote:
 Neil,
 
 (a) Should I download the vanilla 3.18.1 kernel sources and apply all the
 gentoo-sources tar-ball patches in numerical order??
 
 (b) I tried downloading the vanilla 3.18.8 kernel. But of course the
 earlier gentoo-sources 3.18.1 - 3.18.6 patches don't apply cleanly... Will
 I get to the same place if I ignore these?? Or should I go with option
 (a)

You didn't read the first thing Neil wrote, did you? Or did you just decide 
to ignore it?

 On 31 March 2015 at 12:00, Neil Bothwick n...@digimed.co.uk wrote:
  On Tue, 31 Mar 2015 09:51:11 +0100, Bob Wya wrote:
  
  lease don't top-post, it is frowned upon on this list, and for good
  reason.
  
   Simply changing the ebuild version to 3.18.1 doesn't work. The
   kernel-2
   eclass simply won't allow one to build a gentoo-sources 3.18.x kernel
   lower than / before 3.18.9 now. (Try it if you don't believe me...)
   That was the first thing I tried. :-)
  
  I wasn't suggesting renaming the ebuild but downloading the older
  version. However, on checking the content I see it still uses the
  kernel-2 eclass. You can deal with this by downloading the older version
  of the eclass from CVS and putting it in an overlay, but it's probably
  easier to just apply the patches manually in this case.
  
  gentoo-sources uses both the base and extra patchsets from genpatches.
  
  
  --
  Neil Bothwick
  
  Fragile. Do not turn umop ap1sdn!

-- 
Rgds
Peter.




[gentoo-user] Easy (cough) way to build earlier gentoo-sources 3.18.x kernel?

2015-03-30 Thread Bob Wya
I'm getting a bit bogged down trying to build an early release of the 3.18
kernel. Since I can't automatically go back before 3.18.9 now (using
portage anyway)...

Basically I trying to check if a suspend/resume issue I've got was
introduced after the 3.18 kernel was released (or was in the base release).
I've got a reproduce-able failure to suspend-to-ram with =3.18.x gentoo
kernel sources. However this issue is not present with the gentoo kernel
sources =3.17.x. (A systemd nfs client mount problem - which blocks the
suspend-to-ram process.)

I had a look at the kernel-2 eclass and my head started to hurt... Do I
need to wade into the weeds or is there a short-cut I can take to go back
to the earliest gentoo-sources 3.18 kernel build :-)

-- 

Thanks,
Robert


Re: [gentoo-user] Easy (cough) way to build earlier gentoo-sources 3.18.x kernel?

2015-03-30 Thread Neil Bothwick
On Mon, 30 Mar 2015 23:22:58 +0100, Bob Wya wrote:

 I'm getting a bit bogged down trying to build an early release of the
 3.18 kernel. Since I can't automatically go back before 3.18.9 now
 (using portage anyway)...

https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-kernel/gentoo-sources/?hideattic=0

Pick the versions you want and copy the ebuilds to a local overlay.


-- 
Neil Bothwick

In a classified ad: Tired of cleaning yourself? Let me do it.


pgpeQhvVrNjCa.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Easy (cough) way to build earlier gentoo-sources 3.18.x kernel?

2015-03-30 Thread Fernando Rodriguez
On Monday, March 30, 2015 11:22:58 PM Bob Wya wrote:
 I'm getting a bit bogged down trying to build an early release of the 3.18
 kernel. Since I can't automatically go back before 3.18.9 now (using
 portage anyway)...
 
 Basically I trying to check if a suspend/resume issue I've got was
 introduced after the 3.18 kernel was released (or was in the base release).
 I've got a reproduce-able failure to suspend-to-ram with =3.18.x gentoo
 kernel sources. However this issue is not present with the gentoo kernel
 sources =3.17.x. (A systemd nfs client mount problem - which blocks the
 suspend-to-ram process.)
 
 I had a look at the kernel-2 eclass and my head started to hurt... Do I
 need to wade into the weeds or is there a short-cut I can take to go back
 to the earliest gentoo-sources 3.18 kernel build :-)
 
 

You can use git. I believe gentoo patches are only for config options so if you 
configure it with make oldconfig it *should* be the same as using gentoo-
sources.

cd /usr/src
git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-
stable.git
cd linux-stable
git checkout v3.18.9
make oldconfig
make

You can checkout any version committed prior to your last git pull 
instantly.

-- 
Fernando Rodriguez