Date: Tue, 31 Oct 2006 08:57:27 +0200 From: Vasil Dimov <vd@FreeBSD.org> To: Bartosz Fabianowski <freebsd@chillt.de> Cc: ports@freebsd.org, Oliver Lehmann <oliver@FreeBSD.org>, openoffice@freebsd.org Subject: Re: openoffice.org-2.0 does not build on amd64 with 6.1 Message-ID: <20061031065727.GA2994@qlovarnika.bg.datamax> In-Reply-To: <4546939F.5070501@chillt.de> References: <20061030224319.1ed7ddf4.oliver@FreeBSD.org> <4546939F.5070501@chillt.de>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Tue, Oct 31, 2006 at 12:06:55AM +0000, Bartosz Fabianowski wrote:
> It seems that you have run into a know problem with the OpenOffice.org
> build system - it does not work when file names become too long. In the
> error message you posted,
> "file:///mnt/files/usr/ports/editors/openoffice.org-2.0/work/OOD680_m5/udkapi/unxfbsdx.pro/ucr/com/sun/star/uno/Exception._idlc_"
> is clearly truncated and is also precisely 128 characters long. While your
> NFS mount point "/mnt/files/" adds only 11 characters to the file name,
> this may be enough to overflow a fixed 128 character buffer used by the
> idlc. Try mounting the NFS file system at say "/mnt" or even "/m" to keep
> the file names as short as possible.
Argh! This seems very nasty if you got it after 10 hours of
compilation...
What about something like this:
--- patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/editors/openoffice.org-2.0/Makefile,v
retrieving revision 1.261
diff -u -r1.261 Makefile
--- Makefile 18 Oct 2006 21:55:44 -0000 1.261
+++ Makefile 31 Oct 2006 06:54:33 -0000
@@ -181,6 +181,15 @@
.include <${FILESDIR}/Makefile.knobs>
pre-everything::
+ @defaultwrksrc=/usr/ports/editors/openoffice.org-2.0/work/OOD680_m5 ; \
+ currentwrksrc=${WRKSRC} ; \
+ if [ $${#currentwrksrc} -gt $${#defaultwrksrc} ] ; then \
+ echo "" ; \
+ echo "WARNING:" ; \
+ echo "You may run into problems, because your WRKSRC ($${currentwrksrc}) is too long." ; \
+ echo "Try making it less or equal to $${#defaultwrksrc} characters." ; \
+ echo "" ; \
+ fi
# really tweak, extremely useful when you build all localized language versions
# needed after when you build with ALL_LOCALIZED_LANGS.
.if defined(TWEAK_L10N)
--- patch ends here ---
--
Vasil Dimov
gro.DSBeerF@dv
%
Look, that's why there's rules, understand?
So that you think before you break 'em.
-- (Terry Pratchett, Thief of Time)
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
iD8DBQFFRvPXFw6SP/bBpCARAvvKAKCR1SSExk+lBNxSAFKxBN5rLbO7CwCfYNFV
4Ba2/wFaNd7l2gE3fcO3vTU=
=hpkM
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061031065727.GA2994>
