Subject: pkg/23886: emulators/wine on FreeBSD-STABLE needs GCC 3.3 to build; fix attached;
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <dotz@irc.pl>
List: netbsd-bugs
Date: 12/26/2003 00:09:25
>Number:         23886
>Category:       pkg
>Synopsis:       emulators/wine on FreeBSD-STABLE needs GCC 3.3 to build; fix attached;
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 26 00:10:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Michal Pasternak
>Release:        N/A
>Organization:
>Environment:
FreeBSD mainframe.w.lub.pl 4.9-STABLE FreeBSD 4.9-STABLE #0: Thu Dec 25 12:02:15 CET 2003     doc@mainframe.w.lub.pl:/usr/obj/usr/src/sys/MP-UX  i386

>Description:
FreeBSD-4-STABLE uses gcc 2.95.4 . Due to bug in it, it is unable to 
compile wine-20031212. The problem is known, and, what's more important,
the widely-used FreeBSD's build system -- FreeBSD Ports Collection 
forces wine build via USE_GCC=3.3 - see:

http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/ports/emulators/wine/Makefile?rev=1.158&content-type=text/plain
for details.

>How-To-Repeat:
Compile wine on FreeBSD-4-STABLE system.
>Fix:
Because FreeBSD 4-STABLE branch is very popular, it would be good to
support it, until FreeBSD 5 becomes really stabilized.

To do this, import this patch:

*** WARNING: this assumes PR/23883 (this will allow OS detection before 
*** including "bsd.prefs.mk") and PR/23856 (gcc-3 build can't propably
*** work when it's --host=i386-pc-freebsd, it must be 
*** *-*-freebsd4.* or *-*-freebsd5.*)

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/emulators/wine/Makefile,v
retrieving revision 1.58
diff -u -r1.58 Makefile
--- Makefile    25 Dec 2003 16:47:50 -0000      1.58
+++ Makefile    25 Dec 2003 23:18:06 -0000
@@ -43,6 +43,12 @@
 CONFIGURE_ENV+=                X_LIBS="${LDFLAGS}"
 LIBS+=                 ${LDFLAGS}

+.include "../../mk/opsys.mk"
+
+.if ${OPSYS} == "FreeBSD"
+GCC_REQD=      3.3
+.endif
+
 .include "../../mk/bsd.prefs.mk"
 
 .if defined(USE_CUPS) && (${USE_CUPS} == YES)

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