[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[leafnode-list] [FIX] 1.9.9 not installing symbols



Note: this patch will me mirrored at
ftp://krusty.e-technik.uni-dortmund.de/pub/people/ma/ 

Apply the following patch before doing `sh ./configure'. It will create
an additional target, `make install-strip', which will install the
software with symbols stripped, while the behaviour of `make install' is
changed so that symbols are kept in the installed software as
recommended in the GNU make Makefile guidelines. See `info make' for
details. See CHANGES (readable below) for other changes. 

This patch is against 1.9.9. To apply, cd to your leafnode-1.9.9
directory, and send this mail into `patch -p0' (either by pipe or stdin
redirection). 

Assume you save this mail to /tmp/ln199ma1.diff, then do:

cd /path/to/leafnode-1.9.9 && \
patch -p0 </tmp/ln199ma1.diff && \
rm /tmp/ln199ma1.diff

diff -Nur leafnode-1.9.9/CHANGES leafnode-1.9.9-ma1/CHANGES
--- leafnode-1.9.9/CHANGES	Tue Jan  4 15:05:30 2000
+++ leafnode-1.9.9-ma1/CHANGES	Wed Jan 12 13:33:18 2000
@@ -1,3 +1,13 @@
+History of 1.9.9-ma1 -- changes since 1.9.9:
+
+Makefile: (Matthias Andree <ma@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>)
+- the normal "install" target will NOT strip symbols from software any
+  more.
+- has a new target, "install-strip" that will install the software with 
+  symbols stripped
+- now has a target "distclean" (currently an alias for realclean)
+
+
 History of 1.9.9 -- changes since 1.9.8:
 
 Miscellaneous:
diff -Nur leafnode-1.9.9/INSTALL leafnode-1.9.9-ma1/INSTALL
--- leafnode-1.9.9/INSTALL	Tue Jan  4 15:05:30 2000
+++ leafnode-1.9.9-ma1/INSTALL	Wed Jan 12 13:28:58 2000
@@ -25,6 +25,17 @@
 4. Type
 	make install
 
+   Optional: if you are sure the software works for you and you are
+   short of disk space, you may choose to type
+   
+	make install-strip
+
+   instead. This will install the software with symbol information
+   stripped, which means that you can no longer get reasonable
+   information from gdb backtraces and other debuggers in case your
+   software crashes. You need to keep symbols (make install) in order to
+   be able to debug. 
+
 5. If you are updating leafnode from a version before 1.9.3 (including
    all 1.9.3 beta versions before 1.9.3b5), "make update". This will call
    the update.sh shell script provided with leafnode. Your groupinfo file
diff -Nur leafnode-1.9.9/Makefile.in leafnode-1.9.9-ma1/Makefile.in
--- leafnode-1.9.9/Makefile.in	Tue Jan  4 15:05:30 2000
+++ leafnode-1.9.9-ma1/Makefile.in	Wed Jan 12 13:32:55 2000
@@ -1,7 +1,7 @@
 # -*- makefile -*-
 # $Id: Makefile.in,v 1.14 1999/02/23 19:06:21 krasel Exp $
 
-VERSION = 1.9.9
+VERSION = 1.9.9-ma1
 
 srcdir = @srcdir@
 VPATH = @srcdir@
@@ -18,7 +18,7 @@
 
 # Flags
 DEBUG  = -g
-STRIP  = -s
+STRIP  = 
 CFLAGS = -I. @DEFS@ @GCC_FLAGS@ $(DEBUG)
 LIBS   = @LIBS@
 
@@ -106,6 +106,8 @@
 	@rm -f config.status config.cache config.log
 	@cd pcre && $(MAKE) $(MFLAGS) -$(MAKEFLAGS) clean
 
+distclean: realclean
+
 realclean: clean
 	@rm -f config.h Makefile pcre/Makefile *.rej *.orig
 
@@ -122,6 +124,9 @@
 		-DLOCKFILE=\"$(LOCKFILE)\" \
 		-DVERSION=\"$(VERSION)\" $<
 
+install-strip: 
+	$(MAKE) $(MFLAGS) -$(MAKEFLAGS) install STRIP=-s
+
 install: liblnutil.a nntpd fetchnews texpire checkgroups applyfilter newsq
 	$(INSTALL) -d -o root -g 0 -m 755 $(INSTALLROOT)$(MANDIR)/man1
 	$(INSTALL) -d -o root -g 0 -m 755 $(INSTALLROOT)$(MANDIR)/man7
@@ -191,7 +196,7 @@
 	-rm $(MANDIR)/man1/newsq.1
 	@echo Edit /etc/inetd.conf to remove $(BINDIR)/leafnode and restart inetd
 
-dist:	realclean
+dist:	distclean
 	autoheader
 	autoconf
 	mkdir -p leafnode-$(VERSION)


-- 
Matthias Andree

Hi! I'm the infamous .signature virus!
Copy me into your ~/.signature to help me spread!

-- 
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list