Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* PATCH: Use $(SHELL) when running mkinstalldirs
@ 2003-05-14  6:23 Ian Lance Taylor
  2003-05-14 12:51 ` Andrew Cagney
  0 siblings, 1 reply; 5+ messages in thread
From: Ian Lance Taylor @ 2003-05-14  6:23 UTC (permalink / raw)
  To: gdb-patches

A GNU Makefile should always use $(SHELL) when running a shell
script.  The gdb Makefile.in fails to do this when running
mkinstalldirs in the install-only target, although it does do it in
other places.

Here is a patch.

Ian

2003-05-13  Ian Lance Taylor  <ian@airs.com>

	* Makefile.in (install-only): Use $(SHELL) when running
	mkinstalldirs.


Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.375
diff -u -r1.375 Makefile.in
--- Makefile.in	12 May 2003 00:26:18 -0000	1.375
+++ Makefile.in	14 May 2003 06:14:21 -0000
@@ -935,10 +935,10 @@
 		else \
 		  true ; \
 		fi ; \
-		$(srcdir)/../mkinstalldirs $(bindir) ; \
+		$(SHELL) $(srcdir)/../mkinstalldirs $(bindir) ; \
 		$(INSTALL_PROGRAM) gdb$(EXEEXT) \
 			$(DESTDIR)$(bindir)/$$transformed_name$(EXEEXT) ; \
-		$(srcdir)/../mkinstalldirs \
+		$(SHELL) $(srcdir)/../mkinstalldirs \
 			$(DESTDIR)$(man1dir) ; \
 		$(INSTALL_DATA) $(srcdir)/gdb.1 \
 			$(DESTDIR)$(man1dir)/$$transformed_name.1


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

* Re: PATCH: Use $(SHELL) when running mkinstalldirs
  2003-05-14  6:23 PATCH: Use $(SHELL) when running mkinstalldirs Ian Lance Taylor
@ 2003-05-14 12:51 ` Andrew Cagney
  2003-05-14 16:13   ` Ian Lance Taylor
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Cagney @ 2003-05-14 12:51 UTC (permalink / raw)
  To: Ian Lance Taylor; +Cc: gdb-patches

I"m guessing that this is an [RFA], rather than a [commit].  Yes, ok.

BTW, Makefile and configure go under the loosely defined comment ``do 
you feel lucky?''.  There is no one explicitly responsible for this 
section of GDB.  Instead it's left to peoples judgment (typically the 
only way to test this is to commit it) - post one day, commit one or few 
later (or earlier if its pretty obvious :-).

Andrew



> A GNU Makefile should always use $(SHELL) when running a shell
> script.  The gdb Makefile.in fails to do this when running
> mkinstalldirs in the install-only target, although it does do it in
> other places.
> 
> Here is a patch.
> 
> Ian
> 
> 2003-05-13  Ian Lance Taylor  <ian@airs.com>
> 
> 	* Makefile.in (install-only): Use $(SHELL) when running
> 	mkinstalldirs.
> 
> 
> Index: Makefile.in
> ===================================================================
> RCS file: /cvs/src/src/gdb/Makefile.in,v
> retrieving revision 1.375
> diff -u -r1.375 Makefile.in
> --- Makefile.in	12 May 2003 00:26:18 -0000	1.375
> +++ Makefile.in	14 May 2003 06:14:21 -0000
> @@ -935,10 +935,10 @@
>  		else \
>  		  true ; \
>  		fi ; \
> -		$(srcdir)/../mkinstalldirs $(bindir) ; \
> +		$(SHELL) $(srcdir)/../mkinstalldirs $(bindir) ; \
>  		$(INSTALL_PROGRAM) gdb$(EXEEXT) \
>  			$(DESTDIR)$(bindir)/$$transformed_name$(EXEEXT) ; \
> -		$(srcdir)/../mkinstalldirs \
> +		$(SHELL) $(srcdir)/../mkinstalldirs \
>  			$(DESTDIR)$(man1dir) ; \
>  		$(INSTALL_DATA) $(srcdir)/gdb.1 \
>  			$(DESTDIR)$(man1dir)/$$transformed_name.1
> 



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

* Re: PATCH: Use $(SHELL) when running mkinstalldirs
  2003-05-14 12:51 ` Andrew Cagney
