Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* PATCH: PR gdb/10649: GDB_DATADIR_PATH is used, but never defined
@ 2009-09-16 21:52 H.J. Lu
  2009-10-02  2:12 ` Doug Evans
  2009-10-02  2:38 ` Sérgio Durigan Júnior
  0 siblings, 2 replies; 4+ messages in thread
From: H.J. Lu @ 2009-09-16 21:52 UTC (permalink / raw)
  To: GDB

Hi,

I am checking in this patch as an obvious fix.

Thanks.


H.J.
---
2009-09-16  H.J. Lu  <hongjiu.lu@intel.com>

	PR gdb/10649
	* Makefile.in (GDB_DATADIR_PATH): Renamed to ...
	(GDB_DATADIR): This.
	(xml-syscall-install): Updated.

--- ./Makefile.in.foo	2009-09-16 14:07:50.000000000 -0700
+++ ./Makefile.in	2009-09-16 14:47:17.000000000 -0700
@@ -167,7 +167,7 @@ TARGET_SYSTEM_ROOT = @TARGET_SYSTEM_ROOT
 TARGET_SYSTEM_ROOT_DEFINE = @TARGET_SYSTEM_ROOT_DEFINE@
 
 # Did the user give us a --with-gdb-datadir option?
-GDB_DATADIR_PATH = @GDB_DATADIR_PATH@
+GDB_DATADIR = @GDB_DATADIR@
 
 # Helper code from gnulib.
 LIBGNU = gnulib/libgnu.a
@@ -899,13 +899,13 @@ xml-syscall-copy:
 .PHONY: xml-syscall-install
 xml-syscall-install:
 	$(SHELL) $(srcdir)/../mkinstalldirs \
-		$(DESTDIR)$(GDB_DATADIR_PATH)/$(XML_SYSCALLS_DIR) ; \
+		$(DESTDIR)$(GDB_DATADIR)/$(XML_SYSCALLS_DIR) ; \
 	list='$(XML_SYSCALLS_FILES)' ; \
 	for file in $$list ; do \
 	  f=$(srcdir)/$(XML_SYSCALLS_DIR)/$$file ; \
 	  if test -f $$f ; then \
 	    $(INSTALL_DATA) $$f \
-	    	$(DESTDIR)$(GDB_DATADIR_PATH)/$(XML_SYSCALLS_DIR) ; \
+	    	$(DESTDIR)$(GDB_DATADIR)/$(XML_SYSCALLS_DIR) ; \
 	  fi ; \
 	done ;
 


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

* Re: PATCH: PR gdb/10649: GDB_DATADIR_PATH is used, but never defined
  2009-09-16 21:52 PATCH: PR gdb/10649: GDB_DATADIR_PATH is used, but never defined H.J. Lu
