Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 415325 - media-gfx/pqiv-0.11 fails to emerge with glib 2.32.2 "Only <glib.h> can be included directly."
Summary: media-gfx/pqiv-0.11 fails to emerge with glib 2.32.2 "Only <glib.h> can be in...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Phillip Berndt
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: glib-2.32
  Show dependency tree
 
Reported: 2012-05-10 05:38 UTC by Paul Hartman
Modified: 2012-05-10 07:44 UTC (History)
1 user (show)

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


Attachments
Fix for pqiv-0.11 and glib-2.32.2 (pqiv-glib-single-include.patch,418 bytes, text/plain)
2012-05-10 05:38 UTC, Paul Hartman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Hartman 2012-05-10 05:38:42 UTC
Created attachment 311311 [details]
Fix for pqiv-0.11 and glib-2.32.2

media-gfx/pqiv-0.11 fails to emerge with glib 2.32.2 with "Only <glib.h> can be included directly." error. I solved it by deleting the extra glib include lines (patch attached). I don't know if this approach works with older glib as well, or only the newer versions.

my emerge --info:
Portage 2.2.0_alpha102 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.3, glibc-2.15-r1, 3.3.0 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.3.0-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.1
Timestamp of tree: Wed, 09 May 2012 21:45:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.7 [disabled]
app-shells/bash:          4.2_p28
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/ccache:          3.1.7
dev-util/cmake:           2.8.8-r2
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.22-r1
sys-devel/gcc:            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 nx vmware overlay
Installed sets: @kernels, @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=native -O2 -pipe"
CHOST="x86_64-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/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="-mtune=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner --quiet-build=n"
FEATURES="assume-digests binpkg-logs buildsyspkg distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://lug.mtu.edu/gentoo/ http://gentoo.llarian.net/ http://mirror.the-best-hosting.net http://www.gtlib.gatech.edu/pub/gentoo http://gentoo.mirror.dkm.cz/pub/gentoo/ http://mirrors.linuxant.fr/distfiles.gentoo.org/ http://ftp.fi.muni.cz/pub/linux/gentoo/ http://mirror.bytemark.co.uk/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="en en_US"
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="/dev/shm"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/nx /var/lib/layman/vmware /usr/local/portage"
SYNC="rsync://mirror.steadfast.net/gentoo-portage"
USE="7zip X a52 aac aalib accessibility acl acpi aim alsa amd64 audiofile avahi avi bash-completion berkdb bluetooth branding bzip2 cairo captury cdda cdparanoia cdr cleartype cli codecs consolekit cracklib crypt cups curl curlwrappers cxx dbus declarative device-mapper directfb doc dri dts dvb dvd dvdr dvdread emboss encode ethereal evo exif fam fbcon flac flash fortran ftp gd gdbm gdu gif gnokii gphoto2 gpm gtk gtk2 h264 handbook iconv ieee1394 imagemagick imap imlib innodb ipv6 jabber jack java joystick jpeg jpeg2k kde kde4 kdehiddenvisibility kipi kpathsea kvm lcms ldap libnotify lm_sensors lzma mad mime mmx mng modules mono mp3 mp4 mpeg msn mudflap multilib mysql ncurses network nls nptl nptlonly nsplugin nvidia offensive ogg oggvorbis openexr opengl openmp oscar pam pango pcre pdf perl phonon plasma png policykit ppds pppd private-headers python qemu qt qt3 qt3support qt4 raw readline samba scanner sdl semantic-desktop session slang sndfile spell sse sse2 sse3 sse4 ssl ssse3 startup-notification svg tcpd tidy tiff truetype type1 udev unicode usb v4l vdpau videos vorbis webkit wifi wmf wxwidgets x264 xcb xcomposite xinerama xml xorg xpm xscreensaver xulrunner xv xvid xvmc yahoo zeroconf zip zlib" ALSA_CARDS="hda-intel alsa_cards_usb-audio alsa_cards_usb-us122l alsa_cards_usb-usx2y" 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="canon ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" FOO2ZJS_DEVICES="hp1020" 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" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" NETBEANS_MODULES="apisupport harness ide java nb cnd groovy gsf identity j2ee mobility php profiler soa visualweb webcommon websvccommon xml" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="epson epson2 epkowa" USERLAND="GNU" VIDEO_CARDS="nvidia nouveau vesa" 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, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

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

media-gfx/pqiv-0.11 was built with the following:
USE="(consolekit) (multilib) (policykit)"
Comment 1 Samuli Suominen gentoo-dev 2012-05-10 07:41:41 UTC
Comment on attachment 311311 [details]
Fix for pqiv-0.11 and glib-2.32.2

Be more careful with these glib changes, there is no need to remove glib/gstdio.h, there are exceptions(!)
Comment 2 Samuli Suominen gentoo-dev 2012-05-10 07:44:34 UTC
Added patch in Portage which only drops #include <glib/gconvert.h> line. Thanks for reporting & patch!