public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Fabian Groffen" <grobian@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: profiles/prefix/darwin/macos/
Date: Sun, 16 Jan 2022 12:20:31 +0000 (UTC)	[thread overview]
Message-ID: <1642335626.69f5c7eeaf5f0c12eaddbda183102f1c7eaf2f6c.grobian@gentoo> (raw)

commit:     69f5c7eeaf5f0c12eaddbda183102f1c7eaf2f6c
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 16 12:15:18 2022 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sun Jan 16 12:20:26 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69f5c7ee

profiles/prefix/darwin/macos: use global fix for gnulib breakage

Bug: https://bugs.gentoo.org/831026
Bug: https://bugs.gentoo.org/829847
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 profiles/prefix/darwin/macos/package.mask   |  9 ---------
 profiles/prefix/darwin/macos/profile.bashrc | 23 +++++++++++++++++++++++
 2 files changed, 23 insertions(+), 9 deletions(-)

diff --git a/profiles/prefix/darwin/macos/package.mask b/profiles/prefix/darwin/macos/package.mask
index 1d194495f268..0b90c5562381 100644
--- a/profiles/prefix/darwin/macos/package.mask
+++ b/profiles/prefix/darwin/macos/package.mask
@@ -4,12 +4,3 @@
 # Fabian Groffen <grobian@gentoo.org> (2022-01-08)
 # malloc crash during install on >=11.0, bug #830425
 =dev-util/cmake-3.22.1
-
-# Sam James <sam@gentoo.org> (2021-12-23)
-# Fails to build due to gnulib errors on >=11.0:
-# ```timespec.h:52:21: error: expected identifier or ‘(’ before ‘struct’
-# 52 | _GL_TIMESPEC_INLINE struct timespec```
-# bug #829847
-=app-editors/nano-5.9
-=app-editors/nano-6.0
-=app-arch/gzip-1.11

diff --git a/profiles/prefix/darwin/macos/profile.bashrc b/profiles/prefix/darwin/macos/profile.bashrc
new file mode 100644
index 000000000000..fc81d01031c4
--- /dev/null
+++ b/profiles/prefix/darwin/macos/profile.bashrc
@@ -0,0 +1,23 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+if [[ ${EBUILD_PHASE} == prepare ]]; then
+	# workaround for Gnulib bug that affects multiple packages: gzip, wget,
+	# nano, etc
+	# https://lists.gnu.org/archive/html/bug-gnulib/2021-09/msg00053.html
+	# https://bugs.gentoo.org/829847
+	# https://bugs.gentoo.org/831026
+	find "${S}" -name "config.h*" \
+		| xargs grep -l "define _GL_INLINE static _GL_UNUSED" \
+		| while read file
+	do
+		einfo "fixing gnulib inline bug in ${file#${S}/}"
+		origfile="${file}".gnulib-fix.$$
+		mv "${file}" "${origfile}"
+		sed -e 's/define _GL_INLINE static _GL_UNUSED/define _GL_INLINE _GL_UNUSED static/' \
+			-e 's/define _GL_EXTERN_INLINE static _GL_UNUSED/define _GL_EXTERN_INLINE _GL_UNUSED static/' \
+			"${origfile}" > "${file}"
+		touch -r "${origfile}" "${file}"
+	done
+fi
+


             reply	other threads:[~2022-01-16 12:20 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-16 12:20 Fabian Groffen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-07-19 11:33 [gentoo-commits] repo/gentoo:master commit in: profiles/prefix/darwin/macos/ Fabian Groffen
2024-07-17 13:27 Fabian Groffen
2024-05-28 14:10 Fabian Groffen
2023-08-20  8:44 Benda XU
2023-08-17  5:54 Benda XU
2023-08-17  4:41 Benda XU
2023-07-31 17:29 Benda XU
2023-07-24  6:56 Fabian Groffen
2023-07-17  1:51 Benda XU
2023-07-09  3:40 Benda XU
2023-06-05 13:36 Fabian Groffen
2023-05-01  6:32 Fabian Groffen
2023-04-27 10:27 Fabian Groffen
2022-07-08  7:32 Fabian Groffen
2022-06-14 14:16 Fabian Groffen
2022-01-09 22:12 Sam James
2022-01-01 10:03 Sam James
2021-12-23  7:12 Sam James
2021-12-23  7:03 Sam James
2021-09-05 21:01 Sam James
2021-08-22 12:00 Fabian Groffen
2021-02-12 23:51 Sam James
2021-01-14 13:40 Fabian Groffen
2021-01-14 12:45 Fabian Groffen
2021-01-10 14:49 Fabian Groffen
2021-01-10 10:05 Fabian Groffen
2021-01-10 10:05 Fabian Groffen
2020-12-20 16:06 Fabian Groffen
2020-12-10 12:23 Fabian Groffen
2020-12-10 10:51 Fabian Groffen
2020-12-07 20:29 Fabian Groffen
2020-11-30  7:27 Sam James
2020-11-30  3:13 Sam James
2020-11-23 16:16 Fabian Groffen
2020-11-23 16:01 Fabian Groffen
2020-11-23 13:31 Fabian Groffen
2020-06-09 16:38 Fabian Groffen
2020-06-08 18:48 Fabian Groffen
2019-07-05 14:18 Guilherme Amadio
2019-04-26 13:44 Fabian Groffen
2019-03-26  9:29 Fabian Groffen
2019-03-26  9:26 Fabian Groffen
2019-03-22 10:04 Fabian Groffen
2018-03-11  1:31 Andrey Utkin

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=1642335626.69f5c7eeaf5f0c12eaddbda183102f1c7eaf2f6c.grobian@gentoo \
    --to=grobian@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