OpenOffice showed up in portage, but wouldn't emerge due to dependencies: !!! Error: couldn't find match for >=sys-devel/gcc-3.0.4-r6 in app- office/openoffice-1.0.0 But I was able to get around that, but now it won't compile: checking whether we are using GNU C... (cached) yes checking whether gcc-3.1 accepts -g... (cached) yes checking the GNU gcc compiler version... configure: error: found version gcc- 3.1 (GCC) 3.1 Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE., but use of gcc 3.x requested !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line 43, Exitcode 1 !!! (no error message) !!! emerge aborting on /usr/portage/app-office/openoffice/openoffice- 1.0.0.ebuild . Could someone get OpenOffice to actually work? Please. Thank you.
Here's a preliminary set of fixes for the GCC-3.1 issues. I get a few minutes into the build and I run against "Previously Applied Patch Detected" on the STLport stuff. I'll get back on this later. Someone wanna take a whack at it? http://gentoo.twobit.net/ebuilds/openoffice/ Basically... I have it scan though all the 'configure' scripts and have it change --version to -dumpversion for all references to $CC and gcc <-- This potentially could break non-gcc compilers, but I don't see that as a Gentoo problem. There are a few cosmetic and functional fixes too... I changed a couple string comparisons to Shell-Math -- As they didn't seem to work otherwise. I think the '0' prepended to the string in an -eq caused false results. I chucked a diff of the old ebuild vs. my ebuild to make the differences easy to see. It's fairly descript in the places that seemed to need it.
Ok... The "previously applied patch detected" messages were apparently random. I had to patch a #error "You're using an untested gcc" message. And now the build is continuing. Hopefully without stop this time. I'll post again later when I finish.
It IMHO not tested with gcc-3.1 ... builds fine with gcc-3.0.4.
Created attachment 1239 [details] gcc-3.1 updated ebuild
As of 22:10 GMT, I have OpenOffice built with GCC-3.1. This takes me 5 hours to build with 3.1 and my optimizations, so I'll have a final single-pass confirmation around 4:30 GMT. (Final build requires over 2G of space before merging -- I ran out of space once.) Files are still on my site, but the tarball is above in the attachment with ChangeLog et al. to this bug. Tarball extracts to ./openoffice
One more update. This one builds successfully with gcc-3.1. Shouldn't be any hitches. Includes many Cosmetic fixes to code on top of things noted before. This one has the beginnings of a build with gcc-2.95.3. It fails roughly 1/8th-1/5th the way though on a dependency error that I haven't had time to track down yet. Also, the gcc2.95.3 system I was building on did not have g++-3 include files directory (might not have been installed). At no point did it seem to have problems because of this. But it will prompt for a directory where they exist. You can look at the build log along with the ebuild tarball: http://gentoo.twobit.net/ebuilds/openoffice/build-2.95.3-log.txt http://gentoo.twobit.net/ebuilds/openoffice/openoffice-1.0.0-r1.tgz There's a diff to show the changes: http://gentoo.twobit.net/ebuilds/openoffice/OO-diff.txt
I get the following error: Hunk #106 succeeded at 4321 (offset 4 lines). patching file product/inc/scp/udk_basefiles.scp /usr/sbin/ebuild.sh: [: too many arguments >>> Source unpacked. /usr/sbin/ebuild.sh: [: too many arguments !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line 22, Exitcode 1 !!! Cannot find gcc version 3.0 or later !!! emerge aborting on /usr/portage/app-office/openoffice/openoffice-1.0.0.ebuild . I have gcc-3.1 installed.. infact I even reinstalled my entire Gentoo setup with it. Prior to doing that I was getting the error specified in the first bug report about the error msg saying it couldn't find gcc 3.x
Sorry... I couldn't read that without hurting myself, so here's a formatted version. Additional Comment #7 From Doug Goldstein 2002-06-01 16:38 -=-=-=-=-=-=-=-=- I get the following error: Hunk #106 succeeded at 4321 (offset 4 lines). patching file product/inc/scp/udk_basefiles.scp /usr/sbin/ebuild.sh: [: too many arguments >>> Source unpacked. /usr/sbin/ebuild.sh: [: too many arguments !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line 22, Exitcode 1 !!! Cannot find gcc version 3.0 or later !!! emerge aborting on /usr/portage/app-office/openoffice/openoffice- 1.0.0.ebuild. I have gcc-3.1 installed.. infact I even reinstalled my entire Gentoo setup with it. Prior to doing that I was getting the error specified in the first bug report about the error msg saying it couldn't find gcc 3.x
Ok... There are some issues with Include directories that I didn't notice before. gcc-3.1 has it's includes in g++-v31, gcc-3.0 has them in g++-3 or g++- v3 So I'll be working those out. This only effects pure 3.1 systems, as the 3.0.4 to 3.1 have the old includes still.
Should be fixed in -r1.