With the -nas use flag oo still builds its own version of it and links to it. so in the ebuild it should be if use nas; then echo "`use_with nas system-nas`" >> ${CONFFILE} else echo "--without-nas" >> ${CONFFILE} fi this will prevent nas-building and could help the people, who are testing the the modular xorg to build oo without hacking around their system. If the devs want I could post more relevant information or the way oo-build breaks with -nas with modular xorg without this changes.
Is this related to bug #109767 ?
no, this is a linker problem, but as I see in the forums it is somehow interconnected. With -nas I have had a message that it could not find Imake.tmpl in the nas directory, which effectively means that it tried to build its own nas. So I've searched a little and it seems that fedora feeds by default --without-nas to the configure-script. So I've tried it and it just worked.
Here is the output with -nas and place, where it breaks is exactly, where it should not be: make[1]: Entering directory `/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0.1/build/ooo680-m3/nas/unxlngi6.pro/misc/build/nas-1.6' Building Network Audio System sample implementation Tue Nov 29 03:34:40 UTC 2005 make -w Makefiles make[2]: Entering directory `/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0.1/build/ooo680-m3/nas/unxlngi6.pro/misc/build/nas-1.6' making Makefiles in include... mv -f Makefile Makefile.bak make[3]: Entering directory `/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0.1/build/ooo680-m3/nas/unxlngi6.pro/misc/build/nas-1.6' Imakefile.c:34: error: Imake.tmpl: No such file or directory imake: Exit code 1. Stop. make[3]: *** [include/Makefile] Error 1 make[3]: Leaving directory `/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0.1/build/ooo680-m3/nas/unxlngi6.pro/misc/build/nas-1.6' make[2]: [Makefiles] Error 2 (ignored) make[2]: Leaving directory `/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0.1/build/ooo680-m3/nas/unxlngi6.pro/misc/build/nas-1.6' make -w cleandir make[2]: Entering directory `/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0.1/build/ooo680-m3/nas/unxlngi6.pro/misc/build/nas-1.6' rm -f *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut "#"* make[2]: Leaving directory `/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0.1/build/ooo680-m3/nas/unxlngi6.pro/misc/build/nas-1.6' make -w includes make[2]: Entering directory `/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0.1/build/ooo680-m3/nas/unxlngi6.pro/misc/build/nas-1.6' including in ./include... make[3]: Entering directory `/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0.1/build/ooo680-m3/nas/unxlngi6.pro/misc/build/nas-1.6/include' make[3]: *** No rule to make target `includes'. Stop. make[3]: Leaving directory `/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0.1/build/ooo680-m3/nas/unxlngi6.pro/misc/build/nas-1.6/include' make[2]: *** [includes] Error 2 make[2]: Leaving directory `/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0.1/build/ooo680-m3/nas/unxlngi6.pro/misc/build/nas-1.6' make[1]: *** [World] Error 2 make[1]: Leaving directory `/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0.1/build/ooo680-m3/nas/unxlngi6.pro/misc/build/nas-1.6' dmake: Error code 2, while making './unxlngi6.pro/misc/build/so_built_nas' '---* tg_merge.mk *---' ERROR: Error 65280 occurred while making /var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0.1/build/ooo680-m3/nas make: *** [stamp/build] Error 1 !!! ERROR: app-office/openoffice-2.0.0 failed. !!! Function src_compile, Line 205, Exitcode 2 !!! Build failed !!! If you need support, post the topmost build error, NOT this status message. on the other hand it is possible that the two bugs are duplicates, simply Donnie Berkholz could probably reach a further point in the compilation, although he is building with -nas, there are references to it, which should not happen: /var/tmp/portage/openoffice-2.0.0_rc2/work/ooo-build-2.0.rc2-2/build/ooo680-m2/nas/unxlngi6.pro/misc/build/nas-1.6/lib/audio/ConnSvr.c:1981: undefined reference to `XauDisposeAuth' as -nas should mean I don't want nas - neither system nor OO's own.
Actually I think this another problem of modular X not being fully packaged, see https://bugs.gentoo.org/show_bug.cgi?id=110022 (and the link to the freedesktop bug) About -nas, that's not how it works with OOo, use flags are used to determine if we build it with system-libraries or internal, lot's of this stuff is NOT optional. BUT: Just asked on IRC, looks like the nas-stuff is not really needed at all, so in this case might go the suggested way, just will have to check before if everything builds fine.
Added the change to the ebuild so -nas won't build it at all anymore. Thanks for reporting. Closing