@ 2009-10-02  2:12 ` Doug Evans
  2009-10-02 22:08   ` Joel Brobecker
  2009-10-02  2:38 ` Sérgio Durigan Júnior
  1 sibling, 1 reply; 4+ messages in thread
From: Doug Evans @ 2009-10-02  2:12 UTC (permalink / raw)
  To: Joel Brobecker; +Cc: GDB, H.J. Lu

On Wed, Sep 16, 2009 at 2:52 PM, H.J. Lu <hongjiu.lu@intel.com> wrote:
> Hi,
>
> I am checking in this patch as an obvious fix.
>
> Thanks.
>
>
> H.J.
> ---
> 2009-09-16  H.J. Lu  <hongjiu.lu@intel.com>
>
>        PR gdb/10649
>        * Makefile.in (GDB_DATADIR_PATH): Renamed to ...
>        (GDB_DATADIR): This.
>        (xml-syscall-install): Updated.
>
> --- ./Makefile.in.foo   2009-09-16 14:07:50.000000000 -0700
> +++ ./Makefile.in       2009-09-16 14:47:17.000000000 -0700
> @@ -167,7 +167,7 @@ TARGET_SYSTEM_ROOT = @TARGET_SYSTEM_ROOT
>  TARGET_SYSTEM_ROOT_DEFINE = @TARGET_SYSTEM_ROOT_DEFINE@
>
>  # Did the user give us a --with-gdb-datadir option?
> -GDB_DATADIR_PATH = @GDB_DATADIR_PATH@
> +GDB_DATADIR = @GDB_DATADIR@
>
>  # Helper code from gnulib.
>  LIBGNU = gnulib/libgnu.a
> @@ -899,13 +899,13 @@ xml-syscall-copy:
>  .PHONY: xml-syscall-install
>  xml-syscall-install:
>        $(SHELL) $(srcdir)/../mkinstalldirs \
> -               $(DESTDIR)$(GDB_DATADIR_PATH)/$(XML_SYSCALLS_DIR) ; \
> +               $(DESTDIR)$(GDB_DATADIR)/$(XML_SYSCALLS_DIR) ; \
>        list='$(XML_SYSCALLS_FILES)' ; \
>        for file in $$list ; do \
>          f=$(srcdir)/$(XML_SYSCALLS_DIR)/$$file ; \
>          if test -f $$f ; then \
>            $(INSTALL_DATA) $$f \
> -               $(DESTDIR)$(GDB_DATADIR_PATH)/$(XML_SYSCALLS_DIR) ; \
> +               $(DESTDIR)$(GDB_DATADIR)/$(XML_SYSCALLS_DIR) ; \
>          fi ; \
>        done ;

Joel, I think it's critical that this goes into the release branch.

Otherwise, "make install" creates a directory called
@GDB_DATADIR_PATH@ in the install tree.


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

* Re: PATCH: PR gdb/10649: GDB_DATADIR_PATH is used, but never defined
  2009-09-16 21:52 PATCH: PR gdb/10649: GDB_DATADIR_PATH is used, but never defined H.J. Lu
  2009-10-02  2:12 ` Doug Evans
@ 2009-10-02  2:38 ` Sérgio Durigan Júnior
  1 sibling, 0 replies; 4+ messages in thread
From: Sérgio Durigan Júnior @ 2009-10-02  2:38 UTC (permalink / raw)
  To: gdb-patches, H.J. Lu

Hi Hui,

On Wednesday 16 September 2009, H.J. Lu wrote:
> Hi,
> 
> I am checking in this patch as an obvious fix.

Thank you very much for catching this.

-- 
Sérgio Durigan Júnior
Linux on Power Toolchain - Software Engineer
Linux Technology Center - LTC
IBM Brazil


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

* Re: PATCH: PR gdb/10649: GDB_DATADIR_PATH is used, but never  defined
  2009-10-02  2:12 ` Doug Evans
@ 2009-10-02 22:08   ` Joel Brobecker
  0 siblings, 0 replies; 4+ messages in thread
From: Joel Brobecker @ 2009-10-02 22:08 UTC (permalink / raw)
  To: Doug Evans; +Cc: GDB, H.J. Lu

> >     PR gdb/10649
> >     * Makefile.in (GDB_DATADIR_PATH): Renamed to ...
> >     (GDB_DATADIR): This.
> >     (xml-syscall-install): Updated.
>
> Joel, I think it's critical that this goes into the release branch.
> 
> Otherwise, "make install" creates a directory called
> @GDB_DATADIR_PATH@ in the install tree.

Patch installed on the branch. (Doug, I trust your judgement, so if you
think a patch should be applied to the branch, please just do so and
explain why - If I happen to disagree, we it's easy to revert it).

-- 
Joel


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

end of thread, other threads:[~2009-10-02 22:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-16 21:52 PATCH: PR gdb/10649: GDB_DATADIR_PATH is used, but never defined H.J. Lu
2009-10-02  2:12 ` Doug Evans
2009-10-02 22:08   ` Joel Brobecker
2009-10-02  2:38 ` Sérgio Durigan Júnior

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