Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 121992 - app-office/openoffice-2.0.1 compile fix for gcc-4.1.x users
Summary: app-office/openoffice-2.0.1 compile fix for gcc-4.1.x users
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Office Team
URL: http://forums.gentoo.org/viewtopic-t-...
Whiteboard:
Keywords:
Depends on:
Blocks: 117482
  Show dependency tree
 
Reported: 2006-02-07 08:15 UTC by Priit Laes (IRC: plaes)
Modified: 2007-03-16 09:31 UTC (History)
1 user (show)

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


Attachments
store-drop-gcc-libs-on-linking.diff (store-drop-gcc-libs-on-linking.diff,599 bytes, patch)
2006-02-07 08:16 UTC, Priit Laes (IRC: plaes)
Details | Diff
gcc-4.1.x-nptlonly-tls-fix.diff (gcc-4.1.x-nptlonly-tls-fix.diff,365 bytes, patch)
2006-02-07 08:17 UTC, Priit Laes (IRC: plaes)
Details | Diff
openoffice-2.0.1.ebuild.diff (openoffice-2.0.1.ebuild.diff,604 bytes, patch)
2006-02-07 08:20 UTC, Priit Laes (IRC: plaes)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Priit Laes (IRC: plaes) 2006-02-07 08:15:39 UTC
Compiling openoffice-2.0.1 with gcc-4.1 compiler on the nptlonly glibc results in compile error.

Patches coming.
Comment 1 Priit Laes (IRC: plaes) 2006-02-07 08:16:37 UTC
Created attachment 79125 [details, diff]
store-drop-gcc-libs-on-linking.diff

Patch from ooo-build.
Comment 2 Priit Laes (IRC: plaes) 2006-02-07 08:17:42 UTC
Created attachment 79126 [details, diff]
gcc-4.1.x-nptlonly-tls-fix.diff

Patch against to get it automatically patch the sources.
Comment 3 Priit Laes (IRC: plaes) 2006-02-07 08:20:57 UTC
Created attachment 79127 [details, diff]
openoffice-2.0.1.ebuild.diff

Patch against ebuild. At the moment it's untested, but openoffice is currently emerging and has already passed the point of breakage.

To avoid regressions, we should check whether glibc was built with nptlonly USE flag, but hopefully it works :)
Comment 4 Hanno Zysik (geki) 2006-02-15 04:59:58 UTC
My initial hack just drops the gcc check in store/util/makefile.mk.
(.IF "$(COMID)"=="gcc3")

The real fix is to change $(COMID) to gcc4 if gcc4.x is used.
If I am not mistaken.

I will have a look into this and supply a patch then.
Comment 5 Hanno Zysik (geki) 2006-02-16 04:07:14 UTC
Touching $(COMID) ends in a deep impact of OOo build procedure.
No way I touch that. :)

new version on ooo-build-HEAD:
http://go-oo.org/patches/src680/store-drop-gcc-libs-on-linking.diff

ChangeLog:
	* patches/src680/store-drop-gcc-libs-on-linking.diff: replace hack by
	additional gcc version check, add '-lsupc++ -lgcc_s' only for < gcc 4.1
Comment 6 Priit Laes (IRC: plaes) 2006-02-17 07:22:08 UTC
This is still needed for app-office/openoffice-2.0.2_rc1
Comment 7 Priit Laes (IRC: plaes) 2006-02-28 23:34:48 UTC
...and still needed with app-office/openoffice-2.0.2_rc3.
Comment 8 Andreas Proschofsky (RETIRED) gentoo-dev 2006-03-01 10:05:15 UTC
I've just added a new revision to portage which utilizes Hannos Hack for fixing this. Could you please try out and see how it goes?
Comment 9 Priit Laes (IRC: plaes) 2006-03-01 23:01:05 UTC
Works for me :)

Marking fixed..