Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 334835

Summary: media-sound/lilypond-2.14.2 version bump
Product: Gentoo Linux Reporter: Tim Harder <radhermit>
Component: New packagesAssignee: Panagiotis Christopoulos (RETIRED) <pchrist>
Status: RESOLVED FIXED    
Severity: enhancement CC: ainsaar, creffett, fonts, hkbst, hsggebhardt, jarauh, keshav.kini, korionis, Martin.vGagern, ps, scheme, stroller, tl, Warp_7, wojciech
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 367425    
Bug Blocks:    
Attachments: media-sound/lilypond/lilypond-2.13.51.ebuild
Current stable Lilypond ebuild
media-sound/lilypond-2.14.2

Description Tim Harder gentoo-dev 2010-08-27 16:26:23 UTC
It would be nice to have a recent development release (currently 2.13.31) in the tree especially since the latest stable release was awhile ago.
Comment 1 Wojciech Porczyk 2011-03-02 09:06:40 UTC
Created attachment 264339 [details]
media-sound/lilypond/lilypond-2.13.51.ebuild

ebuild, wfm

This ebuild is based on the one in tree. Dependencies are revised according to README and patches corrected.

In $FILESDIR you should put lilypond-2.12.3-qa_pyc_fix.patch renamed to lilypond-2.13.51-qa_pyc_fix.patch and 50lilypond-gentoo.el .
Comment 2 edes 2011-04-30 22:34:59 UTC
i can only build lilypond with an older version of zlib (zlib-1.2.3-r1).

with the newer zlib, compilation fails at certain point with this message:

/usr/lib64/libz.so: invalid ELF header
Could not find the zlib library which is needed to understand WOFF

