Skip site navigation (1)Skip section navigation (2)
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

--r5Pyd7+fXNt84Ff3
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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=20
> build system - it does not work when file names become too long. In the=
=20
> error message you posted,=20
> "file:///mnt/files/usr/ports/editors/openoffice.org-2.0/work/OOD680_m5/ud=
kapi/unxfbsdx.pro/ucr/com/sun/star/uno/Exception._idlc_"=20
> is clearly truncated and is also precisely 128 characters long. While you=
r=20
> NFS mount point "/mnt/files/" adds only 11 characters to the file name,=
=20
> this may be enough to overflow a fixed 128 character buffer used by the=
=20
> idlc. Try mounting the NFS file system at say "/mnt" or even "/m" to keep=
=20
> 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
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
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>
=20
 pre-everything::
+	@defaultwrksrc=3D/usr/ports/editors/openoffice.org-2.0/work/OOD680_m5 ; \
+	currentwrksrc=3D${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 ver=
sions
 # needed after when you build with ALL_LOCALIZED_LANGS.
 .if defined(TWEAK_L10N)
--- patch ends here ---

--=20
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)

--r5Pyd7+fXNt84Ff3
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----

iD8DBQFFRvPXFw6SP/bBpCARAvvKAKCR1SSExk+lBNxSAFKxBN5rLbO7CwCfYNFV
4Ba2/wFaNd7l2gE3fcO3vTU=
=hpkM
-----END PGP SIGNATURE-----

--r5Pyd7+fXNt84Ff3--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061031065727.GA2994>