Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Keith Seitz <keiths@redhat.com>
To: gdb-patches@sourceware.org
Subject: [RFA] DESTDIR & "//"
Date: Fri, 19 Nov 2010 23:22:00 -0000	[thread overview]
Message-ID: <4CE705B7.6010604@redhat.com> (raw)

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

Hi,

I believe the install targets in data-directory/Makefile.in are misusing 
the DESTDIR option. They currently do "$(DESTDIR)/$(FOO_DIR)". I believe 
this should simply be "$(DESTDIR)$(FOO_DIR)".

While trying to install into "//foo" isn't a big deal on *nix, it is 
quite a different story on MinGW, which attempts to look for a server 
named foo.

Ok?

ChangeLog
2010-11-19  Keith Seitz  <keiths@redhat.com>

	* data-directory/Makefile.in (SYSCALLS_INSTALL_DIR):
	Remove extraneous '/' after $(DESTDIR).
	(PYTHON_INSTALL_DIR): Likewise.

[-- Attachment #2: DESTDIR-double-slash.patch --]
[-- Type: text/plain, Size: 925 bytes --]

Index: data-directory/Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/data-directory/Makefile.in,v
retrieving revision 1.5
diff -u -p -r1.5 Makefile.in
--- data-directory/Makefile.in	2 Nov 2010 22:44:12 -0000	1.5
+++ data-directory/Makefile.in	19 Nov 2010 22:55:04 -0000
@@ -41,7 +41,7 @@ INSTALL_DIR = $(SHELL) $(srcdir)/../../m
 GDB_DATADIR = @GDB_DATADIR@
 
 SYSCALLS_DIR = syscalls
-SYSCALLS_INSTALL_DIR = $(DESTDIR)/$(GDB_DATADIR)/$(SYSCALLS_DIR)
+SYSCALLS_INSTALL_DIR = $(DESTDIR)$(GDB_DATADIR)/$(SYSCALLS_DIR)
 SYSCALLS_FILES = \
 	gdb-syscalls.dtd \
 	ppc-linux.xml ppc64-linux.xml \
@@ -49,7 +49,7 @@ SYSCALLS_FILES = \
 	sparc-linux.xml sparc64-linux.xml
 
 PYTHON_DIR = python
-PYTHON_INSTALL_DIR = $(DESTDIR)/$(GDB_DATADIR)/$(PYTHON_DIR)
+PYTHON_INSTALL_DIR = $(DESTDIR)$(GDB_DATADIR)/$(PYTHON_DIR)
 PYTHON_FILES = \
 	gdb/__init__.py \
 	gdb/types.py \

             reply	other threads:[~2010-11-19 23:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-19 23:22 Keith Seitz [this message]
2010-11-19 23:34 ` Daniel Jacobowitz
2010-11-19 23:37   ` Keith Seitz

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=4CE705B7.6010604@redhat.com \
    --to=keiths@redhat.com \
    --cc=gdb-patches@sourceware.org \
    /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