public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/mpfr/
Date: Wed, 16 Mar 2022 15:08:10 +0000 (UTC)	[thread overview]
Message-ID: <1647443281.7dde9a139d25b0166ec24b620298783e9b44c116.sam@gentoo> (raw)

commit:     7dde9a139d25b0166ec24b620298783e9b44c116
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 16 15:06:15 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Mar 16 15:08:01 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7dde9a13

dev-libs/mpfr: don't assume DISTDIR only contains our distfiles

There's no guarantee that ${DISTDIR} only contains the distfiles
for this package (it could be the system's whole cache, for example --
like in Paludis).

Bug: https://github.com/MageSlayer/paludis-gentoo-patches/issues/32#issuecomment-1025371500
Thanks-to: Ionen Wolkens <ionen <AT> gentoo.org>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/mpfr/mpfr-4.1.0_p13-r1.ebuild | 29 +++++++++++++++++------------
 1 file changed, 17 insertions(+), 12 deletions(-)

diff --git a/dev-libs/mpfr/mpfr-4.1.0_p13-r1.ebuild b/dev-libs/mpfr/mpfr-4.1.0_p13-r1.ebuild
index 0ac19f7cd365..14f2319304bc 100644
--- a/dev-libs/mpfr/mpfr-4.1.0_p13-r1.ebuild
+++ b/dev-libs/mpfr/mpfr-4.1.0_p13-r1.ebuild
@@ -12,6 +12,7 @@ inherit multilib-minimal
 # https://archives.gentoo.org/gentoo-releng-autobuilds/message/c2dd39fc4ebc849db6bb0f551739e2ed
 MY_PV=$(ver_cut 1-3)
 MY_PATCH=$(ver_cut 5-)
+MY_PATCHES=()
 MY_P=${PN}-${MY_PV}
 
 DESCRIPTION="Library for multiple-precision floating-point computations with exact rounding"
@@ -21,12 +22,11 @@ if [[ ${PV} == *_p* ]] ; then
 	# If this is a patch release, we have to download each of the patches:
 	# -_pN = N patches
 	# - patch file names are like: patch01, patch02, ..., patch10, patch12, ..
+	#
 	# => name the ebuild _pN where N is the number of patches on the 'bugs' page.
-	my_patch_index=1
-	while [[ ${my_patch_index} -le ${MY_PATCH} ]] ; do
-		SRC_URI+=" "
-		SRC_URI+=$(printf "https://www.mpfr.org/${MY_P}/patch%02d -> ${MY_P}-patch%02d.patch " ${my_patch_index} ${my_patch_index})
-		my_patch_index=$((my_patch_index+1))
+	for ((my_patch_index=1; my_patch_index <= MY_PATCH; my_patch_index++)); do
+		SRC_URI+=" $(printf "https://www.mpfr.org/${MY_P}/patch%02d -> ${MY_P}-patch%02d.patch " ${my_patch_index}{,})"
+		MY_PATCHES+=( "${DISTDIR}"/$(printf ${MY_P}-patch%02d.patch ${my_patch_index}) )
 	done
 	unset my_patch_index
 fi
@@ -42,15 +42,20 @@ IUSE="static-libs"
 RDEPEND=">=dev-libs/gmp-5.0.0:=[${MULTILIB_USEDEP},static-libs?]"
 DEPEND="${RDEPEND}"
 
-PATCHES=()
+PATCHES=(
+	# Apply the upstream patches released out-of-band; generated above
+	"${MY_PATCHES[@]}"
 
-if [[ ${PV} == *_p* ]] ; then
-	# Apply the upstream patches released out of band
-	PATCHES+=( "${DISTDIR}"/ )
-fi
+	# Additional patches
+)
 
 HTML_DOCS=( doc/FAQ.html )
 
