Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 400789 - net-print/libgnomecups-0.2.3-r1 fails due to GLib 2.31 changes
Summary: net-print/libgnomecups-0.2.3-r1 fails due to GLib 2.31 changes
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: glib-2.32
  Show dependency tree
 
Reported: 2012-01-25 19:02 UTC by Rolf S. Arvidson
Modified: 2012-04-29 15:29 UTC (History)
0 users

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


Attachments
suggested ebuild that incorporates patch (included separately) (libgnomecups-0.2.3-r2.ebuild,860 bytes, text/plain)
2012-01-25 19:02 UTC, Rolf S. Arvidson
Details
patch file (libgnomecups-0.2.3-glib-include.patch,579 bytes, patch)
2012-01-25 19:04 UTC, Rolf S. Arvidson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rolf S. Arvidson 2012-01-25 19:02:58 UTC
Created attachment 299887 [details]
suggested ebuild that incorporates patch (included separately)

net-print/libgnomecups-0.2.3-r1 fails to build as source files still have individual header includes; glib-2.31 no longer permits this practice. This is described in http://mail.gnome.org/archives/gnome-announce-list/2011-October/msg00041.html : 

* It is no longer possible to include individual headers (like
  "ghash.h") -- you must #include <glib.h>.


This fix seems to be to correct two instances of this in gnome-cups-i18n.c and gnome-cups-init.h. A suggested ebuild and patch are attached
Comment 1 Rolf S. Arvidson 2012-01-25 19:04:39 UTC
Created attachment 299889 [details, diff]
patch file

Here is my emerge --info
Portage 2.3.2-r2 (default/linux/amd64/2008.0, gcc-4.6.2, glibc-2.13-r4, 3.1.5-gentoo x86_64)
=================================================================
System uname: Linux-3.1.5-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E5620_@_2.40GHz-with-gentoo-2.1.8
Timestamp of tree: Mon, 23 Jan 2012 06:30:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r3, 3.2
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1.8-r3
sys-apps/openrc:          0.8.3-r5
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.10.3, 1.11.2-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.4.5, 4.6.2
sys-devel/gcc-config:     1.5
sys-devel/libtool:        2.4-r4
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo science vala gnome local
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 skype-eula sun-prerelease-jdk7 AdobeFlash-10.1 AdobeFlash-9.0.31.0 Oracle-BCLA-JavaSE Intel-SDP"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-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 /var/lib/hsqldb"
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/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="-mtune=generic -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles mini-manifest news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j17"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/science /var/lib/layman/vala /var/lib/layman/gnome /usr/local/portage"
SYNC="git://github.com/funtoo/portage-mini-2011.git"
SYNC_USER="root"
USE="R X acl alac alsa amd64 apache2 berkdb bzip2 cdr cli cracklib crypt cups cxx dbus dri dvd dvdr dvdread encode flac fortran gdbm gif gpm iconv imap introspection ipv6 java jpeg lame latex libnotify mad maildir mmx modules mp3 mpeg mudflap multilib ncurses networkmanager nls nptl nptlonly ogg opengl openmp pam pcre perl png policykit pppd pulseaudio python readline session sse sse2 ssl sysfs tcpd tiff tk truetype udev unicode vorbis wavpack xml xorg 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="*" 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" 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" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau vesa fbdev" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, SYNC_UMASK
Comment 2 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-01-25 22:13:31 UTC
Fixed in 0.2.3-r2, thanks for reporting.

>*libgnomecups-0.2.3-r2 (25 Jan 2012)
> 
>  25 Jan 2012; Alexandre Rostovtsev <tetromino@gentoo.org>
>  +libgnomecups-0.2.3-r2.ebuild,
>  +files/libgnomecups-0.2.3-g_list_find_custom.patch,
>  +files/libgnomecups-0.2.3-glib.h.patch:
>  Fix building with >=glib-2.31 (bug #400789, thanks to Rolf S. Arvidson for
>  reporting). Fix g_list_find_custom() argument order. Don't build static
>  libraries and don't install .la files.