mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] fix cc-version breakage
@ 2004-08-24 23:42 Jesse Barnes
  2004-08-24 23:48 ` Jesse Barnes
  0 siblings, 1 reply; 4+ messages in thread
From: Jesse Barnes @ 2004-08-24 23:42 UTC (permalink / raw)
  To: linux-kernel, sam

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

Looks like someone forgot to use $(shell ...) on the cc-version function?

Jesse

[-- Attachment #2: cc-version-fix.patch --]
[-- Type: text/plain, Size: 496 bytes --]

===== Makefile 1.522 vs edited =====
--- 1.522/Makefile	2004-08-23 23:59:52 -07:00
+++ edited/Makefile	2004-08-24 16:39:46 -07:00
@@ -279,8 +279,8 @@
 
 # cc-version
 # Usage gcc-ver := $(call cc-version $(CC))
-cc-version = $(CONFIG_SHELL) $(srctree)/scripts/gcc-version.sh \
-              $(if $(1), $(1), $(CC))
+cc-version = $(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-version.sh \
+              $(if $(1), $(1), $(CC)))
 
 
 # Look for make include files relative to root of kernel src

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

* Re: [PATCH] fix cc-version breakage
  2004-08-24 23:42 [PATCH] fix cc-version breakage Jesse Barnes
@ 2004-08-24 23:48 ` Jesse Barnes
  2004-08-25  4:43   ` Sam Ravnborg
  0 siblings, 1 reply; 4+ messages in thread
From: Jesse Barnes @ 2004-08-24 23:48 UTC (permalink / raw)
  To: linux-kernel; +Cc: sam

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

On Tuesday, August 24, 2004 4:42 pm, Jesse Barnes wrote:
> Looks like someone forgot to use $(shell ...) on the cc-version function?

Actually, this is a little nicer (look ma, no linewraps!) if we can make 
gcc-version.sh executable.

Jesse

[-- Attachment #2: cc-version-fix-2.patch --]
[-- Type: text/plain, Size: 463 bytes --]

===== Makefile 1.522 vs edited =====
--- 1.522/Makefile	2004-08-23 23:59:52 -07:00
+++ edited/Makefile	2004-08-24 16:46:44 -07:00
@@ -279,8 +279,7 @@
 
 # cc-version
 # Usage gcc-ver := $(call cc-version $(CC))
-cc-version = $(CONFIG_SHELL) $(srctree)/scripts/gcc-version.sh \
-              $(if $(1), $(1), $(CC))
+cc-version = $(shell $(srctree)/scripts/gcc-version.sh $(if $(1), $(1), $(CC)))
 
 
 # Look for make include files relative to root of kernel src

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

* Re: [PATCH] fix cc-version breakage
  2004-08-24 23:48 ` Jesse Barnes
@ 2004-08-25  4:43   ` Sam Ravnborg
  2004-08-25  4:59     ` Jesse Barnes
  0 siblings, 1 reply; 4+ messages in thread
From: Sam Ravnborg @ 2004-08-25  4:43 UTC (permalink / raw)
  To: Jesse Barnes; +Cc: linux-kernel, sam

On Tue, Aug 24, 2004 at 04:48:49PM -0700, Jesse Barnes wrote:
> 
> Actually, this is a little nicer (look ma, no linewraps!) if we can make 
> gcc-version.sh executable.
It is no possible for all users to guarantee this, therefore the rule of thumb
for the kernel is to always use CONFIG_SHELL.

Btw - patch already sent to Linus and lkml.

	Sam

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

* Re: [PATCH] fix cc-version breakage
  2004-08-25  4:43   ` Sam Ravnborg
@ 2004-08-25  4:59     ` Jesse Barnes
  0 siblings, 0 replies; 4+ messages in thread
From: Jesse Barnes @ 2004-08-25  4:59 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: linux-kernel

On Tuesday, August 24, 2004 9:43 pm, Sam Ravnborg wrote:
> On Tue, Aug 24, 2004 at 04:48:49PM -0700, Jesse Barnes wrote:
> > Actually, this is a little nicer (look ma, no linewraps!) if we can make
> > gcc-version.sh executable.
>
> It is no possible for all users to guarantee this, therefore the rule of
> thumb for the kernel is to always use CONFIG_SHELL.
>
> Btw - patch already sent to Linus and lkml.

Ok, I thought the problem seemed familiar, and now I see the fix in the BK 
tree.  Thanks.

Jesse

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

end of thread, other threads:[~2004-08-25  4:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-24 23:42 [PATCH] fix cc-version breakage Jesse Barnes
2004-08-24 23:48 ` Jesse Barnes
2004-08-25  4:43   ` Sam Ravnborg
2004-08-25  4:59     ` Jesse Barnes

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

all inboxes | Powered by JetHome®