are you building lilypond successfully with zlib-1.2.5-r2?
Comment 3 Eckard Brauer 2011-05-02 08:20:19 UTC
(In reply to comment #2)
> i can only build lilypond with an older version of zlib (zlib-1.2.3-r1).
> 
> with the newer zlib, compilation fails at certain point with this message:
> 
> /usr/lib64/libz.so: invalid ELF header
> Could not find the zlib library which is needed to understand WOFF
> 
> are you building lilypond successfully with zlib-1.2.5-r2?

This seems to be a zlib problem. See output of "file /usr/lib64/libz.so*"

For me it works after the following steps (as root; remove "64" when on a 32bit system):

mv /usr/lib64/libz.so /usr/lib64/libz.so.orig
ln -s /lib64/libz.so /usr/lib64/libz.so
Comment 4 edes 2011-05-04 04:46:58 UTC
(In reply to comment #3)
> For me it works after the following steps (as root; remove "64" when on a 32bit
> system):
> 
> mv /usr/lib64/libz.so /usr/lib64/libz.so.orig
> ln -s /lib64/libz.so /usr/lib64/libz.so

thank you, yes, this works (modifying the link to /lib64/libz.so.1). weird...

BTW, i tried to apply the same ebuild to more recent versions of lilypond (2.13.54 and 2.13.60) and both failed thus:

Traceback (most recent call last):
  File "/var/tmp/portage/media-sound/lilypond-2.13.60/work/lilypond-2.13.60/stepmake/bin/install.py", line 78, in <module>
    shutil.copy2 (f, dest)
  File "/usr/lib64/python2.7/shutil.py", line 127, in copy2
    copyfile(src, dst)
  File "/usr/lib64/python2.7/shutil.py", line 81, in copyfile
    with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: './out/CenturySchL-Ital.otf'

any ideas?
Comment 5 edes 2011-05-07 12:27:56 UTC
(In reply to comment #4)

> IOError: [Errno 2] No such file or directory: './out/CenturySchL-Ital.otf'

i found the problem: i was using an older ebuild pointing to the wrong directory for century schoolbook fonts...

sorry, this new ebuild works, thank you.
Comment 6 Siim Ainsaar 2011-05-15 17:40:18 UTC
This /usr/lib64/libz.so issue seems to be #290974, a WONTFIX, so if this still a problem, lilypond should be fixed. The file itself (as a linker script) refers to #4411, FIXED long ago.
Comment 7 Joe Stroller 2011-06-24 13:57:12 UTC
There is now a more recent stable release for Lilypond. 

According to http://lilypond.org/development.html

   There are two sets of releases for LilyPond: stable releases, and
   unstable development releases. Stable versions have an even-numbered
   ‘minor’ version number (e.g., 2.8, 2.10, 2.12). Development versions
   have an odd-numbered ‘minor’ version number (e.g., 2.7, 2.9, 2.11).

A 2.14.1 release of Lilypond dated less than 2 weeks ago is available at http://download.linuxaudio.org/lilypond/sources/v2.14/ 

Therefore ISTM that this bug should be closed in favour of bug 370273 (although due to the zlib / linker script problem mentioned in comments #2, #3 & #6 this seems not to be quite as simple as merely "bumping").
Comment 8 Panagiotis Christopoulos (RETIRED) gentoo-dev 2011-06-25 07:06:40 UTC
Guys, I will take care of this after I finish the semester (I have exams now), unless another dev steps up and help. I may need you as testers (my sound card is dead) so stay around.
Comment 9 Tim Harder gentoo-dev 2011-06-25 07:14:13 UTC
(In reply to comment #8)
> Guys, I will take care of this after I finish the semester (I have exams now),
> unless another dev steps up and help.

I was thinking of trying to get this done in a few days, but if I don't please take care of things.

> I may need you as testers (my sound card is dead) so stay around.

You do know that lilypond is used for producing sheet music, right? Therefore you probably won't need a sound card for testing unless you want to "test" some example sheet music on a keyboard hooked up to your computer. :)
Comment 10 Panagiotis Christopoulos (RETIRED) gentoo-dev 2011-06-25 09:02:18 UTC
(In reply to comment #9)
> You do know that lilypond is used for producing sheet music, right? Therefore
> you probably won't need a sound card for testing unless you want to "test" some
> example sheet music on a keyboard hooked up to your computer. :)

You're probably right, I don't remember why, but I had a feeling that it does both.
Comment 11 Panagiotis Christopoulos (RETIRED) gentoo-dev 2011-08-04 21:06:26 UTC
*** Bug 370273 has been marked as a duplicate of this bug. ***
Comment 12 Panagiotis Christopoulos (RETIRED) gentoo-dev 2011-08-07 17:32:14 UTC
In 2.14.2 docs, there is:

--- 

   * FontForge (http://fontforge.sf.net/) (20060125 or newer; 20100501
     or newer is recommended; must be compiled with `--enable-double'.
     Failure to do so can lead to poor intersection calculations and 
     poorly-rendered glyphs.)

---

I've checked, and current fontforge ebuilds come with "--enable-double" disabled. Of the people who 've been compiling lilypond manually, does anyone know/can tell if we actually need this enabled or not?
Comment 13 Joe Stroller 2011-08-07 18:52:10 UTC
(In reply to comment #12)
> … Of the people who 've been compiling lilypond manually, does anyone
> know/can tell if we actually need this enabled or not?

I've been using the fontforge-20110222.ebuild from the main tree, patched only with Siim's patch from bug #367425. So I guess  "--enable-double" is disabled. I haven't seen any problems with this, but I'm using only lilypond 2.14.1
Comment 14 Marijn Schouten (RETIRED) gentoo-dev 2011-08-10 13:45:42 UTC
Fonts herd,

could you comment on the following (Comment 12), please:

> In 2.14.2 docs, there is:
> 
> --- 
> 
>    * FontForge (http://fontforge.sf.net/) (20060125 or newer; 20100501
>      or newer is recommended; must be compiled with `--enable-double'.
>      Failure to do so can lead to poor intersection calculations and 
>      poorly-rendered glyphs.)
> 
> ---
> 
> I've checked, and current fontforge ebuilds come with "--enable-double"
> disabled. Of the people who 've been compiling lilypond manually, does anyone
> know/can tell if we actually need this enabled or not?
Comment 15 Emil Wojak 2011-09-30 14:22:57 UTC
I followed the instructions by Joe Stroller from comment 13 and after rebuilding fontforge I was able to emerge lilypond-2.14.2 successfully.
Comment 16 pavel sanda 2011-12-20 11:38:10 UTC
CC-ing fontforge maintainer to get some feedback.
Comment 17 Tim Harder gentoo-dev 2012-01-26 09:54:16 UTC
*** Bug 399197 has been marked as a duplicate of this bug. ***
Comment 18 Aaron Burnett 2012-01-31 16:37:21 UTC
Created attachment 300549 [details]
Current stable Lilypond ebuild

Minus patches.  Builds fine for me, but needs testing.
Comment 19 Keshav Kini 2012-01-31 18:46:44 UTC
Note that >=media-sound/lilypond-2.14.0 is released under the GNU GPL v3+ license. Thanks for writing this ebuild!
Comment 20 Aaron Burnett 2012-01-31 21:20:17 UTC
(In reply to comment #19)
> Note that >=media-sound/lilypond-2.14.0 is released under the GNU GPL v3+
> license. Thanks for writing this ebuild!

Sorry, I forgot to check that!  Thanks for the correction.
Comment 21 Aaron Burnett 2012-01-31 21:21:21 UTC
Created attachment 300565 [details]
media-sound/lilypond-2.14.2

Corrected (I hope), but probably needs more.
Comment 22 Keshav Kini 2012-02-01 09:01:07 UTC
Er, I meant the software, not the ebuild. You need to change the LICENSE variable to "GPL-3" instead of "GPL-2". This means, as I understand it, that the user who installs lilypond using the ebuild is contracting with the rights owners of lilypond to obtain the source code under the GPL v3, though they have the option to obtain it under any GPL version greater than or equal to 3. In other words, "v3+" means that in the future if GPL 4 is invented, we could set LICENSE to "GPL-4" if we so desired.

As for the ebuild itself, the Gentoo ebuild how-to page says that the header in an ebuild should be exactly the same as what's in /usr/portage/header.txt, so you shouldn't change that v2 to v3. You also shouldn't delete the line "# $Header: $" under that, apparently, but I guess this is not super important until the ebuild actually goes into the portage tree.
Comment 23 Aaron Burnett 2012-02-01 19:24:52 UTC
(In reply to comment #22)
> Er, I meant the software, not the ebuild. You need to change the LICENSE
> variable to "GPL-3" instead of "GPL-2". This means, as I understand it, that
> the user who installs lilypond using the ebuild is contracting with the rights
> owners of lilypond to obtain the source code under the GPL v3, though they have
> the option to obtain it under any GPL version greater than or equal to 3. In
> other words, "v3+" means that in the future if GPL 4 is invented, we could set
> LICENSE to "GPL-4" if we so desired.
> 
> As for the ebuild itself, the Gentoo ebuild how-to page says that the header in
> an ebuild should be exactly the same as what's in /usr/portage/header.txt, so
> you shouldn't change that v2 to v3. You also shouldn't delete the line "#
> $Header: $" under that, apparently, but I guess this is not super important
> until the ebuild actually goes into the portage tree.

Well I clearly wasn't paying attention yesterday.  Should I upload yet another file, of just leave the corrections to anyone testing?  I hate to litter the thread with attachments.
Comment 24 Frank Steinmetzger 2012-03-09 15:06:59 UTC
Yesterday I read on the Lilypond mailing list that 2.16 is to come out soon. May I thus be so daring and ask for an inclusion of 2.14 in the near future, please? Even if it's keyworded and 2.12 remains the stable version for the time being.

Many problems I nowadays have are answered in the ML with "many things in xyz have changed and been improved since 2.12, try it with 2.14".

Of course I appreciate your effort. FWIW, I downloaded the sources for 2.14.2 manually, the build ran through and compiles one of my 2.12 scores. I have latest stable versions of zlib, fontforge and texlive installed without any manual patching.
Comment 25 Tim Harder gentoo-dev 2012-03-12 23:58:48 UTC
2.14.2 added to CVS currently with doc generation disabled since it requires a more recent version of texi2html than currently in the tree.