@ 2003-05-14 16:13   ` Ian Lance Taylor
  2003-05-15 17:12     ` Andrew Cagney
  2003-05-15 19:59     ` David Carlton
  0 siblings, 2 replies; 5+ messages in thread
From: Ian Lance Taylor @ 2003-05-14 16:13 UTC (permalink / raw)
  To: Andrew Cagney; +Cc: gdb-patches

Andrew Cagney <ac131313@redhat.com> writes:

> I"m guessing that this is an [RFA], rather than a [commit].  Yes, ok.

Thanks.

I missed the Subject line conventions somehow.  Are they written down
anywhere?

Ian


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

* Re: PATCH: Use $(SHELL) when running mkinstalldirs
  2003-05-14 16:13   ` Ian Lance Taylor
@ 2003-05-15 17:12     ` Andrew Cagney
  2003-05-15 19:59     ` David Carlton
  1 sibling, 0 replies; 5+ messages in thread
From: Andrew Cagney @ 2003-05-15 17:12 UTC (permalink / raw)
  To: Ian Lance Taylor; +Cc: gdb-patches

> Andrew Cagney <ac131313@redhat.com> writes:
> 
> 
>> I"m guessing that this is an [RFA], rather than a [commit].  Yes, ok.
> 
> 
> Thanks.
> 
> I missed the Subject line conventions somehow.  Are they written down
> anywhere?

No.  But then people don't have to follow them.  It's just that 
``patch'' has been found to be too ambigious :-)

Andrew



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

* Re: PATCH: Use $(SHELL) when running mkinstalldirs
  2003-05-14 16:13   ` Ian Lance Taylor
  2003-05-15 17:12     ` Andrew Cagney
@ 2003-05-15 19:59     ` David Carlton
  1 sibling, 0 replies; 5+ messages in thread
From: David Carlton @ 2003-05-15 19:59 UTC (permalink / raw)
  To: Ian Lance Taylor; +Cc: Andrew Cagney, gdb-patches

On 14 May 2003 09:12:58 -0700, Ian Lance Taylor <ian@airs.com> said:

> I missed the Subject line conventions somehow.  Are they written
> down anywhere?

Hmm, we should put this in gdbint.texi or in MAINTAINERS or
somewhere.  Anyways:

RFA: request for approval.  Always include this if your patch needs
approval, and Cc: the appropriate maintainer(s).

RFC: request for comments.  This is typically used when you have some
big plan that you want comments on before you generate detailed
patches.  (Or when you have patches that work but aren't as elegant as
you'd like.)

PATCH: This is typically used for patches that don't require approval,
either because the submitter can approve them or because they're
simple enough to qualify as obvious.

If patches are for the testsuite or for the documentation, people
frequently indicate that as well: e.g. [rfa/testsuite].  Also,
sometimes people say [patch rfc] for patches that they can approve
themselves but that they wouldn't mind another set of eyes to look
over.  And if your patch is for a branch instead of mainline, then you
include the name of the branch instead of or in addition to "patch".

Andrew has started to use "commit" for patches that are being
committed immediately.  Personally, I usually post my (non-branch)
patches a day or two before committing them, and I leave the same
subject line when I post a message saying that I've actually commited
the patch, so I don't use "commit".

David Carlton
carlton@math.stanford.edu


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

end of thread, other threads:[~2003-05-15 19:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-14  6:23 PATCH: Use $(SHELL) when running mkinstalldirs Ian Lance Taylor
2003-05-14 12:51 ` Andrew Cagney
2003-05-14 16:13   ` Ian Lance Taylor
2003-05-15 17:12     ` Andrew Cagney
2003-05-15 19:59     ` David Carlton

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