public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Daniel Phillips <phillips@bonn-fries.net>
To: Russell King <rmk@arm.linux.org.uk>
Cc: Keith Owens <kaos@ocs.com.au>, linux-kernel@vger.kernel.org
Subject: Re: 2.5.21: kbuild changes broke filenames with commas
Date: Tue, 11 Jun 2002 18:36:44 +0200	[thread overview]
Message-ID: <E17HodQ-0000AV-00@starship> (raw)
In-Reply-To: <20020609175804.B8761@flint.arm.linux.org.uk> <E17HoBz-0000A0-00@starship> <20020611173147.C3665@flint.arm.linux.org.uk>

On Tuesday 11 June 2002 18:31, Russell King wrote:
> On Tue, Jun 11, 2002 at 06:08:22PM +0200, Daniel Phillips wrote:
> > Are you sure that complexity was added just to handle commas in names?
> > Or is it really an example of how good design never gave this bug a
> > chance to exist in the first palce.
> > 
> > I *really* don't like the idea of papering over such bugs by curing the
> > symptoms, as you seem to be advocating.
> 
> Lets see.
> 
> We have two places in 2.5.21 where commas are unacceptable:
> 
> 1. -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F)))
> 
>    We need to do this because to do because KBUILD_BASENAME is used in
>    places where commas are not acceptable.
> 
>    We papered over the fact that make can't subst commas by using the
>    $(comma) construct.
> 
> 2. -Wp,-MD,.$(subst /,_,$@).d (currently unfixed)
> 
>    This would need to become something like:
> 
>    -Wp,-MD,.$(subst /,_,$(subst $(comma,_,$@)).d
> 
> So now we have two places where the same yucky substing of commas to
> something more palettable happens.  Now, what if we had:
> 
> 	foo,bar.c
> 
> and
> 
> 	foo_bar.c
> 
> in the same directory?  The kbuild system goes wrong, destroying dependency
> information, using the wrong KBUILD_BASENAME.  Oops.  I guess we papered
> over a bug by allowing commas in filenames.

Yup.

> In addition, I'd like to point out the following paragraph in the make
> info files:
> 
>    The variant variables' names are formed by
>    appending `D' or `F', respectively.  These variants are semi-obsolete
>    in GNU `make' since the functions `dir' and `notdir' can be used to get
>    a similar effect (*note Functions for File Names: File Name
>    Functions.).
> 
> Both kbuild-2.5 and the existing kernel build make heavy use of the
> "$(*F)" notation.  Should we really be putting semi-obsolete features
> into either of the kernel build system?

No, agreed.  Now this is sensible.

-- 
Daniel

  reply	other threads:[~2002-06-11 16:38 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-09 16:58 2.5.21: kbuild changes broke filenames with commas Russell King
2002-06-09 17:11 ` Upper limits to number of processes / threads in Linux / ia32?? M. Edward (Ed) Borasky
2002-06-09 18:02 ` 2.5.21: kbuild changes broke filenames with commas Kai Germaschewski
2002-06-09 18:34 ` Tom Rini
2002-06-10 23:02 ` Keith Owens
2002-06-11  7:39   ` Russell King
2002-06-11 11:11     ` Thunder from the hill
2002-06-11 11:21       ` Russell King
2002-06-11 12:16         ` Thunder from the hill
2002-06-11 13:01           ` Russell King
2002-06-12 14:36           ` Ingo Oeser
2002-06-12 18:10             ` Thunder from the hill
2002-06-13 20:12         ` Thunder from the hill
2002-06-11 16:08     ` Daniel Phillips
2002-06-11 16:14       ` Alexander Viro
2002-06-11 16:22         ` Daniel Phillips
2002-06-11 16:31       ` Russell King
2002-06-11 16:36         ` Daniel Phillips [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-06-11 23:55 Keith Owens
2002-06-12  0:27 ` Kai Germaschewski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E17HodQ-0000AV-00@starship \
    --to=phillips@bonn-fries.net \
    --cc=kaos@ocs.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rmk@arm.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox