Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 486432 - dev-util/gource: - gource: failed to load resource '/usr/share/gource/fonts/FreeSans.ttf'
Summary: dev-util/gource: - gource: failed to load resource '/usr/share/gource/fonts/F...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Enrico Tagliavini
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-09-29 08:57 UTC by Herman Fries
Modified: 2013-09-30 21:33 UTC (History)
3 users (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 Herman Fries 2013-09-29 08:57:44 UTC
gource fails to load its font:

$ gource
gource: failed to load resource '/usr/share/gource/fonts/FreeSans.ttf'
Try 'gource --help' for more information.



Reproducible: Always

Steps to Reproduce:
1. $ gource
Actual Results:  
$ gource
gource: failed to load resource '/usr/share/gource/fonts/FreeSans.ttf'
Try 'gource --help' for more information.

Expected Results:  
tool displaying gui

Reason: fontpath wrong/changed

Working patch:
--- gource-0.40.ebuild.orig	2013-09-29 10:54:25.921922756 +0200
+++ gource-0.40.ebuild	2013-09-29 10:45:52.401928195 +0200
@@ -57,3 +57,3 @@ src_configure() {
 	econf \
-		--enable-ttf-font-dir=/usr/share/fonts/freefont/ \
+		--enable-ttf-font-dir=/usr/share/fonts/freefont-ttf/ \
 		--with-tinyxml
Comment 1 Enrico Tagliavini 2013-09-30 13:40:07 UTC
(In reply to Herman Fries from comment #0)
> Reason: fontpath wrong/changed
> 
> Working patch:
> --- gource-0.40.ebuild.orig	2013-09-29 10:54:25.921922756 +0200
> +++ gource-0.40.ebuild	2013-09-29 10:45:52.401928195 +0200
> @@ -57,3 +57,3 @@ src_configure() {
>  	econf \
> -		--enable-ttf-font-dir=/usr/share/fonts/freefont/ \
> +		--enable-ttf-font-dir=/usr/share/fonts/freefont-ttf/ \
>  		--with-tinyxml

Not changed for me:

schroedingerscat ~ # ll /usr/share/fonts/freefont* -d
drwxr-xr-x 2 root root 4.0K Sep 30 14:33 /usr/share/fonts/freefont/

enrico@schroedingerscat ~ $ eix freefont
[I] media-fonts/freefont
     Available versions:  20120503^bs{tbz2} {X}
     Installed versions:  20120503^bs{tbz2}(14:33:36 30/09/13)(X)
     Homepage:            http://savannah.nongnu.org/projects/freefont/
     Description:         OpenType and TrueType Unicode fonts from the Free UCS Outline Fonts Project

* media-fonts/freefonts
     Available versions:  0.10-r3 {X}
     Homepage:            http://www.gimp.org
     Description:         A Collection of Free Type1 Fonts


@Herman: can you share more information on your system:
- emerge --info
- output of qfile /usr/share/fonts/freefont-ttf/FreeSans.ttf
- version of media-fonts/freefont installed

Anything else you can find on why you have that folder moved. From the main portage tree as of this morning I cannot see a valid reason why it should not be there. Do you use some overlay?
Comment 2 Herman Fries 2013-09-30 21:10:41 UTC
(In reply to Enrico Tagliavini from comment #1)
> (In reply to Herman Fries from comment #0)
> > Reason: fontpath wrong/changed
> > 
> Not changed for me:
> 
> schroedingerscat ~ # ll /usr/share/fonts/freefont* -d
> drwxr-xr-x 2 root root 4.0K Sep 30 14:33 /usr/share/fonts/freefont/
> 
> enrico@schroedingerscat ~ $ eix freefont
> [I] media-fonts/freefont
>      Available versions:  20120503^bs{tbz2} {X}
>      Installed versions:  20120503^bs{tbz2}(14:33:36 30/09/13)(X)
>      Homepage:            http://savannah.nongnu.org/projects/freefont/
>      Description:         OpenType and TrueType Unicode fonts from the Free
> UCS Outline Fonts Project
> 

> @Herman: can you share more information on your system:
> - emerge --info
> - output of qfile /usr/share/fonts/freefont-ttf/FreeSans.ttf
> - version of media-fonts/freefont installed
> 
> Anything else you can find on why you have that folder moved. From the main
> portage tree as of this morning I cannot see a valid reason why it should
> not be there. Do you use some overlay?



$ qfile /usr/share/fonts/freefont-ttf/FreeSans.ttf
media-fonts/freefont (/usr/share/fonts/freefont-ttf/FreeSans.ttf)

$ eix freefont
[U] media-fonts/freefont
     Available versions:  20120503^bs {{X}}
     Installed versions:  20090104^bs(02:43:58 20.07.2012)(X)
     Homepage:            http://savannah.nongnu.org/projects/freefont/
     Description:         OpenType and TrueType Unicode fonts from the Free UCS Outline Fonts Project

$ ls -ld /usr/share/fonts/freefont*
drwxr-xr-x 1 root root 490 20. Jul 2012  /usr/share/fonts/freefont-ttf

$  layman -l

 * eigenlay                  [Git       ] (git://gitorious.org/eigennet/eigenlay.git            )
 * glc                       [Git       ] (git://github.com/eroen/glc-overlay.git               )
 * nektoo                    [Mercurial ] (https://bitbucket.org/neko259/nektoo                 )
 * pro-audio                 [Subversion] (svn://svn.tuxfamily.org/svnroot/proaudio/proaudio/...)
 * Spring                    [Git       ] (git://github.com/springlobby/overlay.git             )
 * steam-overlay             [Git       ] (git://github.com/anyc/steam-overlay.git              )

$ emerge --info
Portage 2.1.11.62 (default/linux/amd64/13.0/desktop, gcc-4.6.3, glibc-2.15-r3, 3.8.13-gentoo-ARCH x86_64)
=================================================================
System uname: Linux-3.8.13-gentoo-ARCH-x86_64-AMD_FX-tm-8350_Eight-Core_Processor-with-gentoo-2.2
KiB Mem:     8161012 total,    710648 free
KiB Swap:     977896 total,    573668 free
Timestamp of tree: Tue, 24 Sep 2013 22:45:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5-r2, 3.2.5-r2
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo glc eigenlay steam-overlay spring proaudio nektoo x-portage
Installed sets: @steam
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /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="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.leaseweb.com/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
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/glc /var/lib/layman/eigenlay /var/lib/layman/steam-overlay /var/lib/layman/Spring /var/lib/layman/pro-audio /var/lib/layman/nektoo /usr/local/portage"
SYNC="rsync://rsync1.de.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 avahi berkdb bluetooth branding bzip2 cairo cdda cdr cli cmake consolekit cracklib crypt cryptsetup cups cxx dbus device-mapper dmraid dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fontconfig fortran frei0r fuse gd gdbm gif git gnome gphoto2 gpm gpu gstreamer gtk hbci hpijs iconv icu ipv6 jabber jack joystick jpeg kdrive lcms ldap libnotify libsamplerate lua mad matroska mdadm mmx mng mod modplug modules mp3 mp4 mpeg mudflap multilib ncurses network nls nptl ofx ogg openal opencl opengl openmp pam pango pcre pdf png policykit ppds pulseaudio python qt3support qt4 quicktime quotes readline scanner scrypt sdl session sipim speech spell sse sse2 ssl startup-notification svg tcpd theora tiff tk truetype udev udisks unicode upower usb v4l vdpau vim vlc vorbis wavpack wxwidgets x264 xcb xinerama xml xmp xv xvid zlib" ABI_X86="64" 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" 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="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="keyboard mouse 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 de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby19 ruby18" SANE_BACKENDS="gphoto2 hp net" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON



My version of freefont was older. Emerging the version 20120503 did change the path to freefont/

Thank you
Comment 3 Enrico Tagliavini 2013-09-30 21:33:16 UTC
Oh so you had an older version, weird anyway I maintain this from 2010 and I don't remember I had to ever change this..... oh well it works with the only current version in portage so.... I guess this is fixed :).