diff options
author | Sam James <sam@gentoo.org> | 2022-06-13 12:59:28 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-06-13 13:10:16 +0100 |
commit | bab011b72162d5f0a2dc3b36d1cf6d420cd43e10 (patch) | |
tree | 7ca677a122f88300484bf6131eae3285efefa57c /net-libs | |
parent | dev-util/rocprofiler: initial import (diff) | |
download | gentoo-bab011b72162d5f0a2dc3b36d1cf6d420cd43e10.tar.gz gentoo-bab011b72162d5f0a2dc3b36d1cf6d420cd43e10.tar.bz2 gentoo-bab011b72162d5f0a2dc3b36d1cf6d420cd43e10.zip |
net-libs/libnipper: fix build with GCC 12; fix -Werror=format-security
Closes: https://bugs.gentoo.org/851666
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-libs')
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" +) |