lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Tue, 16 Aug 2011 11:35:12 -0400
From:	Pavel Roskin <proski@....org>
To:	Stefan Richter <stefanr@...6.in-berlin.de>
Cc:	David Rientjes <rientjes@...gle.com>, linux-kernel@...r.kernel.org
Subject: Re: Suppressing a plus from setlocalversion

Quoting Stefan Richter <stefanr@...6.in-berlin.de>:

> On Aug 15 Pavel Roskin wrote:
>> Quoting David Rientjes <rientjes@...gle.com>:
>>
>> > On Mon, 15 Aug 2011, Pavel Roskin wrote:
>> >
>> >> Hello!
>> >>
>> >> There is one annoyance in the build system that I cannot work around.
>> >
>> > That's surprising since you actually state the workaround, i.e. using
>> > LOCALVERSION= with make, yourself.
>>
>> OK, I don't consider that an acceptable solution, as it could
>> interfere with other build systems.
>>
>> However, as soon as I posted this message, I found a better solution,
>> namely setting LOCALVERSION= in the environment (both for the normal
>> user and for root).  This is less likely to have unexpected effects,
>> since the environment variables don't override the variables
>> explicitly set in makefiles.
>
> Having this globally as an environment variable seems to be a more
> intrusive alternative; there are no namespaces.

I know, it's not an ideal solution.

> You can wrap the make command lines that you often use into shell
> aliases.  I often use command lines like 'nice make -j8' or
> 'nice make -j8 C=1 CF="-D__CHECK_ENDIAN__"' by alias.

__CHECK_ENDIAN__ is addressed by a separate patch :)

I guess I need to write a wrapper that would be suitable for my needs.  
  Still, I'd prefer the build system do what I want, at least in some  
aspects.

>> > Yes, because the kernel you've produced is no longer 3.1.0-rc2, it is
>> > modified.  If you want to do something else locally, then you can always
>> > use LOCALVERSION=.
>> >
>> > The + was added to stop falsely identifying kernels as a specific version
>> > when they are modified by default.  Sorry if you forget to override it
>> > sometimes.
>
> I for one am glad that I don't have to remember to force a localversion
> all the time.  All of the kernels that I runtime-test have their source
> managed by quilt, not git.  Thankfully, scripts/setlocalversion
> acknowledges that quilt users know what they are doing. :-)

Actually, it's simply unaware of what you are doing.

Also, setlocalversion is unaware that the wireless-testing tree is  
tagged every day.  It doesn't add the plus for the tagged revisions,  
even though they are very different from the version in the source  
Makefile.

But I'd rather not be on the mercy of a script not knowing something.

-- 
Regards,
Pavel Roskin
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