Subject: Re: mingw/gcc3 issue on FreeBSD again
To: Michal Pasternak <michal@pasternak.w.lub.pl>
From: Marc Recht <recht@netbsd.org>
List: tech-pkg
Date: 03/02/2004 01:01:03
--==========4D8BFFAE8188EE1F2DDB==========
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

> while configure of gcc3 or wip/mingw:
>
>   Please update *-*-freebsd* in gcc/config.gcc
>   Configure in
> /build/builds/wip/mingw-gcc/work.jail-2/gcc-3.3.1-20030804-1/gcc failed,
>   exiting.
>   *** Error code 1
>
> http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=3D23856

How about? This should work, too. Since it's almost the same as your patch, =

but without hard-coding /usr/bin/sed... If nobody objects I commit this.=20
Juan?

Index: bsd.prefs.mk
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/pkgsrc/mk/bsd.prefs.mk,v
retrieving revision 1.155
diff -u -r1.155 bsd.prefs.mk
--- bsd.prefs.mk        18 Feb 2004 13:32:38 -0000      1.155
+++ bsd.prefs.mk        1 Mar 2004 23:56:37 -0000
@@ -37,6 +37,14 @@
 UNAME=3Decho Unknown
 .endif

+.if exists(/usr/bin/cut)
+CUT=3D/usr/bin/cut
+.elif exists(/bin/cut)
+CUT=3D/bin/cut
+.else
+CUT=3Decho Unknown
+.endif
+
 .ifndef OPSYS
 OPSYS!=3D                        ${UNAME} -s | tr -d /
 .endif
@@ -82,6 +90,7 @@
 LOWER_ARCH!=3D           ${UNAME} -p
 MACHINE_ARCH=3D          ${LOWER_ARCH}
 MAKEFLAGS+=3D            LOWER_ARCH=3D${LOWER_ARCH}
+LOWER_OPSYS_VERSUFFIX!=3D        echo ${LOWER_OS_VERSION} | ${CUT} -c -1
 .  if ${LOWER_ARCH} =3D=3D "i386"
 LOWER_VENDOR?=3D         pc
 .  else


> This is very trival thing, still I have received no comments, no bugs, no
> information, no nothing; I am putting up this issue since 2 - 3 months =
and
> *nothing*.
>
> How long do I have to wait?

patience:)

--=20
Marc Recht
--==========4D8BFFAE8188EE1F2DDB==========
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)

iD8DBQFAQ86/7YQCetAaG3MRAvRXAJ9R4nSos2RXyKIQh1SX9wxCJWseRgCfYikS
CaD4YymO180GKFjc1D/k1m4=
=nV+P
-----END PGP SIGNATURE-----

--==========4D8BFFAE8188EE1F2DDB==========--