Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-shells/dash/, app-shells/dash/files/
Date: Tue, 02 Jun 2020 08:59:46
Message-Id: 1591088379.4bacce7ef70e00b25409f2b7354a058283773033.polynomial-c@gentoo
1 commit: 4bacce7ef70e00b25409f2b7354a058283773033
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 2 08:58:56 2020 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 2 08:59:39 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4bacce7e
7
8 app-shells/dash: Removed old
9
10 Package-Manager: Portage-2.3.100, Repoman-2.3.22
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 app-shells/dash/Manifest | 1 -
14 app-shells/dash/dash-0.5.9.1-r3.ebuild | 76 ------------------
15 app-shells/dash/files/dash-0.5.9.1-dumb-echo.patch | 92 ----------------------
16 app-shells/dash/metadata.xml | 3 -
17 4 files changed, 172 deletions(-)
18
19 diff --git a/app-shells/dash/Manifest b/app-shells/dash/Manifest
20 index 0ee67432d18..d017019d91a 100644
21 --- a/app-shells/dash/Manifest
22 +++ b/app-shells/dash/Manifest
23 @@ -1,3 +1,2 @@
24 DIST dash-0.5.10.2.tar.gz 225196 BLAKE2B af48879d29aee8041949b51f08eb89c3938e77b2e05553a3e1a9939da7b00fd80f7b9fb35f33e18b0c11850bfb1b8377e9dc9bcfd80754fd29c9d160e0ce5a4d SHA512 0ae29be77794df0ba254967649b9728611a75fbb3acd32ab6634d76399d1ce97c7d12d31da465482a7e4f3207093415c496c39525cace9b78ab3cb9444dd7640
25 DIST dash-0.5.11.tar.gz 238776 BLAKE2B 0d399b35c10a33f6a22f51f7b74b9e092fb11d47ae45948f43fab0dd1416061145e7f930f0f0d1119d02cc45790ba19ce040c951322c131e706e5f3f32f2612b SHA512 41c3afa8aa4788f7899b9a4c1bce2dc8629f4405184cdc7269993e72c695cf9537c9e68b654d56f06c604a82ffa73c9160b91368e82a3593a12ff7dea10505d1
26 -DIST dash-0.5.9.1.tar.gz 225217 BLAKE2B a80aa00ea5418d00b03c9ded21ef5c3a28d599059d1ac2f20082867b71ece6afac2f0bce9bc09946450c7618ad2c7f95df63b3d519a7f56552a291d09e44a71b SHA512 d56a043b8fab4693d3f70cceb531c37174e7ded4acd5549e53048d7ce29125ff21d7e758f51a4a73e06250d051e246467039989275838c19a2579edea3f72b7d
27
28 diff --git a/app-shells/dash/dash-0.5.9.1-r3.ebuild b/app-shells/dash/dash-0.5.9.1-r3.ebuild
29 deleted file mode 100644
30 index 4463f80ecbc..00000000000
31 --- a/app-shells/dash/dash-0.5.9.1-r3.ebuild
32 +++ /dev/null
33 @@ -1,76 +0,0 @@
34 -# Copyright 1999-2020 Gentoo Authors
35 -# Distributed under the terms of the GNU General Public License v2
36 -
37 -EAPI=6
38 -
39 -inherit flag-o-matic toolchain-funcs versionator
40 -
41 -#MY_PV="$(get_version_component_range 1-3)"
42 -DEB_PATCH="" #$(get_version_component_range 4)
43 -#MY_P="${PN}-${MY_PV}"
44 -
45 -DESCRIPTION="Debian Almquist Shell"
46 -HOMEPAGE="http://gondor.apana.org.au/~herbert/dash/"
47 -SRC_URI="http://gondor.apana.org.au/~herbert/dash/files/${P}.tar.gz"
48 -if [[ -n "${DEB_PATCH}" ]] ; then
49 - DEB_PF="${PN}_${MY_PV}-${DEB_PATCH}"
50 - SRC_URI+=" mirror://debian/pool/main/d/dash/${DEB_PF}.diff.gz"
51 -fi
52 -
53 -LICENSE="BSD"
54 -SLOT="0"
55 -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
56 -IUSE="libedit static vanilla"
57 -
58 -RDEPEND="!static? ( libedit? ( dev-libs/libedit ) )"
59 -DEPEND="${RDEPEND}
60 - virtual/pkgconfig
61 - libedit? ( static? ( dev-libs/libedit[static-libs] ) )"
62 -
63 -PATCHES=( "${FILESDIR}"/${PN}-0.5.9.1-format-security.patch )
64 -
65 -src_prepare() {
66 - if [[ -n "${DEB_PATCH}" ]] ; then
67 - eapply "${WORKDIR}"/${DEB_PF}.diff
68 - eapply */debian/diff/*
69 - fi
70 -
71 - #337329 #527848
72 - use vanilla || eapply "${FILESDIR}"/${PN}-0.5.9.1-dumb-echo.patch
73 -
74 - default
75 -
76 - # Fix the invalid sort
77 - sed -i -e 's/LC_COLLATE=C/LC_ALL=C/g' src/mkbuiltins
78 -
79 - # Use pkg-config for libedit linkage
80 - sed -i \
81 - -e "/LIBS/s:-ledit:\`$(tc-getPKG_CONFIG) --libs libedit $(usex static --static '')\`:" \
82 - configure || die
83 -}
84 -
85 -src_configure() {
86 - # don't redefine stat on Solaris
87 - if [[ ${CHOST} == *-solaris* ]] ; then
88 - export ac_cv_func_stat64=yes
89 - fi
90 - append-cppflags -DJOBS=$(usex libedit 1 0)
91 - use static && append-ldflags -static
92 - # Do not pass --enable-glob due to #443552.
93 - # Autotools use $LINENO as a proxy for extended debug support
94 - # (i.e. they're running bash), so disable that. #527644
95 - local myeconfargs=(
96 - --bindir="${EPREFIX}"/bin
97 - --enable-fnmatch
98 - --disable-lineno
99 - $(use_with libedit)
100 - )
101 - econf "${myeconfargs[@]}"
102 -}
103 -
104 -src_install() {
105 - default
106 - if [[ -n "${DEB_PATCH}" ]] ; then
107 - dodoc */debian/changelog
108 - fi
109 -}
110
111 diff --git a/app-shells/dash/files/dash-0.5.9.1-dumb-echo.patch b/app-shells/dash/files/dash-0.5.9.1-dumb-echo.patch
112 deleted file mode 100644
113 index cbf5febafd1..00000000000
114 --- a/app-shells/dash/files/dash-0.5.9.1-dumb-echo.patch
115 +++ /dev/null
116 @@ -1,92 +0,0 @@
117 -http://bugs.gentoo.org/337329
118 -http://bugs.gentoo.org/527848
119 -
120 -there's no requirement for `echo` to support escape sequences. bash, by default,
121 -does not, while dash always does. POSIX permits either behavior:
122 -http://pubs.opengroup.org/onlinepubs/9699919799/utilities/echo.html
123 -
124 -however, since the behavior is not portable, no one should be relying on echo
125 -having any specific behavior. they should use `printf` when they want an escape
126 -sequence. it also makes dash smaller & faster to disable this logic entirely.
127 -
128 ---- dash-0.5.9.1/src/bltin/printf.c
129 -+++ dash-0.5.9.1/src/bltin/printf.c
130 -@@ -449,21 +449,12 @@
131 - int
132 - echocmd(int argc, char **argv)
133 - {
134 -- int nonl;
135 --
136 -- nonl = *++argv ? equal(*argv, "-n") : 0;
137 -- argv += nonl;
138 --
139 -- do {
140 -- int c;
141 --
142 -- if (likely(*argv))
143 -- nonl += print_escape_str("%s", NULL, NULL, *argv++);
144 -- if (likely((nonl + !*argv) > 1))
145 -- break;
146 --
147 -- c = *argv ? ' ' : '\n';
148 -- out1c(c);
149 -- } while (*argv);
150 -+ int i;
151 -+ for (i = 1; i < argc; ++i) {
152 -+ outstr(argv[i], out1);
153 -+ if (i < argc - 1)
154 -+ outc(' ', out1);
155 -+ }
156 -+ outc('\n', out1);
157 - return 0;
158 - }
159 ---- dash-0.5.9.1/src/dash.1
160 -+++ dash-0.5.9.1/src/dash.1
161 -@@ -1182,43 +1182,15 @@
162 - option turns off the effect of any preceding
163 - .Fl P
164 - options.
165 --.It Xo echo Op Fl n
166 -+.It Xo echo
167 - .Ar args...
168 - .Xc
169 - Print the arguments on the standard output, separated by spaces.
170 --Unless the
171 --.Fl n
172 --option is present, a newline is output following the arguments.
173 - .Pp
174 --If any of the following sequences of characters is encountered during
175 --output, the sequence is not output. Instead, the specified action is
176 --performed:
177 --.Bl -tag -width indent
178 --.It Li \eb
179 --A backspace character is output.
180 --.It Li \ec
181 --Subsequent output is suppressed. This is normally used at the end of the
182 --last argument to suppress the trailing newline that
183 --.Ic echo
184 --would otherwise output.
185 --.It Li \ef
186 --Output a form feed.
187 --.It Li \en
188 --Output a newline character.
189 --.It Li \er
190 --Output a carriage return.
191 --.It Li \et
192 --Output a (horizontal) tab character.
193 --.It Li \ev
194 --Output a vertical tab.
195 --.It Li \e0 Ns Ar digits
196 --Output the character whose value is given by zero to three octal digits.
197 --If there are zero digits, a nul character is output.
198 --.It Li \e\e
199 --Output a backslash.
200 --.El
201 -+No arguments or backslash sequences are supported as they are not portable.
202 -+They will be printed out exactly as passed in.
203 - .Pp
204 --All other backslash sequences elicit undefined behaviour.
205 -+You can replace `echo -n ...` with the portable `printf %s ...` construct.
206 - .It eval Ar string ...
207 - Concatenate all the arguments with spaces.
208 - Then re-parse and execute the command.
209
210 diff --git a/app-shells/dash/metadata.xml b/app-shells/dash/metadata.xml
211 index 0d01a34d50d..096fcd3509d 100644
212 --- a/app-shells/dash/metadata.xml
213 +++ b/app-shells/dash/metadata.xml
214 @@ -8,9 +8,6 @@
215 <upstream>
216 <remote-id type="cpe">cpe:/a:dash:dash</remote-id>
217 </upstream>
218 - <use>
219 - <flag name="vanilla">Support echo -n, and enable echo -e all the time (unsupported)</flag>
220 - </use>
221 <longdescription lang="en">
222 DASH is a direct descendant of the NetBSD version of ash (the Almquist SHell)
223 and is POSIX compliant.