You are not logged in.
thegnu here provides http://bbs.archlinux.org/viewtopic.php?t=6685
and old version. hopefully someone before thegnu will be able to provide a new working well PKGBUILD before thegnu does. I tried changing the version and the source uri, but didn't compile. (some deps also need to be updated, but my bandwidth is very poor to be able to test and have quick results [see ec-fonts-mftraced]). Hopefully someone will do it before me and thegnu.
check it out on www.lilypond.org
thanks for reading and trying to make Arch have some good quality packages on the music sector
Offline
pkgname=mftrace
pkgver=1.0.35
pkgrel=1
pkgdesc="a small Python program that traces TeX bitmap fonts into scalable PS or TTF fonts"
url="http://www.xs4all.nl/~hanwen/mftrace/"
depends=('potrace' 'python>=2.1' 't1utils' 'tetex')
source=(http://www.cs.uu.nl/~hanwen/mftrace/$pkgname-$pkgver.tar.gz)
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make || return 1
make DESTDIR=$startdir/pkg install
}
then according to thegnu, one must manually do
cd /usr/share/mftrace/
import filelib (hopefully this will work will the latest imagemagick)
and then
pkgname=ec-fonts-mftraced
pkgver=1.0.8
pkgrel=1
pkgdesc="a font package required by lilypond"
url="http://www.lilypond.org/"
depends=()
source=(http://lilypond.org/download/fonts/$pkgname-$pkgver.tar.gz)
#md5sums=('1b4bf2634fbf680b7fa874e8208e0e54')
build() {
cd $startdir/src/$pkgname-$pkgver
make DESTDIR=$stardir/pkg
make DESTDIR=$startdir/pkg install
}
and in the end (where I have the problems)
pkgname=lilypond
pkgver=2.4.2
pkgrel=1
pkgdesc="an automated engraving system that fomats beautiful music notation"
url="http://www.lilypond.org/"
depends=('ghostscript' 'tetex' 'ec-fonts-mftraced' 'guile>=1.6.0')
makedepends=('mftrace>=1.0.17' 'guile>=1.6.0' 'tetex' 'bison>=1.25' 'python>=2.1')
source=(http://lilypond.org/download/v2.4/$pkgname-$pkgver.tar.gz)
#md5sum=('c379905b53973cc314415340dd017c77')
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make || return 1
make DESTDIR=$startdir/pkg install
}
makepkg on the last tells me:
ERROR: Please install required programs: package ec-fonts-mftraced
which can be irritating, cause I have it installed
hope it will work on you, or you'll find a way..
OMG, I want Beethoven's music in my coffin and good ears to be able to listen.. but first lilypond to work!
Offline
I noticed in the INSTALL howto at lilypond.org http://lilypond.org/download/fonts/INSTALL, they recommend using the ec-fonts rpm, and after rpm2cpioing and installing it, they say to run mktexlsr, which updates the tex (font? it's ls-R) database.
So I'm trying ec-fonts build with a ec.install file that runs /usr/bin/mktexlsr post install. Maybe tetex needs to be listed as an ec-fonts dep. I set my client who uses lilypond up on Fedora Core 3, and damn it installs easy. When I have time, I'll dissect the rpm, if it comes to that.
UPDATE:
I don't know if mktexlsr did anything, but anyway, when I run makepkg for lilypond, I don't get an error about missing ec-fonts-mftraced, I get an error about makeinfo.
UPDATE:
Makeinfo comes with texinfo. So it has to be in the lily deps.
fffft!
Offline
OK, lilypond installs. The Makinfo error makes me think the lilypond PKGBUILD needs to be:
pkgname=lilypond
pkgver=2.4.2
pkgrel=1
pkgdesc="an automated engraving system that fomats beautiful music notation"
url="http://www.lilypond.org/"
depends=('ghostscript' 'tetex' 'texinfo' 'ec-fonts-mftraced' 'guile>=1.6.0')
makedepends=('mftrace>=1.0.17' 'guile>=1.6.0' 'tetex' 'bison>=1.25' 'python>=2.1')
source=(http://lilypond.org/download/v2.4/$pkgname-$pkgver.tar.gz)
#md5sum=('c379905b53973cc314415340dd017c77')
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make || return 1
make DESTDIR=$startdir/pkg install
}
On the difference between the our current PKGBUILD and the Fedora package,
In Arch:
# mktexlsr
mktexlsr: Updating /usr/share/texmf/ls-R
mktexlsr: Done
in Fedora:
[root@eeyore thegnu]# mktexlsr
mktexlsr: Updating /usr/share/lilypond/2.4.2/ls-R...
mktexlsr: Updating /usr/share/texmf/ls-R...
mktexlsr: Updating /var/lib/texmf/ls-R...
mktexlsr: Done.
Also, on getting latex to find the lilypond fonts automatically after lilypond install:
[root@eeyore thegnu]# mktexlsr --help
Usage: mktexlsr [DIRS ...]
Rebuild all necessary ls-R filename databases completely. If one or
more arguments DIRS are given, these are used as texmf directories to
build ls-R for. Else all directories in the search path for ls-R files
($TEXMFDBS) are used.
fffft!
Offline
thegnu, once again you seem to have found out the solution.
sudo mktexlsr
and now it 's compiling.. hopefully I'll have no problems at all
please just remove the quote with the pacman -Qi so the solution in this thread is not so down..
anyone to maintain in a repo the beast?
dp?
again,
"neotuli and thegnu for presidents!"
Offline
I don't know how to set the TEXMFDBS variable. My thought is if we can figure out how to add /usr/share/lilypond/2.4.2 to TEXMFDBS in the post-install, then lilypond will be a viable package for inclusion in an actual repo.
I tried
export TEXMFDBS=/usr/share/lilypond/2.4.2
but it gave me another error running latex on the test file at lilypond.org
[root@eeyore out]#latex lilybook
This is TeX, Version 3.14159 (Web2C 7.4.5)
kpathsea: Running mktexfmt latex.fmt
fmtutil: config file 'fmtutil.cnf' not found.
I can't find the format file `latex.fmt'!
So crap. We need to commission the help of someone who knows >0 about TeX/LaTeX
fffft!
Offline
added the command mktexlsr in an preinstall doesn't work I guess?
what about this?
*** Before running, buildscripts/out/lilypond-{profile,login}
*** must be run. You're advised to source these scripts from your
*** login scripts. For more information, see Invoking LilyPond in the manual.
also it doesn't work:
wget http://www.mutopiaproject.org/ftp/Schum … p15No07.ly
lilypond -V SchumannOp15No07.ly
GNU LilyPond 2.4.2
LILYPOND_DATADIR="/usr/share/lilypond"
LOCAL_LILYPOND_DATADIR="/usr/share/lilypond/2.4.2"
LOCALEDIR="/usr/share/locale"
LILYPONDPREFIX=""
[/usr/share/lilypond/2.4.2/scm/lily-library.scm]
[/usr/share/lilypond/2.4.2/scm/define-music-types.scm]
[/usr/share/lilypond/2.4.2/scm/output-lib.scm]
[/usr/share/lilypond/2.4.2/scm/c++.scm]
[/usr/share/lilypond/2.4.2/scm/chord-ignatzek-names.scm]
[/usr/share/lilypond/2.4.2/scm/chord-entry.scm]
[/usr/share/lilypond/2.4.2/scm/chord-generic-names.scm][/usr/share/lilypond/2.4.2/scm/stencil.scm]
[/usr/share/lilypond/2.4.2/scm/new-markup.scm][/usr/share/lilypond/2.4.2/scm/bass-figure.scm]
[/usr/share/lilypond/2.4.2/scm/music-functions.scm][/usr/share/lilypond/2.4.2/scm/part-combiner.scm]
[/usr/share/lilypond/2.4.2/scm/define-music-properties.scm][/usr/share/lilypond/2.4.2/scm/auto-beam.scm]
[/usr/share/lilypond/2.4.2/scm/chord-name.scm][/usr/share/lilypond/2.4.2/scm/ly-from-scheme.scm]
[/usr/share/lilypond/2.4.2/scm/define-context-properties.scm][/usr/share/lilypond/2.4.2/scm/translation-functions.scm]
[/usr/share/lilypond/2.4.2/scm/script.scm][/usr/share/lilypond/2.4.2/scm/midi.scm][/usr/share/lilypond/2.4.2/scm/beam.scm]
[/usr/share/lilypond/2.4.2/scm/clef.scm][/usr/share/lilypond/2.4.2/scm/slur.scm][/usr/share/lilypond/2.4.2/scm/font.scm]
[/usr/share/lilypond/2.4.2/scm/encoding.scm][/usr/share/lilypond/2.4.2/scm/fret-diagrams.scm][/usr/share/lilypond/2.4.2/scm/define-markup-commands.scm]
[/usr/share/lilypond/2.4.2/scm/define-grob-properties.scm][/usr/share/lilypond/2.4.2/scm/define-grobs.scm]
[/usr/share/lilypond/2.4.2/scm/define-grob-interfaces.scm]
[/usr/share/lilypond/2.4.2/scm/page-layout.scm]
[/usr/share/lilypond/2.4.2/scm/titling.scm]
[/usr/share/lilypond/2.4.2/scm/paper.scm]
[/usr/share/lilypond/2.4.2/scm/safe-lily.scm]Processing `SchumannOp15No07.ly'
Parsing...
[/usr/share/lilypond/2.4.2/ly/init.ly[/usr/share/lilypond/2.4.2/ly/declarations-init.ly
[/usr/share/lilypond/2.4.2/ly/music-functions-init.ly]
[/usr/share/lilypond/2.4.2/ly/nederlands.ly]
[/usr/share/lilypond/2.4.2/ly/drumpitch-init.ly]
[/usr/share/lilypond/2.4.2/ly/chord-modifiers-init.ly][/usr/share/lilypond/2.4.2/ly/script-init.ly][/usr/share/lilypond/2.4.2/ly/scale-definitions-init.ly]
[/usr/share/lilypond/2.4.2/ly/grace-init.ly][/usr/share/lilypond/2.4.2/ly/midi-init.ly[/usr/share/lilypond/2.4.2/ly/performer-init.ly]]
[/usr/share/lilypond/2.4.2/ly/paper-defaults.ly][/usr/share/lilypond/2.4.2/ly/engraver-init.ly][/usr/share/lilypond/2.4.2/ly/dynamic-scripts-init.ly]
[/usr/share/lilypond/2.4.2/ly/spanners-init.ly][/usr/share/lilypond/2.4.2/ly/property-init.ly]][SchumannOp15No07.ly]Interpreting music... error: can't find `feta20.afm'
Music font has not been installed properly. Aborting
Offline
An excerpt from http://lilypond.org/doc/v2.4/Documentat … html#TOC13:
1.6.2 Linking to kpathsea
If kpathsea and the corresponding header files are installed in some directory where GCC does not search by default, for example in /usr/local/lib/ and /usr/local/include/ respectively, you have to explicitly tell configure where to find it. To do this:
* rm config.cache
* export LDFLAGS=-L/usr/share/texmf/lib
* export CPPFLAGS=-I/usr/share/texmf/include
* ./configureOnce configure has found them, the paths are stored in config.make and will be used even if you don't have the environment variables set during make.
And here's something I definitely should've read:
To install GNU LilyPond, type
gunzip -c lilypond-x.y.z | tar xf -
cd lilypond-x.y.z
./configure # run with --help to see appropriate options
make
make install
sh buildscripts/clean-fonts.sh
That last part isn't in the PKGBUILD. :oops: :oops: :oops:
fffft!
Offline
OK, a few things.
1. "sh buildscripts/clean-fonts.sh" should go in the the preupgrade and preinstall. It cleans out the old fonts before installing the freshly compiled ones.
2. In preinstall, preupgrade, I think we need to use kpsepath to set the path for kpathsea to each directory that lilypond needs. Sure, it seems liks a lot of work, but that's all I can figure out how to do. The only other possibility is to use the --include switch when you run lilypond and point to every directory you'll need. So dammit.
I used kpsepath to setup a few font directories, but I don't know how to do them all. there doesn't seem to be a kpsepath font type switch for afm fonts. I need to ask someone who has compiled lilypond successfully what the heck I'm supposed to be doing.
fffft!
Offline
Also relevant these two posts. I think they kind of discount what I said above:
http://www.mail-archive.com/lilypond-us … 11371.html
http://www.mail-archive.com/lilypond-us … 11372.html
fffft!
Offline
thegnu, did you try what the guy says in the second email?
if you have the updated PKGBUILD, if you can plz post them, so me and others can stand lucky or whatever and help you build the beast.
I wonder how they build it!!
Offline
Actually, there are still no changes to the PKGBUILD. I thought I would add the cleanfonts.sh line to it, but I later found out that it is for when you upgrade lilypond. So it will go in the preuprade section of the .install file. I've tried what he says in the second post, but I think his problem was corrupt files, and our problem is not being able to find them.
fffft!
Offline
thegnu did you have any progress on this?
I don't understand why 2.2.6 could be built and was working and this cannot work..
Offline
thegnu did you have any progress on this?
I don't understand why 2.2.6 could be built and was working and this cannot work..
eek! No I haven't. I've been pretty tied up with other things, helping friends out and getting prepared for christmas. But I haven't completely disappeared. It's in the back of my mind and will be in the forefront soon!
fffft!
Offline
thegnu, sorry to bother again, but did you have an progress/ideas. Where exactly you think is the problem?
Maybe I or others can help orr I can't wait too much more, and have to install a FC
Offline
I tried
export TEXMFDBS=/usr/share/lilypond/2.4.2
sudo mktexlsr
mktexlsr: Updating /usr/share/lilypond/2.4.2/ls-R...
mktexlsr: Done.
cat /usr/share/lilypond/2.4.2/ls-R | grep feta20.afm
feta20.afm
wget http://www.mutopiaproject.org/ftp/Chopi … e_minor.ly
(even better cause it's for 2.4.2)
lilypond nocturne_in_e_minor.ly
GNU LilyPond 2.4.2
Processing `nocturne_in_e_minor.ly'
Parsing...
Interpreting music... error: can't find `feta20.afm'
Music font has not been installed properly. Aborting
Offline
well I don't want to reboot [what more can I say]
after a lot of magic, I tried
source /home/nk/packages/lilypond/src/lilypond-2.4.2/buildscripts/out/lilypond-profile
now it works
Offline
kudos zeppelin! :thumbsup:
This is with the same PKGBUILD? Also, does it work after a reboot after you ran:
source /home/nk/packages/lilypond/src/lilypond-2.4.2/buildscripts/out/lilypond-profile
does it still work? I guess I could try it myself, lazy me... I'll be self-employed at the end of January, so I will return to working more in Linux in general, with of course emphasis on the best distro ever, ARCH!
I'm also working on converting my current boss and friend, as well as my girlfriend's family over to Linux. HA HA! Because Microsoft disgusts me more and more. Now I'm off-topic.
Love,
thegnu
fffft!
Offline
hey thegnu and happy new year.
yes it works also after rebooting, I contacted neotuli and he added lilypond and deps in his repo.
He made it awesome, it should work (haven't tested cause I have an already working version and bad bandwidth).
grab those packages, and a 2.4.2 ly from Mutopia and try to pdf it. it should work
thanks again thegnu, without your help Arch wouldn't have this package at all. Of course thanks to neotuli who is the TU of my heart. {hehe}
It is good that you convert people to GNU/Linux. Time passes by, and MS is getting even more tyran than it used to
Offline
any progress?
Offline
add this to /etc/pacman.conf
[neotuli]
Server = ftp://blkwidow.lerp.com/pub/mirror/arch/neotuli
then do:
sudo pacman -Sy lilypond
and tell us if it works for you
Offline
yes it works also after rebooting, I contacted neotuli and he added lilypond and deps in his repo.
Awesome, I'm glad it finally got working! I ended up switching my client to Fedora, but Fedora has the same things I hate about Windows (and is definitely NOTHING like what I like about Arch), so I'm going to switch him back as soon as I can get rosegarden installed and working again, even if I have to do the work for free.
fffft!
Offline
sudo pacman -S unstable/rosegarden-devel
welcome back
Offline
I've run into the problem that using lilypond-book, dvips can't find the ec-font files. The specific error I ran into was that it couldn't find the header file ecbx6. I searched, and found that the .map file:
/usr/share/texmf/dvips/ec-fonts-mftraced/ec-mftrace.map
was missing the file extensions. I found a replacement for the incorrect contents of the original stock file. I suggest using sed to fix the file, or replacing the contents in the default installation with the following:
ecbx10 EuropeanCM-BoldExtended10 <ecbx10.pfa
ecbx12 EuropeanCM-BoldExtended12 <ecbx12.pfa
ecbx5 EuropeanCM-BoldExtended5 <ecbx5.pfa
ecbx6 EuropeanCM-BoldExtended6 <ecbx6.pfa
ecbx7 EuropeanCM-BoldExtended7 <ecbx7.pfa
ecbx8 EuropeanCM-BoldExtended8 <ecbx8.pfa
ecbx9 EuropeanCM-BoldExtended9 <ecbx9.pfa
ecrm10 EuropeanCM-Roman10 <ecrm10.pfa.pfa
ecrm12 EuropeanCM-Roman12 <ecrm12.pfa
ecrm17 EuropeanCM-Roman17 <ecrm17.pfa
ecrm5 EuropeanCM-Roman5 <ecrm5.pfa
ecrm6 EuropeanCM-Roman6 <ecrm6.pfa
ecrm7 EuropeanCM-Roman7 <ecrm7.pfa
ecrm8 EuropeanCM-Roman8 <ecrm8.pfa
ecrm9 EuropeanCM-Roman9 <ecrm9.pfa
ecsl10 EuropeanCM-Oblique10 <ecsl10.pfa
ecsl12 EuropeanCM-Oblique12 <ecsl12.pfa
ecsl8 EuropeanCM-ObliqueRegular8 <ecsl8.pfa
ecsl9 EuropeanCM-ObliqueRegular9 <ecsl9.pfa
ecsc9 EuropeanCM-RegularCondensed9 <ecsc9.pfa
ecsc10 EuropeanCM-RegularCondensed10 <ecsc10.pfa
ecsc12 EuropeanCM-RegularCondensed12 <ecsc12.pfa
ecsc14 EuropeanCM-RegularCondensed14 <ecsc14.pfa
eccc10 EuropeanCM-SmallcapsRegular10 <eccc10.pfa
eccc12 EuropeanCM-SmallcapsRegular12 <eccc12.pfa
ecbi8 EuropeanCM-ItalicBold8 <ecbi8.pfa
ecbi9 EuropeanCM-ItalicBold9 <ecbi9.pfa
ecbi10 EuropeanCM-ItalicBold10 <ecbi10.pfa
ecbi12 EuropeanCM-ItalicBold12 <ecbi12.pfa
ecbi14 EuropeanCM-ItalicBold14 <ecbi14.pfa
ecbi17 EuropeanCM-ItalicBold17 <ecbi17.pfa
ecrb7 EuropeanCM-RomanBold7 <ecrb7.pfa
ecrb10 EuropeanCM-RomanBold10 <ecrb10.pfa
ecrb12 EuropeanCM-RomanBold12 <ecrb12.pfa
ecrb14 EuropeanCM-RomanBold14 <ecrb14.pfa
ecrb17 EuropeanCM-RomanBold17 <ecrb17.pfa
ecss10 EuropeanCMSans-Regular10 <ecss10.pfa
ecss12 EuropeanCMSans-Regular12 <ecss12.pfa
ecss17 EuropeanCMSans-Regular17 <ecss17.pfa
ecb7 EuropeanCM-Bold7 <ecb7.pfa
ecb8 EuropeanCM-Bold8 <ecb8.pfa
ecb9 EuropeanCM-Bold9 <ecb9.pfa
ecb10 EuropeanCM-Bold10 <ecb10.pfa
ecb12 EuropeanCM-Bold12 <ecb12.pfa
ecss8 EuropeanCMSans-Regular8 <ecss8.pfa
ecss9 EuropeanCMSans-Regular9 <ecss9.pfa
ecssdc10 EuropeanCMSans-DemiboldCondensed10 <ecssdc10.pfa
ecti10 EuropeanCM-ItalicRegular10 <ecti10.pfa.pfa
ecti12 EuropeanCM-ItalicRegular12 <ecti12.pfa
ecti7 EuropeanCM-ItalicRegular7 <ecti7.pfa
ecti8 EuropeanCM-ItalicRegular8 <ecti8.pfa
ecti9 EuropeanCM-ItalicRegular9 <ecti9.pfa
ectt10 EuropeanCMTypewriter-Regular10 <ectt10.pfa
ectt12 EuropeanCMTypewriter-Regular12 <ectt12.pfa
ectt8 EuropeanCMTypewriter-Regular8 <ectt8.pfa
ectt9 EuropeanCMTypewriter-Regular9 <ectt9.pfa
Thanks for all your work, dp. It's really made my life easier.
EDIT: And in the interest of acknowledging the person who actually is maintaining lilypond, YAY NEOTULI!
fffft!
Offline