diff options
Diffstat (limited to 'net-libs/libnipper')
-rw-r--r-- | net-libs/libnipper/Manifest | 3 | ||||
-rw-r--r-- | net-libs/libnipper/files/libnipper-0.12.6-gcc12-time.patch | 11 | ||||
-rw-r--r-- | net-libs/libnipper/files/libnipper-0.12.6-wformat-security.patch | 11 | ||||
-rw-r--r-- | net-libs/libnipper/libnipper-0.12.6-r2.ebuild | 22 |
4 files changed, 47 insertions, 0 deletions
diff --git a/net-libs/libnipper/Manifest b/net-libs/libnipper/Manifest index 3866f1fc67a4..a264069725ab 100644 --- a/net-libs/libnipper/Manifest +++ b/net-libs/libnipper/Manifest @@ -1,6 +1,9 @@ +AUX libnipper-0.12.6-gcc12-time.patch 316 BLAKE2B 8398f94e9545f93056ead1aee25e2842325754024f70cb067c1d99f44da88eec30f02a8d9f6892e8d44dbd06fec2f14fc31a7346a1d5d4f485b1bd6445603527 SHA512 5804199fe39df688a9971e0e429ea41f0c9118aec0791965d6ea99f86cb3d45adfd437630a099af1c5bb749a179a75e2fe16d6de80096ea49b973d92cec22b28 AUX libnipper-0.12.6-gcc47.patch 272 BLAKE2B 4849ed6671881029fb0963c09cfa0b9e9f0e738e714672ad6e17241a354e0f0067e42f01ac04defc62c681ea77183dc98ca7b77e864941fa48c6542ccc500d06 SHA512 fa6e326a97d5d6e72fc04fc2aebf6fb56be0c3683b5d1a02fcb907a944d2b3cb41d91a750c69c69a73e0fbec670d288b16bfcf718a3ec43a1689dbfb67411edf AUX libnipper-0.12.6-glibc-2.10.patch 418 BLAKE2B f981208efc23c3eb37aef0ee75a6e0740867b2a732e2bf2776cbedeafbaec0bd23e1692b2d5e4cf335f74b4fd03146ca12a67f94a3261f905d42e9c204f6a48d SHA512 0111563759771a4fbb9464c41cb66358a8a12c461709b3cb5638663b6d39ea594aa4402eb488080992a173ad1d639790c6632ca5e8f0c85ce60af5c6e1fc54ea AUX libnipper-0.12.6-multilib-strict.patch 523 BLAKE2B c59c2e2a9b3a09be2a17bb7d6839a03bdde7981a4bed0c761809ab9e024dc764cbc7bf7e61bd47a56669e3355980aa67c2eb479e8793da8fca44a4cbf06dad20 SHA512 4290a1b5afdf3215d25d1eb173a0dca421f209335cbe413aa3f051df31c132e85dcafaec89eee52709ece258aba37b507cc4499369e9ad403aa7ecb2b7ba04a6 +AUX libnipper-0.12.6-wformat-security.patch 467 BLAKE2B 1b254d11470f49db592190946752e935149c17d8dc5e1859db30d1175db0b08058f164707701a79d7b8f62557bf9f37d261db392ca697eaf7d13d0c95ac1e7f0 SHA512 73f32a285ad3e3071a3b8596538ceff2f56453dc8e4bfea086a6db6d592f270d9a302593ee231ac86f88baef0f2cd2ec52828704d987d498d5d5c64fb3d62546 DIST libnipper-0.12.6.tgz 444578 BLAKE2B 66a9d9158a132a447e5acfb2da51618c2be09f51a8bea3b47bb953a8734e5be5666a6d330e20ec9b5ad6455ac98fbc651a673dd4c47045f916cc3894ff40f5c2 SHA512 eb6eabce06a71463f8dad59a2aca13583e9ae8113b6997a7946b9bbafe54cd0668189c915f917ffcb7ffe3b5dc6dbbf7d37874ec226e5bd8cdd3c8999f9e10b0 EBUILD libnipper-0.12.6-r1.ebuild 451 BLAKE2B 2950029c9076b196c54d29842f7d56655fc7b38ae0eb04fb768f2e7586f71c9f5f46dc30223db5de5896df90b64cfe34921eb687849c0f370c758f5854a4fe61 SHA512 396b52619b331747de0105615b060520b7777968abed0bed2e13836827e78531d5b3dd59596cf5c90c20b0a6ef6977e9ddd21ea7b6b0b930a39a0f1f9ee0fd8a +EBUILD libnipper-0.12.6-r2.ebuild 531 BLAKE2B d486a14da0c920ef84fe2da8f0c91674fdd3f2560e1cbcdbcce1aec02f9f84401efc4fd3c921d68f6135ac74c025319be86c3f93aa3cde8c10b8ea7ab666a3a7 SHA512 e156e9a2932e6e857ba14e57e402b04ce36858ce2c3cf7e86bd3905974db4457d2d94113d9a5ca23820a31ae8d7ddf98c02d589dc092ee463099cb1578655fa3 MISC metadata.xml 244 BLAKE2B 38ffb6f9295d8117c9ae13bf37fb4c5dfd57ffcaa0e2fed5557e69757b81feb119a74b620c6ce789ddba42e7d7e4e99d4868d299ff652e23abd3189943bdd687 SHA512 ab6444f29b3bbe2e6f4449d96acb0d2d2ad7d15e54a40744cd237c1ef1f1d5b5b291d16c0cde225d4842fb251adecc622cbec095d7fd619e9e338fb68a1cda9e 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" +) |