Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Dec 2002 12:42:06 +0100 (CET)
From:      Stefan Farfeleder <stefan@fafoe.dyndns.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        stefan@fafoe.dyndns.org
Subject:   ports/46491: [patch] Fix devel/mingw-gcc on -current
Message-ID:  <20021223114206.33ACD8A3@frog.fafoe>

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

>Number:         46491
>Category:       ports
>Synopsis:       [patch] Fix devel/mingw-gcc on -current
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 23 03:50:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Stefan Farfeleder
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD frog.fafoe 5.0-CURRENT FreeBSD 5.0-CURRENT #8: Fri Dec 20 01:53:06 CET 2002 freebsd@frog.fafoe:/freebsd/current/obj/freebsd/current/src/sys/FROG i386


	
>Description:
This port does not build due to differing types of sys_nerr, sys_errlist and
sys_nsig in our system headers and in libiberty code.  Instead of fixing the
types this patch just disables building and linking of strerror.c and
strsignal.c; they are not needed anyway as the system ones work just fine.
	
>How-To-Repeat:
Install devel/mingc-gcc on -current and observe how it fails
(http://bento.freebsd.org/errorlogs/i386-5-latest/mingw-gcc-2.95.3_1.log)
	
>Fix:

	

--- mingw-gcc.patch begins here ---
Index: Makefile
===================================================================
RCS file: /usr/home/ncvs/ports/devel/mingw-gcc/Makefile,v
retrieving revision 1.9
diff -c -r1.9 Makefile
*** Makefile	8 Nov 2002 23:03:48 -0000	1.9
--- Makefile	23 Dec 2002 11:04:05 -0000
***************
*** 40,45 ****
--- 40,47 ----
  
  post-patch:
  	${REINPLACE_CMD} -e 's/install-libiberty//' ${WRKSRC}/Makefile.in
+ 	${REINPLACE_CMD} -E -e 's/([^x])str(error|signal).[co]/\1/g' \
+ 		${WRKSRC}/libiberty/Makefile.in ${WRKSRC}/libstdc++/Makefile.in
  
  pre-install:
  	${MV} ${PREFIX}/bin/i386-mingw32msvc-c++filt \
--- mingw-gcc.patch ends here ---


>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?20021223114206.33ACD8A3>