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


On Tue, Sep 06, 2011 at 07:27:38PM -0500, Norbert Thiebaud wrote:
On Tue, Sep 6, 2011 at 5:32 PM, Peter Foley <pefoley2@verizon.net> wrote:

Here are some patches for various problems I encountered while
building libreoffice.

From 913ba23fd2552436c7c48e83fd1d6ec7de6c2e96 Mon Sep 17 00:00:00 2001
From: Peter Foley <pefoley2@verizon.net>
Date: Mon, 5 Sep 2011 21:39:22 -0400
Subject: [PATCH 2/7] /usr/local/lib

If /usr/local/lib doesn't exist the Mozilla build fails.
This patch fixes the build failure.

Is that an observed behavior or a speculated one ?

I get the same problem (or a very similar one), and reported it as fdo
bug #39852.

I've been working around it with:

source Host.Env.sh
unset LIBDIR
cd moz
build

I mean:
1/ why on earth would our build ever try to create or even install
something in /usr/loca/bin when building an external lib. if we do,
then the fix is to stop that madness, not encourage it :-)

More precisely, it tries to create ${LIBDIR}; by default, that is
/usr/local/lib, but if one passed --prefix and/org --libdir to
autogen.sh, then it is another directory.

Since my workaround works, my guess is that the moz build system
contains something to the effect of
 LIBDIR ?= /something/internal/to/the/moz/build/tree
or
 ifndef LIBDIR
  LIBDIR = /something/internal/to/the/moz/build/tree
 endif
and so the LIBDIR from the LO build system interferes with that.

Or maybe if LIBDIR is not set, it just silently does not try to create
it.

2/ if /usr/local/bin does not exist mkdir -p is not going to succeed
anymore than $(MKDIR), unless you run make as root or have g+w or o+w
authorization on /usr, both of which are a really, really bad idea.

From the error message I get (see the bugzilla), the $(MKDIR) variable
is not set...

-- 
Lionel

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.