diff options
3 files changed, 44 insertions, 0 deletions
diff --git a/net-libs/libnipper/files/libnipper-0.12.6-gcc12-time.patch b/net-libs/libnipper/files/libnipper-0.12.6-gcc12-time.patch new file mode 100644 index 000000000000..b07c640a37d1 --- /dev/null +++ b/net-libs/libnipper/files/libnipper-0.12.6-gcc12-time.patch @@ -0,0 +1,11 @@ +https://bugs.gentoo.org/851666 +--- a/report/report-text.cpp ++++ b/report/report-text.cpp +@@ -34,6 +34,7 @@ + #include "../device/general/general.h" + #include "report.h" + ++#include <ctime> + + int Report::writeText(const char *theText, Device::paragraphStruct *paragraph, bool expandAbbreviations, bool hideMarkup) + { diff --git a/net-libs/libnipper/files/libnipper-0.12.6-wformat-security.patch b/net-libs/libnipper/files/libnipper-0.12.6-wformat-security.patch new file mode 100644 index 000000000000..d2bf917a9c59 --- /dev/null +++ b/net-libs/libnipper/files/libnipper-0.12.6-wformat-security.patch @@ -0,0 +1,11 @@ +--- a/report/report-table.cpp ++++ b/report/report-table.cpp +@@ -359,7 +359,7 @@ int Report::writeTable(Device::paragraphStruct *paragraph) + else if (config->reportFormat == Config::XML) + fprintf(outFile, ">"); + if (cellPointer->cellData.empty()) +- fprintf(outFile, config->emptyTableCell); ++ fprintf(outFile, "%s", config->emptyTableCell); + else + errorCode = writeText(cellPointer->cellData.c_str(), paragraph); + if (errorCode != 0) diff --git a/net-libs/libnipper/libnipper-0.12.6-r2.ebuild b/net-libs/libnipper/libnipper-0.12.6-r2.ebuild new file mode 100644 index 000000000000..2fe749ff81af --- /dev/null +++ b/net-libs/libnipper/libnipper-0.12.6-r2.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="A router configuration security analysis library" +HOMEPAGE="http://nipper.titania.co.uk/" +SRC_URI="mirror://sourceforge/nipper/${P}.tgz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +PATCHES=( + "${FILESDIR}/${P}-glibc-2.10.patch" + "${FILESDIR}/${P}-gcc47.patch" + "${FILESDIR}/${P}-multilib-strict.patch" + "${FILESDIR}/${P}-gcc12-time.patch" + "${FILESDIR}/${P}-wformat-security.patch" +) |