delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/10/04/20:19:33

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
References: <4703C960 DOT EF841594 AT dessent DOT net> <5874EC47F1A04F008E478A90D4F1CE27 AT kingmark>
Subject: RE: Problems compiling grep and friends
Date: Fri, 5 Oct 2007 01:19:06 +0100
Message-ID: <01a001c806e5$57dda4c0$2e08a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <5874EC47F1A04F008E478A90D4F1CE27@kingmark>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

------=_NextPart_000_01A1_01C806ED.B9A20CC0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

On 04 October 2007 22:13, Siegfried Heintze wrote:

> Siegfried wrote:
> OK, I tried that. See below for the results. Looks like we have the same
> problem.


> mkdir //usr
> mkdir: cannot create directory `//usr': No such host or network path
> mkdir //usr/local
> mkdir: cannot create directory `//usr/local': No such host or network path
> mkdir //usr/local/share
> mkdir: cannot create directory `//usr/local/share': No such host or network
> path
> make[1]: *** [install-data-yes] Error 1
> make[1]: Leaving directory `/usr/src/grep-2.5.1a-4/po'
> make: *** [install-recursive] Error 1


  I whipped this up against grep-2.5.1a-3.  It might just apply cleanly to the
version you're working with; make sure it gets all the "$(DESTDIR)/" instances
and changes them to "$DDSLASH".  It WFM:

 '"  '"'---'
/usr/src/grep-2.5.1a-3 $ cd po
@_______. .
(       /"\
 ||--||(___)
 '"  '"'---'
/usr/src/grep-2.5.1a-3/po $ make install 2>&1 | tee inst.log
if test -n "" ; then \
  DDSLASH="/" ; \
else \
  DDSLASH="" ; \
fi
if test -r ".././mkinstalldirs"; then \
  .././mkinstalldirs $DDSLASH/usr/local/share; \
else \
  /bin/sh ../mkinstalldirs $DDSLASH/usr/local/share; \
fi
mkdir /usr/local/share/locale/cs
mkdir /usr/local/share/locale/cs/LC_MESSAGES
installing cs.gmo as /usr/local/share/locale/cs/LC_MESSAGES/grep.mo
installing de.gmo as /usr/local/share/locale/de/LC_MESSAGES/grep.mo
installing el.gmo as /usr/local/share/locale/el/LC_MESSAGES/grep.mo
mkdir /usr/local/share/locale/eo
mkdir /usr/local/share/locale/eo/LC_MESSAGES
installing eo.gmo as /usr/local/share/locale/eo/LC_MESSAGES/grep.mo
installing es.gmo as /usr/local/share/locale/es/LC_MESSAGES/grep.mo
mkdir /usr/local/share/locale/et
mkdir /usr/local/share/locale/et/LC_MESSAGES
installing et.gmo as /usr/local/share/locale/et/LC_MESSAGES/grep.mo
installing fr.gmo as /usr/local/share/locale/fr/LC_MESSAGES/grep.mo
mkdir /usr/local/share/locale/gl
mkdir /usr/local/share/locale/gl/LC_MESSAGES
installing gl.gmo as /usr/local/share/locale/gl/LC_MESSAGES/grep.mo
mkdir /usr/local/share/locale/hr
mkdir /usr/local/share/locale/hr/LC_MESSAGES
installing hr.gmo as /usr/local/share/locale/hr/LC_MESSAGES/grep.mo
installing id.gmo as /usr/local/share/locale/id/LC_MESSAGES/grep.mo
installing it.gmo as /usr/local/share/locale/it/LC_MESSAGES/grep.mo
installing ja.gmo as /usr/local/share/locale/ja/LC_MESSAGES/grep.mo
installing ko.gmo as /usr/local/share/locale/ko/LC_MESSAGES/grep.mo
installing nl.gmo as /usr/local/share/locale/nl/LC_MESSAGES/grep.mo
mkdir /usr/local/share/locale/no
mkdir /usr/local/share/locale/no/LC_MESSAGES
installing no.gmo as /usr/local/share/locale/no/LC_MESSAGES/grep.mo
installing pl.gmo as /usr/local/share/locale/pl/LC_MESSAGES/grep.mo
installing pt_BR.gmo as /usr/local/share/locale/pt_BR/LC_MESSAGES/grep.mo
installing ru.gmo as /usr/local/share/locale/ru/LC_MESSAGES/grep.mo
mkdir /usr/local/share/locale/sl
mkdir /usr/local/share/locale/sl/LC_MESSAGES
installing sl.gmo as /usr/local/share/locale/sl/LC_MESSAGES/grep.mo
installing sv.gmo as /usr/local/share/locale/sv/LC_MESSAGES/grep.mo
if test "grep" = "gettext"; then \
  if test -r ".././mkinstalldirs"; then \
    .././mkinstalldirs $DDSLASH/usr/local/share/gettext/po; \
  else \
    /bin/sh ../mkinstalldirs $DDSLASH/usr/local/share/gettext/po; \
  fi; \
  /usr/bin/install -c -m 644 ./Makefile.in.in \
                  $DDSLASH/usr/local/share/gettext/po/Makefile.in.in; \
else \
  : ; \
fi


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....

------=_NextPart_000_01A1_01C806ED.B9A20CC0
Content-Type: text/plain;
	name="diffs.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="diffs.txt"

diff -pu po.orig/Makefile.in.in po/Makefile.in.in
--- po.orig/Makefile.in.in	2002-03-26 14:38:46.001000000 +0000
+++ po/Makefile.in.in	2007-10-04 22:31:11.260792100 +0100
@@ -110,10 +110,15 @@ install-exec:
 install-data: install-data- AT USE_NLS@
 install-data-no: all
 install-data-yes: all
+	if test -n "$(DESTDIR)" ; then \
+	  DDSLASH=3D"$(DESTDIR)/" ; \
+	else \
+	  DDSLASH=3D"" ; \
+	fi
 	if test -r "$(MKINSTALLDIRS)"; then \
-	  $(MKINSTALLDIRS) $(DESTDIR)/$(datadir); \
+	  $(MKINSTALLDIRS) $$DDSLASH$(datadir); \
 	else \
-	  $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)/$(datadir); \
+	  $(SHELL) $(top_srcdir)/mkinstalldirs $$DDSLASH$(datadir); \
 	fi
 	@catalogs=3D'$(CATALOGS)'; \
 	for cat in $$catalogs; do \
