diff options
author | Benda Xu <heroxbd@gentoo.org> | 2021-07-16 00:48:22 +0800 |
---|---|---|
committer | Benda Xu <heroxbd@gentoo.org> | 2021-07-16 00:53:17 +0800 |
commit | 8e5e1f3ef263363ec0426ce7a8a3dec6f5f5bb5d (patch) | |
tree | cd5d95eac920c05cde9d3ab39af0ac2fe231d5eb /profiles/features/prefix | |
parent | dev-libs/rocclr: prefixify src_install. (diff) | |
download | gentoo-8e5e1f3ef263363ec0426ce7a8a3dec6f5f5bb5d.tar.gz gentoo-8e5e1f3ef263363ec0426ce7a8a3dec6f5f5bb5d.tar.bz2 gentoo-8e5e1f3ef263363ec0426ce7a8a3dec6f5f5bb5d.zip |
p/f/prefix/standalone/profile.bashrc: remove Debian magic.
We are Gentoo, and we unconditionally turn off Debian related tests.
The upstreaming process has stalled and we work around this bug by
hacking the profile. Remove this when upstream figure out how to deal
with distributions.
Reference: https://gitlab.kitware.com/cmake/cmake/-/merge_requests/5047
Reference: https://gitlab.kitware.com/cmake/cmake/-/issues/18979
Bug: https://bugs.gentoo.org/733480
Closes: https://bugs.gentoo.org/757006
Closes: https://github.com/gentoo/gentoo/pull/20274
Signed-off-by: Benda Xu <heroxbd@gentoo.org>
Diffstat (limited to 'profiles/features/prefix')
-rw-r--r-- | profiles/features/prefix/standalone/profile.bashrc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/profiles/features/prefix/standalone/profile.bashrc b/profiles/features/prefix/standalone/profile.bashrc index 76ef2455b35a..5423535d0fc9 100644 --- a/profiles/features/prefix/standalone/profile.bashrc +++ b/profiles/features/prefix/standalone/profile.bashrc @@ -1,5 +1,5 @@ # -*- mode: shell-script; -*- -# Copyright 2018-2020 Gentoo Authors +# Copyright 2018-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # RAP specific patches pending upstream: @@ -109,4 +109,11 @@ elif [[ ${CATEGORY}/${PN} == dev-lang/php && ${EBUILD_PHASE} == prepare ]]; then ebegin "Prefixifying ext/iconv/config.m4 paths" sed -i -r "/for i in/s,(/usr(/local|)),${EPREFIX}\1,g" "${S}"/ext/iconv/config.m4 eend $? +elif [[ ${CATEGORY}/${PN} == dev-util/cmake && ${EBUILD_PHASE} == prepare ]]; then + einfo "Removing Debian magic..." + for f in Modules/{CMakeFindPackageMode,FindPkgConfig,GNUInstallDirs,Platform/{GNU,Linux}}.cmake; do + ebegin " Updating $f" + sed -i -e 's,EXISTS "/etc/debian_version",FALSE,' "${S}"/$f + eend $? + done fi |