mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
net-analyzer/gvmd: fix C23 build on 24.1.0, only show update instructions on update
Closes: https://bugs.gentoo.org/946583 Signed-off-by: Giuseppe Foti <foti.giuseppe@gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/43780 Closes: https://github.com/gentoo/gentoo/pull/43780 Signed-off-by: Florian Schmaus <flow@gentoo.org>
This commit is contained in:
parent
9453ca3651
commit
ccd5546d74
@ -49,6 +49,10 @@ BDEPEND="
|
||||
)
|
||||
test? ( dev-libs/cgreen )
|
||||
"
|
||||
PATCHES=(
|
||||
# Closes #946583
|
||||
"${FILESDIR}/gvmd-25.2.1-fix-c23-build.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
@ -120,10 +124,12 @@ src_install() {
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ ${REPLACING_VERSIONS} ]]; then
|
||||
elog "If you are upgrading from a previous version, you need to update the database version."
|
||||
elog "Please, create the running directory and give write permission to the database user"
|
||||
elog "then run gvmd as the gvm user with --migrate option:"
|
||||
elog "~# mkdir /run/gvmd"
|
||||
elog "~# setfacl -m u:gvm:rwx /run/gvmd/"
|
||||
elog "~# sudo -u gvm gvmd --migrate"
|
||||
fi
|
||||
}
|
||||
|
||||
@ -125,10 +125,12 @@ src_install() {
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ ${REPLACING_VERSIONS} ]]; then
|
||||
elog "If you are upgrading from a previous version, you need to update the database version."
|
||||
elog "Please, create the running directory and give write permission to the database user"
|
||||
elog "then run gvmd as the gvm user with --migrate option:"
|
||||
elog "~# mkdir /run/gvmd"
|
||||
elog "~# setfacl -m u:gvm:rwx /run/gvmd/"
|
||||
elog "~# sudo -u gvm gvmd --migrate"
|
||||
fi
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user