1 |
commit: ccbd3cc6cd04468bfced25feefd02b1b7a66caa6 |
2 |
Author: Matthew Smith <matthew <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 25 08:42:42 2022 +0000 |
4 |
Commit: Matthew Smith <matthew <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 25 08:46:31 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ccbd3cc6 |
7 |
|
8 |
dev-lang/erlang: drop 24.3.3-r1, security cleanup |
9 |
|
10 |
Bug: https://bugs.gentoo.org/872272 |
11 |
Signed-off-by: Matthew Smith <matthew <AT> gentoo.org> |
12 |
|
13 |
dev-lang/erlang/Manifest | 1 - |
14 |
dev-lang/erlang/erlang-24.3.3-r1.ebuild | 162 -------------------------------- |
15 |
2 files changed, 163 deletions(-) |
16 |
|
17 |
diff --git a/dev-lang/erlang/Manifest b/dev-lang/erlang/Manifest |
18 |
index d351af836a42..bb1d13c01b33 100644 |
19 |
--- a/dev-lang/erlang/Manifest |
20 |
+++ b/dev-lang/erlang/Manifest |
21 |
@@ -1,4 +1,3 @@ |
22 |
-DIST erlang-24.3.3.tar.gz 59296830 BLAKE2B 1792274c77001b6f49e84f1584620a247cf3acdf075a8d581403f31a2b4cfe32e7b8104d325f3c1a999595d94484cb74b7996a35599e9ef8935931a133a554f6 SHA512 5e8ce0ebd50c1c67ca29ce9405fc18f5461793b20a1732418bc8fac404078044deb72526682aab92ee3e737bc9dc9e94e6be162a088e2cb7cc68c14b1d76454e |
23 |
DIST erlang-24.3.4.2.tar.gz 59532491 BLAKE2B 28c48f1a3197a151010a775286cf0b775567301411b8480b32cfb39c68978de5586b63c245fe58bff8034ebc04fcc3b002dee7c953127ecf581ed6d716587ae4 SHA512 78bc2dc67fe60d3ea6049c361a017c054e12b0adeeae890b0a1ee5301744505593bd19f3731acebff8312b323a3bd21a1359507d122fc34f0eb85eefb3aac88c |
24 |
DIST erlang-25.0.4.tar.gz 59812650 BLAKE2B cebba32e859ec4ff0868de506771449a6d5d053d50d8f4a2cf84f9bc90da1e14ae320420b3c33f6febd5977fd1ccff98b55d3ee1a0c4b90e674e912883cb0f29 SHA512 8d9d12496d55181c0d866bbd97576551d1d78232fe34b845e8efbfbd4e95ce8426e73221d8126d12453959cd8adc5e07f121aaa93f3a5696074b43c69291d363 |
25 |
DIST erlang_doc_html_24.3.tar.gz 36645792 BLAKE2B ef90b7d05ed43656ab1ffdbbd0833c9da08a867ad7a99ec0f7f1eb59697c1f9cd5ccd150b2e564af80b2098f063da0c76121d4444b5444e603581442ad1c7bc8 SHA512 b8d3832ffdbdede656b362d719474f7b9ff04a32ea7235e77d63755629cf9305c203cd6cd9ae089171b2cee694f9641d6ed5d0197e2acf893a31d25696096f1e |
26 |
|
27 |
diff --git a/dev-lang/erlang/erlang-24.3.3-r1.ebuild b/dev-lang/erlang/erlang-24.3.3-r1.ebuild |
28 |
deleted file mode 100644 |
29 |
index 1d539c7aa9b4..000000000000 |
30 |
--- a/dev-lang/erlang/erlang-24.3.3-r1.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,162 +0,0 @@ |
33 |
-# Copyright 1999-2022 Gentoo Authors |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
- |
36 |
-EAPI=7 |
37 |
-WX_GTK_VER="3.0-gtk3" |
38 |
- |
39 |
-inherit elisp-common flag-o-matic java-pkg-opt-2 systemd toolchain-funcs wxwidgets |
40 |
- |
41 |
-# NOTE: If you need symlinks for binaries please tell maintainers or |
42 |
-# open up a bug to let it be created. |
43 |
- |
44 |
-UPSTREAM_V="$(ver_cut 1-2)" |
45 |
- |
46 |
-DESCRIPTION="Erlang programming language, runtime environment and libraries (OTP)" |
47 |
-HOMEPAGE="https://www.erlang.org/" |
48 |
-SRC_URI="https://github.com/erlang/otp/archive/OTP-${PV}.tar.gz -> ${P}.tar.gz |
49 |
- https://github.com/erlang/otp/releases/download/OTP-${UPSTREAM_V}/otp_doc_man_${UPSTREAM_V}.tar.gz -> ${PN}_doc_man_${UPSTREAM_V}.tar.gz |
50 |
- doc? ( https://github.com/erlang/otp/releases/download/OTP-${UPSTREAM_V}/otp_doc_html_${UPSTREAM_V}.tar.gz -> ${PN}_doc_html_${UPSTREAM_V}.tar.gz )" |
51 |
- |
52 |
-LICENSE="Apache-2.0" |
53 |
-# We use this subslot because Compiled HiPE Code can be loaded on the exact |
54 |
-# same build of ERTS that was used when compiling the code. See |
55 |
-# http://erlang.org/doc/system_principles/misc.html for more information. |
56 |
-SLOT="0/${PV}" |
57 |
-KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ia64 ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" |
58 |
-IUSE="doc emacs java +kpoll odbc sctp ssl systemd tk wxwidgets" |
59 |
- |
60 |
-RDEPEND=" |
61 |
- acct-group/epmd |
62 |
- acct-user/epmd |
63 |
- sys-libs/ncurses:0 |
64 |
- sys-libs/zlib |
65 |
- emacs? ( >=app-editors/emacs-23.1:* ) |
66 |
- java? ( >=virtual/jdk-1.8:* ) |
67 |
- odbc? ( dev-db/unixODBC ) |
68 |
- sctp? ( net-misc/lksctp-tools ) |
69 |
- ssl? ( >=dev-libs/openssl-0.9.7d:0= ) |
70 |
- systemd? ( sys-apps/systemd ) |
71 |
- wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER}[X,opengl] ) |
72 |
-" |
73 |
-DEPEND="${RDEPEND} |
74 |
- dev-lang/perl |
75 |
-" |
76 |
- |
77 |
-S="${WORKDIR}/otp-OTP-${PV}" |
78 |
- |
79 |
-PATCHES=( |
80 |
- "${FILESDIR}"/${PN}-22.0-dont-ignore-LDFLAGS.patch |
81 |
- "${FILESDIR}"/${PN}-24.0.2-serial-configure.patch |
82 |
-) |
83 |
- |
84 |
-SITEFILE=50"${PN}"-gentoo.el |
85 |
- |
86 |
-src_prepare() { |
87 |
- default |
88 |
- |
89 |
- tc-export AR CPP CXX LD |
90 |
- |
91 |
- # bug #797886: erlang's VM does unsafe casts for ints |
92 |
- # to pointers and back. This breaks on gcc-11 -flto. |
93 |
- append-flags -fno-strict-aliasing |
94 |
-} |
95 |
- |
96 |
-src_configure() { |
97 |
- use wxwidgets && setup-wxwidgets |
98 |
- |
99 |
- local myconf=( |
100 |
- --disable-builtin-zlib |
101 |
- |
102 |
- # don't search for static zlib |
103 |
- --with-ssl-zlib=no |
104 |
- |
105 |
- $(use_enable kpoll kernel-poll) |
106 |
- $(use_with java javac) |
107 |
- $(use_enable sctp) |
108 |
- $(use_with ssl ssl) |
109 |
- $(use_enable ssl dynamic-ssl-lib) |
110 |
- $(use_enable systemd) |
111 |
- $(usex wxwidgets "--with-wx-config=${WX_CONFIG}" "--with-wxdir=/dev/null") |
112 |
- ) |
113 |
- econf "${myconf[@]}" |
114 |
-} |
115 |
- |
116 |
-src_compile() { |
117 |
- emake |
118 |
- |
119 |
- if use emacs ; then |
120 |
- pushd lib/tools/emacs &>/dev/null || die |
121 |
- elisp-compile *.el |
122 |
- popd &>/dev/null || die |
123 |
- fi |
124 |
-} |
125 |
- |
126 |
-extract_version() { |
127 |
- local path="$1" |
128 |
- local var_name="$2" |
129 |
- sed -n -e "/^${var_name} = \(.*\)$/s::\1:p" "${S}/${path}/vsn.mk" || die "extract_version() failed" |
130 |
-} |
131 |
- |
132 |
-src_install() { |
133 |
- local erl_libdir_rel="$(get_libdir)/erlang" |
134 |
- local erl_libdir="/usr/${erl_libdir_rel}" |
135 |
- local erl_interface_ver="$(extract_version lib/erl_interface EI_VSN)" |
136 |
- local erl_erts_ver="$(extract_version erts VSN)" |
137 |
- local my_manpath="/usr/share/${PN}/man" |
138 |
- |
139 |
- [[ -z "${erl_erts_ver}" ]] && die "Couldn't determine erts version" |
140 |
- [[ -z "${erl_interface_ver}" ]] && die "Couldn't determine interface version" |
141 |
- |
142 |
- emake INSTALL_PREFIX="${D}" install |
143 |
- |
144 |
- if use doc ; then |
145 |
- # Note: we explicitly install docs into: |
146 |
- # /usr/share/doc/${PF}/{doc,lib,erts-*} |
147 |
- # To maintain that layout we gather everything in 'html-docs'. |
148 |
- # See bug #684376. |
149 |
- mkdir html-docs || die |
150 |
- mv "${WORKDIR}"/doc "${WORKDIR}"/lib "${WORKDIR}"/erts-* html-docs/ || die |
151 |
- local DOCS=( "AUTHORS" "HOWTO"/* "README.md" "CONTRIBUTING.md" html-docs/. ) |
152 |
- docompress -x /usr/share/doc/${PF} |
153 |
- else |
154 |
- local DOCS=("README.md") |
155 |
- fi |
156 |
- |
157 |
- einstalldocs |
158 |
- |
159 |
- dosym "../${erl_libdir_rel}/bin/erl" /usr/bin/erl |
160 |
- dosym "../${erl_libdir_rel}/bin/erlc" /usr/bin/erlc |
161 |
- dosym "../${erl_libdir_rel}/bin/escript" /usr/bin/escript |
162 |
- dosym "../${erl_libdir_rel}/lib/erl_interface-${erl_interface_ver}/bin/erl_call" /usr/bin/erl_call |
163 |
- dosym "../${erl_libdir_rel}/erts-${erl_erts_ver}/bin/beam.smp" /usr/bin/beam.smp |
164 |
- |
165 |
- ## Clean up the no longer needed files |
166 |
- rm "${ED}/${erl_libdir}/Install" || die |
167 |
- |
168 |
- insinto "${my_manpath}" |
169 |
- doins -r "${WORKDIR}"/man/* |
170 |
- # extend MANPATH, so the normal man command can find it |
171 |
- # see bug 189639 |
172 |
- newenvd - "90erlang" <<-_EOF_ |
173 |
- MANPATH="${my_manpath}" |
174 |
- _EOF_ |
175 |
- |
176 |
- if use emacs ; then |
177 |
- elisp-install erlang lib/tools/emacs/*.{el,elc} |
178 |
- sed -e "s:/usr/share:${EPREFIX}/usr/share:g" \ |
179 |
- "${FILESDIR}/${SITEFILE}" > "${T}/${SITEFILE}" || die |
180 |
- elisp-site-file-install "${T}/${SITEFILE}" |
181 |
- fi |
182 |
- |
183 |
- newinitd "${FILESDIR}"/epmd.init-r2 epmd |
184 |
- newconfd "${FILESDIR}"/epmd.confd-r2 epmd |
185 |
- use systemd && systemd_newunit "${FILESDIR}"/epmd.service-r1 epmd.service |
186 |
-} |
187 |
- |
188 |
-pkg_postinst() { |
189 |
- use emacs && elisp-site-regen |
190 |
-} |
191 |
- |
192 |
-pkg_postrm() { |
193 |
- use emacs && elisp-site-regen |
194 |
-} |