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>
This commit is contained in:
Benda Xu
2021-07-16 00:53:17 +08:00
parent d0a3a3f9e5
commit 8e5e1f3ef2
@@ -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