Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 384687 - media-sound/lilypond-2.12.3: build failure: MergeKern: Failed to find kern info in file
Summary: media-sound/lilypond-2.12.3: build failure: MergeKern: Failed to find kern in...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Scheme Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 331181
  Show dependency tree
 
Reported: 2011-09-27 17:31 UTC by Petr Pisar
Modified: 2012-03-13 20:09 UTC (History)
4 users (show)

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


Attachments
/tmp/ (build.log.gz,81.54 KB, application/x-gunzip)
2011-09-27 17:33 UTC, Petr Pisar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Pisar 2011-09-27 17:31:40 UTC
I get compilation failure when converting fonts by fontforge:

/usr/bin/fontforge -script ../scripts/auxiliar/pfx2ttf.fontforge /usr/share/texm
f-dist/fonts/type1/urw/ncntrsbk/uncb8a.pfb /usr/share/texmf-dist/fonts/type1/urw
/ncntrsbk/uncb8a.afm ./out/ &&   /usr/bin/fontforge -script ../scripts/auxiliar/
pfx2ttf.fontforge /usr/share/texmf-dist/fonts/type1/urw/ncntrsbk/uncbi8a.pfb /us
r/share/texmf-dist/fonts/type1/urw/ncntrsbk/uncbi8a.afm ./out/ &&   /usr/bin/fon
tforge -script ../scripts/auxiliar/pfx2ttf.fontforge /usr/share/texmf-dist/fonts
/type1/urw/ncntrsbk/uncri8a.pfb /usr/share/texmf-dist/fonts/type1/urw/ncntrsbk/u
ncri8a.afm ./out/ &&   /usr/bin/fontforge -script ../scripts/auxiliar/pfx2ttf.fo
ntforge /usr/share/fonts/urw-fonts/c059013l.pfb /usr/share/fonts/urw-fonts/c0590
13l.afm ./out/ &&  true
Copyright (c) 2000-2011 by George Williams.
 Executable based on sources from 13:48 GMT 22-Feb-2011.
 Library based on sources from 13:48 GMT 22-Feb-2011.
MergeKern: Failed to find kern info in file
Called from...
 ../scripts/auxiliar/pfx2ttf.fontforge: line 3 
make[1]: *** [out/CenturySchL-Ital.otf] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-sound/lilypond-2.12.3/work/li
lypond-2.12.3/mf'

I thought is was bug in current stable fontforge, so I retried with latest one, but the same result.

There was simalar bug reported lilypond devel list (http://thread.gmane.org/gmane.comp.gnu.lilypond.devel/9822) but I have no symlinks in path to the font file.

Portage 2.1.10.11 (default/linux/x86/10.0, gcc-4.5.3, glibc-2.12.2-r0, 3.0.4-gentoo i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.0.4-gentoo-i686-AMD_Duron-tm-_processor-with-gentoo-2.0.3
Timestamp of tree: Mon, 26 Sep 2011 16:15:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.1.3-r1
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13::<unknown repository>, 2.68
sys-devel/automake:       1.5-r1, 1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            3.4.6-r2, 4.4.5, 4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo sunrise zugaina ikelos java-overlay science lisp multimedia x-petr_p x-gcpan
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-tbird -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
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="-march=athlon-tbird -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS=""
GENTOO_MIRRORS="ftp://ftp.fi.muni.cz/pub/linux/gentoo/ ftp://gentoo.mirror.dkm.cz/pub/gentoo/"
LANG="cs_CZ.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="cs en"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/zugaina /var/lib/layman/ikelos /var/lib/layman/java-overlay /var/lib/layman/science /var/lib/layman/lisp /var/lib/layman/multimedia /usr/local/portage/petr_p /usr/local/portage/gcpan"
SYNC="rsync://rsync6.europe.gentoo.org/gentoo-portage"
USE="3dnow a52 aac acl acpi alsa audiofile avi berkdb bzip2 caps cdparanoia cjk cli cracklib crypt custom-cxxflags cxx dri esd ffmpeg flac fortran ftp gd gdbm gif gnutls gpm gtk gtk2 iconv icq idn imagemagick imap imlib ipv6 irc jabber java javascript jpeg jpeg2k lcms live lm_sensors matroska mbox mikmod mime mmap mmx mmxext mng modules motif mp3 mpeg mudflap nas ncurses nls nodrm nptl nptlonly ogg openmp pam pcre pdf perl plotutils png posix ppds pppd python qt3support readline recode rss samba sasl sdl session sharedmem sndfile sockets speex spell ssl svg sysfs sysvipc tcpd tetex theora threads truetype ucs2 ucs4 unicode usb vorbis win32codecs x86 xattr xml xorg xosd xpm xsl xv xvid zlib" ALSA_CARDS="snd_via82xx" 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 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="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs en" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 mipsel" QEMU_USER_TARGETS="i386 mipsel" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau nvidia 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Petr Pisar 2011-09-27 17:33:25 UTC
Created attachment 287953 [details]
/tmp/

Gzipped build.log.
Comment 2 Petr Pisar 2011-09-27 17:51:09 UTC
The fontforge script (../scripts/auxiliar/pfx2ttf.fontforge) begins:

Open($1);
MergeKern($2)


# The AFM files of `New Century Schoolbook' family as distributed within the
[...]

Thus problematic is command on second line (MergeKern($2)). And this is because second argument of the script (/usr/share/texmf-dist/fonts/type1/urw/ncntrsbk/uncb8a.afm) does not exist on my system.

The pfb and pfm files exist, but afm doesn't. And it's not owned by any package too. The pf* files belongs to dev-texlive/texlive-fontsrecommended-2010. And this package puts metric (afm) files into different place (/usr/share/texmf-dist/fonts/afm/urw/ncntrsbk/uncb8a.afm).
Comment 3 Johannes Rauh 2012-02-14 16:04:38 UTC
Maybe some paths changed from texlive-2010 to texlive-2011?

The problem lies in the end of mf/GNUmakefile: The Makefile correctly determines the location of the .pfb-files and assumes that the .afm-files lie in the same location.  For most fonts this seems to work, but not for all.  No idea who is to blame...

Workaround:
Create links to the corresponding files.  The following worked fine for me:

cd /usr/share/texmf-dist/fonts/type1/urw/ncntrsbk/
ln -s /usr/share/texmf-dist/fonts/afm/urw/ncntrsbk/uncbi8a.afm .
ln -s /usr/share/texmf-dist/fonts/afm/urw/ncntrsbk/uncri8a.afm .
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2012-03-13 09:57:57 UTC
This is almost certainly fixed by lilypond-2.14.2 which is now in ~arch. Reopen if not.
Comment 5 Petr Pisar 2012-03-13 20:09:19 UTC
Thanks. It works now.