Gentoo Archives: gentoo-commits

From: Virgil Dupras <vdupras@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/mujs/, dev-lang/mujs/files/
Date: Tue, 30 Oct 2018 00:51:02
Message-Id: 1540860623.e9aabe50eeb1ae673c9ad99ad03b83284350cdfb.vdupras@gentoo
1 commit: e9aabe50eeb1ae673c9ad99ad03b83284350cdfb
2 Author: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 30 00:49:00 2018 +0000
4 Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 30 00:50:23 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9aabe50
7
8 dev-lang/mujs: remove old and vulnerable
9
10 Bug: https://bugs.gentoo.org/646784
11 Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org>
12 Package-Manager: Portage-2.3.51, Repoman-2.3.11
13
14 dev-lang/mujs/Manifest | 1 -
15 dev-lang/mujs/files/mujs-1.0.1-gentoo.patch | 37 -------------------------
16 dev-lang/mujs/mujs-0_p20161202.ebuild | 4 +--
17 dev-lang/mujs/mujs-1.0.1-r1.ebuild | 42 -----------------------------
18 4 files changed, 2 insertions(+), 82 deletions(-)
19
20 diff --git a/dev-lang/mujs/Manifest b/dev-lang/mujs/Manifest
21 index 026fba50ce5..f05faac21e9 100644
22 --- a/dev-lang/mujs/Manifest
23 +++ b/dev-lang/mujs/Manifest
24 @@ -1,4 +1,3 @@
25 DIST mujs-0_p20161202.tar.gz 105413 BLAKE2B a65a343d6f60975c88001cdd8eae881559eaf8ba94cf26c8aa9a9a3837cd47ee798c784ed9e90380a76ef328e56d63d1dccd8a85a4a7496d31046d221cf8d7b9 SHA512 90dd1bce44740715a6f642bdb376be230c4a03c7970c2026479cf014a080b98b56a2131ca7ef8bf9c05b91285fe7dcc21dd4ca83879750351d57088408a62cbc
26 -DIST mujs-1.0.1.tar.gz 116948 BLAKE2B 54d898eff95e65688a51d9df9175964609a55ad3243ffaa4da10f27a6262a207777dd500cb76aefc22aa52799fed577864d15dfec9ed4aea24f0a4f1ff8dfa0a SHA512 46cbc45735dbf173d7fa5839e3b511730e4d42933c2286d170767659649ea88c2a3dcc74fb986d1eedb1d4fec8fcaaba146805cc9d0ef7da98bb5a9ce0c80a96
27 DIST mujs-1.0.4.tar.xz 91520 BLAKE2B 6ffe62b19b140e2ae63ebe59a3b3bd352936ccba53dda3b0fcf575440dc790a0767c7de8c0a1441d26c11c65074520a80050cc0efa1113be0df51a802e719574 SHA512 a32498fee20ab6ddc8bbf79b4fdd82f3560d4e4b28bbe57c4e8f1df4a8a5367a689b6c9a391761abe47a8f15d2832fede4a508330eb181744b9563ae9954c102
28 DIST mujs-1.0.5.tar.gz 119353 BLAKE2B 48f1b598e50d5804b0d64230cdd6b4d3f719187ea0906f45c9f45baee2c8df59c6fd09dc25afc9e1ce4e20a9866d158d16a4632bec552fddd8fac70b20e2363f SHA512 c1c59b5e80e0e5f580f30dfc0b4707b6a1e44a73c746b9783bb24d91429ddf8ed670a7663478300cc568cfc15a511720b6d18be2ade40a3a66fc7ab8f3933c2d
29
30 diff --git a/dev-lang/mujs/files/mujs-1.0.1-gentoo.patch b/dev-lang/mujs/files/mujs-1.0.1-gentoo.patch
31 deleted file mode 100644
32 index c6c7977ac75..00000000000
33 --- a/dev-lang/mujs/files/mujs-1.0.1-gentoo.patch
34 +++ /dev/null
35 @@ -1,37 +0,0 @@
36 ---- a/Makefile
37 -+++ b/Makefile
38 -@@ -2,7 +2,7 @@
39 -
40 - build ?= release
41 -
42 --prefix ?= /usr/local
43 -+prefix ?= /usr
44 - bindir ?= $(prefix)/bin
45 - incdir ?= $(prefix)/include
46 - libdir ?= $(prefix)/lib
47 -@@ -11,7 +11,7 @@
48 -
49 - # Compiler flags for various configurations:
50 -
51 --CFLAGS := -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter
52 -+CFLAGS += -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter
53 -
54 - ifeq "$(CC)" "clang"
55 - CFLAGS += -Wunreachable-code
56 -@@ -22,16 +22,6 @@
57 - LDFLAGS += -Wl,--gc-sections
58 - endif
59 -
60 --ifeq "$(build)" "debug"
61 --CFLAGS += -g
62 --else ifeq "$(build)" "sanitize"
63 --CFLAGS += -pipe -g -fsanitize=address -fno-omit-frame-pointer
64 --LDFLAGS += -fsanitize=address
65 --else
66 --CFLAGS += -Os
67 --LDFLAGS += -Wl,-s
68 --endif
69 --
70 - # You shouldn't need to edit anything below here.
71 -
72 - OUT := build/$(build)
73
74 diff --git a/dev-lang/mujs/mujs-0_p20161202.ebuild b/dev-lang/mujs/mujs-0_p20161202.ebuild
75 index 711c77f0950..629e6c0a776 100644
76 --- a/dev-lang/mujs/mujs-0_p20161202.ebuild
77 +++ b/dev-lang/mujs/mujs-0_p20161202.ebuild
78 @@ -1,4 +1,4 @@
79 -# Copyright 1999-2017 Gentoo Foundation
80 +# Copyright 1999-2018 Gentoo Authors
81 # Distributed under the terms of the GNU General Public License v2
82
83 EAPI=6
84 @@ -11,7 +11,7 @@ SRC_URI="http://git.ghostscript.com/?p=mujs.git;a=snapshot;h=fd003eceda531e13fbd
85
86 LICENSE="AGPL-3"
87 SLOT="0"
88 -KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ppc ppc64 sparc x86 ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos"
89 +KEYWORDS="arm"
90 IUSE=""
91
92 DEPEND=""
93
94 diff --git a/dev-lang/mujs/mujs-1.0.1-r1.ebuild b/dev-lang/mujs/mujs-1.0.1-r1.ebuild
95 deleted file mode 100644
96 index d0a2333dcf4..00000000000
97 --- a/dev-lang/mujs/mujs-1.0.1-r1.ebuild
98 +++ /dev/null
99 @@ -1,42 +0,0 @@
100 -# Copyright 1999-2017 Gentoo Foundation
101 -# Distributed under the terms of the GNU General Public License v2
102 -
103 -EAPI=6
104 -inherit flag-o-matic multilib toolchain-funcs
105 -
106 -DESCRIPTION="lightweight Javascript interpreter"
107 -HOMEPAGE="http://mujs.com/"
108 -SRC_URI="http://git.ghostscript.com/?p=mujs.git;a=snapshot;h=4792d16f17b15a1eca3c2a9c856dc13fda1d23c5;sf=tgz -> ${P}.tar.gz"
109 -
110 -LICENSE="AGPL-3"
111 -SLOT="0"
112 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos"
113 -IUSE="static-libs"
114 -
115 -PATCHES=(
116 - "${FILESDIR}"/${PN}-1.0.1-gentoo.patch
117 -)
118 -S=${WORKDIR}/${PN}-4792d16
119 -
120 -src_prepare() {
121 - default
122 - append-cflags -fPIC -Wl,-soname=lib${PN}.so.${PV}
123 - tc-export CC
124 -}
125 -
126 -src_compile() {
127 - emake VERSION=${PV} shared
128 -}
129 -
130 -src_install() {
131 - emake \
132 - DESTDIR="${ED}" \
133 - VERSION=${PV} \
134 - libdir="/usr/$(get_libdir)" \
135 - install-shared \
136 - $(usex static-libs install-static '')
137 -
138 - mv -v "${D}"/usr/$(get_libdir)/lib${PN}.so{,.${PV}} || die
139 - dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so || die
140 - dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so.${PV:0:1} || die
141 -}