@@ -125,27 +130,27 @@ install-data-yes: all
 	  lang=3D`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
 	  dir=3D$$destdir/$$lang/LC_MESSAGES; \
 	  if test -r "$(MKINSTALLDIRS)"; then \
-	    $(MKINSTALLDIRS) $(DESTDIR)/$$dir; \
+	    $(MKINSTALLDIRS) $$DDSLASH$$dir; \
 	  else \
-	    $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)/$$dir; \
+	    $(SHELL) $(top_srcdir)/mkinstalldirs $$DDSLASH$$dir; \
 	  fi; \
 	  if test -r $$cat; then \
-	    $(INSTALL_DATA) $$cat $(DESTDIR)/$$dir/$(PACKAGE)$(INSTOBJEXT); \
-	    echo "installing $$cat as $(DESTDIR)/$$dir/$(PACKAGE)$(INSTOBJEXT)"; \
+	    $(INSTALL_DATA) $$cat $$DDSLASH$$dir/$(PACKAGE)$(INSTOBJEXT); \
+	    echo "installing $$cat as $$DDSLASH$$dir/$(PACKAGE)$(INSTOBJEXT)"; \
 	  else \
-	    $(INSTALL_DATA) $(srcdir)/$$cat $(DESTDIR)/$$dir/$(PACKAGE)$(INSTOBJE=
XT); \
+	    $(INSTALL_DATA) $(srcdir)/$$cat $$DDSLASH$$dir/$(PACKAGE)$(INSTOBJEXT=
); \
 	    echo "installing $(srcdir)/$$cat as" \
 		 "$$dir/$(PACKAGE)$(INSTOBJEXT)"; \
 	  fi; \
 	  if test -r $$cat.m; then \
-	    $(INSTALL_DATA) $$cat.m $(DESTDIR)/$$dir/$(PACKAGE)$(INSTOBJEXT).m; \
-	    echo "installing $$cat.m as $(DESTDIR)/$$dir/$(PACKAGE)$(INSTOBJEXT).=
m"; \
+	    $(INSTALL_DATA) $$cat.m $$DDSLASH$$dir/$(PACKAGE)$(INSTOBJEXT).m; \
+	    echo "installing $$cat.m as $$DDSLASH$$dir/$(PACKAGE)$(INSTOBJEXT).m"=
; \
 	  else \
 	    if test -r $(srcdir)/$$cat.m ; then \
 	      $(INSTALL_DATA) $(srcdir)/$$cat.m \
-		$(DESTDIR)/$$dir/$(PACKAGE)$(INSTOBJEXT).m; \
+		$$DDSLASH$$dir/$(PACKAGE)$(INSTOBJEXT).m; \
 	      echo "installing $(srcdir)/$$cat as" \
-		   "$(DESTDIR)/$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
+		   "$$DDSLASH$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
 	    else \
 	      true; \
 	    fi; \
@@ -153,12 +158,12 @@ install-data-yes: all
 	done
 	if test "$(PACKAGE)" =3D "gettext"; then \
 	  if test -r "$(MKINSTALLDIRS)"; then \
-	    $(MKINSTALLDIRS) $(DESTDIR)/$(gettextsrcdir); \
+	    $(MKINSTALLDIRS) $$DDSLASH$(gettextsrcdir); \
 	  else \
-	    $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)/$(gettextsrcdir); \
+	    $(SHELL) $(top_srcdir)/mkinstalldirs $$DDSLASH$(gettextsrcdir); \
 	  fi; \
 	  $(INSTALL_DATA) $(srcdir)/Makefile.in.in \
-			  $(DESTDIR)/$(gettextsrcdir)/Makefile.in.in; \
+			  $$DDSLASH$(gettextsrcdir)/Makefile.in.in; \
 	else \
 	  : ; \
 	fi


------=_NextPart_000_01A1_01C806ED.B9A20CC0
Content-Type: text/plain; charset=us-ascii

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
------=_NextPart_000_01A1_01C806ED.B9A20CC0--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019