Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 525712 - media-sound/lilypond-2.18.2 - src_configure(): ERROR: Please install required programs: mpost (due to a bug in metapost, versions 1.600 <= x < 1.803 are not supported; installed: 1.802)
Summary: media-sound/lilypond-2.18.2 - src_configure(): ERROR: Please install required...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Karl Lindén
URL: https://github.com/gentoo/gentoo/pull...
Whiteboard:
Keywords:
: 557596 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-10-17 23:37 UTC by gerion
Modified: 2016-06-12 22:01 UTC (History)
4 users (show)

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


Attachments
build.log (build.log,10.51 KB, text/plain)
2014-10-17 23:38 UTC, gerion
Details
Lilypond tries to pull-in unstable dev-tex/metapost-1.902 (emerge lilypond,1.20 KB, text/plain)
2016-03-02 09:33 UTC, charles17
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gerion 2014-10-17 23:37:10 UTC
When trying to emerge lilypond this errors appears:
ERROR: Please install required programs:  mpost (due to a bug in metapost, versions 1.600 <= x < 1.803 are not supported; installed: 1.802)

Reproducible: Always
Comment 1 gerion 2014-10-17 23:38:11 UTC
Created attachment 386852 [details]
build.log
Comment 2 gerion 2014-10-17 23:39:17 UTC
For my metapost version:
# eix metapost
* dev-tex/metapost
     Available versions:  ~1.212 ~1.504 ~1.780 ~1.803
     Homepage:            http://tug.org/metapost.html
     Description:         System for producing graphics

[I] dev-texlive/texlive-metapost
     Available versions:  2011 2012 ~2013 {doc source}
     Installed versions:  2012(20:14:37 07.09.2013)(-doc -source)
     Homepage:            http://www.tug.org/texlive/
     Description:         TeXLive MetaPost and Metafont packages
Comment 3 Tim Harder gentoo-dev 2014-10-28 00:47:17 UTC
It seems like devs stabilizing 2.18.2 should have run into this. Anyway I can't reproduce it right now since I mostly run ~arch, but at some point I may try reproducing this in a chroot.
Comment 4 typograph 2014-11-17 10:24:37 UTC
Same error here on my non-~arch system. I have texlive-metapost-2012 installed and no dev-tex/metapost.

metapost dependencies in lilypond ebuild look strange:

|| (
     ( >=dev-texlive/texlive-metapost-2013 >=dev-tex/metapost-1.803 )
     <dev-texlive/texlive-metapost-2013
   )

I guess it actually should be <dev-texlive/texlive-metapost-2012
Comment 5 Tim Harder gentoo-dev 2014-11-29 02:40:06 UTC
I just created a clean chroot with the latest stable amd64 stage3 and failed to reproduce this so the deps appear correct for a clean, new system.

