Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 311421 - dev-db/mysql-workbench-5.2.16 is missing some gtk dependency
Summary: dev-db/mysql-workbench-5.2.16 is missing some gtk dependency
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Hans de Graaff
URL: http://bugs.mysql.com/bug.php?id=52406
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-26 10:13 UTC by andrew lorien
Modified: 2010-03-27 08:24 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description andrew lorien 2010-03-26 10:13:26 UTC
mysql-workbench fails to emerge:

/usr/lib64/libpython2.6.a(posixmodule.o): In function `posix_tmpnam':
(.text+0x738): warning: the use of `tmpnam_r' is dangerous, better use `mkstemp'
/usr/lib64/libpython2.6.a(posixmodule.o): In function `posix_tempnam':
(.text+0x82d): warning: the use of `tempnam' is dangerous, better use `mkstemp'
../../../frontend/linux/linux_utilities/.libs/liblinux_utilities.so: undefined reference to `Gtk::IconView::set_cursor(Gtk::TreePath const&, Gtk::CellRenderer&, bool)'
collect2: ld returned 1 exit status
make[4]: *** [mysql-workbench-bin] Error 1
make[4]: Leaving directory `/var/tmp/portage/dev-db/mysql-workbench-5.2.16/work/mysql-workbench-oss-5.2.16/frontend/linux/workbench'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/dev-db/mysql-workbench-5.2.16/work/mysql-workbench-oss-5.2.16/frontend/linux'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-db/mysql-workbench-5.2.16/work/mysql-workbench-oss-5.2.16/frontend'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-db/mysql-workbench-5.2.16/work/mysql-workbench-oss-5.2.16'
make: *** [all] Error 2

It's a GTK error so i upgrade all my old GTK packages.  i now have these versions (sorry i don't know what the previous versions were - there were a few obselete packages but nothing more than six months old)
dev-libs/glib-2.22.4
dev-cpp/glibmm-2.22.1
x11-libs/gtk+-2.18.7
dev-cpp/pangomm-2.26.0
dev-cpp/gtkmm-2.18.2
dev-dotnet/gtkhtml-sharp-2.24.0-r10
x11-libs/gtk+-2.18.7
x11-libs/wxGTK-2.8.10.1-r5
x11-themes/gtk-engines-2.18.5

now mysql-workbench emerges.


Reproducible: Always

Steps to Reproduce:
1.have old versions of some GTK libraries
2.emerge mysql-workbench



Actual Results:  
ERROR: dev-db/mysql-workbench-5.2.16 failed:

Expected Results:  
>>> Installing (1 of 1) dev-db/mysql-workbench-5.2.16

Portage 2.1.7.17 (default/linux/amd64/10.0/desktop, gcc-4.1.2, glibc-2.9_p20081201-r2, 2.6.25-gentoo-r7 x86_64)
=================================================================
System uname: Linux-2.6.25-gentoo-r7-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5000+-with-gentoo-1.12.13
Timestamp of tree: Fri, 19 Mar 2010 16:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 1.3.7-r1, 2.1.9-r1
dev-lang/python:     2.4.6, 2.5.4-r3, 2.6.4
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  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:       4.1.2, 4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -frename-registers -fomit-frame-pointer -mno-align-stringops -march=athlon64"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -frename-registers -fomit-frame-pointer -mno-align-stringops -march=athlon64"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch prelink protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.swin.edu.au/gentoo ftp://mirrors.rit.edu/gentoo/ http://mirrors.rit.edu/gentoo/"
LANG="en_AU.UTF-8"
LC_ALL="en_AU.UTF-8"
LDFLAGS="-Wl,--as-needed"
MAKEOPTS="-j2"
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="/usr/portage/local/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi administrator alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdparanoia cdr cli compositor consolekit cracklib crypt cups cxx dbus divx4linux dri dts dv dvd dvdr dvdread eds emboss encode evo exif fam fbcon ffmpeg firefox flac fortran fuse gdbm gif gnome gpm graphviz gstreamer gtk hal iconv ieee1394 ipv6 java jbig jpeg kde libnotify live lm_sensors mad matroska mikmod mmx mng modules mozdevelop mozilla mozillanoirc mozillanomail moznomail mozsvg mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin nvidia ogg opengl openmp pam pcre pdf perl plugins png ppds pppd python qt3support qt4 query-browser quicktime readline reflection sdl server session spell spl sse sse2 ssl startup-notification svg sysfs tcpd theora thunar thunar-vfs tiff truetype ttfont unicode usb vorbis wmf workbench x264 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="intel8x0" 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 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="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Doktor Notor 2010-03-26 11:47:32 UTC
Well, try w/ C[XX]FLAGS="-O2 -pipe -fomit-frame-pointer"; if that doesn't help, then try w/o --as-needed. 
Comment 2 andrew lorien 2010-03-26 11:59:54 UTC
better CFLAGS were not required. 
it's a dependency problem which i resolved by emerging the packages in the description.  i suspect the >=x11-libs/gtk+2.6 dependency should be a more recent version (because that's ebuild owns /usr/share/gtk-2.0/demo/iconview.c), but i'm not sure.
Comment 3 Doktor Notor 2010-03-26 12:04:52 UTC
Well, current stable gtk+ is 2.18.6 on amd64. I'd suggest using --deep when upgrading your system.
Comment 4 Pacho Ramos gentoo-dev 2010-03-26 12:06:37 UTC
I think that required updated package is gtkmm, what version did you have installed before?
Comment 5 andrew lorien 2010-03-26 12:32:46 UTC
I suspected gtkmm as well - unfortunately i didn't note all the previous versions, and the emerge log doesn't give me any clues about what the previous package was.  the dep is currently 
>=dev-cpp/glibmm-2.14
so (unless i had some deprecated package) i must have had 2.16.0 which was not sufficient to build mysql-workbench.  if that's the package, then the dep for mysql-workbench-5.2.16 should be
>=dev-cpp/glibmm-2.18
Comment 6 Doktor Notor 2010-03-26 12:35:55 UTC
PKG_CHECK_MODULES(GNOME, [libglade-2.0 gtkmm-2.4]) so the bundled configure in doesn't seem to be terribly precise either and INSTALL is equally useless wrt version requirements. :P
Comment 7 Hans de Graaff gentoo-dev Security 2010-03-27 07:20:13 UTC
The affected package is most likely dev-cpp/gtkmm. You should be able to determine the old version from /var/log/emerge.log. It would be helpful to know which version you had installed before.
Comment 8 andrew lorien 2010-03-27 07:51:19 UTC
hey you're right!
grep gtkmm /var/log/emerge.log 
1269587351:  >>> emerge (5 of 5) dev-cpp/gtkmm-2.18.2 to /
...
1269587634:  === Unmerging... (dev-cpp/gtkmm-2.12.1)

which is deprecated, so fair enough it didn't work... 

i quoted the wrong dependency in comment #5, the mysql-workbench ebuild asks for
>=dev-cpp/gtkmm-2.4
maybe gtkmm-2.12.1 was actually broken.  but since we have no current ebuild between 2.2.12 and 2.16.0, if you can't find out exactly which version is broken you could change it to >=2.16, which would at least force lazy updaters like me to the latest stable package.

you probably have policies about stuff like that...
Comment 9 Hans de Graaff gentoo-dev Security 2010-03-27 08:24:45 UTC
Fixed in CVS by requiring dev-cpp/gtkmm-2.14 as the minimal version. Reported upstream.

Thanks for the feedback.