Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 65379

Summary: emerge =app-office/openoffice-1.1.2 fails during gccinstlib.pl
Product: Gentoo Linux Reporter: Mark Kusch <foobar>
Component: New packagesAssignee: Gentoo Office Team <office>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Mark Kusch 2004-09-25 23:37:11 UTC
While installing openoffice-1.1.2 after about 15 minutes gccinstlib.pl tries to get a libruary path in line 70:
$ENV{'LC_MESSAGES'} = 'C';

%SearchDirs = GetGccSearchDirs ();

In my case the system is configured for german use and %SearchDirs = GetGccSearchDirs (); failes, so openoffice errors with "foo" in gccinstlib.pl.

I fixed this problem by changing 
$ENV{'LC_MESSAGES'} = 'C'; to
$ENV{'LC_ALL'} = 'C'; and made a diff between these files and wrote an epatch line into the ebuild for openoffice-1.1.2.
Line 253: epatch ${FILESDIR}/${PV}/ENV.patch

After applying my patch everything compiled fine!

Reproducible: Always
Steps to Reproduce:
1. emerge -u openoffice
2. emerge =app-office/openoffice-1.1.2
3. everything about trying to emerge openoffice-1.1.2



Expected Results:  
### Here's my patch:

--- gccinstlib.pl~      2004-09-25 20:14:29.337651944 +0200
+++ oo_1.1.2_src/solenv/bin/gccinstlib.pl       2004-09-25 20:14:35.517712432 +0200
@@ -63,7 +63,7 @@
 #
 #*************************************************************************

-$ENV{'LC_MESSAGES'} = 'C';
+$ENV{'LC_ALL'} = 'C';

 %SearchDirs = GetGccSearchDirs ();


bo.groover( ~ ): emerge info                                                   
                 8:30:42
Portage 2.0.51_rc1 (!/etc/portage/profile, gcc-3.3.4, glibc-2.3.4.20040808-r0,
2.6.7-ck5 i686)
=================================================================
System uname: 2.6.7-ck5 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.5.3
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.7-r4
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe -mfpmath=sse -mmmx -msse"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /home /opt /root /usr/X11R6/lib/X11/xkb
/usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -mfpmath=sse -mmmx -msse"
DISTDIR="/usr/portage/dist"
FEATURES="autoaddcvs ccache cvs sandbox"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
http://ftp.gentoo.skynet.be/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/pkgs"
PORTAGE_TMPDIR="/usr/portage/tmp"
PORTDIR="/usr/portage/rsync"
PORTDIR_OVERLAY="/usr/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow GAPING_SECURITY_HOLE X aalib acpi alsa apm avi bitmap-fonts caps cdr
chroot crypt cups divx4linux doc dvd dvdr encode esd ffmpeg flac foomaticdb gcj
gdbm ggi gif gimpprint gpm gtk gtk2 icq idea imagemagick imap imlib java
javascript jikes jpeg lcms ldap lesstif libcaca libwww live lua mad maildir mbox
md5sum mmx motif mpeg ncurses nls nntp nogcj nptl oggvorbis opengl openssh oss
pam parse-clocks pcap pdflib perl png ppds pwdb python qt quicktime readline
ruby sasl sdl snmp sse ssl tcltk tcpd tetex tiff truetype unicode usb v4l
vanilla vim-with-x wmf wxwindows x86 xface xml xml2 xmms xprint xv xvid zlib"
Comment 1 Paul de Vrieze (RETIRED) gentoo-dev 2004-09-27 01:43:10 UTC
I've fixed it in cvs. Next time please attach patches as the web interface makes the patch invalid (I needed to edit the file manually and make a new patch)