ports/62950: port misc/firestring is broken

Douglas K. Rand rand at meridian-enviro.com
Wed Apr 21 01:00:43 UTC 2004


The following reply was made to PR ports/62950; it has been noted by GNATS.

From: "Douglas K. Rand" <rand at meridian-enviro.com>
To: freebsd-gnats-submit at FreeBSD.org, mranner at inode.at
Cc: kris at FreeBSD.org
Subject: Re: ports/62950: port misc/firestring is broken
Date: Tue, 20 Apr 2004 19:53:46 -0500

 I have three different solutions to misc/firestring installing
 libraries into /usr/lib to offer. All three are patches to the
 Makefile from the package's source, /not/ for the port's Makefile.
 
 We use messagewall, which requires firedns, which requires firestring.
 So, if this patch helps keep firestring in the ports tree, my life
 will be a little easier. (Although I'm not quite competely sold on
 messagewall yet.)
 
 The problem line in firestring's Makefile is:
 
    LIBDIR ?= $(PREFIX)/lib
 
 and the make environment sets LIBDIR to /usr/lib. (Verify this with
 "cd /usr/ports/misc/firestring; make -n do-install".)
 
 Here are 3 different patches to the Makefile included with firestring,
 ONLY ONE should be used. (Or I guess zero if none are acceptable.  :))
 
 The first one replaces /most/ of the ?= at the top of the Makefile (I
 like this patch the best). The second patch simply removes the ?= from
 the LIBDIR line, and the third patch changes LIBDIR to XLIBDIR in the
 Makefile.
 
 
 --- Makefile	Mon Apr 19 21:25:24 2004
 +++ Makefile.orig	Mon Apr 19 21:24:51 2004
 @@ -1,10 +1,10 @@
  PREFIX ?= /usr/local
 -MANDIR = $(PREFIX)/man
 -CONFDIR = $(PREFIX)/etc
 -BINDIR = $(PREFIX)/bin
 -SBINDIR = $(PREFIX)/sbin
 -LIBDIR = $(PREFIX)/lib
 -INCLUDEDIR = $(PREFIX)/include
 +MANDIR ?= $(PREFIX)/man
 +CONFDIR ?= $(PREFIX)/etc
 +BINDIR ?= $(PREFIX)/bin
 +SBINDIR ?= $(PREFIX)/sbin
 +LIBDIR ?= $(PREFIX)/lib
 +INCLUDEDIR ?= $(PREFIX)/include
  
  all:
  	$(MAKE) binaries
 
 
 
 --- Makefile	Mon Apr 19 21:33:51 2004
 +++ Makefile.orig	Mon Apr 19 21:24:51 2004
 @@ -3,7 +3,7 @@
  CONFDIR ?= $(PREFIX)/etc
  BINDIR ?= $(PREFIX)/bin
  SBINDIR ?= $(PREFIX)/sbin
 -LIBDIR = $(PREFIX)/lib
 +LIBDIR ?= $(PREFIX)/lib
  INCLUDEDIR ?= $(PREFIX)/include
  
  all:
 
 
 
 --- Makefile	Mon Apr 19 21:34:48 2004
 +++ Makefile.orig	Mon Apr 19 21:24:51 2004
 @@ -3,7 +3,7 @@
  CONFDIR ?= $(PREFIX)/etc
  BINDIR ?= $(PREFIX)/bin
  SBINDIR ?= $(PREFIX)/sbin
 -XLIBDIR ?= $(PREFIX)/lib
 +LIBDIR ?= $(PREFIX)/lib
  INCLUDEDIR ?= $(PREFIX)/include
  
  all:
 @@ -12,7 +12,7 @@
  
  
  .c.o:
 -	gcc -O -pipe  -fPIC -DVERSION="\"0.9.9\"" -DCONFDIR="\"$(CONFDIR)\"" -DBINDIR="\"$(BINDIR)\"" -DSBINDIR="\"$(SBINDIR)\"" -DLIBDIR="\"$(XLIBDIR)\"" -DMANDIR="\"$(MANDIR)\"" -c -o $@ $<
 +	gcc -O -pipe  -fPIC -DVERSION="\"0.9.9\"" -DCONFDIR="\"$(CONFDIR)\"" -DBINDIR="\"$(BINDIR)\"" -DSBINDIR="\"$(SBINDIR)\"" -DLIBDIR="\"$(LIBDIR)\"" -DMANDIR="\"$(MANDIR)\"" -c -o $@ $<
  
  clean:
  	$(MAKE) clean_binaries
 @@ -104,7 +104,7 @@
   /usr/include/errno.h /usr/include/limits.h \
   /usr/include/machine/limits.h /usr/include/sys/syslimits.h \
   /usr/include/time.h firemake.h /usr/include/math.h firestring.h
 -	gcc -O -pipe  -fPIC -DVERSION="\"0.9.9\"" -DCONFDIR="\"$(CONFDIR)\"" -DBINDIR="\"$(BINDIR)\"" -DSBINDIR="\"$(SBINDIR)\"" -DLIBDIR="\"$(XLIBDIR)\"" -DMANDIR="\"$(MANDIR)\"" -c -o firestring.o firestring.c
 +	gcc -O -pipe  -fPIC -DVERSION="\"0.9.9\"" -DCONFDIR="\"$(CONFDIR)\"" -DBINDIR="\"$(BINDIR)\"" -DSBINDIR="\"$(SBINDIR)\"" -DLIBDIR="\"$(LIBDIR)\"" -DMANDIR="\"$(MANDIR)\"" -c -o firestring.o firestring.c
  
  tester.o: tester.c /usr/include/unistd.h /usr/include/sys/cdefs.h \
   /usr/include/sys/types.h /usr/include/sys/inttypes.h \
 @@ -113,7 +113,7 @@
   /usr/include/sys/_posix.h /usr/include/stdio.h /usr/include/time.h \
   firemake.h /usr/include/math.h firestring.h /usr/include/stdlib.h \
   /usr/include/stdarg.h /usr/include/string.h
 -	gcc -O -pipe  -fPIC -DVERSION="\"0.9.9\"" -DCONFDIR="\"$(CONFDIR)\"" -DBINDIR="\"$(BINDIR)\"" -DSBINDIR="\"$(SBINDIR)\"" -DLIBDIR="\"$(XLIBDIR)\"" -DMANDIR="\"$(MANDIR)\"" -c -o tester.o tester.c
 +	gcc -O -pipe  -fPIC -DVERSION="\"0.9.9\"" -DCONFDIR="\"$(CONFDIR)\"" -DBINDIR="\"$(BINDIR)\"" -DSBINDIR="\"$(SBINDIR)\"" -DLIBDIR="\"$(LIBDIR)\"" -DMANDIR="\"$(MANDIR)\"" -c -o tester.o tester.c
  
  binaries:  tester
  
 @@ -143,10 +143,10 @@
  libraries:  libfirestring
  
  install_libraries:  libfirestring
 -	./copy.sh libfirestring.a $(XLIBDIR) root wheel 0755
 -	./copy.sh libfirestring.so.0.9.9 $(XLIBDIR) root wheel 0755
 -	ln -sf libfirestring.so.0.9.9 $(XLIBDIR)/libfirestring.so.0.9
 -	ln -sf libfirestring.so.0.9.9 $(XLIBDIR)/libfirestring.so
 +	./copy.sh libfirestring.a $(LIBDIR) root wheel 0755
 +	./copy.sh libfirestring.so.0.9.9 $(LIBDIR) root wheel 0755
 +	ln -sf libfirestring.so.0.9.9 $(LIBDIR)/libfirestring.so.0.9
 +	ln -sf libfirestring.so.0.9.9 $(LIBDIR)/libfirestring.so
  
  clean_libraries:
  	rm -f  libfirestring.a libfirestring.so.0.9.9  firestring.o



More information about the freebsd-ports-bugs mailing list