I sucessfully emerged oo-bin on x86 linux hardware. I needed to add eselect-oodict to my overlay as well. Ran eapify on both ebuilds and grabbed the patches in the x86 tree. I had to modifiy the patches to get everything to work, extremely trivial modifications listed below. Compiles AND runs fine. trivial to add to the tree. EXCEPT: I removed glibc as a dep of the ebuild, because we can assume the host system has it on x86 or amd64 (linux)...I think. % cat app-office/openoffice-bin/files/50-openoffice-bin SEARCH_DIRS_MASK="$EPREFIX/usr/lib/openoffice $EPREFIX/usr/lib32/openoffice" % cat app-office/openoffice-bin/files/wrapper.in #!/bin/sh export OOO_EXTRA_ARG='' unset PYTHONPATH $EPREFIX/usr/LIBDIR/openoffice/program/soffice "$@" (Only thing added to these two file is the 3 instances of $EPREFIX.)
This is the version that I used: app-office/openoffice-bin-2.3.0
Oh, possible snag and not so trivial. "For this reason, keep in mind that changes to those files get lost upon the next run of eupdate. Since this is done almost daily, the modifications disappear soon enough. Only files with a CVS $ Header: (such as ebuilds) can be changed in such a way that the modifications are not lost." So..how do you handle the updates needed to the files in */files? Create a patch that modifies them?
We need a patch here that patches the config file using @GENTOO_PORTAGE_EPREFIX@, to be applied somewhere in ${T} or ${S}. Then run eprefixify on the patched file in the build's src_unpack. Don't forget to use the patched file, and not the one from ${FILESDIR}.
Pulled eselect-oodict into a new bug. I will post my patch for this bug soon.
Created attachment 138899 [details, diff] patch to modify app-office/openoffice-bin-2.3.1.ebuild To make the openoffice ebuild work with prefix: 1) apply this patch to the ORIGINAL ebuild to modify the ebuild 2) put my ${P}-prefix.patch file in ${FILESDIR} (This patch includes the changes made by eapify, so you don't need to run that first.)
Created attachment 138901 [details, diff] patch needed to modify files in ${T}
Created attachment 140560 [details, diff] cleaner patch, same content
openoffice-bin-2.4.0 added to tree. Removed glibc as a dep. Added prefix patch to FILESDIR. works ;-) Committed revision 21974.
did you remove the dep on glibc or did you make it conditional depending on !prefix? ( glibc ) ?
(In reply to comment #9) > did you remove the dep on glibc or did you make it conditional depending on > !prefix? ( glibc ) ? I removed it. I didn't even think about doing !prefix. But, that makes sense based on the goal that we want all ebuilds to be able to be merged someday, I'll change it.