pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: pkgsrc/multimedia/libmatroska
On Tue, Feb 10, 2015 at 02:29:02AM +0900, PHO wrote:
> From: Thomas Klausner <wiz%NetBSD.org@localhost>
> Subject: Re: CVS commit: pkgsrc/multimedia/libmatroska
> Date: Thu, 22 Jan 2015 13:59:14 +0100
>
> > On Thu, Jan 22, 2015 at 12:57:27PM +0000, Masatake Daimon wrote:
> >> Module Name: pkgsrc
> >> Committed By: pho
> >> Date: Thu Jan 22 12:57:27 UTC 2015
> >>
> >> Modified Files:
> >> pkgsrc/multimedia/libmatroska: Makefile
> >>
> >> Log Message:
> >> Add 'c' to USE_LANGUAGES
> >>
> >> Otherwise the configure script fails with:
> >> PKGSRC-WARNING: Something is trying to run the c compiler,
> >> PKGSRC-WARNING: but it is not added to USE_LANGUAGES in the package Makefile.
> >
> > This is not a failure, but just a warning. If the source code contains
> > no c code, you should not add 'c' to USE_LANGUAGES; and since this
> > builds on lots of platforms, I expect the it was ok before adding 'c'.
>
> Sorry for my late reply. Since removing 'c' from USE_LANGUAGES
> actually results in a configuration failure on Darwin, I investigated
> the problem further. This is an excerpt from config.log:
>
> configure:7833: checking how to run the C preprocessor
> configure:7903: result: gcc -E -isystem /usr/include
> configure:7923: gcc -E -isystem /usr/include -isystem /usr/include -I/usr/pkg/include conftest.c
> PKGSRC-WARNING: Something is trying to run the c compiler,
> PKGSRC-WARNING: but it is not added to USE_LANGUAGES in the package Makefile.
> configure:7923: $? = 1
> configure:7953: error: in `/usr/pkgsrc/multimedia/libmatroska/work/libmatroska-1.4.2':
> configure:7955: error: C preprocessor "gcc -E -isystem /usr/include" fails sanity check
> See `config.log' for more details
>
> It turned out that ${CPP} was defined as "${CC} -E -isystem
> /usr/include" on this platform (see mk/platform/Darwin.mk). Because of
> this, ${CPP} always fails unless USE_LANGUAGES contains 'c'.
>
> So what should we do in this case?
Thanks for taking another look at this. Since Darwin is the only
platform where cpp is defined this way, you'll probably have to fix
lots of packages. Is there some cpp wrapper installed on Darwin that
we could use, to make it more similar to the other platforms in
pkgsrc?
Thomas
Home |
Main Index |
Thread Index |
Old Index