Anyway, this should definitively go away once a newer texlive gets stabilized.
Comment 6 charles17 2015-12-11 09:14:03 UTC
(In reply to Tim Harder from comment #5)
> Anyway, this should definitively go away once a newer texlive gets
> stabilized.

Meanwhile texlive-metapost-2014 got stabilized.  Now lilypond also wants =dev-tex/metapost-1.902 which did not get stabilized.

See bug 558544#c5
(In reply to Alexis Ballier from comment #5)
> lilypond deps are wrong; dev-tex/metapost wont be used unless user eselects
> it; mpost command is provided by texlive-core...
Comment 7 charles17 2016-02-18 10:12:26 UTC
Could a dev please check about https://bugs.gentoo.org/show_bug.cgi?id=558544#c5
Comment 8 Adam Feldman gentoo-dev 2016-02-21 04:05:06 UTC
(In reply to charles17 from comment #7)
> Could a dev please check about
> https://bugs.gentoo.org/show_bug.cgi?id=558544#c5

Charles, this version that you are dealing with is 2 years old.  Upstream released an a version 2 weeks ago.   Probably worth investigating with a newer version.
Comment 9 charles17 2016-03-02 09:31:24 UTC
(In reply to NP-Hardass from comment #8)
>
> Charles, this version that you are dealing with is 2 years old.  Upstream
> released an a version 2 weeks ago.   Probably worth investigating with a
> newer version.

How could I do? I am running mostly stable amd64.  And lilypond still wants unstable dependencies.
Comment 10 charles17 2016-03-02 09:33:01 UTC
Created attachment 427192 [details]
Lilypond tries to pull-in unstable dev-tex/metapost-1.902
Comment 11 Felix Janda 2016-05-26 23:48:34 UTC
TeX Live 2014 has MetaPost 1.902. So lilypond should not depend on
dev-tex/metapost when dev-texlive/texlive-metapost-2014 is installed.
Comment 12 Karl Lindén 2016-05-28 16:23:32 UTC
*** Bug 557596 has been marked as a duplicate of this bug. ***
Comment 13 Karl Lindén 2016-05-28 17:02:04 UTC
Okay. I have done some digging in the build system, both in version 2.18.2 and the live version. I have found the following results, which are the same regardless of whether we are talking about 2.18.2 or 9999.

The build system checks for the required file mfpath.mp [1][2] using the program kpsewhich. mfpath.mp is included in dev-texlive/texlive-metapost, but in neither dev-tex/metapost nor app-text/texlive-core. Therefore the dependency on texlive-metapost cannot be dispensed with. Also there is a dependency missing on dev-libs/kpathsea since kpsewhích belongs to that package [6].

The build system checks for the program mpost, which is required [7][8]. This program is supplied by either dev-tex/metapost or app-text/texlive-core. The symlink /usr/bin/mpost is managed by eselect mpost. Which package that supplies us with mpost is not important. Thus, the build system should allow any of them to be used.

I will correct the deps in the ebuilds and send a PR soon.

[1] http://git.savannah.gnu.org/gitweb/?p=lilypond.git;a=blob;f=aclocal.m4;h=0037c58ca807c403a206647415ed64ef8c00bf05;hb=HEAD#l1169
[2] http://git.savannah.gnu.org/gitweb/?p=lilypond.git;a=blob;f=configure.ac;h=0a753325d1eec6384b6c0972ae2d8330543bfdb6;hb=HEAD#l133

[3] equery f texlive-metapost
 * Searching for texlive-metapost ...
 * Contents of dev-texlive/texlive-metapost-2015:
[snip...]
/usr/share/texmf-dist/metapost/automata/automata.mp
/usr/share/texmf-dist/metapost/base
/usr/share/texmf-dist/metapost/base/TEX.mp
/usr/share/texmf-dist/metapost/base/boxes.mp
/usr/share/texmf-dist/metapost/base/format.mp
/usr/share/texmf-dist/metapost/base/graph.mp
/usr/share/texmf-dist/metapost/base/marith.mp
/usr/share/texmf-dist/metapost/base/mfplain.mp
/usr/share/texmf-dist/metapost/base/mpost.mp
/usr/share/texmf-dist/metapost/base/plain.mp
/usr/share/texmf-dist/metapost/base/rboxes.mp
/usr/share/texmf-dist/metapost/base/sarith.mp
/usr/share/texmf-dist/metapost/base/string.mp
/usr/share/texmf-dist/metapost/base/texnum.mp
/usr/share/texmf-dist/metapost/base/troffnum.mp
/usr/share/texmf-dist/metapost/bbcard
[snip...]

[4] equery f metapost
 * Searching for metapost ...
 * Contents of dev-tex/metapost-1.902:
/usr
/usr/bin
/usr/bin/mpost-metapost-1.902
/usr/share
/usr/share/doc
/usr/share/doc/metapost-1.902
/usr/share/doc/metapost-1.902/CHANGES.bz2
/usr/share/doc/metapost-1.902/README.bz2

[5] equery f texlive-core
 * Searching for texlive-core ...
 * Contents of app-text/texlive-core-2015:
[snip...]
/usr/bin/mkocp
/usr/bin/mkofm
/usr/bin/mktexfmt -> fmtutil
/usr/bin/mpost -> mpost-texlive-core-2015
/usr/bin/mpost-texlive-core-2015
/usr/bin/msxlint
/usr/bin/odvicopy
/usr/bin/odvitype
[snip...]

[6] equery b /usr/bin/kpsewhich
 * Searching for /usr/bin/kpsewhich ... 
dev-libs/kpathsea-6.2.1_p20150521 (/usr/bin/kpsewhich)

[7] http://git.savannah.gnu.org/gitweb/?p=lilypond.git;a=blob;f=aclocal.m4;h=0037c58ca807c403a206647415ed64ef8c00bf05;hb=HEAD#l1184
[8] http://git.savannah.gnu.org/gitweb/?p=lilypond.git;a=blob;f=configure.ac;h=0a753325d1eec6384b6c0972ae2d8330543bfdb6;hb=HEAD#l132
Comment 14 Karl Lindén 2016-05-28 18:53:10 UTC
A pull request is filed at ${URL}. A month or so after merge I will request 2.18.2-r2 to be stabilized. When that is done and the problematic version is removed this will be closed.
Comment 15 Patrice Clement gentoo-dev 2016-06-12 22:01:11 UTC
commit f7824d6e3a2dd6874157d9fc4f008987d49aa89f (HEAD -> master, origin/master, origin/HEAD)
Author:     Karl Linden <karl.j.linden@gmail.com>
AuthorDate: Sat May 28 19:08:34 2016 +0200
Commit:     Patrice Clement <monsieurp@gentoo.org>
CommitDate: Sun Jun 12 21:32:45 2016 +0000

media-sound/lilypond: Various updates.

* Fix metapost deps in 2.18.2-r1, wrt bug 525712.
* Do not install HACKING in 2.18.2-r1 because it is irrelevant.
* EAPI 6 for version 2.18.2 and revbump to -r2.
* Sync live ebuild with version 2.18.2-r2.
* Make -9999 version a "conditional live ebuild".
* Version bump to 2.19.42.
* Drop 2.19.15.

Package-Manager: portage-2.3.0_rc1
Gentoo-Bug: https://bugs.gentoo.org/525712
Closes: https://github.com/gentoo/gentoo/pull/1552

Signed-off-by: Patrice Clement <monsieurp@gentoo.org>

media-sound/lilypond/Manifest                  |   2 +-
media-sound/lilypond/lilypond-2.18.2-r1.ebuild |   8 ++++---
media-sound/lilypond/lilypond-2.18.2-r2.ebuild | 138 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
media-sound/lilypond/lilypond-2.19.15.ebuild   | 125 -----------------------------------------------------------------------------------------------------------
media-sound/lilypond/lilypond-2.19.42.ebuild   | 137 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
media-sound/lilypond/lilypond-9999.ebuild      |  30 ++++++++++++++++++--------
6 files changed, 302 insertions(+), 138 deletions(-)
create mode 100644 media-sound/lilypond/lilypond-2.18.2-r2.ebuild
delete mode 100644 media-sound/lilypond/lilypond-2.19.15.ebuild
create mode 100644 media-sound/lilypond/lilypond-2.19.42.ebuild