From 7785404bd292918a4afd4780ccfc36d6626a49ca Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 31 Oct 2022 03:04:34 +0000 Subject: gentoo auto-resync : 31:10:2022 - 03:04:34 --- net-libs/libsmi/Manifest | 3 +- .../files/libsmi-0.5.0-fix-macro-clang16.patch | 16 ++++++++ net-libs/libsmi/libsmi-0.5.0-r3.ebuild | 47 --------------------- net-libs/libsmi/libsmi-0.5.0-r5.ebuild | 48 ++++++++++++++++++++++ 4 files changed, 66 insertions(+), 48 deletions(-) create mode 100644 net-libs/libsmi/files/libsmi-0.5.0-fix-macro-clang16.patch delete mode 100644 net-libs/libsmi/libsmi-0.5.0-r3.ebuild create mode 100644 net-libs/libsmi/libsmi-0.5.0-r5.ebuild (limited to 'net-libs/libsmi') diff --git a/net-libs/libsmi/Manifest b/net-libs/libsmi/Manifest index 7dd298528f51..fe9f505d812c 100644 --- a/net-libs/libsmi/Manifest +++ b/net-libs/libsmi/Manifest @@ -1,6 +1,7 @@ AUX libsmi-0.5.0-clang-15-configure.patch 1078 BLAKE2B 7d3de7a5ffaa91784808ae43533ff541ab3a9c892e12612aeb45508b8a0ac24abbb6a23515504badce061d413d26f603d3ca682e1efcb8a3f4b0278b8f9ed564 SHA512 223f0ce44d24b799b6e3c3db36314bbe0642242221e93a7555014565af23a762e1ad48a47b88f84d7699833f7d53219a2782a41c97164d78402e55345bcd40a5 +AUX libsmi-0.5.0-fix-macro-clang16.patch 433 BLAKE2B 8ee8219c7b803fc24d78540bcc3306cb1a643f7d1fb383bda3f049b27780f1ca95ace8f2a149d745b7d2ce6b0b2b84cf04c5c908721d89ab6c140abfa01da287 SHA512 e8b683ee1c02632f13b44d3ecd7f2db57508c3fcee1352fdffa8ba077ea91f0d2bf125289ff652a33c181e716a0afd3363c2aafe524081dd88b23d3dd4760cca AUX libsmi-0.5.0-implicit-function-declarations.patch 1887 BLAKE2B e18558f09095008d79a94a3baddc6e6623865b18b0a829d0e53f0bca7afa23ee4a45eda5c77edc54f3fd88c009d4623673909469164ec9c3d64b19ae35bfdec1 SHA512 ab4e978066252f4a8df72b6877bae8574579c3d06c0d31f268fce50aecd645b1f003b9d29b440070c80ad8025a6599e238399f4d037893e67f31cedb2476593c DIST libsmi-0.5.0.tar.gz 4798883 BLAKE2B 37e9b0160f131db52fb68bd0b3eb0555b1cfb588aefb8e094fc50eec28b31f315907cd602f262d9f6c1ef887de148350da4747e0587b5518dac7376981fc12ae SHA512 be82e6b7054426e4634ac9d90467b89a51a9c836273c9d516f07ff3cec3a8dcc8b3bb0e0396d5facec3d9c952b17fb67f24ff2d3959e7e5cf9eced72023a0708 EBUILD libsmi-0.5.0-r1.ebuild 913 BLAKE2B 4626df8d49a139986ee6ceb4919a55d44e1458c93e841d03af42670498b7c637aee0f969613494ea4c8b319e0412cd34efbf500e6e1413b009a8032eefdc83da SHA512 2eac483f4f86ced64c51bc19c0a6c08c7acfbe0433e74403708e528bdada268d92a2f119478b0be244f7afb644f1b5b3e1515d45f4dfdf67fd116a70ea399d69 -EBUILD libsmi-0.5.0-r3.ebuild 1179 BLAKE2B 81920b41c972354c612df700497d797f01b5aa6dc335f9ca6d5cdd3a3487be0bad683a3350caded68cee496f6cce8e6877bf1767fcad8b1bd9b1f37cb4fd4f86 SHA512 4082655432d99e292235636867fe3ee60e2e2b514e57ea13a93a0e0548e7d7e1496074a416f7a28cef9d4aa3eadad3336bb4da702c76401ae1be2c851dbb404c +EBUILD libsmi-0.5.0-r5.ebuild 1230 BLAKE2B 76c9bd233cb1bcb97258e534bf10080a6d4fe0d08b595fe9eca302f4139c86805eae2ae454ed41dd58333555b5ae45315148451adf2c23f3a4a1a85ce1f626d3 SHA512 9fedc8e472f0396ae6521da0c8ed1eceb27c73db733b12cb12072a4c7db4cc831ec7da7574ee1db996dfcef800614bdd17378955c1b40d517c4a379d97464b45 MISC metadata.xml 277 BLAKE2B 57fc90092c4674e5c4dfe38b0d79c983990fce4e8208b70c2ebb218aebb6d2135537f927115f3a7b7eb8c1ddb596461c17e60acb3e6a11b289796f20f3c80a33 SHA512 5ac67e6beabab60f83ac521249c6d1f021988d522fc86ab12ec98fbaa9d47a50157c10c7b9a39554e66a02b141cdc6dc6669e5e7c9c02c8b36ad404aa790d619 diff --git a/net-libs/libsmi/files/libsmi-0.5.0-fix-macro-clang16.patch b/net-libs/libsmi/files/libsmi-0.5.0-fix-macro-clang16.patch new file mode 100644 index 000000000000..0ffe6dd92606 --- /dev/null +++ b/net-libs/libsmi/files/libsmi-0.5.0-fix-macro-clang16.patch @@ -0,0 +1,16 @@ +stdio needed for sscanf(), stdlib is included by smi.h but let's include it +anyway for exit(). +--- a/libsmi.m4 ++++ b/libsmi.m4 +@@ -12,7 +12,10 @@ AC_DEFUN([AM_PATH_LIBSMI], + AC_MSG_CHECKING([whether to enable libsmi]) + AC_TRY_RUN([ /* libsmi available check */ + #include +-main() ++#include ++#include ++#include ++int main(void) + { + int current, revision, age, n; + const int required = 2; diff --git a/net-libs/libsmi/libsmi-0.5.0-r3.ebuild b/net-libs/libsmi/libsmi-0.5.0-r3.ebuild deleted file mode 100644 index ef7935dddac7..000000000000 --- a/net-libs/libsmi/libsmi-0.5.0-r3.ebuild +++ /dev/null @@ -1,47 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit autotools - -DESCRIPTION="A Library to Access SMI MIB Information" -HOMEPAGE="https://www.ibr.cs.tu-bs.de/projects/libsmi/ https://gitlab.ibr.cs.tu-bs.de/nm/libsmi" -SRC_URI="https://www.ibr.cs.tu-bs.de/projects/libsmi/download/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" -RESTRICT="test" - -# libsmi-0.5.0-implicit-function-declarations.patch touches parser -BDEPEND=" - sys-devel/flex - virtual/yacc -" - -PATCHES=( - "${FILESDIR}"/${PN}-0.5.0-implicit-function-declarations.patch - "${FILESDIR}"/${PN}-0.5.0-clang-15-configure.patch -) - -src_prepare() { - default - eautoreconf -} - -src_test() { - # sming test is known to fail and some other fail if LC_ALL!=C: - # https://mail.ibr.cs.tu-bs.de/pipermail/libsmi/2008-March/001014.html - sed -i '/^[[:space:]]*smidump-sming.test \\$/d' test/Makefile - LC_ALL=C emake -j1 check -} - -src_install() { - default - - dodoc ANNOUNCE ChangeLog README THANKS TODO \ - doc/{*.txt,smi.dia,smi.dtd,smi.xsd} smi.conf-example - - find "${ED}" -name '*.la' -delete || die -} diff --git a/net-libs/libsmi/libsmi-0.5.0-r5.ebuild b/net-libs/libsmi/libsmi-0.5.0-r5.ebuild new file mode 100644 index 000000000000..91ae311eaa6e --- /dev/null +++ b/net-libs/libsmi/libsmi-0.5.0-r5.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="A Library to Access SMI MIB Information" +HOMEPAGE="https://www.ibr.cs.tu-bs.de/projects/libsmi/ https://gitlab.ibr.cs.tu-bs.de/nm/libsmi" +SRC_URI="https://www.ibr.cs.tu-bs.de/projects/libsmi/download/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +RESTRICT="test" + +# libsmi-0.5.0-implicit-function-declarations.patch touches parser +BDEPEND=" + sys-devel/flex + virtual/yacc +" + +PATCHES=( + "${FILESDIR}"/${PN}-0.5.0-implicit-function-declarations.patch + "${FILESDIR}"/${PN}-0.5.0-clang-15-configure.patch + "${FILESDIR}"/${PN}-0.5.0-fix-macro-clang16.patch +) + +src_prepare() { + default + eautoreconf +} + +src_test() { + # sming test is known to fail and some other fail if LC_ALL!=C: + # https://mail.ibr.cs.tu-bs.de/pipermail/libsmi/2008-March/001014.html + sed -i '/^[[:space:]]*smidump-sming.test \\$/d' test/Makefile + LC_ALL=C emake -j1 check +} + +src_install() { + default + + dodoc ANNOUNCE ChangeLog README THANKS TODO \ + doc/{*.txt,smi.dia,smi.dtd,smi.xsd} smi.conf-example + + find "${ED}" -name '*.la' -delete || die +} -- cgit v1.2.3