Date: Wed, 18 Feb 2004 22:30:44 +0300 From: Andrey Chernov <ache@nagual.pp.ru> To: Ruslan Ermilov <ru@FreeBSD.ORG> Cc: cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/gnu/usr.bin/binutils/gasp Makefile src/gnu/usr.bin/binutils/gdb Makefile src/gnu/usr.bin/cvs/cvs Makefile src/gnu/usr.bin/cvs/lib Makefile src/gnu/usr.bin/cvs/libdiff Makefile src/gnu/usr.bin/diff Makefile src/gnu/usr.bin/grep Makefile Message-ID: <20040218193044.GA26653@nagual.pp.ru> In-Reply-To: <20040218190255.GB1578@ip.net.ua> References: <200402170538.i1H5cjQa010622@repoman.freebsd.org> <20040218190255.GB1578@ip.net.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Wed, Feb 18, 2004 at 09:02:55PM +0200, Ruslan Ermilov wrote:
> This is bogus. The correct way would be to fix #include's to
> spell ``#include <gnu/regex.h>'', but this will be considered
> evil as it will take lot of files off their vendor branches.
Yes, and it was the reason of commit to NOT do it, using -I
instead.
> What was wrong with ${.CURDIR}/.../include/gnu, except
> misspelling the number of ".."'s in some cases?
The reason is that ${.CURDIR}/.... is for _source_ dir, not for final
${DESTDIR} where includes are installed at the start of 'make world'.
There is no regex.h in source dir with that name. To make it works,
there must be -I${.CURDIR}/.../gnu/lib/libregex insead, but too many ../
are ugly in anycase.
> I've been slowly working towards removing all instances of
> -I${DESTDIR}/usr/include/... in the src/ makefiles. Before
> this commit, there were only a few makefiles with
> -I${DESTDIR}/usr/include/rpcsvc, but RPC code is known to be
> a nightmare to deal with.
I am not sure it will be right, only if ${.CURDIR} is in the same place,
where ${DESTDIR} is.
--
Andrey Chernov | http://ache.pp.ru/
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
iQCVAwUBQDO9ZOJgpPLZnQjrAQGRYAP+LvKhC3NcJOmcG3+RNqiBGrC3RveV4vsV
81nkCg3EExlC5nRc+yybfVuOaiRZ+l48S5zrJr/HY7M/xhHFJAuzOJGd9yUf+OP+
+Pr1D7BCDsVMy09BcPcofbGR/kv4dBLmGyUSjDJf1RYo/BwitiPvbXzjLzVDBg7i
95iSOJBWJiA=
=4kPR
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040218193044.GA26653>
