public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user]  set local kenel version
@ 2009-06-13 14:27 Harry Putnam
  2009-06-13 15:22 ` Alan McKinnon
  2009-06-13 16:35 ` Nikos Chantziaras
  0 siblings, 2 replies; 10+ messages in thread
From: Harry Putnam @ 2009-06-13 14:27 UTC (permalink / raw
  To: gentoo-user

Setting a version to local kernel builds has been discussed here so
sorry to bang on it some more.

I found information here from a previous thread and kept one of the
answers but finding now that I don't really understand it.

Or am doing the proceedure wrong.

It was Neil B's post:

  From: Neil Bothwick <neil@digimed.co.uk>
  Subject: Re: Append string on Kernel builds
  Newsgroups: gmane.linux.gentoo.user
  To: gentoo-user@lists.gentoo.org
  Date: Tue, 20 Jan 2009 14:11:22 +0000
  Message-ID: <20090120141122.46b8362c@krikkit>
  
  On Fri, 16 Jan 2009 14:43:56 -0600, reader@newsguy.com wrote:
  
  > I like to use that and put `-$MYHOST' as string.  I wondered if
  > there is any way to set a numericly incrementing string.  Maybe
  > some trick syntax that can go in that spot?
  
  cd /usr/src/linux
  echo "-${MYHOST}-" >localversion1
  ln -s .version localversion2
  
  The build system adds the contents of any localversion* files it
  finds, and it also increments .version.


But when I try this I get only the $MYHOST part (in this case
host=reader) and not the increment.

So for linux-2.6.30-gentoo-r1

and in /usr/src/linux
 cat localverion1:
  _reader_

Cat .version:
  1
And the symlink
 ls -l localversion2
 lrwxrwxrwx [...] Jun 12 18:01 localversion2 -> .version
I get this naming after a build:

  vimlinuz-2.6.30-gentoo-r1_reader_

No version gets appended.

I understood it should have also append the numeric version and
increment it each time I build that kernel.

Anyone see where I'm dorking this up?




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user]  set local kenel version
  2009-06-13 14:27 [gentoo-user] set local kenel version Harry Putnam
@ 2009-06-13 15:22 ` Alan McKinnon
  2009-06-13 16:05   ` [gentoo-user] " Harry Putnam
  2009-06-13 16:35 ` Nikos Chantziaras
  1 sibling, 1 reply; 10+ messages in thread
From: Alan McKinnon @ 2009-06-13 15:22 UTC (permalink / raw
  To: gentoo-user

On Saturday 13 June 2009 16:27:48 Harry Putnam wrote:
> Setting a version to local kernel builds has been discussed here so
> sorry to bang on it some more.
>
> I found information here from a previous thread and kept one of the
> answers but finding now that I don't really understand it.
>
> Or am doing the proceedure wrong.
>
> It was Neil B's post:
>
>   From: Neil Bothwick <neil@digimed.co.uk>
>   Subject: Re: Append string on Kernel builds
>   Newsgroups: gmane.linux.gentoo.user
>   To: gentoo-user@lists.gentoo.org
>   Date: Tue, 20 Jan 2009 14:11:22 +0000
>   Message-ID: <20090120141122.46b8362c@krikkit>
>
>   On Fri, 16 Jan 2009 14:43:56 -0600, reader@newsguy.com wrote:
>   > I like to use that and put `-$MYHOST' as string.  I wondered if
>   > there is any way to set a numericly incrementing string.  Maybe
>   > some trick syntax that can go in that spot?
>
>   cd /usr/src/linux
>   echo "-${MYHOST}-" >localversion1
>   ln -s .version localversion2
>
>   The build system adds the contents of any localversion* files it
>   finds, and it also increments .version.
>
>
> But when I try this I get only the $MYHOST part (in this case
> host=reader) and not the increment.
>
> So for linux-2.6.30-gentoo-r1
>
> and in /usr/src/linux
>  cat localverion1:
>   _reader_
>
> Cat .version:
>   1
> And the symlink
>  ls -l localversion2
>  lrwxrwxrwx [...] Jun 12 18:01 localversion2 -> .version
> I get this naming after a build:
>
>   vimlinuz-2.6.30-gentoo-r1_reader_
>
> No version gets appended.
>
> I understood it should have also append the numeric version and
> increment it each time I build that kernel.
>
> Anyone see where I'm dorking this up?

I only see two thing:

Did you set both

()  Local version - append to kernel release
[ ] Automatically append version information to the version string

In "General setup"?

Second, you appear to have used a file called "localverion1" instead of 
"localversion1"

Is that a real mistake, or just a typo in your mail?


-- 
alan dot mckinnon at gmail dot com



^ permalink raw reply	[flat|nested] 10+ messages in thread

* [gentoo-user]  Re: set local kenel version
  2009-06-13 15:22 ` Alan McKinnon
@ 2009-06-13 16:05   ` Harry Putnam
  2009-06-13 16:22     ` Alan McKinnon
  0 siblings, 1 reply; 10+ messages in thread
From: Harry Putnam @ 2009-06-13 16:05 UTC (permalink / raw
  To: gentoo-user

Alan McKinnon <alan.mckinnon@gmail.com> writes:

>> So for linux-2.6.30-gentoo-r1
>>
>> and in /usr/src/linux
>>  cat localverion1:
>>   _reader_
>>
>> Cat .version:
>>   1
>> And the symlink
>>  ls -l localversion2
>>  lrwxrwxrwx [...] Jun 12 18:01 localversion2 -> .version
>> I get this naming after a build:
>>
>>   vimlinuz-2.6.30-gentoo-r1_reader_
>>
>> No version gets appended.
>>
>> I understood it should have also append the numeric version and
>> increment it each time I build that kernel.
>>
>> Anyone see where I'm dorking this up?
>
> I only see two thing:
>
> Did you set both
>
> ()  Local version - append to kernel release

That one needs to be left blank right?  Else what ever you put there
will appear in kernel name and I'm using localversion files for that.

> [ ] Automatically append version information to the version string

This one is checked.

> In "General setup"?
>
> Second, you appear to have used a file called "localverion1" instead of 
> "localversion1"
>
> Is that a real mistake, or just a typo in your mail?

Its a typo... I just checked to make sure though.. would have been nice if
a real missnaming was the problem.

ls -l  /usr/src/linux/localversion*
-rw-r--r-- 1 root root 5 Jun 12 18:01 /usr/src/linux/localversion1
lrwxrwxrwx 1 root root 8 Jun 12 18:01 /usr/src/linux/localversion2 -> .version




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user]  Re: set local kenel version
  2009-06-13 16:05   ` [gentoo-user] " Harry Putnam
@ 2009-06-13 16:22     ` Alan McKinnon
  2009-06-13 18:13       ` Harry Putnam
  0 siblings, 1 reply; 10+ messages in thread
From: Alan McKinnon @ 2009-06-13 16:22 UTC (permalink / raw
  To: gentoo-user

On Saturday 13 June 2009 18:05:37 Harry Putnam wrote:
> > Is that a real mistake, or just a typo in your mail?
>
> Its a typo... I just checked to make sure though.. would have been nice if
> a real missnaming was the problem.
>
> ls -l  /usr/src/linux/localversion*
> -rw-r--r-- 1 root root 5 Jun 12 18:01 /usr/src/linux/localversion1
> lrwxrwxrwx 1 root root 8 Jun 12 18:01 /usr/src/linux/localversion2 ->
> .version

Pity - I was hoping you'd have an easy fix here :-)

localversion is a feature I never use, so I fear I won't be able to help you 
much further...


-- 
alan dot mckinnon at gmail dot com



^ permalink raw reply	[flat|nested] 10+ messages in thread

* [gentoo-user]  Re: set local kenel version
  2009-06-13 14:27 [gentoo-user] set local kenel version Harry Putnam
  2009-06-13 15:22 ` Alan McKinnon
@ 2009-06-13 16:35 ` Nikos Chantziaras
  2009-06-13 21:39   ` reader
  1 sibling, 1 reply; 10+ messages in thread
From: Nikos Chantziaras @ 2009-06-13 16:35 UTC (permalink / raw
  To: gentoo-user

On 06/13/2009 05:27 PM, Harry Putnam wrote:
> Setting a version to local kernel builds has been discussed here so
> sorry to bang on it some more.
>
> I found information here from a previous thread and kept one of the
> answers but finding now that I don't really understand it.
>
> Or am doing the proceedure wrong.
>
> It was Neil B's post:
>[...]
>    cd /usr/src/linux
>    echo "-${MYHOST}-">localversion1
>    [...]
>
> But when I try this I get only the $MYHOST part (in this case
> host=reader) and not the increment.
>
> So for linux-2.6.30-gentoo-r1
>
> and in /usr/src/linux
>   cat localverion1:
>    _reader_

It doesn't seem you followed the instructions correctly.  I don't know 
if that's the cause of the problem, but the instructions said:

   echo "-${MYHOST}-">localversion1

but you seem to have used:

   echo "_${MYHOST}_">localversion1

instead.




^ permalink raw reply	[flat|nested] 10+ messages in thread

* [gentoo-user]  Re: set local kenel version
  2009-06-13 16:22     ` Alan McKinnon
@ 2009-06-13 18:13       ` Harry Putnam
  2009-06-13 18:30         ` Alan McKinnon
  2009-06-13 22:35         ` Neil Bothwick
  0 siblings, 2 replies; 10+ messages in thread
From: Harry Putnam @ 2009-06-13 18:13 UTC (permalink / raw
  To: gentoo-user

Alan McKinnon <alan.mckinnon@gmail.com> writes:

> On Saturday 13 June 2009 18:05:37 Harry Putnam wrote:
>> > Is that a real mistake, or just a typo in your mail?
>>
>> Its a typo... I just checked to make sure though.. would have been nice if
>> a real missnaming was the problem.
>>
>> ls -l  /usr/src/linux/localversion*
>> -rw-r--r-- 1 root root 5 Jun 12 18:01 /usr/src/linux/localversion1
>> lrwxrwxrwx 1 root root 8 Jun 12 18:01 /usr/src/linux/localversion2 ->
>> .version
>
> Pity - I was hoping you'd have an easy fix here :-)
>
> localversion is a feature I never use, so I fear I won't be able to help you 
> much further...

You did already.... you made me look around better and finally
recompile to test once more and now it works.

Some kind of operator dimmness going on before I guess.




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user]  Re: set local kenel version
  2009-06-13 18:13       ` Harry Putnam
@ 2009-06-13 18:30         ` Alan McKinnon
  2009-06-13 22:35         ` Neil Bothwick
  1 sibling, 0 replies; 10+ messages in thread
From: Alan McKinnon @ 2009-06-13 18:30 UTC (permalink / raw
  To: gentoo-user

On Saturday 13 June 2009 20:13:06 Harry Putnam wrote:
> Alan McKinnon <alan.mckinnon@gmail.com> writes:
> > On Saturday 13 June 2009 18:05:37 Harry Putnam wrote:
> >> > Is that a real mistake, or just a typo in your mail?
> >>
> >> Its a typo... I just checked to make sure though.. would have been nice
> >> if a real missnaming was the problem.
> >>
> >> ls -l  /usr/src/linux/localversion*
> >> -rw-r--r-- 1 root root 5 Jun 12 18:01 /usr/src/linux/localversion1
> >> lrwxrwxrwx 1 root root 8 Jun 12 18:01 /usr/src/linux/localversion2 ->
> >> .version
> >
> > Pity - I was hoping you'd have an easy fix here :-)
> >
> > localversion is a feature I never use, so I fear I won't be able to help
> > you much further...
>
> You did already.... you made me look around better and finally
> recompile to test once more and now it works.
>
> Some kind of operator dimmness going on before I guess.

:-)

That sounds awfully familiar, I wonder who do I know that does that all the 
time himself?

Oh wait, it's me :-)

-- 
alan dot mckinnon at gmail dot com



^ permalink raw reply	[flat|nested] 10+ messages in thread

* [gentoo-user]  Re: set local kenel version
  2009-06-13 16:35 ` Nikos Chantziaras
@ 2009-06-13 21:39   ` reader
  2009-06-13 22:05     ` reader
  0 siblings, 1 reply; 10+ messages in thread
From: reader @ 2009-06-13 21:39 UTC (permalink / raw
  To: gentoo-user

Nikos Chantziaras <realnc@arcor.de> writes:

> It doesn't seem you followed the instructions correctly.  I don't know
> if that's the cause of the problem, but the instructions said:
>
>   echo "-${MYHOST}-">localversion1
>
> but you seem to have used:
>
>   echo "_${MYHOST}_">localversion1
>
> instead.

Just for you own info in case you ever want to do it.... not that
wasn't why it didn't work.

The first echo could be just about anything and the dashes are
insignificant too.

I haven't figured out what I did wrong... but a third try at
it.. has worked as advertised.... so Neils advice is right on the
money.

So what happens is localversion1 is combined with localversion2.  And
since localversion2 is a symlink to .version... it gets incremented
with each build.... assuming no `make mrproper or distclean' is run.

One thing I did notice though is that the naming only happens during 
`make modules_install' or `make install'

a find on filename searching for localversion1 contents fails after
running `make' is completed.

  echo "_rdr_" > localversion1
then after make....    
  find . -name '*_rdr_*' will fail.

I had assumed some naming would happen during make... but it doesn't.





^ permalink raw reply	[flat|nested] 10+ messages in thread

* [gentoo-user]  Re: set local kenel version
  2009-06-13 21:39   ` reader
@ 2009-06-13 22:05     ` reader
  0 siblings, 0 replies; 10+ messages in thread
From: reader @ 2009-06-13 22:05 UTC (permalink / raw
  To: gentoo-user

reader@newsguy.com writes:

> Just for you own info in case you ever want to do it.... not that
> wasn't why it didn't work.

Jesus... I'm getting more illiterate as time goes on.

Should say:

Just for [your] own info in case you ever want to do it... [No], that
wasn't why it didn' work.




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user]  Re: set local kenel version
  2009-06-13 18:13       ` Harry Putnam
  2009-06-13 18:30         ` Alan McKinnon
@ 2009-06-13 22:35         ` Neil Bothwick
  1 sibling, 0 replies; 10+ messages in thread
From: Neil Bothwick @ 2009-06-13 22:35 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 466 bytes --]

On Sat, 13 Jun 2009 13:13:06 -0500, Harry Putnam wrote:

> You did already.... you made me look around better and finally
> recompile to test once more and now it works.
> 
> Some kind of operator dimmness going on before I guess.

.version isn't set until after the first make run, so it will show up as
blank the first time you compile a new kernel.


-- 
Neil Bothwick

The cow is nothing but a machine which makes grass fit for us people to
eat.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-06-13 22:35 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-13 14:27 [gentoo-user] set local kenel version Harry Putnam
2009-06-13 15:22 ` Alan McKinnon
2009-06-13 16:05   ` [gentoo-user] " Harry Putnam
2009-06-13 16:22     ` Alan McKinnon
2009-06-13 18:13       ` Harry Putnam
2009-06-13 18:30         ` Alan McKinnon
2009-06-13 22:35         ` Neil Bothwick
2009-06-13 16:35 ` Nikos Chantziaras
2009-06-13 21:39   ` reader
2009-06-13 22:05     ` reader

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox