Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Sep 1998 18:12:15 +0200 (CEST)
From:      xaa@xaa.iae.nl
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/8012: elfified ports/devel/libslang
Message-ID:  <19980921161215.50A0D456A@ariel.xaa.iae.nl>

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

>Number:         8012
>Category:       ports
>Synopsis:       fix non-elf port libslang
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 21 09:20:00 PDT 1998
>Last-Modified:
>Originator:     Mark Huizer
>Organization:
>Release:        FreeBSD 3.0-BETA i386
>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
>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?19980921161215.50A0D456A>