openoffice.org-2.0 does not build on amd64 with 6.1

Vasil Dimov vd at FreeBSD.org
Tue Oct 31 06:57:28 UTC 2006


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 at dv
%
Look, that's why there's rules, understand?
So that you think before you break 'em.
    -- (Terry Pratchett, Thief of Time)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 155 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20061031/49d4922a/attachment.pgp


More information about the freebsd-ports mailing list