Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 331133 - uim-1.5.7-r1 fails to compile against qt-4.7
Summary: uim-1.5.7-r1 fails to compile against qt-4.7
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: CJK Team
URL:
Whiteboard:
Keywords:
: 368483 (view as bug list)
Depends on:
Blocks: qt-4.7
  Show dependency tree
 
Reported: 2010-08-03 22:43 UTC by Alonso Schaich
Modified: 2012-10-10 18:42 UTC (History)
2 users (show)

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


Attachments
uim-1.5.7-r2.ebuild (uim-1.5.7-r2.ebuild,5.29 KB, text/plain)
2010-10-02 12:42 UTC, Muneyuki Noguchi
Details
patch for Qt 4.7 (uim-1.5.7-qt4.7.patch,478 bytes, patch)
2010-10-02 12:43 UTC, Muneyuki Noguchi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alonso Schaich 2010-08-03 22:43:38 UTC
in $uim_src/qt4/pref/customwidgets.cpp:887 there's a QString type being initialized as `0` (ambigous) where id should be `QString::null`. Adding

sed -i -e 's/m_keystr( 0 )/m_keystr(QString::null)/' qt4/pref/customwidgets.cpp

to src_prepare of the ebuild fixes it. IIRC QString::null has been around since Qt4.0, so it can safely be used.
Comment 1 Alonso Schaich 2010-08-03 22:47:03 UTC
Portage 2.2_rc67 (default/linux/amd64/10.0/no-multilib, gcc-4.5.1, glibc-2.11.2-r0, 2.6.35-rc6 x86_64)
=================================================================
System uname: Linux-2.6.35-rc6-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 03 Aug 2010 06:00:01 +0000
app-shells/bash:     4.1_p7
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.65-r1
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.5.1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
virtual/os-headers:  2.6.34
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu"
MAKEOPTS="-j1"
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/qting-edge /var/lib/layman/multimedia /var/lib/layman/kde"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa amd64 berkdb bidi bzip2 cjk cli cracklib crypt cups cxx dbus dri enca external-ffmpeg fortran gdbm gpm iconv ipv6 kde kerberos libedit lzma mmx modules mudflap ncurses nls nptl nptlonly opengl openmp pam pcre perl png postgres pppd python qt3support qt4 rdesktop readline reflection scim semantic-desktop session spl sql sse sse2 ssl subversion svg sysfs tcpd threads truetype unicode webkit xcomposite xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel i915 nouveau" 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, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Muneyuki Noguchi 2010-08-07 04:31:43 UTC
This bug is same as the following bug in the upstream bugzilla:
https://bugs.freedesktop.org/show_bug.cgi?id=28250
Comment 3 Muneyuki Noguchi 2010-10-02 12:42:04 UTC
Created attachment 249294 [details]
uim-1.5.7-r2.ebuild
Comment 4 Muneyuki Noguchi 2010-10-02 12:43:33 UTC
Created attachment 249297 [details, diff]
patch for Qt 4.7
Comment 5 Markos Chandras (RETIRED) gentoo-dev 2010-10-23 10:07:37 UTC
Fixed. Thank you for the patch
Comment 6 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2012-05-11 13:58:57 UTC
Current x86 stable uim-1.5.7 is still broken. Please push the fix to stable.

customwidgets.cpp: In constructor 'KeyGrabDialog::KeyGrabDialog(QWidget*)':
customwidgets.cpp:887:19: error: call of overloaded 'QString(int)' is ambiguous
/usr/include/qt4/QtCore/qstring.h:428:43: note: candidates are: QString::QString(const QByteArray&)
/usr/include/qt4/QtCore/qstring.h:426:43: note:                 QString::QString(const char*)
/usr/include/qt4/QtCore/qstring.h:728:8: note:                 QString::QString(const QString&)
/usr/include/qt4/QtCore/qstring.h:106:5: note:                 QString::QString(QChar)
/usr/include/qt4/QtCore/qstring.h:105:14: note:                 QString::QString(const QChar*)
In file included from /usr/include/qt4/QtGui/qwidget.h:49:0,
                 from /usr/include/qt4/QtGui/qdialog.h:45,
                 from /usr/include/qt4/QtGui/QDialog:1,
                 from qt4.h:38,
                 from moc_qt4.cpp:10:
/usr/include/qt4/QtGui/qpalette.h: In member function 'void QPalette::setCurrentColorGroup(QPalette::ColorGroup)':
/usr/include/qt4/QtGui/qpalette.h:97:71: warning: conversion to 'unsigned char:4' from 'uint' may alter its value
/usr/include/qt4/QtGui/qpalette.h: In member function 'void QPalette::resolve(uint)':
/usr/include/qt4/QtGui/qpalette.h:159:53: warning: conversion to 'unsigned int:28' from 'uint' may alter its value
make[3]: *** [customwidgets.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/app-i18n/uim-1.5.7/work/uim-1.5.7/qt4/pref'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/app-i18n/uim-1.5.7/work/uim-1.5.7/qt4/pref'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-i18n/uim-1.5.7/work/uim-1.5.7/qt4'
make: *** [all-recursive] Error 1
emake failed
 * ERROR: app-i18n/uim-1.5.7 failed (compile phase):
 *   emake failed
Comment 7 Naohiro Aota gentoo-dev 2012-05-13 02:15:31 UTC
(In reply to comment #6)
> Current x86 stable uim-1.5.7 is still broken. Please push the fix to stable.

I'm wondering why uim-1.5.7-r1 is removed... It had the patch for this.

http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-i18n/uim/uim-1.5.7-r1.ebuild?hideattic=0&revision=1.6&view=markup
Comment 8 Pacho Ramos gentoo-dev 2012-10-10 18:36:16 UTC
1.8.0 is stable already
Comment 9 Pacho Ramos gentoo-dev 2012-10-10 18:42:21 UTC
*** Bug 368483 has been marked as a duplicate of this bug. ***