gEDA-dev: Re: pcb/cygwin

Cesar Strauss cstrauss at cea.inpe.br
Sat Jan 20 16:36:30 EST 2007


Dan McMahill wrote:

> Can someone who uses cygwin and the gtk hid (not mingw or cygwin 
> compiling with -mno-cygwin) see if the latest pcb in cvs still builds 
> and works correctly for them?
> 

'make install' fails with the following error:

tar cf - pcblib-newlib | (cd //opt/geda/share/pcb && tar -xf -)
/bin/sh: line 0: cd: //opt/geda/share/pcb: No such file or directory

On Windows, "//" has a special meaning: a network folder. It is looking 
for a shared geda folder on the 'opt' machine...

The patch below solves it for me. Note that DESTDIR already contains a 
trailing slash.

Index: lib/Makefile.am
===================================================================
RCS file: /cvsroot/pcb/pcb/lib/Makefile.am,v
retrieving revision 1.16
diff -u -3 -r1.16 Makefile.am
--- lib/Makefile.am	16 Jan 2007 23:29:11 -0000	1.16
+++ lib/Makefile.am	20 Jan 2007 21:12:33 -0000
@@ -52,10 +52,10 @@


  install-data-local: ${NEWLIB}.stamp
-	tar cf - ${NEWLIB} | (cd $(DESTDIR)/$(PCBLIBDIR) && tar -xf -)
+	tar cf - ${NEWLIB} | (cd "$(DESTDIR)$(PCBLIBDIR)" && tar -xf -)

  uninstall-local:
-	rm -fr $(DESTDIR)/$(PCBLIBDIR)/${NEWLIB}
+	rm -fr "$(DESTDIR)$(PCBLIBDIR)/${NEWLIB}"

  EXTRA_DIST=	${NEWLIB} footprint.pcb




> Also when you first run pcb, do you get a message about "Share 
> installation path is..."?
> 

No, I didn't see the message.

> Thanks
> -Dan
> 
> 

Cesar



More information about the geda-dev mailing list