Date: prev next · Thread: first prev next last
2015 Archives by date, by thread · List index


On Wed, Jun 10, 2015 at 03:06:48PM +0200, Michael Stahl wrote:
On 10.06.2015 11:43, Khaled Hosny wrote:
On Tue, Jun 09, 2015 at 12:36:41PM +0300, Tor Lillqvist wrote:
Some of us work on other opensource projects on our Mac machines which
happen to need MacPorts or HomeBrew.

Having LibreOffice simply say "I refuse to build on this machine because
you've already installed some other stuff" is not very friendly.


But neither is it very useful to have the already small set of OS X -based
developers split into those who use a pure upstream way to build, those who
use HomeBrew libjpeg but bundled Python, those who use MacPorts Python and
libjpeg, etc.

No, that what I want to achieve, what I want is to make sure LibreOffice
builds the same way regardless of the presence or absence of pkg-config
on Mac OS X, so that is no longer needs to stop the build if one is
found.

i've slightly improved the error message now to "Please modify your PATH
variable so that $PKG_CONFIG is no longer found by configure scripts."
with commit
ada6281a5bd74d0ff6ae578d57f39f65b7c25103 so it's at least obvious what
to do.

but since we already have PATH in config_host.mk it would perhaps be
possible to detect which directory the pkg-config is found in and
automatically filter that out of $PATH (unless it's something that
cannot be removed like /usr/bin).  would that be an improvement for you,
and/or would anybody object to that?

also, it is theoretically possible to export PKG_CONFIG="" or something
like that to override it in our bundled external libraries, but whether
that will actually work for every single one would require testing; i
can easily imagine hard-coded fallbacks and whatnot.

I think setting PKG_CONFIG_* environment variables to empty values will
make pkg-config not find any installed libraries, so if we can do that
for LibreOffice build shell (or whatever it is called) on Mac OS X
(either by default or only when pkg-config is found) it should make its
presence an non concern for LibreOffice build.

Regards,
Khaled

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.