Subject: pkg/26647: installation of pkgsrc/biology/gp fails
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <geos@epost.de>
List: pkgsrc-bugs
Date: 08/14/2004 09:27:27
>Number:         26647
>Category:       pkg
>Synopsis:       installation of  pkgsrc/biology/gp fails
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Aug 14 11:53:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Georg Schwarz
>Release:        current pkgsrc
>Organization:
>Environment:
IRIX lorenz 5.3 08031225 IP20 mips
>Description:
pkgsrc/biology/gp fails/Makefile uses -d and -O arguments for test, which is not supported on all platforms.
>How-To-Repeat:

>Fix:
--- Makefile.orig       Sat Aug 14 13:34:36 2004
+++ Makefile    Sat Aug 14 13:39:12 2004
@@ -67,16 +67,16 @@
        -cd src/ ; rm $(PROGRAMS) core
 
 install: all 
-       @if [ ! -O "$(BINDIR)" ] ; then \
-       echo "File $(BINDIR) doesn't belong to you!" ;  exit 1 ; fi 
+#      @if [ ! -O "$(BINDIR)" ] ; then \
+#      echo "File $(BINDIR) doesn't belong to you!" ;  exit 1 ; fi 
        @cd src ; cp $(PROGRAMS) $(BINDIR)
 
-       @if [ ! -O "$(MANDIR)" ] ; then \
-       echo "File $(MANDIR) doesn't belong to you!" ;  exit 1 ; fi 
+#      @if [ ! -O "$(MANDIR)" ] ; then \
+#      echo "File $(MANDIR) doesn't belong to you!" ;  exit 1 ; fi 
        @cd man1 ; cp $(MANUALS) $(MANDIR)/man1
 
-       @if [ ! -O "$(DATADIR)" ] ; then \
-       echo "File $(DATADIR) doesn't belong to you!" ;  exit 1 ; fi 
+#      @if [ ! -O "$(DATADIR)" ] ; then \
+#      echo "File $(DATADIR) doesn't belong to you!" ;  exit 1 ; fi 
        -cd $(DATADIR) ; mkdir genpak ; 
        @cd data ; cp -i $(DATAFILES) $(DATADIR)/genpak
 
@@ -99,11 +99,11 @@
                echo "$(DATADIR)/genpak/"$$i >> FILES.TXT ; done
 
 docs:
-       @if [ ! -O "$(TREE)" ] ; \
-       then echo "File $(TREE) doesn't belong to you!" ; exit 1 ; fi ; \
-       if [ ! -e $(DOCDIR) ] ; \
+#      @if [ ! -O "$(TREE)" ] ; \
+#      then echo "File $(TREE) doesn't belong to you!" ; exit 1 ; fi ; \
+       if [ ! -d $(DOCDIR) ] ; \
                then mkdir $(DOCDIR) ; fi ; \
-       if [ ! -e $(DOCDIR)/gp ] ; then \
+       if [ ! -d $(DOCDIR)/gp ] ; then \
                mkdir $(DOCDIR)/gp ; fi ; \
        cp -r html README.TXT LICENSE.TXT CHANGES.TXT Makefile INSTALL.TXT  \
                $(DOCDIR)/gp ;
@@ -110,15 +110,15 @@
 
 uninstall:
 
-       @if [ ! -O "$(BINDIR)" ] ; \
-               then echo "Directory $(BINDIR) doesn't belong to you!" ; \
-               exit 1 ; fi
+#      @if [ ! -O "$(BINDIR)" ] ; \
+#              then echo "Directory $(BINDIR) doesn't belong to you!" ; \
+#              exit 1 ; fi
        @echo Removing programs...
        @cd $(BINDIR) ; rm -f $(PROGRAMS)
 
-       @if [ ! -O "$(MANDIR)" ] ; \
-               then echo "Directory $(MANDIR) doesn't belong to you!" ;  \
-               exit 1 ; fi
+#      @if [ ! -O "$(MANDIR)" ] ; \
+#              then echo "Directory $(MANDIR) doesn't belong to you!" ;  \
+#              exit 1 ; fi
        
        @echo Removing manuals...
        @cd $(MANDIR)/man1 ; rm -f $(MANUALS) 
@@ -127,9 +127,9 @@
        @echo Are you sure you really want to remove this data? '(yes/no) '
        @read ANSWER ; if [ $ANSWER != "yes" ] ; then \
                echo OK, leaving $(DATADIR)/genpak untouched ; else \
-       if [ ! -O "$(DATADIR)" ] ; \
-               then echo "Directory $(DATADIR) doesn\'t belong to you!" ; \
-       exit 1 ; fi ; \
+#      if [ ! -O "$(DATADIR)" ] ; \
+#              then echo "Directory $(DATADIR) doesn\'t belong to you!" ; \
+#      exit 1 ; fi ; \
        cd $(DATADIR)/genpak ; rm -f $(DATAFILES) ; fi
        -cd $(DATADIR) ; rmdir genpak
        @echo

>Release-Note:
>Audit-Trail:
>Unformatted: