Subject: pkg/6273: Link problems in rpm package
To: None <gnats-bugs@gnats.netbsd.org>
From: Gary D. Duzan <gary@wheel.tiac.net>
List: netbsd-bugs
Date: 10/11/1998 11:00:46
>Number:         6273
>Category:       pkg
>Synopsis:       Link problems in rpm package
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 11 08:05:00 1998
>Last-Modified:
>Originator:     Gary D. Duzan
>Organization:
	As little as possible
>Release:        Sat Oct 10
>Environment:
	
System: NetBSD wheel.tiac.net 1.3H NetBSD 1.3H (WHEEL) #0: Sat Oct 10 16:12:38 EDT 1998 gary@wheel.tiac.net:/disk0/usr/local/build/NetBSD/src/sys/arch/i386/compile/WHEEL i386


>Description:
	Stuff in the tools subdirectory fails to link.
>How-To-Repeat:
	cd /usr/pkgsrc/misc/rpm ; make
>Fix:
	Here is a new patch-af that fixes the problem. There doesn't
	appear to be a macro that expands to "-lrpm":


--- tools/Makefile.in.orig	Wed May 27 10:49:44 1998
+++ tools/Makefile.in	Sun Oct 11 10:40:27 1998
@@ -2,10 +2,10 @@
 VPATH = @srcdir@
 top_srcdir = @top_srcdir@
 
-include ../Makefile.inc
+.include "../Makefile.inc"
 
 PROGS = rpmlead rpmheader rpmarchive rpmsignature dump dumpdb
-LOADLIBES = @LIBS@ @LIBMISC@ @LIBINTL@
+LDLIBS = @LIBS@ -lrpm @LIBMISC@ @LIBINTL@
 
 TARGET=everything
 
@@ -26,6 +26,6 @@
 
 $(PROGS): ../lib/librpm.a
 
-ifeq (.depend,$(wildcard .depend))
-include .depend
-endif
+.if exists(.depend)
+.include ".depend"
+.endif
>Audit-Trail:
>Unformatted: