Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 275986 - sys-apps/sed-4.2 - tests utf8-[1-4] fail ("XPASS")
Summary: sys-apps/sed-4.2 - tests utf8-[1-4] fail ("XPASS")
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
Depends on:
Reported: 2009-06-30 19:00 UTC by Jeroen Roovers (RETIRED)
Modified: 2017-01-18 09:36 UTC (History)
5 users (show)

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

sys-apps:sed-4.2:20090630-175303.log [hppa,fail] (20090630-175303.log,34.47 KB, text/plain)
2009-06-30 19:01 UTC, Jeroen Roovers (RETIRED)

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2009-06-30 19:00:33 UTC
Tue Jun 30 17:30:38 CEST 2009
Portage (default/linux/hppa/2008.0, gcc-4.4.0, glibc-2.9_p20081201-r2, 2.6.30-JeR parisc)
System uname: Linux-2.6.30-JeR-parisc-PA8700_-PCX-W2-with-glibc2.2
Timestamp of tree: Tue, 30 Jun 2009 03:20:02 +0000
distcc 3.1 hppa2.0-unknown-linux-gnu [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.4.6, 2.5.4-r3
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
CFLAGS="-O2 -pipe -mschedule=8000 -march=2.0 -g -ggdb -Wall"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/fax /usr/share/config /var/bind /var/spool/fax/etc /var/spool/torque /var/www/localhost/htdocs/wordpress/wp-config.php"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -mschedule=8000 -march=2.0 -g -ggdb -Wall"
FEATURES="autoaddcvs buildpkg cvs distlocks fixpackages notitles parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict test test-fail-continue unmerge-orphans userfetch"
LINGUAS="en nl he"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
USE="7zip X Xaw3d a52 aac aalib abyss accessibility acl ads agg alsa amr amrnb amrwb ao aoss apache2 ares artist-screen asf async asyncns audiofile audit automount avfs bash-completion berkdb bidi bittorrent bittorrent-external bl bluetooth bzip2 c++ cairo caps captury catalogs cblas cdb cddb cdparanoia cdr chardet cjk clarens cli colors cracklib crypt cups curl custom-cflags custom-cxxflags cxx dbi dbtool dbus designer designer-plugin device-mapper dga dia dirac directfb djbfft djvu domainkeys dri drm dts dv dvd dvdr dvdread dxr3 ebook edl elf emacs enca encode esd examples exif expat fame fastbuild fastcgi fbcon ffmpeg filter flac fluidsynth fontconfig fontforge foomaticdb fortran ftp gadu galago gcrypt gd gdbm geant4 geoip ggi gif gimp gimpprint glep glib glut gmp gnokii gnome gnutls google-gadgets gphoto2 gpm gps gs gsl gsm gtk gtk2 gtkhtml guidexml hal hepmc hesiod hppa i18n ical icecast iconv icu idea idn imagemagick imlib immqt-bc inquisitio ipv6 isc isdnlog ithreads jack javascript jbig jingle jpeg jpeg2k judy kde kerberos kpathsea lapack lasi latex lcms ldap leim libass libcaca libffi libmms libnotify libotf libsamplerate libwww live lm_sensors logrotate logwatch lua lyrics-screen lzo mad manhole matroska mbrola memcache metis mhash midi mikmod mmap mng modplug motif mozbranding mp3 mplayer mssql mudflap musepack musicbrainz mysql nas nautilus ncurses netpbm network-cron nfconntrack nfs nls nntp nptl nptlonly nsplugin ntlm offensive ogg openal openexr opengl openmp openssl oss ots overlays pam pango pbs pch pcre pdf pdo-external perl php plasma plotutils plugins png policykit portage portaudio postgres povray ppds pppd pulseaudio python pyzord qalculate qdbm qt3 qt3support qt4 quotas raw readline recode reflection rle rpc rrdtool rtc ruby samba sasl scanner schroedinger scim sdl seamonkey server session sid slang slp sms sndfile snmp song-screen soundex speex spell spl sqlite srt srtp ssh ssl startup-notification subtitles subversion suhosin supernodal svg swat sysfs syslog talkfilters tcl tcpd test tftp tga theora threads thumbnail thunar-vfs tidy tiff timidity tk tools truetype tslib tunepimp twolame udev unicode unzip urandom usb userlocales utempter utf v4l v4l2 vanim vcd vidix vim-syntax vorbis watchdog wavpack webdav webinstall webkit winbind wlan wma wmf xanim xattr xcb xchattext xcomposite xface xml xml2 xmp xmpi xorg xpm xrandr xscreensaver xsettings xulrunner xv xvid xvmc zip zip-external zlib" ALSA_CARDS="ad1889 usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_ftp proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev joystick keyboard mouse acecad aiptek calcomp citron digitaledge dmc dynapro elo2300 elographics fpit hyperpen jamstudio magellan microtouch mutouch palmax penmount spaceorb summa synaptics tek4957 tslib ur98 virtualbox wacom void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en nl he" USERLAND="GNU" VIDEO_CARDS="stifb fbdev matrox dummy"
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2009-06-30 19:01:17 UTC
Created attachment 196197 [details]
sys-apps:sed-4.2:20090630-175303.log [hppa,fail]
Comment 2 Christian Faulhammer (RETIRED) gentoo-dev 2009-06-30 19:04:28 UTC
Same here on x86, alpha is ok.
Comment 3 Christian Faulhammer (RETIRED) gentoo-dev 2009-06-30 19:24:20 UTC
It is triggered by non-English locales.  jer has nl, I have de while Tobias succeeded with en.  LC_ALL=C makes the test suite run flawlessly.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2009-06-30 19:33:31 UTC
(In reply to comment #3)
> It is triggered by non-English locales.  jer has nl, I have de while Tobias
> succeeded with en.  LC_ALL=C makes the test suite run flawlessly.

No, it's triggered by any UTF8 locale, regardless of language.
Comment 5 Michael Edenfield 2009-07-14 21:12:57 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > It is triggered by non-English locales.  jer has nl, I have de while Tobias
> > succeeded with en.  LC_ALL=C makes the test suite run flawlessly.
> No, it's triggered by any UTF8 locale, regardless of language.

Actually, it's triggered by a *lack* of the ru_RU.UTF-8 locale, but presence of any other UTF-8 locale.  This is because of an incorrect check in the configure script for UTF-8 support, which basically checks to see if Cyrillic case folding functions properly.  It does this by trying to switch to the ru_RU.UTF-8 locale, then confirming that towupper() works on a lower/upper case pair of Cyrillic characters. 

The problem is that, if you don't have ru_RU.UTF-8 available, the test switching explicitly to the "C" locale, then immediately checks to see if the locale name ends in .UTF8.  Since this will always be false, the configure test *always* fails if you don't have ru_RU.UTF-8 available.  So it sets up the test suite to expect all the utf8-* tests to fail.

The test suite test itself, apparently, does the correct thing and switches to whatever available UTF-8 locale you have defined by LC_ALL, and the tests pass.

A quick workaround is to add ru_RU.UTF-8 to /etc/locale.gen and re-run locale-gen.  A better fix is for someone who understands the setlocale() stuff better than I do, to fix the test in, just after "AC_MSG_CHECKING([whether UTF-8 case folding tests should pass])".