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] [thread-next>] [day] [month] [year] [list]
Message-ID: <20141031193408.GA12953@wotan.suse.de>
Date:	Fri, 31 Oct 2014 20:34:08 +0100
From:	"Luis R. Rodriguez" <mcgrof@...e.com>
To:	Johannes Berg <johannes@...solutions.net>
Cc:	"Luis R. Rodriguez" <mcgrof@...not-panic.com>,
	backports@...r.kernel.org, linux-kernel@...r.kernel.org,
	yann.morin.1998@...e.fr, mmarek@...e.cz, sassmann@...nic.de
Subject: Re: [RFC v2 1/4] backports: replace CPTCFG prefix for
	CONFIG_BACKPORT

On Fri, Oct 31, 2014 at 08:41:13AM +0100, Johannes Berg wrote:
> On Wed, 2014-10-29 at 01:21 -0700, Luis R. Rodriguez wrote:
> > From: "Luis R. Rodriguez" <mcgrof@...e.com>
> > 
> > In order to support built-in kernel integration we want to use
> > a more generic approach to defining symbols, CPTCFG was nice as
> > it was short and relied on the fact that kconfig can work with
> > a getenv(CONFIG_) but for kernel integration this doesn't work
> > so well. Instead let's just stick to the regular CONFIG_
> > namespace and add the BACKPORT prefix to it.
> > 
> > Apart from these expected changes:
> > 
> > for i in $(find ./  | grep -v "\.git"); do perl -pi -e'$_ =~ s|CPTCFG|CONFIG_BACKPORT|gs;' $i; done
> 
> I really think you need to make this optional for the in-tree
> generation, otherwise it will complicate things a lot for anyone who's
> already using backports in a way that doesn't have it regenerated all
> the time.

Logistically I do agree this will implicate tons of merge conflicts
if a git tree was used for development based on backports, however
functionally I don't expect this this to create divergence.

> Additionally, CPTCFG_ had the advantage of having the same length as
> CONFIG_, so code style wise it was nicer to replace.
> 
> Please make this a post-process step that runs on everything, including
> the backport stuff, rather than running only on the source and assuming
> the backport stuff already uses this convention.

I want to but lets consider the amount of work to maintain the two
separate approaches, is it worth it?

  Luis
--
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