Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 496672 - dev-libs/glib-2.36.4-r1 does not find mime/magic database
Summary: dev-libs/glib-2.36.4-r1 does not find mime/magic database
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-01 14:13 UTC by Michael Weiser
Modified: 2014-01-01 16:18 UTC (History)
0 users

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 Michael Weiser 2014-01-01 14:13:55 UTC
The glib ebuild contains the following part for prefix:

        # make default sane for us
        if use prefix ; then
                sed -i -e "s:/usr/local:${EPREFIX}:" gio/xdgmime/xdgmime.c || die

This makes libgio look for the mime magic database file in $EPREFIX/share/mime/magic. Since it is actually installed in $EPREFIX/usr/share/mime/magic, it cannot be found, which breaks e.g. MIME type detection in gdk-pixbuf and this in turn breaks image import in inkscape.

After changing the ebuild snippet to read:

sed -i -e "s:/usr/local/share:${EPREFIX}/usr/share:" gio/xdgmime/xdgmime.c || die

the magic file is found and everything works as it's supposed to.

Reproducible: Always




Portage 2.2.7-prefix (prefix/darwin/macos/10.8/x64, gcc-4.2.1, unavailable, 12.5.0 x86_64)
=================================================================
System uname: Darwin-12.5.0-x86_64-i386-64bit
Timestamp of tree: Wed, 01 Jan 2014 13:36:19 +0000
app-shells/bash:      4.2_p39-r1
dev-lang/python:      2.7.5-r4, 3.3.3
dev-util/cmake:       2.8.12.1-r2
dev-util/pkgconfig:   0.28
sys-devel/autoconf:   2.13, 2.69
sys-devel/automake:   1.11.6, 1.12.4, 1.14
sys-devel/gcc-config: 1.8-r00.1
sys-devel/libtool:    2.4.2
sys-devel/make:       4.0-r1
Repositories: gentoo_prefix local
ACCEPT_KEYWORDS="~x64-macos"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-apple-darwin12"
CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-apple-darwin12"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/local/gentoo/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=10 --with-bdeps=y"
FCFLAGS=""
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix merge-sync news nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS=""
GENTOO_MIRRORS="http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp.halifax.rwth-aachen.de/gentoo/ http://distfiles.gentoo.org"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-dead_strip_dylibs"
MAKEOPTS="-j2"
PKGDIR="/usr/local/gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/usr/local/gentoo/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/usr/local/gentoo/var/tmp"
PORTDIR="/usr/local/gentoo/usr/portage"
PORTDIR_OVERLAY="/usr/local/gentoo/usr/local/portage"
SYNC="rsync://prefix.gentooexperimental.org/gentoo-portage-prefix"
USE="aqua bzip2 cairo coreaudio cracklib cxx iconv idn ipv6 ithreads jpeg kerberos kpathsea logrotate mbox mmap mmx mmxext modules ncurses objc objc++ openssl pic png prefix readline recode slang sse sse2 ssl threads tidy tiff unicode x64-macos xml zlib" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="Darwin" 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 ublox ubx" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19" USERLAND="GNU" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Fabian Groffen gentoo-dev 2014-01-01 16:18:20 UTC
Hah, nice catch!  Committed, thanks