Subject: pkg/28775: mail/oe2mbx installation problems
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <georg.schwarz@freenet.de>
List: pkgsrc-bugs
Date: 12/24/2004 16:54:00
>Number: 28775
>Category: pkg
>Synopsis: mail/oe2mbx installation problems
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Dec 24 16:54:00 +0000 2004
>Originator: Georg Schwarz
>Release: current pkgsrc
>Organization:
>Environment:
IRIX lorenz 5.3 08031225 IP20 mips
>Description:
mail/oe2mbx/makefile uses test -e, which is not supported on some platforms.
Moreover, it assumes a BSD compatible install.
>How-To-Repeat:
>Fix:
--- makefile.orig1 2004-12-24 17:26:39.000000000 +0100
+++ makefile 2004-12-24 17:36:07.000000000 +0100
@@ -15,8 +15,8 @@
lib/liboe.o : src/liboe.c
cc -O2 -c src/liboe.c -o lib/liboe.o
install :
- test -e bin/* && install bin/* $(BINDIR) && echo oe2mbx binary installed || echo oe2mbx binary not prepared
- test -e lib/*.so && install lib/*.so $(LIBDIR) && install src/*.h $(INCLUDEDIR) && echo liboe library installed || echo liboe library not prepared
+ test -r bin/* && $(INSTALL_PROGRAM) bin/* $(BINDIR) && echo oe2mbx binary installed || echo oe2mbx binary not prepared
+ test -r lib/*.so && $(INSTALL_LIB) lib/*.so $(LIBDIR) && $(INSTALL_DATA) src/*.h $(INCLUDEDIR) && echo liboe library installed || echo liboe library not prepared
clean :
- test -e bin/* && rm -f bin/* || test .
- test -e lib/* && rm -f lib/* || test .
+ test -r bin/* && rm -f bin/* || test .
+ test -r lib/* && rm -f lib/* || test .
and add to Makefile:
MAKE_ENV+= INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
INSTALL_LIB="${INSTALL_LIB}" \
INSTALL_DATA="${INSTALL_DATA}"