summaryrefslogtreecommitdiff
path: root/profiles/prefix
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-01-16 20:27:28 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-01-16 20:27:28 +0000
commit2fd57282f0262ca084e05b0f2c63fbada395d02b (patch)
tree4e0f23cea9ce9fd972e70ebc5214bf36fed465cc /profiles/prefix
parentc3bc61051d7f12b4c682efa7a5460bbc8815649e (diff)
gentoo resync : 16.01.2021
Diffstat (limited to 'profiles/prefix')
-rw-r--r--profiles/prefix/darwin/macos/package.mask10
-rw-r--r--profiles/prefix/darwin/macos/profile.bashrc23
2 files changed, 26 insertions, 7 deletions
diff --git a/profiles/prefix/darwin/macos/package.mask b/profiles/prefix/darwin/macos/package.mask
index 7c44bbda818d..0b90c5562381 100644
--- a/profiles/prefix/darwin/macos/package.mask
+++ b/profiles/prefix/darwin/macos/package.mask
@@ -1,10 +1,6 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-# Sam James <sam@gentoo.org> (2021-12-23)
-# Fails to build due to gnulib errors:
-# ```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
+# Fabian Groffen <grobian@gentoo.org> (2022-01-08)
+# malloc crash during install on >=11.0, bug #830425
+=dev-util/cmake-3.22.1
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
+