Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 386095 - elog QA mails are misformatted
Summary: elog QA mails are misformatted
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
: 228565 (view as bug list)
Depends on:
Blocks: 381649
  Show dependency tree
 
Reported: 2011-10-07 16:11 UTC by Toralf Förster
Modified: 2013-02-15 22:40 UTC (History)
1 user (show)

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


Attachments
mbox mail ([portage] ebuild log for sci-libs_gdal-1.6.3-r1 on n22.n22_domain.mbox,4.60 KB, text/plain)
2011-10-07 17:10 UTC, Toralf Förster
Details
elog file (sci-libs:gdal-1.6.3-r1:20111006-123253.log,3.93 KB, text/plain)
2011-10-07 17:12 UTC, Toralf Förster
Details
with python2, call MIMEText.set_charset("UTF-8") (mimetext_charset.patch,446 bytes, patch)
2011-10-08 01:42 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2011-10-07 16:11:26 UTC
for some reasons /since some time portage sends me now QA mails like this :

QA Notice: Package triggers severe warnings which indicate that it
           may exhibit random runtime failures.
geoconcept.c:2453:7: warning: the address of ‘bbox’ will always evaluate as ‘true’

whereas the log file under /var/log/portage/elog is displayed in the correct character set:

geoconcept.c:2453:7: warning: the address of ‘bbox’ will always evaluate as ‘true’ 


Reproducible: Always




tfoerste@n22 ~ $ emerge --info portage
Portage 2.1.10.22 (default/linux/x86/10.0/desktop/kde, gcc-4.5.3, glibc-2.12.2-r0, 2.6.39.4 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.39.4-i686-Intel-R-_Core-TM-2_Duo_CPU_P8600_@_2.40GHz-with-gentoo-2.0.3
Timestamp of tree: Fri, 07 Oct 2011 14:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.1.3-r1
dev-util/ccache:          2.4-r9
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1::toralf
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo betagarden toralf
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
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.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FEATURES="assume-digests binpkg-logs ccache compress-build-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch"       
FFLAGS=""                                                                                                               
GENTOO_MIRRORS="http://mirror.leaseweb.com/gentoo/ http://gentoo.mirror.dkm.cz/pub/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.mneisen.org/ http://www.gtlib.gatech.edu/pub/gentoo"                                     
LANG="en_US.utf8"                                                                                                       
LDFLAGS="-Wl,-O1 -Wl,--as-needed"                                                                                       
LINGUAS="en en_GB"                                                                                                      
MAKEOPTS="-j 3"                                                                                                         
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/betagarden /usr/local/portage"
SYNC="rsync://linux.rz.ruhr-uni-bochum.de/gentoo-portage"
USE="X a52 aac acl acpi alsa apache2 berkdb bluetooth branding bzip2 cairo cdda cdr classic cli consolekit cracklib crypt css cups cxx dbus declarative dri dts dvb dvd dvdr emboss encode exif fam fastbuild fat ffmpeg firefox flac fortran gdbm gdu gif git gmp gphoto2 gpm gtk hyphenation iconv ipv6 java jpeg kde kipi kqemu kvm lastfm lcms ldap libnotify lirc logrotate mad mbox mmx mng modules mp3 mp4 mpeg mudflap mysql mysqli ncurses nls nptl nptlonly nsplugin ntfs ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pppd qt3support qt4 rdesktop readline sdl semantic-desktop session sieve spell sse sse2 sse3 ssl ssse3 startup-notification svg sysfs tcpd thinkpad tiff tk transparent-proxy truetype udev unicode usb vaapi vim-syntax vnc vorbis wmf x264 x86 xcb xcomposite xinerama xml xorg xpm xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" 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 cgi 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_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB" LIRC_DEVICES="devinput inputlirc" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

sys-apps/portage-2.1.10.22 was built with the following:
USE="(consolekit) (ipc) (policykit) test -build -doc -epydoc -python2 -python3 (-selinux)" LINGUAS="-pl"
Comment 1 Zac Medico gentoo-dev 2011-10-07 16:33:45 UTC
There are lots of character set encoding issues to consider here:

1) What encoding is the original message?
2) What encoding is the email content?
3) Is your email client using the correct encoding to decode the message?
4) What encoding is your elog reader (text editor, pager, etc..) using to decode the log in /var/log/portage/elog?

Your locale setting (LANG variable) probably has a role in this, so what is that? Also, please attach the raw email message as it was delivered to your email client.
Comment 2 Fabian Groffen gentoo-dev 2011-10-07 16:47:54 UTC
what is the Content-Type: header of the emails that look garbled
Comment 3 Toralf Förster gentoo-dev 2011-10-07 17:10:21 UTC
Created attachment 289087 [details]
mbox mail

tfoerste@n22 ~ $ echo $LANG
en_US.utf8
Comment 4 Toralf Förster gentoo-dev 2011-10-07 17:12:28 UTC
Created attachment 289089 [details]
elog file

tfoerste@n22 ~ $ echo $LANG
en_US.utf8
tfoerste@n22 ~ $ env | grep ^LC
tfoerste@n22 ~ $
Comment 5 Toralf Förster gentoo-dev 2011-10-07 17:14:19 UTC
well - it seems to be a problem with KMail1 to set the correct encoding font utf8 (but it worked in the past and I didn't upgraded it)
Comment 6 Fabian Groffen gentoo-dev 2011-10-07 17:26:58 UTC
here is the problem:

Content-Type: text/plain;
  charset="us-ascii"

I'm not sure what sends the email, but if it's Python smtp lib or something, I bet the Content-Type has to be set explicitly according to the environment, UTF-8 in your case.
Comment 7 Zac Medico gentoo-dev 2011-10-08 01:42:22 UTC
Created attachment 289173 [details, diff]
with python2, call MIMEText.set_charset("UTF-8")

Hopefully this will fix it. Save as /tmp/mimetext_charset.patch, and apply as follows:

  patch /usr/lib/portage/pym/portage/mail.py /tmp/mimetext_charset.patch
Comment 8 Toralf Förster gentoo-dev 2011-10-08 07:33:15 UTC
(In reply to comment #7)
> Hopefully this will fix it.

yes :-)
Comment 10 Zac Medico gentoo-dev 2011-10-08 16:13:41 UTC
This is fixed in 2.1.10.24 and 2.2.0_alpha64.
Comment 11 Zac Medico gentoo-dev 2013-02-15 22:40:30 UTC
*** Bug 228565 has been marked as a duplicate of this bug. ***