Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 228823 - lilypond-2.10.33 fails to install
Summary: lilypond-2.10.33 fails to install
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Marijn Schouten (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-22 00:51 UTC by Christopher Head
Modified: 2009-06-18 07:00 UTC (History)
2 users (show)

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


Attachments
lilypond-2.10.33_install.patch (lilypond-2.10.33_install.patch,688 bytes, text/plain)
2008-06-24 22:42 UTC, Markus Rathgeb
Details
Output from emerge lilypond (log.txt,816.97 KB, text/plain)
2008-06-25 18:43 UTC, Christopher Head
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Head 2008-06-22 00:51:55 UTC
Emerging lilypond-2.10.33 fails part way through with this output:

(/usr/bin/python /usr/portage/tmp/portage/media-sound/lilypond-2.10.33/work/lilypond-2.10.33/stepmake/bin/install.py -c -d /usr/portage/tmp/portage/media-sound/lilypond-2.10.33/image// || true) && /usr/bin/python /usr/portage/tmp/portage/media-sound/lilypond-2.10.33/work/lilypond-2.10.33/stepmake/bin/install.py -c -c -m 644  /usr/portage/tmp/portage/media-sound/lilypond-2.10.33/image// &&   (/usr/bin/python /usr/portage/tmp/portage/media-sound/lilypond-2.10.33/work/lilypond-2.10.33/stepmake/bin/install.py -c -d /usr/portage/tmp/portage/media-sound/lilypond-2.10.33/image//usr/share/lilypond/2.10.33/fonts/otf/ || true) && /usr/bin/python /usr/portage/tmp/portage/media-sound/lilypond-2.10.33/work/lilypond-2.10.33/stepmake/bin/install.py -c -c -m 644 ./out/emmentaler-11.otf ./out/emmentaler-13.otf ./out/emmentaler-14.otf ./out/emmentaler-16.otf ./out/emmentaler-18.otf ./out/emmentaler-20.otf ./out/emmentaler-23.otf ./out/emmentaler-26.otf ./out/aybabtu.otf ./out/CenturySchL-Ital.otf ./out/CenturySchL-BoldItal.otf ./out/CenturySchL-Roma.otf ./out/CenturySchL-Bold.otf /usr/portage/tmp/portage/media-sound/lilypond-2.10.33/image//usr/share/lilypond/2.10.33/fonts/otf/ &&   (/usr/bin/python /usr/portage/tmp/portage/media-sound/lilypond-2.10.33/work/lilypond-2.10.33/stepmake/bin/install.py -c -d /usr/portage/tmp/portage/media-sound/lilypond-2.10.33/image// || true) && /usr/bin/python /usr/portage/tmp/portage/media-sound/lilypond-2.10.33/work/lilypond-2.10.33/stepmake/bin/install.py -c -c -m 644  /usr/portage/tmp/portage/media-sound/lilypond-2.10.33/image// &&   (/usr/bin/python /usr/portage/tmp/portage/media-sound/lilypond-2.10.33/work/lilypond-2.10.33/stepmake/bin/install.py -c -d /usr/portage/tmp/portage/media-sound/lilypond-2.10.33/image//usr/share/lilypond/2.10.33/fonts/svg/ || true) && /usr/bin/python /usr/portage/tmp/portage/media-sound/lilypond-2.10.33/work/lilypond-2.10.33/stepmake/bin/install.py -c -c -m 644 ./out/emmentaler-11.svg ./out/emmentaler-13.svg ./out/emmentaler-14.svg ./out/emmentaler-16.svg ./out/emmentaler-18.svg ./out/emmentaler-20.svg ./out/emmentaler-23.svg ./out/emmentaler-26.svg ./out/aybabtu.svg ./out/feta11.svg ./out/feta13.svg ./out/feta14.svg ./out/feta16.svg ./out/feta18.svg ./out/feta20.svg ./out/feta23.svg ./out/feta26.svg ./out/feta-braces-a.svg ./out/feta-braces-b.svg ./out/feta-braces-c.svg ./out/feta-braces-d.svg ./out/feta-braces-e.svg ./out/feta-braces-f.svg ./out/feta-braces-g.svg ./out/feta-braces-h.svg ./out/feta-braces-i.svg ./out/feta-alphabet11.svg ./out/feta-alphabet13.svg ./out/feta-alphabet14.svg ./out/feta-alphabet16.svg ./out/feta-alphabet18.svg ./out/feta-alphabet20.svg ./out/feta-alphabet23.svg ./out/feta-alphabet26.svg ./out/parmesan11.svg ./out/parmesan13.svg ./out/parmesan14.svg ./out/parmesan16.svg ./out/parmesan18.svg ./out/parmesan20.svg ./out/parmesan23.svg ./out/parmesan26.svg /usr/portage/tmp/portage/media-sound/lilypond-2.10.33/image//usr/share/lilypond/2.10.33/fonts/svg/ &&   (/usr/bin/python /usr/portage/tmp/portage/media-sound/lilypond-2.10.33/work/lilypond-2.10.33/stepmake/bin/install.py -c -d /usr/portage/tmp/portage/media-sound/lilypond-2.10.33/image//usr/share/lilypond/2.10.33/fonts/type1/ || true) && /usr/bin/python /usr/portage/tmp/portage/media-sound/lilypond-2.10.33/work/lilypond-2.10.33/stepmake/bin/install.py -c -c -m 644 ./out/feta11.pfa ./out/feta13.pfa ./out/feta14.pfa ./out/feta16.pfa ./out/feta18.pfa ./out/feta20.pfa ./out/feta23.pfa ./out/feta26.pfa ./out/feta-braces-a.pfa ./out/feta-braces-b.pfa ./out/feta-braces-c.pfa ./out/feta-braces-d.pfa ./out/feta-braces-e.pfa ./out/feta-braces-f.pfa ./out/feta-braces-g.pfa ./out/feta-braces-h.pfa ./out/feta-braces-i.pfa ./out/feta-alphabet11.pfa ./out/feta-alphabet13.pfa ./out/feta-alphabet14.pfa ./out/feta-alphabet16.pfa ./out/feta-alphabet18.pfa ./out/feta-alphabet20.pfa ./out/feta-alphabet23.pfa ./out/feta-alphabet26.pfa ./out/parmesan11.pfa ./out/parmesan13.pfa ./out/parmesan14.pfa ./out/parmesan16.pfa ./out/parmesan18.pfa ./out/parmesan20.pfa ./out/parmesan23.pfa ./out/parmesan26.pfa /usr/portage/tmp/portage/media-sound/lilypond-2.10.33/image//usr/share/lilypond/2.10.33/fonts/type1/ &&   (/usr/bin/python /usr/portage/tmp/portage/media-sound/lilypond-2.10.33/work/lilypond-2.10.33/stepmake/bin/install.py -c -d /usr/portage/tmp/portage/media-sound/lilypond-2.10.33/image// || true) && /usr/bin/python /usr/portage/tmp/portage/media-sound/lilypond-2.10.33/work/lilypond-2.10.33/stepmake/bin/install.py -c -c -m 644  /usr/portage/tmp/portage/media-sound/lilypond-2.10.33/image// &&  true
Traceback (most recent call last):
  File "/usr/portage/tmp/portage/media-sound/lilypond-2.10.33/work/lilypond-2.10.33/stepmake/bin/install.py", line 78, in ?
    shutil.copy2 (f, dest)
  File "/usr/lib/python2.4/shutil.py", line 92, in copy2
    copyfile(src, dst)
  File "/usr/lib/python2.4/shutil.py", line 47, in copyfile
    fsrc = open(src, 'rb')
IOError: [Errno 2] No such file or directory: './out/CenturySchL-Ital.otf'
make[1]: *** [local-install-outfiles] Error 1
make[1]: Leaving directory `/usr/portage/tmp/portage/media-sound/lilypond-2.10.33/work/lilypond-2.10.33/mf'
make: *** [install] Error 2


Reproducible: Always

Steps to Reproduce:
emerge --sync
emerge lilypond
Actual Results:  
The error message.

Expected Results:  
The package should build.
Comment 1 Marijn Schouten (RETIRED) gentoo-dev 2008-06-22 20:32:21 UTC
Please provide "emerge --info" output.
Comment 2 Christopher Head 2008-06-23 03:46:21 UTC
Portage 2.1.4.4 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r8 i686)
=================================================================
System uname: 2.6.24-gentoo-r8 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Timestamp of tree: Sun, 22 Jun 2008 22:15:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo"
LINGUAS="en en_CA"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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="/usr/portage/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync21.us.gentoo.org/gentoo-portage"
USE="X alsa bash-completion bzip2 caps cdda cddb cli cups dri dvd fat flac gif gimp glibc-omitfp gmp gtk hpn isdnlog jce joystick jpeg kdehiddenvisibility libsamplerate midi mikmod mmx mp3 ncurses nls nptl nptlonly ntfs offensive ogg opengl pam pdf pg-intdatetime plotutils png pppd qq readline reflection scenarios session spell spl sse sse2 symlink theora timidity truetype unicode usb vim-syntax vorbis x86 xcb xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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 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" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_CA" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 3 Markus Rathgeb 2008-06-24 22:41:04 UTC
The two font files CenturySchL-Ital.otf and CenturySchL-BoldItal.otf are missing.
For a workaround (to install the application) I see two possibilities:
First, change the Makefile to not install the two fonts.
Second, make a symlink to CenturySchL-Roma.otf and CenturySchL-Bold.otf.

A patch to not install the missing two font files is attached.
Comment 4 Markus Rathgeb 2008-06-24 22:42:12 UTC
Created attachment 158337 [details]
lilypond-2.10.33_install.patch

Patch to skip the missing two files CenturySchL-Ital.otf and CenturySchL-BoldItal.otf
Comment 5 Markus Rathgeb 2008-06-24 22:44:24 UTC
Perhaps you should change the topic from "fails to build" to "fails to install".
Comment 6 Christopher Head 2008-06-25 07:42:48 UTC
Alright, patching the makefile fixed the problem... can I assume this will be fixed properly in a subsequent release?
Comment 7 Markus Rathgeb 2008-06-25 08:19:52 UTC
There are a lot of other versions in portage

Available versions:
2.10.33 [M](~)2.11.33 [M](~)2.11.36 [M](~)2.11.43 [M](~)2.11.44 [M](~)2.11.46 [M](~)2.11.48 [M](~)2.11.49

That are hard masked because that are "development versions" (the /usr/portage/profiles/package.mask). But you can give it a try.
Comment 8 Marijn Schouten (RETIRED) gentoo-dev 2008-06-25 09:35:34 UTC
I cannot reproduce; 2.10.33 installs fine for me as it always has. I suspect there is another failure earlier on. Please attach full build log and also please try the latest masked 2.11* version.

Portage 2.2_rc1 (default-linux/amd64/2007.0/desktop, gcc-4.2.3, glibc-2.8_p20080602-r0, 2.6.23-gentoo-r8 x86_64)
=================================================================
System uname: Linux-2.6.23-gentoo-r8-x86_64-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-glibc2.2.5
Timestamp of tree: Tue, 24 Jun 2008 09:33:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.3
dev-lang/python:     2.5.2-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r2
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect cvs distlocks parallel-fetch preserve-libs sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS=""
LINGUAS="en nl"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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="/usr/portage/local/layman/nouveau /home/marijn/git/gentoo-lisp-overlay /home/marijn/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acl acpi alsa amd64 bash-completion berkdb cairo cdr cli cracklib crypt cups dbus dri dts dvd dvdr dvdread eds emacs emboss encode esd evo fam firefox fortran gdbm gif gmp gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg kde kerberos ldap libffi lm_sensors mad midi mikmod mmx mng mp3 mpeg mudflap ncurses nls nptl nptlonly nvidia offensive ogg opengl openmp pam pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline reflection sasl sdl session smp spell spl sse sse2 ssl svg tcpd theora threads tiff truetype unicode vorbis xinerama xml xorg xpm xulrunner xv zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en nl" USERLAND="GNU" VIDEO_CARDS="fbdev nouveau nv nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 9 Christopher Head 2008-06-25 18:43:07 UTC
Markus: your patch to the makefile got 2.10.33 to install, and I do prefer running stable versions, so I'll just leave it alone until one of those gets unmasked and keyworded x86.

Marijn: I'll attached the output from "emerge lilypond | tee log.txt".
Comment 10 Christopher Head 2008-06-25 18:43:55 UTC
Created attachment 158431 [details]
Output from emerge lilypond
Comment 11 David Leverton 2008-06-25 19:36:12 UTC
Can people try building with EXTRA_ECONF=--with-ncsb-dir=/usr/share/fonts/default/ghostscript in the environment?  The problem seems to be that the configure script asks fontconfig for the locations of all the different variants of the Century Schoolbook L font, but the italic and bold italic come back as the regular version:

checking New Century Schoolbook PFB files... /usr/share/fonts/default/ghostscript/c059016l.pfb /usr/share/fonts/default/ghostscript/c059013l.pfb /usr/share/fonts/default/ghostscript/c059013l.pfb /usr/share/fonts/default/ghostscript/c059013l.pfb

Note that all but the first are the same filename.  A way to reproduce the issue independently of lilypond is:

[dleverton@shiny-one ~] $ for x in Roman Italic 'Bold Italic' Bold; do fc-match "Century Schoolbook L:style=$x"; done
c059013l.pfb: "Century Schoolbook L" "Roman"
c059013l.pfb: "Century Schoolbook L" "Roman"
c059013l.pfb: "Century Schoolbook L" "Roman"
c059016l.pfb: "Century Schoolbook L" "Bold"

This is most likely something strange happening in either freetype or fontconfig.  The relevant package versions on my system are fontconfig-2.6.0-r1, freetype-2.3.6-r1, gnu-gs-fonts-std-8.11 and urw-fonts-2.3.6 (the last is not required, but it also installs the font in question, so it might potentially interfere if it is installed; however, uninstalling it made no difference here).  This is the same as hkBst says he has, except that he doesn't have urw-fonts, so I have no idea what might be different.  Enabled fontconfig config files are also the same (except for 10-sub-pixel-rgb.conf, which unsurprisingly makes no difference when enabled or disabled):

  [4]   10-sub-pixel-rgb.conf *
  [8]   20-fix-globaladvance.conf *
  [9]   20-unhint-small-vera.conf *
  [11]  30-metric-aliases.conf *
  [12]  30-urw-aliases.conf *
  [13]  40-nonlatin.conf *
  [14]  45-latin.conf *
  [15]  49-sansserif.conf *
  [16]  50-user.conf *
  [17]  51-local.conf *
  [19]  60-latin.conf *
  [22]  65-fonts-persian.conf *
  [24]  65-nonlatin.conf *
  [25]  69-unifont.conf *
  [28]  80-delicious.conf *
  [30]  90-synthetic.conf *

Even odder is that I did have this lilypond version installed already, but reinstalling it failed, suggesting that something on my system changed to break it, but I don't have any idea what.

Any chance anyone on the fonts team has any ideas?
Comment 12 Peter Alfredsen (RETIRED) gentoo-dev 2008-06-25 20:34:48 UTC
Debian bug:
http://bugs.debian.org/486951
Comment 13 Christopher Head 2008-06-26 02:45:14 UTC
Building with EXTRA_ECONF=--with-ncsb-dir=/usr/share/fonts/default/ghostscript also fixed the problem for me. As a matter of interest, I do not have the urw-fonts package installed.
Comment 14 Markus Rathgeb 2008-06-26 12:39:46 UTC
Hello David, thanks for the hint 'EXTRA_ECONF=--with-ncsb-dir=/usr/share/fonts/default/ghostscript'.
It is working and I believe this is the 'best' solution for the problem.
Comment 15 Marijn Schouten (RETIRED) gentoo-dev 2008-07-03 21:00:44 UTC
Strangely enough I now reproduce on 2.11.49 and 2.11.50. I'll add the option in 2.11.50.
Comment 16 David Leverton 2008-07-25 08:17:23 UTC
This seems to be fixed with freetype-2.3.7, most likely due to
    - The  `style_name'  field  in  the  `FT_FaceRec'  structure often
      contained  a wrong  value for  Type 1  fonts.  This misbehaviour
      has been  introduced  in  version  2.3.6  while  trying  to  fix
      another   problem.   [Note,  however,   that   this   value   is
      informative only  since  the  used  algorithm to  extract  it is
      very simplistic.]

The reason some people could reproduce it and others couldn't is probably fontconfig's caching.  This also means that blocking the broken freetype and/or depending on the fixed one isn't sufficient - I suggest either leaving the workaround in, or adding the dep /and/ a note to the die message suggesting that the user run fc-cache -fs
Comment 17 Christopher Head 2009-06-18 07:00:36 UTC
Yep, this bug's pretty archaic and seems to be gone now :)