mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-build/cmake: add warning on bad /etc/*-release files
Prompted by (yet another) post on this, see https://forums.gentoo.org/viewtopic-t-1170229.html. Bug: https://bugs.gentoo.org/599684 Bug: https://bugs.gentoo.org/753581 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -277,6 +277,17 @@ src_install() {
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -z ${EPREFIX} ]] ; then
|
||||
local file
|
||||
# See bug #599684 and bug #753581 (at least)
|
||||
for file in /etc/arch-release /etc/redhat-release /etc/debian_version ; do
|
||||
eerror "Errant ${file} found!"
|
||||
eerror "The presence of these files is known to confuse CMake's"
|
||||
eerror "library path logic. Please (re)move this file:"
|
||||
eerror " mv ${file} ${file}.bak"
|
||||
done
|
||||
fi
|
||||
|
||||
if use gui; then
|
||||
xdg_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
|
||||
@@ -278,6 +278,17 @@ src_install() {
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -z ${EPREFIX} ]] ; then
|
||||
local file
|
||||
# See bug #599684 and bug #753581 (at least)
|
||||
for file in /etc/arch-release /etc/redhat-release /etc/debian_version ; do
|
||||
eerror "Errant ${file} found!"
|
||||
eerror "The presence of these files is known to confuse CMake's"
|
||||
eerror "library path logic. Please (re)move this file:"
|
||||
eerror " mv ${file} ${file}.bak"
|
||||
done
|
||||
fi
|
||||
|
||||
if use gui; then
|
||||
xdg_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
|
||||
Reference in New Issue
Block a user