Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Aug 2003 03:40:34 +0800 (CST)
From:      Michael Hsin <mhsin@mhsin.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:    ports/55475: [PATCH] devel/arm-elf-gcc295 fails to build on -stable.
Message-ID:  <20030811194034.57723FF19@Ada.mhsin.org>
Resent-Message-ID: <200308111950.h7BJoH5D016919@freefall.freebsd.org>

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

>Number:         55475
>Category:       ports
>Synopsis:       [PATCH] devel/arm-elf-gcc295 fails to build on -stable.
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 11 12:50:17 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Michael Hsin
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
NTU CSIE
>Environment:
System: FreeBSD b.mhsin.org 4.6-STABLE FreeBSD 4.6-STABLE #3: Sat Mar 8 23:05:37 CST 2003 root@b.mhsin.org:/usr/obj/usr/src/sys/Ada i386


	
>Description:
	devel/arm-elf-gcc295 fails to build and install on -stable.
	(This port has been already marked as BROKEN on -current.)
>How-To-Repeat:
	Just try to build this port on a -stable machine. It will fail to
	configure libiberty(and some other libraries).
	Trying to install it also fails. The sed_inplace utility does not
	take '\n' as newline.
>Fix:
	The patch below:

--- Makefile.orig	Tue Aug 12 01:43:11 2003
+++ Makefile	Tue Aug 12 03:09:29 2003
@@ -58,9 +58,11 @@
 post-configure:
 	${REINPLACE_CMD} -Ee 's,^(TARGET_CONFIGDIRS\s*=),\1#,' \
 	    ${WRKSRC}/Makefile
-	${REINPLACE_CMD} -Ee 's,^(install-info:),\1\ndonot-\1,; \
-	    s,\$$\(bindir\)/(\$$\(DEMANGLER_CROSS_NAME\)),./\1,' \
+	${PERL} -i -ne 's/^(install-info:)/\1\ndonot-\1/; print' ${WRKSRC}/gcc/Makefile
+	${REINPLACE_CMD} -Ee 's,\$$\(bindir\)/(\$$\(DEMANGLER_CROSS_NAME\)),./\1,' \
 	    ${WRKSRC}/gcc/Makefile
+	${REINPLACE_CMD} -Ee 's/^(TARGET_CONFIGDIRS =)/\1#/' \
+	    ${WRKSRC}/Makefile
 
 post-install:
 	@${MV} ${PREFIX}/bin/cpp ${PREFIX}/bin/${PKGNAMEPREFIX}cpp


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



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