From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/patch/
Date: Sun, 30 Oct 2022 15:51:44 +0000 (UTC) [thread overview]
Message-ID: <1667145017.4f3a2f4276d716c11d39f2851d781225b777f053.sam@gentoo> (raw)
commit: 4f3a2f4276d716c11d39f2851d781225b777f053
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 30 13:25:58 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Oct 30 15:50:17 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f3a2f42
sys-devel/patch: Install as gpatch for better BSD compat.
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
Signed-off-by: Sam James <sam <AT> gentoo.org>
sys-devel/patch/patch-2.7.6-r5.ebuild | 59 +++++++++++++++++++++++++++++++++++
1 file changed, 59 insertions(+)
diff --git a/sys-devel/patch/patch-2.7.6-r5.ebuild b/sys-devel/patch/patch-2.7.6-r5.ebuild
new file mode 100644
index 000000000000..09f7c0284f92
--- /dev/null
+++ b/sys-devel/patch/patch-2.7.6-r5.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/patch.asc
+inherit flag-o-matic verify-sig
+
+DESCRIPTION="Utility to apply diffs to files"
+HOMEPAGE="https://www.gnu.org/software/patch/patch.html"
+SRC_URI="mirror://gnu/patch/${P}.tar.xz"
+SRC_URI+=" verify-sig? ( mirror://gnu/patch/${P}.tar.xz.sig )"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="static test xattr"
+RESTRICT="!test? ( test )"
+
+RDEPEND="xattr? ( sys-apps/attr )"
+DEPEND="${RDEPEND}"
+BDEPEND="test? ( sys-apps/ed )
+ verify-sig? ( sec-keys/openpgp-keys-patch )"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-fix-test-suite.patch
+ "${FILESDIR}"/${PN}-2.7.6-fix-error-handling-with-git-style-patches.patch
+ "${FILESDIR}"/${PN}-2.7.6-CVE-2018-6951.patch
+ "${FILESDIR}"/${PN}-2.7.6-allow-input-files-to-be-missing-for-ed-style-patches.patch
+ "${FILESDIR}"/${PN}-2.7.6-CVE-2018-1000156.patch
+ "${FILESDIR}"/${PN}-2.7.6-CVE-2018-6952.patch
+ "${FILESDIR}"/${PN}-2.7.6-Do-not-crash-when-RLIMIT_NOFILE-is-set-to-RLIM_INFINITY.patch
+ "${FILESDIR}"/${PN}-2.7.6-CVE-2018-1000156-fix1.patch
+ "${FILESDIR}"/${PN}-2.7.6-CVE-2018-1000156-fix2.patch
+ "${FILESDIR}"/${PN}-2.7.6-CVE-2019-13636.patch
+ "${FILESDIR}"/${PN}-2.7.6-CVE-2019-13638.patch
+ "${FILESDIR}"/${PN}-2.7.6-Avoid-invalid-memory-access-in-context-format-diffs.patch
+)
+
+src_configure() {
+ use static && append-ldflags -static
+
+ local myeconfargs=(
+ $(use_enable xattr)
+ # rename to gpatch for better BSD compatibility
+ --program-prefix=g
+ )
+ # Do not let $ED mess up the search for `ed` 470210.
+ ac_cv_path_ED=$(type -P ed) \
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+
+ # symlink to the standard name
+ dosym gpatch /usr/bin/patch
+ dosym gpatch.1 /usr/share/man/man1/patch.1
+}
next reply other threads:[~2022-10-30 15:51 UTC|newest]
Thread overview: 67+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-30 15:51 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-02-27 7:04 [gentoo-commits] repo/gentoo:master commit in: sys-devel/patch/ Eli Schwartz
2025-02-14 8:22 Eli Schwartz
2025-02-09 4:32 Sam James
2025-02-06 23:31 Eli Schwartz
2025-01-21 3:41 Sam James
2024-11-03 20:47 Eli Schwartz
2024-09-01 1:37 Sam James
2023-03-31 12:08 Arthur Zamarin
2023-02-24 18:36 Sam James
2023-01-29 0:59 Sam James
2023-01-27 8:05 Sam James
2023-01-27 8:05 Sam James
2023-01-27 8:05 Sam James
2023-01-27 8:05 Sam James
2023-01-27 6:31 Sam James
2023-01-27 6:31 Sam James
2022-04-07 3:57 Sam James
2022-01-06 9:07 David Seifert
2021-01-06 15:32 Fabian Groffen
2020-12-27 18:18 Fabian Groffen
2020-05-04 17:36 Thomas Deutschmann
2019-08-23 10:26 Mikle Kolyada
2019-08-23 10:26 Mikle Kolyada
2019-08-23 10:26 Mikle Kolyada
2019-08-23 10:26 Mikle Kolyada
2019-08-23 10:26 Mikle Kolyada
2019-08-23 10:00 Agostino Sarubbo
2019-08-19 6:57 Sergei Trofimovich
2019-08-18 10:12 Sergei Trofimovich
2019-08-18 10:10 Sergei Trofimovich
2019-08-18 10:08 Sergei Trofimovich
2019-08-18 8:29 Sergei Trofimovich
2019-08-16 22:38 Thomas Deutschmann
2019-08-16 21:53 Aaron Bauman
2019-08-16 21:50 Mikle Kolyada
2019-05-03 23:38 Mikle Kolyada
2019-04-11 9:49 Mikle Kolyada
2019-04-11 9:49 Mikle Kolyada
2019-04-11 9:49 Mikle Kolyada
2019-04-10 22:03 Sergei Trofimovich
2019-04-08 8:39 Mart Raudsepp
2019-04-08 6:42 Mikle Kolyada
2019-04-07 21:53 Mikle Kolyada
2019-04-07 21:41 Mikle Kolyada
2019-04-07 20:52 Sergei Trofimovich
2019-04-05 20:47 Agostino Sarubbo
2018-08-31 3:26 Thomas Deutschmann
2018-08-31 3:26 Thomas Deutschmann
2018-05-27 14:53 Mikle Kolyada
2018-04-24 15:14 Mart Raudsepp
2018-03-22 16:37 Mikle Kolyada
2018-03-18 1:02 Matt Turner
2018-03-18 1:02 Matt Turner
2018-03-15 14:14 Mikle Kolyada
2018-03-05 13:57 Tobias Klausmann
2018-02-17 22:12 Sergei Trofimovich
2018-02-14 13:29 Jason Zaman
2018-02-13 7:54 Sergei Trofimovich
2018-02-12 21:36 Thomas Deutschmann
2018-02-07 11:35 Lars Wendler
2018-02-07 9:51 Lars Wendler
2017-02-20 14:11 Michael Haubenwallner
2017-01-29 20:14 Fabian Groffen
2016-12-07 8:40 Mike Frysinger
2016-12-01 21:59 Lars Wendler
2016-02-29 8:46 Stephen Klimaszewski
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=1667145017.4f3a2f4276d716c11d39f2851d781225b777f053.sam@gentoo \
--to=sam@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