Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10381 - [OpenOffice.org] Missing file in Sparc install
Summary: [OpenOffice.org] Missing file in Sparc install
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Sparc Linux
: High normal (vote)
Assignee: Sparc Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-07 06:28 UTC by Nick Merrett
Modified: 2003-09-03 19:31 UTC (History)
1 user (show)

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


Attachments
openoffice patch that fixes sparc asm problems (openoffice-sparc.diff.bz2,15.47 KB, application/octet-stream)
2003-08-01 13:30 UTC, Jason Wever (RETIRED)
Details
Fixes openoffice's arch detection in config_office/set_soenv.in (openoffice-gentoo-sparc.patch,580 bytes, patch)
2003-08-01 13:35 UTC, Jason Wever (RETIRED)
Details | Diff
output from ebuild install (openoffice-sparc-install-errors.txt,29.74 KB, text/plain)
2003-09-01 16:28 UTC, Jason Wever (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Merrett 2002-11-07 06:28:38 UTC
The ebuild for OpenOffice-1.0.1-r1 cant find a particular file on the system. 

the file is called LinuxSparcEnv.set and is called listed in the ebuild file

get_EnvSet() {

	# Determine what Env file we should be using (Az)
	export LinuxEnvSet="LinuxIntelEnv.Set"
	use sparc && export LinuxEnvSet="LinuxSparcEnv.Set"
	use sparc64 && export LinuxEnvSet="LinuxSparcEnv.Set"
	use ppc && export LinuxEnvSet="LinuxPPCEnv.Set"
	use alpha && export LinuxEnvSet="LinuxAlphaEnv.Set"

	# Get build specific stuff (Az)
	export SOLVER="$(awk '/^setenv UPD / {print $3}' ${LinuxEnvSet})"
	export SOLPATH="$(awk '/^setenv INPATH / {print $3}' ${LinuxEnvSet})"
}
Comment 1 Jack Morgan (RETIRED) gentoo-dev 2002-11-25 07:36:07 UTC
Alron, can you look into this.

Thanks
Comment 2 Dean Bailey 2002-11-25 08:05:41 UTC
looking
Comment 3 Seth Chandler 2002-11-25 15:18:16 UTC
none of those arch specific files exist except for the intel file...
Comment 4 Seth Chandler 2002-12-01 02:26:33 UTC
Alright, this env set should be generated by configure in config_office.  I'm 
not sure why its not getting generated, should be automagic.  Seeing as i 
don't have a sparc to test this out on....

(this is where that should happen)
set_soenv.1:      $outfile        = "LinuxSparcEnv.Set";

$_machine_type should be set to sparc in configure, not sure why this isn't 
showin up.  Az, any ideas?
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-01 03:12:10 UTC
Not sure.  I added the stuff for other archs at the time, but could not test
as I only have x86 ..  Somebody with a sparc will have to:

 # ebuild openofffice-1.0.1-r1 unpack
 # cd /var/tmp/portage/openoffice-1.0.1-r1/work/oo_1.0.1_src/config_office
 # ./configure

and then check for:

-----------------------
* USAGE: 
* Source LinuxIntelEnv.Set in order to set up the build-environment 
* variables. 
* 
-----------------------

and if this file mentioned is actually created.
Comment 6 Jason Wever (RETIRED) gentoo-dev 2003-04-15 15:23:39 UTC
The reason this is happening is because openoffice's configure script doesn't take into account for uname -m returning sparc64, only sparc.  To get around this, either change /var/tmp/portage/openoffice-1.0.x/work/oo_1.0.x_src/config_office/set_soenv.in to allow the sparc declaration to also work if uname -m matches sparc64 or to emerge the sparc32 package in portage and emerge openoffice using the command "sparc32 emerge openoffice".

I haven't adjusted the ebuild for either of these corrections yet as openoffice fails on compilation even with either of these fixes in place.
Comment 7 Seth Chandler 2003-04-20 15:58:54 UTC
sorry, i can't really test this...i don't have a sparc...not sure why seemant bumped it back over 
to me 
Comment 8 Jack Morgan (RETIRED) gentoo-dev 2003-05-17 11:29:33 UTC
reassigning back to sparc so we can look into it
Thanks
Comment 9 Jack Morgan (RETIRED) gentoo-dev 2003-05-17 23:28:29 UTC
OpenOffice has assembly in it that prevents it from compiling on sparc. Untill this is fixed upstream, i'm closing this bug
Comment 10 Jack Morgan (RETIRED) gentoo-dev 2003-05-17 23:34:16 UTC
close bug
Comment 11 Jason Wever (RETIRED) gentoo-dev 2003-08-01 13:30:01 UTC
Created attachment 15338 [details]
openoffice patch that fixes sparc asm problems

Found a patch from usenet
<http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=20030612142014%2432cb%40gated-at.bofh.it>
for openoffice that fixes the sparc asm issues for openoffice.	This patch plus
another I will attach in a few allow openoffice to compile using ebuild
compile, but something hangs during ebuild install.  I haven't tried removing
the patches gentoo applies yet to see if it's one of those.
Comment 12 Jason Wever (RETIRED) gentoo-dev 2003-08-01 13:31:58 UTC
Newly added patch fixes sparc ASM problem
Comment 13 Jason Wever (RETIRED) gentoo-dev 2003-08-01 13:35:16 UTC
Created attachment 15339 [details, diff]
Fixes openoffice's arch detection in config_office/set_soenv.in
Comment 14 Jason Wever (RETIRED) gentoo-dev 2003-09-01 16:28:12 UTC
Created attachment 16933 [details]
output from ebuild install
Comment 15 Jason Wever (RETIRED) gentoo-dev 2003-09-01 16:29:47 UTC
Using the patches attached to this case, I can get openoffice to build.  However during installation, the install process cannot find a file and then it hangs.  I have attached the output of ebuild install for interested parties and will continue to look into it.
Comment 16 Jason Wever (RETIRED) gentoo-dev 2003-09-03 19:31:41 UTC
Found that what was happening is openoffice wasn't installing a README in the right place, so when it installed, it puked because it could find it.  I'm guessing this is basically due to the fact that linux on sparc is not a supported platform by openoffice.  Adjusted ebuild to copy the README into the needed path so it would install right.

This now compiles, installs and runs on sparc.  I've marked it ~sparc.

Marking this case as resolved:fixed.