+src_unpack() {
+	# Avoid src_unpack noise from patches
+	unpack ${MY_P}.tar.xz
+}
+
 src_prepare() {
 	default
 
@@ -61,9 +66,9 @@ src_prepare() {
 }
 
 multilib_src_configure() {
-	# bug 476336#19
+	# bug #476336#19
 	# Make sure mpfr doesn't go probing toolchains it shouldn't
-	ECONF_SOURCE=${S} \
+	ECONF_SOURCE="${S}" \
 		user_redefine_cc=yes \
 		econf $(use_enable static-libs static)
 }


             reply	other threads:[~2022-03-16 15:08 UTC|newest]

Thread overview: 126+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-16 15:08 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-03-04 12:01 [gentoo-commits] repo/gentoo:master commit in: dev-libs/mpfr/ Sam James
2023-12-01 11:20 Arthur Zamarin
2023-09-28  5:12 Sam James
2023-09-28  4:21 Sam James
2023-09-27  5:44 Sam James
2023-09-27  5:12 Sam James
2023-09-27  4:46 Sam James
2023-09-27  4:46 Sam James
2023-08-22 11:57 Sam James
2023-08-20 20:39 Andreas K. Hüttel
2023-08-20 20:39 Andreas K. Hüttel
2023-08-19 20:15 Sam James
2023-08-02 16:19 Sam James
2023-08-02 15:11 Sam James
2023-07-30 18:17 Sam James
2023-07-30 18:17 Sam James
2023-07-30 17:57 Arthur Zamarin
2023-07-30 17:57 Arthur Zamarin
2023-07-30 17:57 Arthur Zamarin
2023-07-30 17:57 Arthur Zamarin
2023-07-20  2:34 Sam James
2023-07-20  2:33 Sam James
2023-06-25 15:39 Arthur Zamarin
2023-06-25  7:39 Sam James
2023-06-25  7:12 Sam James
2023-06-25  7:12 Sam James
2023-06-25  7:12 Sam James
2023-06-25  7:12 Sam James
2023-06-25  7:06 Sam James
2023-06-25  7:06 Sam James
2023-06-14  5:24 Sam James
2023-06-02 21:47 Sam James
2023-06-02  2:24 Sam James
2023-05-18 22:53 Sam James
2023-05-12 20:25 Sam James
2023-04-18  2:37 Sam James
2023-03-31 11:46 Arthur Zamarin
2023-03-11  6:52 Viorel Munteanu
2023-01-29  5:07 Sam James
2023-01-27  9:25 Jakov Smolić
2023-01-27  8:21 Sam James
2023-01-27  8:07 Sam James
2023-01-27  8:05 Sam James
2023-01-27  8:05 Sam James
2023-01-13 16:48 Sam James
2023-01-07  9:45 Sam James
2023-01-07  8:17 Sam James
2023-01-07  8:17 Sam James
2023-01-07  8:17 Sam James
2023-01-07  8:16 Sam James
2023-01-07  8:16 Sam James
2023-01-07  8:16 Sam James
2023-01-07  8:16 Sam James
2023-01-07  7:38 Sam James
2023-01-07  7:38 Sam James
2022-12-13 20:39 Sam James
2022-11-17 21:17 Sam James
2022-10-19 19:22 Sam James
2022-09-23  1:56 Sam James
2022-01-06 19:59 Sam James
2022-01-02 10:54 Jakov Smolić
2022-01-02  0:04 Sam James
2022-01-01  5:34 Sam James
2022-01-01  5:34 Sam James
2022-01-01  5:34 Sam James
2022-01-01  5:34 Sam James
2022-01-01  5:34 Sam James
2021-11-09  6:57 Sam James
2021-10-30 22:41 Sam James
2021-10-29  8:49 Sam James
2021-10-29  8:49 Sam James
2021-10-19  7:51 Sam James
2021-01-06 19:34 Fabian Groffen
2020-12-27 14:21 Fabian Groffen
2020-09-07 20:46 Sergei Trofimovich
2020-08-31  0:42 Sam James
2020-08-11 14:23 Agostino Sarubbo
2020-08-11 14:13 Agostino Sarubbo
2020-08-11  8:37 Sam James
2020-08-10 19:25 Sergei Trofimovich
2020-08-10 11:55 Agostino Sarubbo
2020-08-10  9:25 Agostino Sarubbo
2020-07-10 20:38 Sergei Trofimovich
2020-03-01 20:40 Sergei Trofimovich
2020-02-25 12:46 Mikle Kolyada
2020-02-25 12:46 Mikle Kolyada
2019-11-13 16:09 Agostino Sarubbo
2019-11-12 19:42 Matt Turner
2019-11-12 18:07 Agostino Sarubbo
2019-11-12 10:38 Agostino Sarubbo
2019-11-11  0:26 Matt Turner
2019-11-10 21:56 Sergei Trofimovich
2019-11-09 15:54 Aaron Bauman
2019-11-08  8:35 Mikle Kolyada
2019-11-03 14:49 Agostino Sarubbo
2019-11-03 13:39 Mikle Kolyada
2019-11-03 13:03 Agostino Sarubbo
2019-05-04 18:38 Andreas K. Hüttel
2019-02-01 23:52 Anthony G. Basile
2018-06-24  1:47 Matthias Maier
2018-06-10 16:29 Sergei Trofimovich
2018-04-24  9:20 Anthony G. Basile
2018-02-08  9:12 Anthony G. Basile
2018-01-13 23:22 Mike Frysinger
2017-12-26 19:25 Anthony G. Basile
2017-12-26 16:58 Anthony G. Basile
2017-12-26  9:36 Anthony G. Basile
2017-11-27  7:27 Sergei Trofimovich
2017-11-27  0:20 Thomas Deutschmann
2017-11-26 19:06 Sergei Trofimovich
2017-11-26  1:30 Matt Turner
2017-11-25 20:02 Matt Turner
2017-11-25 12:10 Sergei Trofimovich
2017-09-10  1:52 Anthony G. Basile
2017-01-29 16:19 Fabian Groffen
2016-09-27 11:55 Lars Wendler
2016-03-07  1:16 Mike Frysinger
2015-10-24 16:33 Mike Frysinger
2015-10-24 16:27 Mike Frysinger
2015-10-21 12:48 Tobias Klausmann
2015-10-17 10:59 Markus Meier
2015-10-04  9:32 Agostino Sarubbo
2015-10-04  9:31 Agostino Sarubbo
2015-10-03 18:28 Anthony G. Basile
2015-10-03 18:18 Jeroen Roovers

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=1647443281.7dde9a139d25b0166ec24b620298783e9b44c116.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