nagios_hpilo_engine-1.5.0-r1, gcc-10 fix, default to -fno-common

This commit is contained in:
Andreas Billmeier 2021-06-23 10:14:28 +02:00 committed by root
parent 7bc7ceb300
commit 659cd6dbd1
4 changed files with 45 additions and 5 deletions

View File

@ -1 +1,3 @@
EBUILD nagios_hpilo_engine-1.5.0.ebuild 512 BLAKE2B 8f3cee11c591764c3222da211edaddc5188f638b13ec5feb92e5aa429f68693a4ea7c1181bee0abcdedee0638776601d81e3a754befe82d096a76d2af4219f73 SHA512 be4b1086852db93aa76ea7b8deb7db5c180e4fb8fa5c261542fc2b1187c08d0436635c53ab327f4bb7c3c14a88d5e2847c90371afe50092c3118c67ff51ac6c1
AUX 1.5.0-gcc-10_fix 411 BLAKE2B 6eee4df9ebe07bb3e83dc2e61baf511beee62257469eed3255d5a469e24cca91f035e5f72130e777a0af8928f7370d49af8d96110e37166f8f18abf9e4c8cb32 SHA512 f43df367638c26a0790860a8fb00dd78fe6609662e833ef8662b1515ffa594da118a40772b2c60f81ad6c2eef395a08c26cfad9288b1616a2b7463d1b1173900
EBUILD nagios_hpilo_engine-1.5.0-r1.ebuild 566 BLAKE2B 16d327edb663ca4103df606ed3db15c1395d4b9bb03eaa3baf8d0eac50bb8927c97f92ec2fb730e6f10128afd195eccbeae0eb3727d2111d4af72c4e1fa14f2e SHA512 944701d41bcc9e81983b545ab09a127e1093db1ae969648ebdd729641630f34a698d7a6105f043363d49c76bdcd4df81af5996b615d86de04026e594f594d3a9
EBUILD nagios_hpilo_engine-1.5.0.ebuild 520 BLAKE2B 7a9189ae679f3c892a13c40818f3da0c6cd85a9115a54e453c77f822648773c4aa91043e8ec20a0431c425f50faf189189b8ce5399f44711999574cbe81592c2 SHA512 477f491a2914932c6769c16ce000090a357f4d567e2b7a406a8e318755d6ffe7a8b1d980249e080f24a95b431f5476ab32903668854ff7b2677c22a4b270ad50

View File

@ -0,0 +1,13 @@
diff --git a/src/include/nagios_hpilo_common.h b/src/include/nagios_hpilo_common.h
index e231c05..7879f84 100644
--- a/src/include/nagios_hpilo_common.h
+++ b/src/include/nagios_hpilo_common.h
@@ -76,7 +76,7 @@ struct inst {
};
/* Data structure to create instances */
-struct inst_list {
+extern struct inst_list {
int inst_count; /*number of instances*/
struct inst *obj; /*Instance List*/
}*glist;

View File

@ -0,0 +1,26 @@
# Copyright 2020-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
inherit git-r3
DESCRIPTION="Nagios plug-in for iLO Agentless Management"
HOMEPAGE="https://github.com/HewlettPackard/nagios-plugins-hpilo"
EGIT_REPO_URI="https://github.com/HewlettPackard/nagios-plugins-hpilo.git"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~x86"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND=""
src_install(){
exeinto /usr/lib64/nagios/plugins/contrib/
doexe src/nagios_hpeilo_engine
}
PATCHES=( "${FILESDIR}/${PV}-gcc-10_fix" )

View File

@ -1,4 +1,4 @@
# Copyright 2020 Gentoo Authors
# Copyright 2020-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@ -9,7 +9,7 @@ DESCRIPTION="Nagios plug-in for iLO Agentless Management"
HOMEPAGE="https://github.com/HewlettPackard/nagios-plugins-hpilo"
EGIT_REPO_URI="https://github.com/HewlettPackard/nagios-plugins-hpilo.git"
LICENSE=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~x86"
IUSE=""
@ -20,6 +20,5 @@ BDEPEND=""
src_install(){
exeinto /usr/lib64/nagios/plugins/contrib/
doexe src/nagios_hpeilo_engine
doexe src/nagios_hpeilo_engine
}