Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 194242 - app-office/openoffice - ebuild fix to have it respect CHOST
Summary: app-office/openoffice - ebuild fix to have it respect CHOST
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-30 05:29 UTC by Chris Slycord
Modified: 2007-10-19 09:48 UTC (History)
0 users

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


Attachments
The unified diff you want/need (the_diff,331 bytes, text/plain)
2007-09-30 07:14 UTC, Chris Slycord
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Slycord 2007-09-30 05:29:06 UTC
By default, the configure script used for the ebuild for version 2.3.0 ignores the build host. With the following (a diff between the edited ebuild and the original), the build will use the correct CHOST-specific compiler instead of a generic one.


307d306
<               --host="${CHOST}" \
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-09-30 06:38:16 UTC
The patch is reversed, plus please use unified diffs, not the unreadable context ones.
Comment 2 Chris Slycord 2007-09-30 07:14:41 UTC
Created attachment 132212 [details]
The unified diff you want/need
Comment 3 Andreas Proschofsky (RETIRED) gentoo-dev 2007-10-08 10:42:15 UTC
Are you sure this changes anything at all? Your diff adds this to the ooo-build configure-script which doesn't check for host-settings at all, see:

http://svn.gnome.org/viewcvs/ooo-build/trunk/configure.in?revision=10389&view=markup

The openoffice-configure-script itself indeed has a host-check, but what do you gain by altering it? Which problem does it solve?
Comment 4 Chris Slycord 2007-10-08 15:10:47 UTC
(In reply to comment #3)
> Are you sure this changes anything at all? Your diff adds this to the ooo-build
> configure-script which doesn't check for host-settings at all, see:
> 
> http://svn.gnome.org/viewcvs/ooo-build/trunk/configure.in?revision=10389&view=markup
> 
> The openoffice-configure-script itself indeed has a host-check, but what do you
> gain by altering it? Which problem does it solve?
> 

What I gain is that this way, if CC is invoked it invokes (on my box) "i686-pc-linux-gnu-gcc" instead of simply "cc" or "gcc".

With the old way, it could get messed up if you were were doing something like cross-compiling and called the wrong compiler (the system one instead of the cross-compiler or vice-versa if the cross-compiler was somehow early in your $PATH).
Comment 5 Andreas Proschofsky (RETIRED) gentoo-dev 2007-10-19 09:48:35 UTC
I've added this, thanks for the bug report