Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 3111 - OpenOffice 1.0.0 Won't Ebuild
Summary: OpenOffice 1.0.0 Won't Ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Seth Chandler
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-28 08:04 UTC by Michael Hipp
Modified: 2003-02-04 19:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gcc-3.1 updated ebuild (openoffice-1.0.0-r1.tgz,5.40 KB, application/octet-stream)
2002-05-30 17:09 UTC, Nicholas Jones (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Hipp 2002-05-28 08:04:07 UTC
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.
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2002-05-30 08:11:46 UTC
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.
Comment 2 Nicholas Jones (RETIRED) gentoo-dev 2002-05-30 10:47:03 UTC
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.
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2002-05-30 15:14:04 UTC
It IMHO not tested with gcc-3.1 ... builds fine with gcc-3.0.4.
Comment 4 Nicholas Jones (RETIRED) gentoo-dev 2002-05-30 17:09:03 UTC
Created attachment 1239 [details]
gcc-3.1 updated ebuild
Comment 5 Nicholas Jones (RETIRED) gentoo-dev 2002-05-30 17:10:10 UTC
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
Comment 6 Nicholas Jones (RETIRED) gentoo-dev 2002-05-31 11:34:04 UTC
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
Comment 7 Doug Goldstein (RETIRED) gentoo-dev 2002-06-01 16:38:49 UTC
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  
Comment 8 Nicholas Jones (RETIRED) gentoo-dev 2002-06-01 22:59:06 UTC
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
Comment 9 Nicholas Jones (RETIRED) gentoo-dev 2002-06-01 23:17:02 UTC
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.
Comment 10 Martin Schlemmer (RETIRED) gentoo-dev 2002-06-10 13:55:48 UTC
Should be fixed in -r1.