Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 490340 - =media-fonts/arphicfonts-0.2.20080216 - line 11: Having multiple values in <test> isn't supported and may not work as expected
Summary: =media-fonts/arphicfonts-0.2.20080216 - line 11: Having multiple values in <t...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Fonts Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-04 05:14 UTC by Mark Purtill
Modified: 2014-01-28 06:07 UTC (History)
2 users (show)

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


Attachments
Patch for arphic fontconfig files, adapted from Debian (arphic-fontconfig.patch,5.60 KB, patch)
2014-01-24 21:33 UTC, John Flatness
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Purtill 2013-11-04 05:14:12 UTC
Per bug 486026, media-fonts/arphicfonts installs /etc/fonts/conf.avail/*.conf files that have features no longer supported in newer fontconfig versions.

The warning messages printed by (e.g.) running gimp are:

Fontconfig warning: "/etc/fonts/conf.d/25-ttf-arphic-uming-bitmaps.conf", line 11: Having multiple values in <test> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/25-ttf-arphic-uming-bitmaps.conf", line 23: Having multiple values in <test> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/41-ttf-arphic-ukai.conf", line 16: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/41-ttf-arphic-ukai.conf", line 16: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/41-ttf-arphic-ukai.conf", line 16: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/41-ttf-arphic-ukai.conf", line 16: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/41-ttf-arphic-ukai.conf", line 16: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/41-ttf-arphic-uming.conf", line 16: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/41-ttf-arphic-uming.conf", line 16: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/41-ttf-arphic-uming.conf", line 16: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/41-ttf-arphic-uming.conf", line 16: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/41-ttf-arphic-uming.conf", line 16: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/41-ttf-arphic-uming.conf", line 28: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/41-ttf-arphic-uming.conf", line 28: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/41-ttf-arphic-uming.conf", line 28: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/41-ttf-arphic-uming.conf", line 28: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/41-ttf-arphic-uming.conf", line 28: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/41-ttf-arphic-uming.conf", line 40: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/41-ttf-arphic-uming.conf", line 40: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/41-ttf-arphic-uming.conf", line 40: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/41-ttf-arphic-uming.conf", line 40: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/41-ttf-arphic-uming.conf", line 40: Having multiple <family> in <alias> isn't supported and may not work as expecte 


Reproducible: Always

Steps to Reproduce:
1. Run gimp (or any other program using fontconfig)
Actual Results:  
Warnings as above.

Expected Results:  
No warning spam.

See bug 486026.

% emerge --info
Portage 2.2.7 (default/linux/amd64/13.0/desktop, gcc-4.6.3, glibc-2.15-r3, 3.8.13-gentoo x86_64)
=================================================================
System uname: Linux-3.8.13-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.2
KiB Mem:     6118544 total,   1030020 free
KiB Swap:   34459384 total,  34459384 free
Timestamp of tree: Sun, 03 Nov 2013 16:15:01 +0000
ld GNU ld (GNU Binutils) 2.22
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5-r3, 3.2.5-r3, 3.3.0-r1
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.22-r1, 2.23.1
sys-devel/gcc:            4.5.4, 4.6.3, 4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo gamerlay ubuntu x11 cj-overlay emacs seden sunrise local_overlay
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 PUEL AdobeFlash-10.3 AdobeFlash-11.x Intel-SDP NVIDIA-CUDA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -ggdb -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/games/angband/edit/ /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/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 -ggdb -O2 -pipe"
DISTDIR="/home/jumbo/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles installsources merge-sync news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://buurin/old-distfiles http://gentoo.cites.uiuc.edu/pub/gentoo/ ftp://gentoo.cites.uiuc.edu/pub/gentoo/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ http://mirror.iawnet.sandia.gov/gentoo/ ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5 -l16"
PKGDIR="/home/jumbo/portage/packages"
PORTAGE_CONFIGROOT="/"
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="/var/tmp"
PORTDIR="/home/jumbo/portage"
PORTDIR_OVERLAY="/var/lib/layman/gamerlay /var/lib/layman/ubuntu /var/lib/layman/x11 /var/lib/layman/cj-overlay /var/lib/layman/emacs /var/lib/layman/seden /usr/local/portage/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="CJK X Xaw3d a52 aac aalib acl acpi alsa amd64 anthy bbdb berkdb blender bluetooth branding bzip2 cairo cdda cdr cjk cli consolekit cracklib crypt cuda cups cxx dbus doc dri dts dvd dvdr emacs emboss encode exif fam ffmpeg firefox flac fontconfig fortran freewnn gdbm gif gimp gpm graphviz gtk iconv icu imagemagick immqt-bc ipv6 jadetex java java6 joystick jpeg kde kdehiddenvisibility lcms ldap libnotify lm_sensors lua mad maildir matroska mbox midi mmx mng modules mp3 mp4 mpeg mplayer mudflap mule multilib ncurses nls nptl nsplugin nvidia ogg opengl openmp pam pango pcre pdf perl pic png policykit ppds qt3support qt4 quicktime readline ruby scanner sdl semantic-desktop session speex spell sse sse2 ssl startup-notification svg tcmalloc tcpd theora tiff truetype udev udisks unicode upower usb v4l v4l2 vcd vdpau vorbis win32codecs wmf wxwidgets x264 xcb xine xinerama xml xv xvid xvmc zlib" ABI_X86="32 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="karbon krita" 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 wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_US en ja_JP ja" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="vesa nv 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 John Flatness 2014-01-24 21:33:49 UTC
Created attachment 368650 [details, diff]
Patch for arphic fontconfig files, adapted from Debian

Debian and Ubuntu have patches for this

uming: http://anonscm.debian.org/gitweb/?p=pkg-fonts/fonts-arphic-uming.git;a=blob;f=debian/patches/30-fix-fontconfig-syntax.patch;hb=HEAD

ukai: http://anonscm.debian.org/gitweb/?p=pkg-fonts/fonts-arphic-ukai.git;a=blob;f=debian/patches/fix-fontconfig-alias-syntax;hb=HEAD

Theirs don't apply cleanly because of differing filenames, and some differing content. Attached is a version that should apply correctly, and combines the uming and ukai changes.
Comment 2 Naohiro Aota gentoo-dev 2014-01-28 06:07:15 UTC
+*arphicfonts-0.2.20080216.1-r1 (28 Jan 2014)
+
+  28 Jan 2014; Naohiro Aota <naota@gentoo.org>
+  +arphicfonts-0.2.20080216.1-r1.ebuild,
+  +files/arphicfonts-0.2.20080216.1-fontconfig.patch:
+  Add a patch to supress fontconfig warnings. #490340
+