Gentoo Archives: gentoo-commits

From: "Miroslav Šulc" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/lilypond/files/, media-sound/lilypond/
Date: Wed, 07 Oct 2020 08:19:27
Message-Id: 1602058719.9511e4df4940f2de5cf59540b096d20cbaa98369.fordfrog@gentoo
1 commit: 9511e4df4940f2de5cf59540b096d20cbaa98369
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 7 08:18:39 2020 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 7 08:18:39 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9511e4df
7
8 media-sound/lilypond: removed obsolete 2.21.4-r1
9
10 Package-Manager: Portage-3.0.8, Repoman-3.0.1
11 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
12
13 media-sound/lilypond/Manifest | 1 -
14 .../files/lilypond-fix-cve-2020-17353.patch | 101 ----------------
15 media-sound/lilypond/lilypond-2.21.4-r1.ebuild | 133 ---------------------
16 3 files changed, 235 deletions(-)
17
18 diff --git a/media-sound/lilypond/Manifest b/media-sound/lilypond/Manifest
19 index b5615aa667c..98bef22425b 100644
20 --- a/media-sound/lilypond/Manifest
21 +++ b/media-sound/lilypond/Manifest
22 @@ -1,3 +1,2 @@
23 -DIST lilypond-2.21.4.tar.gz 18011766 BLAKE2B fe9731a170ec6e551bd5e2259cca33e1c69ee5dedccaf39e7026afe3342da8d301f7450450122f4e102915d4469dddb89575b3a75db21e988d526d9b683bcc38 SHA512 29d671d411cf3817e8a62f208bec4c8d74a08c3a54b8856c1474cfa736e2882c5418b52af2675598093fae2b77c2ba4c812aae9164d99c9643ff18271cee6860
24 DIST lilypond-2.21.5.tar.gz 18005124 BLAKE2B d41f2baaeb0e72905f688bf7bd88e9acdc1eabc1bf69a05e8d5208f8ffc06197830c6b6ff1f09034eebc15fc4d94f6909848940361e06120530abc67b10aa87e SHA512 bcc72d0d040125fc9e4f7447e31af59959cae8c1afef1f6c4b7fb1fdbf037931a94d64c94b6b26e37de7d66ec52f24b2ba1b4fd0a6e0862b82eeef3c86d94958
25 DIST lilypond-2.21.6.tar.gz 17996701 BLAKE2B 2efbdae1bd16ab1682c14c1c0e01146d66dd408ff5d3f9b69ed38dcedd88b68c6ae3219b02e7a3967833d802488a90aecf50964f44ebb5445f887d4a532a41ad SHA512 9effceabe39a0ca5f3837e0ff1cb0d4caed87b4b76e40f7c4f618d682b2e3db8f82e461e5c9555d6c05d591be54a08370599ed8c72d1e92ba80bcabf4d21a6f7
26
27 diff --git a/media-sound/lilypond/files/lilypond-fix-cve-2020-17353.patch b/media-sound/lilypond/files/lilypond-fix-cve-2020-17353.patch
28 deleted file mode 100644
29 index e91947eae05..00000000000
30 --- a/media-sound/lilypond/files/lilypond-fix-cve-2020-17353.patch
31 +++ /dev/null
32 @@ -1,101 +0,0 @@
33 -From b84ea4740f3279516905c5db05f4074e777c16ff Mon Sep 17 00:00:00 2001
34 -From: Han-Wen Nienhuys <hanwenn@×××××.com>
35 -Date: Tue, 21 Jul 2020 14:45:08 +0200
36 -Subject: [PATCH] scm: disable embedded-ps and embedded-svg in -dsafe mode
37 -
38 -This prevents executing privileged PostScript and exploiting
39 -Ghostscript vulnerablilities
40 -
41 -Tested:
42 - $ lilypond -dsafe input/regression/les-nereides.ly
43 - (works, kinda)
44 -
45 - $ cat f.ly
46 - { c4_ \markup \postscript #" (x) show " }
47 -
48 - $ lilypond -dsafe f
49 - Preprocessing graphical objects.../home/hanwen/vc/lilypond/out/share/lilypond/current/scm/define-markup-commands.scm:1145:3: In procedure ly_make_stencil in expression (ly:make-stencil (list # #) (quote #) ...):
50 - /home/hanwen/vc/lilypond/out/share/lilypond/current/scm/define-markup-commands.scm:1145:3: Wrong type argument in position 1 (expecting registered stencil expression): (embedded-ps "
51 ----
52 - scm/define-stencil-commands.scm | 65 ++++++++++++++++++++++-------------------
53 - 1 file changed, 35 insertions(+), 30 deletions(-)
54 -
55 -diff --git a/scm/define-stencil-commands.scm b/scm/define-stencil-commands.scm
56 -index 09a2299..e388788 100644
57 ---- a/scm/define-stencil-commands.scm
58 -+++ b/scm/define-stencil-commands.scm
59 -@@ -21,36 +21,41 @@
60 - (define-public (ly:all-stencil-commands)
61 - "Return the list of stencil commands that can be
62 - defined in the output modules (@file{output-*.scm})."
63 -- '(blank
64 -- char
65 -- circle
66 -- dashed-line
67 -- draw-line
68 -- ellipse
69 -- embedded-ps
70 -- embedded-svg
71 -- end-group-node
72 -- glyph-string
73 -- grob-cause
74 -- named-glyph
75 -- no-origin
76 -- page-link
77 -- path
78 -- partial-ellipse
79 -- placebox
80 -- polygon
81 -- resetcolor
82 -- resetrotation
83 -- resetscale
84 -- round-filled-box
85 -- setcolor
86 -- setrotation
87 -- setscale
88 -- start-group-node
89 -- text
90 -- unknown
91 -- url-link
92 -- utf-8-string
93 -+ (let*
94 -+ ((commands '(blank
95 -+ char
96 -+ circle
97 -+ dashed-line
98 -+ draw-line
99 -+ ellipse
100 -+ end-group-node
101 -+ glyph-string
102 -+ grob-cause
103 -+ named-glyph
104 -+ no-origin
105 -+ page-link
106 -+ path
107 -+ partial-ellipse
108 -+ placebox
109 -+ polygon
110 -+ resetcolor
111 -+ resetrotation
112 -+ resetscale
113 -+ round-filled-box
114 -+ setcolor
115 -+ setrotation
116 -+ setscale
117 -+ start-group-node
118 -+ text
119 -+ unknown
120 -+ url-link
121 -+ utf-8-string
122 -+ )))
123 -+
124 -+ (if (ly:get-option 'safe)
125 -+ commands
126 -+ (append '(embedded-ps embedded-svg)
127 -+ commands))
128 - ))
129 -
130 - ;; TODO:
131 ---
132 -1.9.1
133 -
134
135 diff --git a/media-sound/lilypond/lilypond-2.21.4-r1.ebuild b/media-sound/lilypond/lilypond-2.21.4-r1.ebuild
136 deleted file mode 100644
137 index 7d751530c32..00000000000
138 --- a/media-sound/lilypond/lilypond-2.21.4-r1.ebuild
139 +++ /dev/null
140 @@ -1,133 +0,0 @@
141 -# Copyright 1999-2020 Gentoo Authors
142 -# Distributed under the terms of the GNU General Public License v2
143 -
144 -EAPI=7
145 -PYTHON_COMPAT=( python3_{6,7,8,9} )
146 -
147 -inherit elisp-common autotools python-single-r1 toolchain-funcs xdg-utils
148 -
149 -if [[ "${PV}" = "9999" ]]; then
150 - inherit git-r3
151 - EGIT_REPO_URI="https://git.savannah.gnu.org/git/lilypond.git"
152 -else
153 - MAIN_VER=$(ver_cut 1-2)
154 - SRC_URI="http://lilypond.org/download/sources/v${MAIN_VER}/${P}.tar.gz"
155 - KEYWORDS="amd64 ~arm arm64 ~hppa x86"
156 -fi
157 -
158 -DESCRIPTION="GNU Music Typesetter"
159 -HOMEPAGE="http://lilypond.org/"
160 -
161 -LICENSE="GPL-3 FDL-1.3"
162 -SLOT="0"
163 -IUSE="debug emacs guile2 profile vim-syntax"
164 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
165 -
166 -BDEPEND="
167 - >=dev-texlive/texlive-metapost-2020
168 - >=sys-apps/texinfo-4.11
169 - >=sys-devel/bison-2.0
170 - sys-devel/flex
171 - virtual/pkgconfig
172 -"
173 -RDEPEND=">=app-text/ghostscript-gpl-8.15
174 - >=dev-scheme/guile-1.8.2:12=[deprecated,regex]
175 - media-fonts/tex-gyre
176 - media-libs/fontconfig
177 - media-libs/freetype:2
178 - >=x11-libs/pango-1.12.3
179 - emacs? ( >=app-editors/emacs-23.1:* )
180 - guile2? ( >=dev-scheme/guile-2.2:12 )
181 - !guile2? (
182 - >=dev-scheme/guile-1.8.2:12=[deprecated,regex]
183 - <dev-scheme/guile-2.0:12
184 - )
185 - ${PYTHON_DEPS}"
186 -DEPEND="${RDEPEND}
187 - app-text/t1utils
188 - dev-lang/perl
189 - dev-libs/kpathsea
190 - media-gfx/fontforge[png,python]
191 - sys-devel/gettext"
192 -
193 -# Correct output data for tests isn't bundled with releases
194 -RESTRICT="test"
195 -
196 -PATCHES=(
197 - "${FILESDIR}"/${PN}-2.21.1-fix-font-size.patch
198 - "${FILESDIR}"/${PN}-fix-cve-2020-17353.patch
199 -)
200 -
201 -DOCS=( DEDICATION HACKING README.txt ROADMAP )
202 -
203 -src_prepare() {
204 - default
205 -
206 - if ! use vim-syntax ; then
207 - sed -i 's/vim//' GNUmakefile.in || die
208 - fi
209 -
210 - # respect CFLAGS
211 - sed -i 's/OPTIMIZE -g/OPTIMIZE/' aclocal.m4 || die
212 -
213 - # remove bundled texinfo file (fixes bug #448560)
214 - rm tex/texinfo.tex || die
215 -
216 - eautoreconf
217 -
218 - xdg_environment_reset #586592
219 -}
220 -
221 -src_configure() {
222 - # fix hardcoded `ar`
223 - sed -i "s/AR=ar/AR=$(tc-getAR)/g" flower/GNUmakefile || die "Failed to fix ar command"
224 -
225 - # documentation generation currently not supported since it requires a newer
226 - # version of texi2html than is currently in the tree
227 - local myeconfargs=(
228 - --with-texgyre-dir=/usr/share/fonts/tex-gyre
229 - --disable-documentation
230 - --disable-optimising
231 - --disable-pipe
232 - $(use_enable debug debugging)
233 - $(use_enable profile profiling)
234 - )
235 -
236 - export VARTEXFONTS="${T}/fonts" # https://bugs.gentoo.org/692010
237 -
238 - econf "${myeconfargs[@]}" AR="$(tc-getAR)"
239 -}
240 -
241 -src_compile() {
242 - default
243 -
244 - if use emacs ; then
245 - elisp-compile elisp/lilypond-{font-lock,indent,mode,what-beat}.el \
246 - || die "elisp-compile failed"
247 - fi
248 -}
249 -
250 -src_install() {
251 - emake DESTDIR="${D}" vimdir=/usr/share/vim/vimfiles install
252 -
253 - # remove elisp files since they are in the wrong directory
254 - rm -r "${ED}"/usr/share/emacs || die
255 -
256 - if use emacs ; then
257 - elisp-install ${PN} elisp/*.{el,elc} elisp/out/*.el \
258 - || die "elisp-install failed"
259 - elisp-site-file-install "${FILESDIR}"/50${PN}-gentoo.el
260 - fi
261 -
262 - python_fix_shebang "${ED}"
263 -
264 - einstalldocs
265 -}
266 -
267 -pkg_postinst() {
268 - use emacs && elisp-site-regen
269 -}
270 -
271 -pkg_postrm() {
272 - use emacs && elisp-site-regen
273 -}