Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Mar 2004 17:22:47 +0200
From:      Ruslan Ermilov <ru@FreeBSD.ORG>
To:        Andrey Chernov <ache@nagual.pp.ru>, src-committers@FreeBSD.ORG, cvs-src@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Cc:        David O'Brien <obrien@FreeBSD.ORG>
Subject:   Re: cvs commit: src/gnu/usr.bin/binutils Makefile.inc0
Message-ID:  <20040305152247.GB11063@ip.net.ua>
In-Reply-To: <20040305143708.GA70192@nagual.pp.ru>
References:  <200403050147.i251l39I006593@repoman.freebsd.org> <200403042036.i24KaIeq025097@repoman.freebsd.org> <20040305141012.GA10639@ip.net.ua> <20040305143708.GA70192@nagual.pp.ru>

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

--uQr8t48UFsdbeI+V
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Mar 05, 2004 at 05:37:08PM +0300, Andrey Chernov wrote:
> On Fri, Mar 05, 2004 at 04:10:12PM +0200, Ruslan Ermilov wrote:
> > Adding -I${DESTDIR}/usr/include broke upgrades from 4.x because
> > now /usr/include/getopt.h gets used (which requires sys/types.h)
>=20
> Why you decide, it requires sys/types.h?
>=20
Oops, I meant <regex.h> here.

In RELENG_4, including <regex.h> requires including <sys/types.h>,
to pick up the "off_t" type definition.  This is also documented
in the regex(3) manpage (in RELENG_4).

> > instead of the proper one from ${WORLDTMP}/legacy/usr/include/,
> > usually /usr/obj/usr/src/i386/legacy/usr/include/getopt.h.
>=20
> I don't see any principal difficulties here.
> I use CFLAGS +=3D, so if you add -I.../legacy/... as first thing to CFLAG=
S=20
> (i.e. before mine one), your includes will be picked first.
>=20
But it's added last, by the special version of <bsd.prog.mk> from
src/tools/build/mk/.

> > Please find some other way to fix this.
>=20
> I see no other way to fix it until David will remove getopt* from=20
> binutil's contrib.
>=20
OK, I see.  Removing the contrib/bintuils/include/getopt.h is the
only real solution -- I've removed it locally and reverted these
revisions, and it's now past that point.

David, remove the damn header please.


Cheers,
--=20
Ruslan Ermilov
FreeBSD committer
ru@FreeBSD.org

--uQr8t48UFsdbeI+V
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQFASJtHUkv4P6juNwoRAm0nAJ9gShWvzP804CDifLv8oaUd2o5bFACgg6sN
aGbqJ+UO6PfFL4t6151KVms=
=nqzK
-----END PGP SIGNATURE-----

--uQr8t48UFsdbeI+V--



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