From xaa@xaa.iae.nl  Mon Sep 21 09:12:52 1998
Received: from esmeralda.xaa.iae.nl (esmeralda.xaa.iae.nl [194.151.75.9])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA05190
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 21 Sep 1998 09:12:48 -0700 (PDT)
          (envelope-from xaa@xaa.iae.nl)
Received: from ariel.xaa.iae.nl (ariel.xaa.iae.nl [194.151.75.10])
	by esmeralda.xaa.iae.nl (VMailer) with ESMTP
	id 18B3A3CB; Mon, 21 Sep 1998 18:12:16 +0200 (MET DST)
Received: by ariel.xaa.iae.nl (VMailer, from userid 1002)
	id 50A0D456A; Mon, 21 Sep 1998 18:12:15 +0200 (CEST)
Message-Id: <19980921161215.50A0D456A@ariel.xaa.iae.nl>
Date: Mon, 21 Sep 1998 18:12:15 +0200 (CEST)
From: xaa@xaa.iae.nl
Reply-To: xaa@xaa.iae.nl
To: FreeBSD-gnats-submit@freebsd.org
Subject: elfified ports/devel/libslang
X-Send-Pr-Version: 3.2

>Number:         8012
>Category:       ports
>Synopsis:       fix non-elf port libslang
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    smace
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 21 09:20:00 PDT 1998
>Closed-Date:    Mon Sep 28 11:04:21 PDT 1998
>Last-Modified:  Mon Sep 28 11:05:42 PDT 1998
>Originator:     Mark Huizer
>Release:        FreeBSD 3.0-BETA i386
>Organization:
>Environment:

	

>Description:

	elfified port

>How-To-Repeat:

	

>Fix:

apply patch and add patch-ae:

patch-ae:

--- src/Makefile.in.orig	Sun Sep 20 18:37:23 1998
+++ src/Makefile.in	Sun Sep 20 19:52:59 1998
@@ -130,21 +130,19 @@
 	$(INSTALL_DATA) $(SRCDIR)/slcurses.h $(install_include_dir)
 	-$(RM) $(install_lib_dir)/$(ELFLIB)
 	-$(RM) $(install_lib_dir)/$(ELFLIB_MAJOR)
-	@echo installing $(ELFLIB_MAJOR_MINOR) in $(install_lib_dir)
-	$(INSTALL_DATA) $(ELFDIR_ELF_LIB) $(install_lib_dir)
-	@echo creating symbolic links to $(ELFLIB_MAJOR_MINOR)
-	-cd $(install_lib_dir); $(LN) $(ELFLIB_MAJOR_MINOR) $(ELFLIB)
+	@echo installing $(ELFLIB_MAJOR) in $(install_lib_dir)
+	$(INSTALL_DATA) $(ELFDIR_ELF_LIB) $(install_lib_dir)/${ELFLIB_MAJOR}
+	@echo creating symbolic links to $(ELFLIB_MAJOR)
+	-cd $(install_lib_dir); $(LN) $(ELFLIB_MAJOR) $(ELFLIB)
 	@echo ""
-	@echo $(ELFLIB_MAJOR_MINOR) created in $(install_lib_dir).
-	@echo The link $(ELFLIB) to $(ELFLIB_MAJOR_MINOR) was also created.
+	@echo $(ELFLIB_MAJOR) created in $(install_lib_dir).
+	@echo The link $(ELFLIB) to $(ELFLIB_MAJOR) was also created.
 	@echo ""
 install-links:
 	-$(RM) $(install_lib_dir)/$(ELFLIB)
 	-$(RM) $(install_lib_dir)/$(ELFLIB_MAJOR)
-	cd $(install_lib_dir); $(LN) $(ELFLIB_MAJOR_MINOR) $(ELFLIB_MAJOR)
 	cd $(install_lib_dir); $(LN) $(ELFLIB_MAJOR) $(ELFLIB)
 	@echo
-	@echo A link $(ELFLIB_MAJOR) to $(ELFLIB_MAJOR_MINOR) was created.
 	@echo A link $(ELFLIB) to $(ELFLIB_MAJOR) was created.
 	@echo ""
 #---------------------------------------------------------------------------

diff:

diff -ur ../devel/libslang/Makefile libslang/Makefile
--- ../devel/libslang/Makefile	Tue May 19 19:11:02 1998
+++ libslang/Makefile	Sun Sep 20 20:02:35 1998
@@ -16,10 +16,15 @@
 GNU_CONFIGURE=	yes
 WRKSRC=		${WRKDIR}/slang
 
+.if PORTOBJFORMAT==elf
 ALL_TARGET=	all elf
 INSTALL_TARGET=	install install-elf
+.else
+ALL_TARGET=	all
+INSTALL_TARGET=	install
+.endif
 
 post-install:
-	${LDCONFIG} -m ${PREFIX}/lib
+	${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
 
 .include <bsd.port.mk>
Only in libslang/patches: patch-ae
diff -ur ../devel/libslang/pkg/PLIST libslang/pkg/PLIST
--- ../devel/libslang/pkg/PLIST	Tue May 19 19:11:03 1998
+++ libslang/pkg/PLIST	Sun Sep 20 20:03:26 1998
@@ -1,7 +1,7 @@
 lib/libslang.a
 lib/libslang.so
 lib/libslang.so.1.2.2
-@exec /sbin/ldconfig -m %B
-@unexec /sbin/ldconfig -R
+@exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %B
+@unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R
 include/slcurses.h
 include/slang.h
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->smace 
Responsible-Changed-By: smace 
Responsible-Changed-When: Tue Sep 22 13:00:41 PDT 1998 
Responsible-Changed-Why:  
I'll take this one 
State-Changed-From-To: open->closed 
State-Changed-By: smace 
State-Changed-When: Mon Sep 28 11:04:21 PDT 1998 
State-Changed-Why:  
Problems with submitted diff 
Alternate patch to solve ELF problem applied. 
port converted to ELF 
>Unformatted:
