Re: [Libreoffice] build only xpcom in moz: not working

2011-09-07 Thread Stephan Bergmann

On 09/07/2011 12:36 PM, Lionel Elie Mamane wrote:

In your commit 291b85778669b4e4e276faab22add9d0e80046df
(Build our mozilla (module moz) against the nss we have built anyway.)

[...]

Doing make only in xpcom fails from a clean state (some files that
are needed are not built), so I've completely reverted that hunk for
now. Feel free to do whatever you meant by this hunk in a way that
works :)


see also thread around 



-Stephan
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice] build only xpcom in moz: not working

2011-09-07 Thread Lionel Elie Mamane
Hi,

In your commit 291b85778669b4e4e276faab22add9d0e80046df
(Build our mozilla (module moz) against the nss we have built anyway.)

This hunk:

--- a/moz/makefile.mk
+++ b/moz/makefile.mk
@@ -174,7 +184,7 @@ MOZ_CROSSCOMPILE=CROSS_COMPILE=1 CC="$(CC) -arch 
$(MOZ_ARCH)" CXX="$(CXX) -arch
 
 CONFIGURE_ACTION=$(null,$(MOZ_ARCH) $(NULL) $(MOZ_CROSSCOMPILE)) ../configure 
$(MOZILLA_CONFIGURE_FLAGS)
 
-BUILD_ACTION:=$(GNUMAKE) -j$(EXTMAXPROCESS)
+BUILD_ACTION:=cd mozilla/X_objdir/xpcom ; $(GNUMAKE) -j$(EXTMAXPROCESS)
 
 .IF "$(GUI)"=="UNX"
 .IF "$(COMNAME)"=="sunpro5"


Does not do what you intend from it.

1) Not robust: if the cd fails, the next command (make) is run
   anyway. Please use "&&" instead of ";" when chaining commands.

2) solenv/inc/tg_ext.mk prepends "cd $(P_BUILD_DIR) && " when calling
   BUILD_ACTION, so what is done is e.g.:

   cd misc/build/mozilla/X_objdir && cd mozilla/X_objdir/xpcom ; $(GNUMAKE) 
-j$(EXTMAXPROCESS)

   the second cd fails and thus make is executed in X_objdir and not
   in xpcom.

   Doing make only in xpcom fails from a clean state (some files that
   are needed are not built), so I've completely reverted that hunk for
   now. Feel free to do whatever you meant by this hunk in a way that
   works :)
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice