First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 28419
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Mamoru KOMACHI (RETIRED) <usata@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Henry Yang <henryy@karajishi.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
emerge_monafont_2.90__output The error message (ignore the progress bar glitches) text/plain Henry Yang 2003-09-11 11:48 0000 871.97 KB Details
emerge_monafont_2.90__output The error message (ignore the progress bar glitches) text/plain Henry Yang 2003-09-11 11:49 0000 871.97 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 28419 depends on: Show dependency tree
Bug 28419 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2003-09-10 23:12 0000
When building monafont, the builder will take the locale envirnment variables 
into consideration and it will fail if LC_CTYPE is set to any UTF-8 encodings. 
One posible solution is to set LC_ALL to "POSIX" or "C" in the ebuild file. It 
is advised that NO ebuilds should depend on the locale set by the envirnment 
variables.

Reproducible: Always
Steps to Reproduce:
1. define a UTF-8 locale by typing the following:
# localedef -v -c -i en_CA -f UTF-8 en_CA.UTF-8
You can replace en_CA with other languages

2. run the following:
LC_CTYPE=en_CA.UTF-8 emerge monafont


Actual Results:  
IT will spit out tons of warnings about invalid UTF-8 characters and ultimately 
fail.

Expected Results:  
The emerge should succedd with very little warnings

I created another locale, ja_JP.SJIS (created with localedef). The following 
locale all passed with little warnings:

C
POSIX
ja_JP.SJIS

I haven't tested to see if those three locales will generate different result, 
and I suspect that the package, monafont, should only be built under one locale 
(very likely ja_JP.SJIS), and other locales might generate obscure bugs even if 
it was built without errors (such as C or POSIX).

------- Comment #1 From Mamoru KOMACHI (RETIRED) 2003-09-11 00:50:45 0000 -------
Actually it doesn't fail to build here even though I get lots of errors 
(after I added `export PERL_BADLANG=0` to src_compile() section
all those errors went away).  I tested both monafont-2.22 and monafont-2.90
with LC_CTYPE=en_CA.UTF-8.

Could you sent your `emerge info` and the version of monafont you tried?
The full log of failed emerge will also help.

------- Comment #2 From Henry Yang 2003-09-11 11:48:26 0000 -------
Created an attachment (id=17516) [edit]
The error message (ignore the progress bar glitches)

emerge info:
Portage 2.0.49-r3 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r1,
2.4.20-gentoo-r6)
=================================================================
System uname: 2.4.20-gentoo-r6 i686 Pentium III (Coppermine)
distcc 2.10 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
ccache version 2.2 [enabled]
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -fomit-frame-pointer -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /var/bind /usr/X11R6/lib/X11/xkb
/usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -fomit-frame-pointer -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 apm crypt encode foomaticdb gif imlib jpeg libg++ mad mikmod mmx mpeg
ncurses nls pdflib png quicktime spell truetype xml2 zlib gdbm berkdb slang
readline tetex aalib svga tcltk java guile mysql X sdl gpm tcpd pam libwww ssl
perl python oggvorbis gtk qt motif opengl acpi acpi4linux apache2 cjk directfb
doc emacs fbcon freewnn gtk2 icc imap jikes leim maildir nocardbus samba snmp
sse tiff vim-with-x wmf -oss -avi -cups -kde -gnome -xmms -xv -arts"


locale:

LANG=en_CA
LC_CTYPE=en_CA.UTF-8
LC_NUMERIC="en_CA"
LC_TIME="en_CA"
LC_COLLATE="en_CA"
LC_MONETARY="en_CA"
LC_MESSAGES="en_CA"
LC_PAPER="en_CA"
LC_NAME="en_CA"
LC_ADDRESS="en_CA"
LC_TELEPHONE="en_CA"
LC_MEASUREMENT="en_CA"
LC_IDENTIFICATION="en_CA"
LC_ALL=

------- Comment #3 From Henry Yang 2003-09-11 11:49:28 0000 -------
Created an attachment (id=17517) [edit]
The error message (ignore the progress bar glitches)

emerge info:
Portage 2.0.49-r3 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r1,
2.4.20-gentoo-r6)
=================================================================
System uname: 2.4.20-gentoo-r6 i686 Pentium III (Coppermine)
distcc 2.10 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
ccache version 2.2 [enabled]
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -fomit-frame-pointer -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /var/bind /usr/X11R6/lib/X11/xkb
/usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -fomit-frame-pointer -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 apm crypt encode foomaticdb gif imlib jpeg libg++ mad mikmod mmx mpeg
ncurses nls pdflib png quicktime spell truetype xml2 zlib gdbm berkdb slang
readline tetex aalib svga tcltk java guile mysql X sdl gpm tcpd pam libwww ssl
perl python oggvorbis gtk qt motif opengl acpi acpi4linux apache2 cjk directfb
doc emacs fbcon freewnn gtk2 icc imap jikes leim maildir nocardbus samba snmp
sse tiff vim-with-x wmf -oss -avi -cups -kde -gnome -xmms -xv -arts"


locale:

LANG=en_CA
LC_CTYPE=en_CA.UTF-8
LC_NUMERIC="en_CA"
LC_TIME="en_CA"
LC_COLLATE="en_CA"
LC_MONETARY="en_CA"
LC_MESSAGES="en_CA"
LC_PAPER="en_CA"
LC_NAME="en_CA"
LC_ADDRESS="en_CA"
LC_TELEPHONE="en_CA"
LC_MEASUREMENT="en_CA"
LC_IDENTIFICATION="en_CA"
LC_ALL=

------- Comment #4 From Henry Yang 2003-09-11 11:51:47 0000 -------
note that the lcoale en_CA.UTF-8 was generated wit hthe following command:

localedef -v -c -i en_CA -f UTF-8 en_CA.UTF-8

------- Comment #5 From Mamoru KOMACHI (RETIRED) 2003-09-11 15:04:47 0000 -------
I reconfirmed your bug with
`LANG=en_CA LC_CTYPE=en_CA.UTF-8 emerge monafont`
and adding LC_CTYPE=C in src_compile() solved the problem.
Thanks for reporting.

First Last Prev Next    No search results available      Search page      Enter new bug