In the libmad-0.15.1b-r8.ebuild in function multilib_src_install() a mad.pc file from the package's files is patched and installed. This package config file is broken for prefix installations, because pkg-config mad --cflags will return "-I/usr/include", i.e. an include switch for the host system's headers. This, for instance, broke my build of media-sound/mpd, because headers from the host's standard headers have been mixed up with headers of the prefix's standard headers. I will attach a suggested patch that replaces the prefix in the pkg-config file with EPREFIX and also bases the libdir replacement on that. This fixed the issue for me. Reproducible: Always Steps to Reproduce: 1. emerge libmad (on prefix install) pkg-config mad --cflags will return '-I/usr/include', which it shouldn't Actual Results: `pkg-config mad --cflags` will return '-I/usr/include' Expected Results: `pkg-config mad --cflags` should actually return nothing
Created attachment 492248 [details, diff] suggested patch
Created attachment 492252 [details, diff] suggested patch to explicitly pass boost include path to configure
Comment on attachment 492252 [details, diff] suggested patch to explicitly pass boost include path to configure sorry, added to the wrong bug
@maintainers: I'd appreciate your opinion on this patch
I think mad.pc should be fixed, not mpd.