Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 414323 - dev-libs/libdbusmenu-0.5.1-r300 fails to build due to -Werror and use of deprecated gtk_hbox_new functions
Summary: dev-libs/libdbusmenu-0.5.1-r300 fails to build due to -Werror and use of depr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 Linux
: Normal minor (vote)
Assignee: Ayatana Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: werror
  Show dependency tree
 
Reported: 2012-05-02 03:21 UTC by Seong-ho Cho
Modified: 2012-07-20 10:45 UTC (History)
2 users (show)

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


Attachments
libdbusmenu-0.5.1-r300 build log which shows the fail resuit. (build.log,22.30 KB, text/plain)
2012-05-02 03:23 UTC, Seong-ho Cho
Details
patch for eliminating building problem of libdbusmenu-0.5.1-r300 (patch.diff,837 bytes, patch)
2012-05-02 03:29 UTC, Seong-ho Cho
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Seong-ho Cho 2012-05-02 03:21:23 UTC
I did emerge >=gnome-3.2.x and I tried emerge libdbusmenu-0.5.1-r300 again for optimizing system performance, but I've met an failed result due to use deprecated function (gtk_hbox_new()).

Reproducible: Always

Steps to Reproduce:
(skip)
Actual Results:  
Portage 2.1.10.57 (default/linux/amd64/10.0/developer, gcc-4.5.3, glibc-2.15-r1, 3.3.4-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.3.4-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600K_CPU_@_3.40GHz-with-gentoo-2.1
Timestamp of tree: Tue, 01 May 2012 18:00:01 +0000
app-shells/bash:          4.2_p24-r1
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r1, 3.2.3
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.9.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.5
sys-devel/binutils:       2.21.1-r1, 2.22-r1, 2.22.52.0.1
sys-devel/gcc:            4.4.6-r1, 4.5.2, 4.5.3-r2
sys-devel/gcc-config:     1.7
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.3 (virtual/os-headers)
sys-libs/glibc:           2.15-r1
Repositories: gentoo gnustep vmware sunrise
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -msse4.1 -msse4.2 -mtune=generic -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /usr/share/openvpn/easy-rsa /var/lib/hsqldb /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /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/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/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"
CXXFLAGS="-march=core2 -msse4.1 -msse4.2 -mtune=generic -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n --autounmask-write"
FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles multilib-strict news parallel-fetch protect-owned sfperms sign splitdebug strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox xattr"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="ko_KR.utf8"
LC_ALL="ko_KR.UTF-8"
LDFLAGS="-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed"
LINGUAS="ko"
MAKEOPTS="-j10 -l16"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/gnustep /var/lib/layman/vmware /var/lib/layman/sunrise"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib abyss accessibility acl acpi ada addns ads afp alltargets alsa amd64 apache2 apm apng archive athena attrib authdaemond auto-hinter autoipd avahi bash-completion bcmath berkdb bineditor bittorrent blender-game bluetooth bonobo bookmarks bootstrap branding bsf bugzilla bzip2 cairo canna canna-2ch caps ccache cdb cdda cddb cdr cgi chromium cjk cli colord colordiff common-lisp compat consolekit contrib coverage cpusets cracklib cron crypt cscope ctypes-python cups curl custom-cflags custom-cpuopts custom-optimization cxx dbus declarative dedicated demosaic derby development device-mapper dga dhclient dia digitalradio directfb disk-partition djbfft djvu dmx dnd download dri drmaa dselect dts dv dvb dvd dvdr eap-sim eds embedded emboss encode eolconv exif extensions extra extraengine extras fakevim fam fastcgi fastscroll fat fax fbcon fftw firefox flac fluidsynth fontconfig fontforge foomaticdb fortran freewnn ftp fuse games gcdmaster gcj gconf gd gdbm gdu gedit geoip geolocation ggi gif gimp git gmp gnome gnome-keyring gnome-shell gpg gphoto2 gpm graphite graphviz grilo groovy gs gstreamer gtk gtk3 gudev hddtemp hdf5 health heterogeneous hires-icons howl-compat hpijs httpd hyphenation i18n iconv icu id3tag idn imagemagick imlib inkjar introspection iodbc ios iplayer ipv6 ithreads jack jai java javascript jce jmf jpeg jpeg2k kdrive kerberos kpathsea ladspa lame lapack latex lcms ldap libcaca libcanberra libffi libgda libmpd libmpeg2 libnotify libobjc2 libsamplerate lightweight llvm lm_sensors lpsol lua mad madwifi maildir mathml mclib mdnsresponder-compat memprofile mercurial midi mikmod minizip mmap mmx mmxext mng mod modplug modules mono motif mp3 mp4 mpd mpeg mpg123 mudflap mule multilib multislot musepack mxdatetime mysql mysqli nas native-exceptions natspec nautilus ncurses neXt netlink network-cron networkmanager nls nptl nptlonly nsplugin nss ntfsprogs ntlm ntlm_unsupported_patch oberlays objc objc++ objc-gc ocaml odbcmanual odk offensive ogg openal openexr opengl openmp optimization optimized-qmake oss pam pango parport pasteafter pbs pccts pch pcre pdf perforce perl perl-geoipupdate pic player playlist playtools pnat png pnm policykit pop postproc ppds pppd private-headers profile pulseaudio pvr pyqt4 python qt3support qthelp qtscript quota radio raster raw readline realtime redcode resolvconf reviewboard rhythmbox romio rss ruby rubytests scanner secure-delete semantic-desktop sendto sensord server session slang slp smbsharemodes smbtav2 smp sndfile snmp socks5 soundtouch soup spell spl sql sqlite srp sse sse2 sse3 ssl ssse3 stars startup-notification stats strong-optimization subversion suexec suid svg sysfs syslog system-libvncserver system-sqlite systemtap szip t1lib taglib tcl tcpd tdb telepathy templates theora threads thunar tiff tilepath timidity tk tools totem trace track-src-odirect tracker truetype tslib tweak-mode twolame type3 udev udev-acl udis86 umfpack unicode unlock-notify upnp urandom usb utils v4l v4l2 v8 vala vamp verse vhosts video vim vim-pager vim-syntax vix vmware_guest_freebsd vmware_guest_linux vmware_guest_solaris vmware_guest_windows vnc vorbis vorbix vt watchdog wavpack wddx webdav-neon webdav-serf webkit wifi wimax winbind wmf wps wxwidgets x264 xattr xcb xemacs xetex xface xft xim xinerama xml xmlreader xmlrpc xmlwriter xmp xorg xpm xscreensaver xsl xv xvfb xvid youtube zeitgeist zip zlib zsh-completion" ALSA_CARDS="emu10k1x emu10k1" 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 asis auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cern_meta cgi cgid charset_lite dav dav_fs dav_lock dbd deflate dir disk_cache dumpio env expires ext_filter file_cache filter headers ident imagemap include info log_config log_forensic logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http reqtimeout rewrite setenvif speling status substitute unique_id userdir usertrack version vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="*" COLLECTD_PLUGINS="apache apcups ascent bind conntrack contextswitch cpu cpufreq csv curl curl_json curl_xml dbi df disk dns email entropy ethstat exec filecount fscache gmond hddtemp interface ipmi iptables irq java libvirt load logfile madwifi match_empty_counter match_hashed match_regex match_timediff match_value mbmon md memcachec memcached memory multimeter mysql netlink network nfs nginx notify_desktop notify_email ntpd numa nut olsrd onewire openvpn oracle perl ping postgresql powerdns processes protocols python routeros rrdcached rrdtool sensors serial snmp swap syslog table tail target_notification target_replace target_scale target_set tcpconns teamspeak2 ted thermal tokyotyrant unixsock uptime users uuid varnish vmem vserver wireless write_http" DVB_CARDS="usb-a800 usb-bluebird usb-dib0700 usb-dtt200u usb-dw2104 usb-umt usb-vp702x usb-vp7045 usb-wt220u" 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 keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ko" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18 jruby ree18 ruby19" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

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

dev-libs/libdbusmenu-0.5.1-r300 was built with the following:
USE="bootstrap gtk introspection (multilib) -test"




so I'll attach my build.log and patch for eliminating this problem.

make sure that my submission works well or not. Thanks :D
Comment 1 Seong-ho Cho 2012-05-02 03:23:32 UTC
Created attachment 310609 [details]
libdbusmenu-0.5.1-r300 build log which shows the fail resuit.

This build.log will helps for checking what things are causes this problem.
Comment 2 Seong-ho Cho 2012-05-02 03:29:32 UTC
Created attachment 310611 [details, diff]
patch for eliminating building problem of libdbusmenu-0.5.1-r300

I did check whether this patch works well or not by using below commands (as a root) during emerging libdbusmenu, manually.
* This solution is easy. but It seems that nobody did submit patch for eliminating this problem.

cp patch.diff /var/tmp/portage/dev-libs/libdbusmenu-0.5.1-r300/work/.
cd /var/tmp/portage/dev-libs/libdbusmenu-0.5.1-r300/work
patch -p0 < patch.diff
cd ~/
Comment 3 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-05-02 04:07:18 UTC
The problem is caused by the presence of -Werror in libdbusmenu's Makefiles, which turns every warning (such as use of deprecated gtk+ functions) into a fatal build error.
Comment 4 Seong-ho Cho 2012-05-02 04:17:39 UTC
well ... no one of *error* keyword is from any Makefile or Makefile.* files.

I think that some more safe code is better.
Comment 5 Johannes Huber (RETIRED) gentoo-dev 2012-05-02 06:57:53 UTC
0.6.1 is available by upstream.
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2012-05-02 07:30:47 UTC
(In reply to comment #5)
> 0.6.1 is available by upstream.

I know... Every ayatana library needs a bump, I'll try to get to them soon, sorry for delay... This has been on my TODO like a month or two already :(
Comment 7 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-06-18 12:01:24 UTC
Please at least remove the -Werror flag though. *It should not be there.*
Comment 8 Nils 2012-06-26 12:26:52 UTC
(In reply to comment #2)
> Created attachment 310611 [details, diff] [details, diff]
> patch for eliminating building problem of libdbusmenu-0.5.1-r300
> 
> I did check whether this patch works well or not by using below commands (as
> a root) during emerging libdbusmenu, manually.
> * This solution is easy. but It seems that nobody did submit patch for
> eliminating this problem.
> 
> cp patch.diff /var/tmp/portage/dev-libs/libdbusmenu-0.5.1-r300/work/.
> cd /var/tmp/portage/dev-libs/libdbusmenu-0.5.1-r300/work
> patch -p0 < patch.diff
> cd ~/

Cant get this to work. 

can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Binary files dee-1.0.10/src/.dee-filter-model.h.swp and dee-1.0.10-r1/src/.dee-filter-model.h.swp differ
|diff -urN dee-1.0.10/src/dee-filter.h dee-1.0.10-r1/src/dee-filter.h
|--- dee-1.0.10/src/dee-filter.h        2012-02-25 01:46:45.000000000 +0900
|+++ dee-1.0.10-r1/src/dee-filter.h     2012-04-26 00:49:44.645313412 +0900
--------------------------
File to patch: 
Skip this patch? [y] y
Skipping patch.
patch: **** malformed patch at line 12:      /**
Comment 9 Christoph Mende (RETIRED) gentoo-dev 2012-07-20 10:45:46 UTC
Removed -Werror from CFLAGS