Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Sep 2001 10:34:24 -0400 (EDT)
From:      sit@mit.edu
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/30417: [PATCH] arla port installs possibly conflicting libutil.a and header files
Message-ID:  <200109071434.f87EYO136272@paget.lcs.mit.edu>

next in thread | raw e-mail | index | archive | help

>Number:         30417
>Category:       ports
>Synopsis:       [PATCH] arla port installs possibly conflicting libutil.a and header files
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 07 07:40:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Emil Sit
>Release:        FreeBSD 4.3-RELEASE i386
>Organization:
MIT
>Environment:
System: FreeBSD paget.lcs.mit.edu 4.3-RELEASE FreeBSD 4.3-RELEASE #3: Mon Aug 20 18:06:47 EDT 2001 rtm@frenulum.lcs.mit.edu:/usr/src/sys/compile/PDOS i386


	
>Description:
	arla installs list.h, heap,h and other such includes in /usr/local/include
	as well as /usr/local/lib/libutil.a. This causes a conflict in compiling
	SFS (for example) which links with /usr/lib/libutil.a.

>How-To-Repeat:
	1. Try to compile something that uses -I/usr/local/include but wants a
	   list.h that is later in its include path.
	2. Try to link something that requires something in /usr/lib/libutil.a
	   (e.g. openpty) but also has -L/usr/local/lib.

>Fix:
	The NetBSD port includes a patch to avoid installing these files:

	http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/net/arla/patches/patch-ae

$NetBSD: patch-ae,v 1.3 2001/08/09 13:48:59 wennmach Exp $

Do not install libutil.a and the header files bool.h, hash.h, heap.h, list.h,
and log.h, nor any of the man pages. There is a potential conflict with other
libutils.

--- util/Makefile.in.orig	Wed Oct 25 09:06:47 2000
+++ util/Makefile.in		Fri Aug  3 14:41:35 2001
@@ -78,31 +78,8 @@
 libutil_LIB:	$(libutil_OBJS)
 
 install:	all
-		$(MKINSTALLDIRS) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)
-		$(INSTALL_DATA) $(LIB) $(DESTDIR)$(libdir)/$(LIB)
-		for i in $(HEADERS); do \
-		  $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(includedir)/$$i; \
-		done ; \
-		MANPAGES='$(MANPAGES)'; for x in $$MANPAGES; do \
-			n=`echo $$x | sed 's/\(.*\)\.[1-9a-zA-Z]*$$/\1/'`; \
-			e=`echo $$x | sed 's/.*\.\([1-9a-zA-Z]*\)$$/\1/'`; \
-			f=`echo $$n | sed '$(transform)'`; \
-			$(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$$e ; \
-			$(INSTALL_DATA) $(srcdir)/$$x \
-				$(DESTDIR)$(mandir)/man$$e/$$f.$$e; \
-		done
 
 uninstall:
-		rm -f $(DESTDIR)$(libdir)/$(LIB)
-		for i in $(HEADERS); do \
-			rm -f $(DESTDIR)$(includedir)/$$i; \
-		done ; \
-		MANPAGES='$(MANPAGES)'; for x in $$MANPAGES; do \
-			n=`echo $$x | sed 's/\(.*\)\.[1-9a-zA-Z]*$$/\1/'`; \
-			e=`echo $$x | sed 's/.*\.\([1-9a-zA-Z]*\)$$/\1/'`; \
-			f=`echo $$n | sed '$(transform)'`; \
-			rm -rf $(DESTDIR)$(mandir)/$$f.$$e; \
-		done
 
 libutil.a:	$(libutil_OBJS)
 		$(AR) cr $@ $(libutil_OBJS)

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

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200109071434.f87EYO136272>