From: "Michael Orlitzky" <mjo@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-shells/dash/
Date: Sun, 15 Mar 2020 15:58:32 +0000 (UTC) [thread overview]
Message-ID: <1584287762.808dded4f103becf7929562b1ed58046aa63f3f6.mjo@gentoo> (raw)
commit: 808dded4f103becf7929562b1ed58046aa63f3f6
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 15 15:34:34 2020 +0000
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Sun Mar 15 15:56:02 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=808dded4
app-shells/dash: new revision that more-closely matches upstream.
Our dash ebuilds differed from upstream in two ways in the past: we
disabled LINENO support with --disable-lineno, and we patched the
"echo" command to ignore certain arguments and escape sequences.
Disabling LINENO tricks configure scripts into re-executing themselves
with bash, which can hide errors for users (good?), but also hides
them from developers (bad). The LINENO variable is covered by POSIX,
and it's counterintuitive to silently force bash on users who have
explicitly set /bin/sh to dash. This new revision therefore re-enables
LINENO. This same change (in the context of Debian) was discussed on
the autoconf mailing list.
The "dumb echo" patch reflects a similar situation. Dash's upstream
"echo" implementation differs from the bash implementation, but is
correct according to POSIX. This can shed light upon some portability
bugs, particularly in autoconf scripts, and the "dumb echo" patch
hides some of those bugs from end users. But again, it hides them from
the authors as well and thereby perpetuates the portability issues.
Since this patch is Gentoo-specific, and hides problems that are
better addressed elsewhere, this new revision eliminates it.
Closes: https://bugs.gentoo.org/687002
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
app-shells/dash/dash-0.5.10.2-r1.ebuild | 53 +++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
diff --git a/app-shells/dash/dash-0.5.10.2-r1.ebuild b/app-shells/dash/dash-0.5.10.2-r1.ebuild
new file mode 100644
index 00000000000..877c0771557
--- /dev/null
+++ b/app-shells/dash/dash-0.5.10.2-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="Debian Almquist Shell"
+HOMEPAGE="http://gondor.apana.org.au/~herbert/dash/"
+SRC_URI="http://gondor.apana.org.au/~herbert/dash/files/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="libedit static"
+
+BDEPEND="virtual/pkgconfig"
+RDEPEND="!static? ( libedit? ( dev-libs/libedit ) )"
+DEPEND="${RDEPEND}
+ libedit? ( static? ( dev-libs/libedit[static-libs] ) )"
+
+PATCHES=( "${FILESDIR}/${PN}-0.5.9.1-format-security.patch" )
+
+src_prepare() {
+ default
+
+ # Fix the invalid sort
+ sed -i -e 's/LC_COLLATE=C/LC_ALL=C/g' src/mkbuiltins
+
+ # Use pkg-config for libedit linkage
+ sed -i \
+ -e "/LIBS/s:-ledit:\`$(tc-getPKG_CONFIG) --libs libedit $(usex static --static '')\`:" \
+ configure || die
+}
+
+src_configure() {
+ # don't redefine stat on Solaris
+ if [[ ${CHOST} == *-solaris* ]] ; then
+ export ac_cv_func_stat64=yes
+
+ # if your headers strictly adhere to POSIX, you'll need this too
+ [[ ${CHOST##*solaris2.} -le 10 ]] && append-cppflags -DNAME_MAX=255
+ fi
+ append-cppflags -DJOBS=$(usex libedit 1 0)
+ use static && append-ldflags -static
+ # Do not pass --enable-glob due to #443552.
+ local myeconfargs=(
+ --bindir="${EPREFIX}"/bin
+ --enable-fnmatch
+ $(use_with libedit)
+ )
+ econf "${myeconfargs[@]}"
+}
next reply other threads:[~2020-03-15 15:59 UTC|newest]
Thread overview: 88+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-15 15:58 Michael Orlitzky [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-01-12 14:10 [gentoo-commits] repo/gentoo:master commit in: app-shells/dash/ Sam James
2025-01-12 13:48 Sam James
2025-01-12 13:42 Sam James
2025-01-12 13:16 Sam James
2025-01-12 13:16 Sam James
2025-01-12 13:02 Sam James
2024-08-11 10:41 Sam James
2024-08-11 10:33 Sam James
2023-01-28 20:21 Arthur Zamarin
2023-01-27 6:31 Sam James
2023-01-27 6:27 Sam James
2023-01-27 6:27 Sam James
2023-01-27 6:27 Sam James
2023-01-27 6:27 Sam James
2023-01-27 6:22 Sam James
2022-12-12 18:43 Sam James
2022-12-02 18:44 WANG Xuerui
2022-01-09 10:41 James Le Cuirot
2021-12-09 21:59 Sam James
2021-12-06 1:16 Sam James
2021-12-05 19:30 Arthur Zamarin
2021-12-05 18:39 Sam James
2021-12-05 18:31 Sam James
2021-12-05 3:45 Sam James
2021-11-03 21:09 Sam James
2021-09-10 14:30 Yixun Lan
2021-09-03 21:37 Lars Wendler
2021-06-05 13:54 Lars Wendler
2021-01-11 19:37 Lars Wendler
2021-01-11 19:13 Sam James
2021-01-11 19:13 Sam James
2021-01-10 21:58 Sam James
2021-01-10 12:42 Sam James
2021-01-10 12:42 Sam James
2021-01-10 9:35 Sam James
2021-01-10 9:28 Sam James
2021-01-06 13:26 Fabian Groffen
2020-12-24 23:17 Lars Wendler
2020-12-20 16:45 Fabian Groffen
2020-11-27 12:47 Lars Wendler
2020-11-02 9:47 Sam James
2020-10-20 7:04 Sergei Trofimovich
2020-10-20 7:02 Sergei Trofimovich
2020-10-20 6:57 Sergei Trofimovich
2020-10-20 6:51 Sergei Trofimovich
2020-10-19 0:14 Sam James
2020-10-18 23:55 Sam James
2020-10-18 18:06 Thomas Deutschmann
2020-09-27 19:30 Fabian Groffen
2020-09-03 23:57 Sam James
2020-09-02 6:33 Sergei Trofimovich
2020-09-01 3:54 Sam James
2020-08-29 22:10 Lars Wendler
2020-08-29 22:10 Lars Wendler
2020-08-21 15:36 Agostino Sarubbo
2020-08-21 15:31 Agostino Sarubbo
2020-08-21 15:27 Agostino Sarubbo
2020-08-21 15:25 Agostino Sarubbo
2020-08-21 7:50 Sam James
2020-07-08 13:47 Lars Wendler
2020-06-13 14:58 Mike Gilbert
2020-06-02 8:59 Lars Wendler
2020-05-08 9:36 Sergei Trofimovich
2020-05-08 6:25 Mart Raudsepp
2020-05-06 6:30 Agostino Sarubbo
2020-05-06 6:30 Agostino Sarubbo
2020-05-06 6:28 Agostino Sarubbo
2020-05-06 6:27 Agostino Sarubbo
2020-05-06 6:26 Agostino Sarubbo
2020-05-06 6:26 Agostino Sarubbo
2018-06-17 14:24 Fabian Groffen
2018-05-20 0:19 Thomas Deutschmann
2018-04-20 19:01 Sergei Trofimovich
2018-04-14 20:36 Mart Raudsepp
2018-04-11 22:05 Sergei Trofimovich
2017-10-19 5:00 Markus Meier
2017-10-04 8:13 Sergei Trofimovich
2017-10-03 8:25 Sergei Trofimovich
2017-10-02 16:09 Manuel Rüger
2017-10-02 13:24 Sergei Trofimovich
2017-09-30 16:06 Thomas Deutschmann
2017-08-22 12:50 Fabian Groffen
2017-08-22 12:23 Lars Wendler
2017-08-22 12:23 Lars Wendler
2016-12-07 17:27 Mike Frysinger
2016-10-31 14:45 Mike Gilbert
2016-10-31 14:45 Mike Gilbert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1584287762.808dded4f103becf7929562b1ed58046aa63f3f6.mjo@gentoo \
--to=mjo@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox