* [gentoo-commits] repo/gentoo:master commit in: app-forensics/honggfuzz/, app-forensics/honggfuzz/files/
@ 2016-11-11 23:03 Sergei Trofimovich
0 siblings, 0 replies; 7+ messages in thread
From: Sergei Trofimovich @ 2016-11-11 23:03 UTC (permalink / raw
To: gentoo-commits
commit: 46ee4b72fa83b9652bf4ac5a92914f7a558b4cab
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 11 23:02:48 2016 +0000
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Fri Nov 11 23:03:20 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46ee4b72
app-forensics/honggfuzz: unbreak --linux_perf_bts_block flag
Workaround --linux_perf_bts_block flag breakage.
Mateusz reports that running honggfuzz fails as:
[2016-11-11T21:54:27+0000][W][1190] arch_perfOpen():223 mmap(mmapAuxBuf) failed,
try increasing the kernel.perf_event_mlock_kb sysctl (up to even 300000000): Cannot allocate memory
It seems aux data also needs WRITE permissions.
Reported-by: Mateusz Lenik
Package-Manager: portage-2.3.2
.../honggfuzz/files/honggfuzz-0.8-bts-perms.patch | 19 ++++++++++
app-forensics/honggfuzz/honggfuzz-0.8-r1.ebuild | 42 ++++++++++++++++++++++
2 files changed, 61 insertions(+)
diff --git a/app-forensics/honggfuzz/files/honggfuzz-0.8-bts-perms.patch b/app-forensics/honggfuzz/files/honggfuzz-0.8-bts-perms.patch
new file mode 100644
index 00000000..e8ac491
--- /dev/null
+++ b/app-forensics/honggfuzz/files/honggfuzz-0.8-bts-perms.patch
@@ -0,0 +1,19 @@
+Workaround --linux_perf_bts_block flag breakage.
+
+Mateusz reports that running honggfuzz fails as:
+ [2016-11-11T21:54:27+0000][W][1190] arch_perfOpen():223 mmap(mmapAuxBuf) failed,
+ try increasing the kernel.perf_event_mlock_kb sysctl (up to even 300000000): Cannot allocate memory
+
+It seems aux data also needs WRITE permissions.
+
+Reported-by: Mateusz Lenik
+diff --git a/linux/perf.c b/linux/perf.c
+index d8ede5f..2f71b3d 100644
+--- a/linux/perf.c
++++ b/linux/perf.c
+@@ -217,3 +217,4 @@ static bool arch_perfOpen(honggfuzz_t * hfuzz, fuzzer_t * fuzzer UNUSED, pid_t p
+ fuzzer->linux.perfMmapAux =
+- mmap(NULL, pem->aux_size, PROT_READ, MAP_SHARED, *perfFd, pem->aux_offset);
++ mmap(NULL, pem->aux_size, PROT_READ | PROT_WRITE, MAP_SHARED, *perfFd, pem->aux_offset);
++
+ if (fuzzer->linux.perfMmapAux == MAP_FAILED) {
diff --git a/app-forensics/honggfuzz/honggfuzz-0.8-r1.ebuild b/app-forensics/honggfuzz/honggfuzz-0.8-r1.ebuild
new file mode 100644
index 00000000..8c9774c
--- /dev/null
+++ b/app-forensics/honggfuzz/honggfuzz-0.8-r1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="A general purpose fuzzer with feedback support"
+HOMEPAGE="http://google.github.io/honggfuzz/"
+SRC_URI="https://github.com/google/honggfuzz/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND="
+ sys-libs/binutils-libs:=
+ sys-libs/libunwind
+"
+
+DEPEND="${RDEPEND}"
+
+DOCS=(
+ CHANGELOG
+ COPYING
+ CONTRIBUTING
+ README.md
+)
+
+PATCHES=("${FILESDIR}"/${P}-bts-perms.patch)
+
+src_compile() {
+ CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" emake
+}
+
+src_install() {
+ dobin ${PN}
+
+ einstalldocs
+}
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-forensics/honggfuzz/, app-forensics/honggfuzz/files/
@ 2017-06-30 21:38 Sergei Trofimovich
0 siblings, 0 replies; 7+ messages in thread
From: Sergei Trofimovich @ 2017-06-30 21:38 UTC (permalink / raw
To: gentoo-commits
commit: 9cf8ef34504bfeddd9c55c3573296a195c2954e0
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 30 21:38:51 2017 +0000
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Fri Jun 30 21:38:51 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9cf8ef34
app-forensics/honggfuzz: drop old
Package-Manager: Portage-2.3.6, Repoman-2.3.2
app-forensics/honggfuzz/Manifest | 3 --
.../honggfuzz/files/honggfuzz-0.8-bts-perms.patch | 19 ----------
app-forensics/honggfuzz/honggfuzz-0.7.ebuild | 39 --------------------
app-forensics/honggfuzz/honggfuzz-0.8-r1.ebuild | 41 ----------------------
app-forensics/honggfuzz/honggfuzz-0.8.ebuild | 39 --------------------
app-forensics/honggfuzz/honggfuzz-0.9.ebuild | 39 --------------------
6 files changed, 180 deletions(-)
diff --git a/app-forensics/honggfuzz/Manifest b/app-forensics/honggfuzz/Manifest
index 60fcd676bc6..bde5d3fd869 100644
--- a/app-forensics/honggfuzz/Manifest
+++ b/app-forensics/honggfuzz/Manifest
@@ -1,5 +1,2 @@
-DIST honggfuzz-0.7.tar.gz 413122 SHA256 611472a453c870165bb44e55900e7709aa4f7bca0159a81fc599cd66d1547d2a SHA512 b0ab50ebae44fe734899a6fd4e6a861ff289ea6f449141fd974a4ad4cc8e12f0b77f7ba9163134668f5401596f2cf179c20d1e97cdc6578282f7c6b6e1c54b57 WHIRLPOOL d6e066efce44c7080467235a12392374da4bab1aa5714de1e7739cc96ecf66d44b97810b5a69b1a939c1194d9e129cc972a440943029d3a468f0946de648940a
-DIST honggfuzz-0.8.tar.gz 432740 SHA256 6bdc09798e7fe69d2c88437b61c3d2ec5be17a8135ddbe8da006373ec0ca492f SHA512 65db9e67fd3ba3303a62c61c05a738dfad71dd3cbef032de8cae0965886887ea11ee3f4011354cf7b40014a8cd02d773ca66a06389cf76b42bdc5a79dbcb1ca1 WHIRLPOOL 33fe61321dc318824385632622d0f10d53dcfb36b0ffb5e43a7f3d051d8b9f2ae11b3d3c35c8f675250c88eaf2af3cd7ffcb7d33f9c18adf6fbea34e6aae3b88
-DIST honggfuzz-0.9.tar.gz 7332175 SHA256 161ad1fab5a677054d54d55a9fc070a2a4cbd26d6794e7fd8fe68db909f433c7 SHA512 d73200994a26afc7c11db4a36b24d4ca90b1994ed088cbe462fcec46d9236d82511e3d3fc440ef44a56ef387683b6dc330b4e104bec8047c2c797681617ad1f4 WHIRLPOOL 4e3d2d8683ce774394a513280902d2285f2262f6a774f04a52de729bfaedb2268d559e01428b7666a436ce5eca12c034ebe0094107a92a2e3db1943d77a99657
DIST honggfuzz-1.0.tar.gz 11705394 SHA256 922af667c2699be4e2a39cb7d2cd6324b9cb27d4817b073b48d43a580074fd4d SHA512 c31a8a252b4a57c7da632bf3ff55a0fe8b5f777bfe5196cd09b2a016bf7ac48413587e3b515d1a7c2a074adc3d8d83f9bfd49cabd881542184b16cf8acd41356 WHIRLPOOL cd9e9222cf622a410d49662f84a62d0cb737fe3cddcb58dec83e19d14d7de75e24a0a23b537f7a5d78520ac6d9438198166e86814aa7c083dad5802df35bd29b
DIST honggfuzz-1.1.tar.gz 11705217 SHA256 e1ddbffc3240b2601c7e997d759c6a89ea69fe619bf59d1d9a58f11205934ee4 SHA512 dad1e763b1a74607995548b7c8a81b930286fc1d403f10fa2e88b165948fb323370233a9969eb972020cfa8782bc8aecd59c905a8ff63f18b0e50fe5b289bcf5 WHIRLPOOL c090c071904fadfbd6c794e0f4445c2b0efc66a5cf4eb6a2ec3427014ae0298a46c4c9cdbcef1bae5d2e1b383a384a98c6d64ca64a5d3c4a127b776cad09cf1b
diff --git a/app-forensics/honggfuzz/files/honggfuzz-0.8-bts-perms.patch b/app-forensics/honggfuzz/files/honggfuzz-0.8-bts-perms.patch
deleted file mode 100644
index e8ac4919e20..00000000000
--- a/app-forensics/honggfuzz/files/honggfuzz-0.8-bts-perms.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-Workaround --linux_perf_bts_block flag breakage.
-
-Mateusz reports that running honggfuzz fails as:
- [2016-11-11T21:54:27+0000][W][1190] arch_perfOpen():223 mmap(mmapAuxBuf) failed,
- try increasing the kernel.perf_event_mlock_kb sysctl (up to even 300000000): Cannot allocate memory
-
-It seems aux data also needs WRITE permissions.
-
-Reported-by: Mateusz Lenik
-diff --git a/linux/perf.c b/linux/perf.c
-index d8ede5f..2f71b3d 100644
---- a/linux/perf.c
-+++ b/linux/perf.c
-@@ -217,3 +217,4 @@ static bool arch_perfOpen(honggfuzz_t * hfuzz, fuzzer_t * fuzzer UNUSED, pid_t p
- fuzzer->linux.perfMmapAux =
-- mmap(NULL, pem->aux_size, PROT_READ, MAP_SHARED, *perfFd, pem->aux_offset);
-+ mmap(NULL, pem->aux_size, PROT_READ | PROT_WRITE, MAP_SHARED, *perfFd, pem->aux_offset);
-+
- if (fuzzer->linux.perfMmapAux == MAP_FAILED) {
diff --git a/app-forensics/honggfuzz/honggfuzz-0.7.ebuild b/app-forensics/honggfuzz/honggfuzz-0.7.ebuild
deleted file mode 100644
index c01b457b31d..00000000000
--- a/app-forensics/honggfuzz/honggfuzz-0.7.ebuild
+++ /dev/null
@@ -1,39 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit toolchain-funcs
-
-DESCRIPTION="A general purpose fuzzer with feedback support"
-HOMEPAGE="http://google.github.io/honggfuzz/"
-SRC_URI="https://github.com/google/honggfuzz/archive/${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE=""
-
-RDEPEND="
- sys-libs/binutils-libs:=
- sys-libs/libunwind
-"
-
-DEPEND="${RDEPEND}"
-
-DOCS=(
- CHANGELOG
- COPYING
- CONTRIBUTING
- README.md
-)
-
-src_compile() {
- emake CC="$(tc-getCC)"
-}
-
-src_install() {
- dobin ${PN}
-
- einstalldocs
-}
diff --git a/app-forensics/honggfuzz/honggfuzz-0.8-r1.ebuild b/app-forensics/honggfuzz/honggfuzz-0.8-r1.ebuild
deleted file mode 100644
index 3c3fa3a03ec..00000000000
--- a/app-forensics/honggfuzz/honggfuzz-0.8-r1.ebuild
+++ /dev/null
@@ -1,41 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit toolchain-funcs
-
-DESCRIPTION="A general purpose fuzzer with feedback support"
-HOMEPAGE="http://google.github.io/honggfuzz/"
-SRC_URI="https://github.com/google/honggfuzz/archive/${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE=""
-
-RDEPEND="
- sys-libs/binutils-libs:=
- sys-libs/libunwind
-"
-
-DEPEND="${RDEPEND}"
-
-DOCS=(
- CHANGELOG
- COPYING
- CONTRIBUTING
- README.md
-)
-
-PATCHES=("${FILESDIR}"/${P}-bts-perms.patch)
-
-src_compile() {
- CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" emake
-}
-
-src_install() {
- dobin ${PN}
-
- einstalldocs
-}
diff --git a/app-forensics/honggfuzz/honggfuzz-0.8.ebuild b/app-forensics/honggfuzz/honggfuzz-0.8.ebuild
deleted file mode 100644
index 9ecb8c835fa..00000000000
--- a/app-forensics/honggfuzz/honggfuzz-0.8.ebuild
+++ /dev/null
@@ -1,39 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit toolchain-funcs
-
-DESCRIPTION="A general purpose fuzzer with feedback support"
-HOMEPAGE="http://google.github.io/honggfuzz/"
-SRC_URI="https://github.com/google/honggfuzz/archive/${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE=""
-
-RDEPEND="
- sys-libs/binutils-libs:=
- sys-libs/libunwind
-"
-
-DEPEND="${RDEPEND}"
-
-DOCS=(
- CHANGELOG
- COPYING
- CONTRIBUTING
- README.md
-)
-
-src_compile() {
- CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" emake
-}
-
-src_install() {
- dobin ${PN}
-
- einstalldocs
-}
diff --git a/app-forensics/honggfuzz/honggfuzz-0.9.ebuild b/app-forensics/honggfuzz/honggfuzz-0.9.ebuild
deleted file mode 100644
index 1e7413dc5fa..00000000000
--- a/app-forensics/honggfuzz/honggfuzz-0.9.ebuild
+++ /dev/null
@@ -1,39 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit toolchain-funcs
-
-DESCRIPTION="A general purpose fuzzer with feedback support"
-HOMEPAGE="http://google.github.io/honggfuzz/"
-SRC_URI="https://github.com/google/honggfuzz/archive/${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE=""
-
-RDEPEND="
- sys-libs/binutils-libs:=
- sys-libs/libunwind
-"
-
-DEPEND="${RDEPEND}"
-
-DOCS=(
- CHANGELOG
- COPYING
- CONTRIBUTING
- README.md
-)
-
-src_compile() {
- CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" emake
-}
-
-src_install() {
- dobin ${PN}
-
- einstalldocs
-}
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-forensics/honggfuzz/, app-forensics/honggfuzz/files/
@ 2018-02-07 22:03 Sergei Trofimovich
0 siblings, 0 replies; 7+ messages in thread
From: Sergei Trofimovich @ 2018-02-07 22:03 UTC (permalink / raw
To: gentoo-commits
commit: 3f7e6a6ad5f14f0d3f00986df2834573d69c3f8d
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 7 22:03:12 2018 +0000
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Wed Feb 7 22:03:25 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f7e6a6a
app-forensics/honggfuzz: drop old
Package-Manager: Portage-2.3.24, Repoman-2.3.6
app-forensics/honggfuzz/Manifest | 3 --
.../honggfuzz/files/honggfuzz-1.0-no-error.patch | 7 ----
app-forensics/honggfuzz/honggfuzz-1.0.ebuild | 43 --------------------
app-forensics/honggfuzz/honggfuzz-1.1.ebuild | 46 ----------------------
app-forensics/honggfuzz/honggfuzz-1.2.ebuild | 46 ----------------------
5 files changed, 145 deletions(-)
diff --git a/app-forensics/honggfuzz/Manifest b/app-forensics/honggfuzz/Manifest
index 5891353a094..2645e75fa37 100644
--- a/app-forensics/honggfuzz/Manifest
+++ b/app-forensics/honggfuzz/Manifest
@@ -1,5 +1,2 @@
-DIST honggfuzz-1.0.tar.gz 11705394 BLAKE2B 1556a5ca9a96f507adfc5d67e43c4ad6175bac790cccdc78d04b42bf5e8691680e945b3bcd70dba7f79a93008aaaf174fcae2096060ed6281d3509909cf21ee3 SHA512 c31a8a252b4a57c7da632bf3ff55a0fe8b5f777bfe5196cd09b2a016bf7ac48413587e3b515d1a7c2a074adc3d8d83f9bfd49cabd881542184b16cf8acd41356
-DIST honggfuzz-1.1.tar.gz 11705217 BLAKE2B f0a1e0dd9a972a6accefd4281deea9d52b80efa6e7429e83e07932ccd975c6e7b2b03ad0bb4c796872a4bc2d896f1748637f432c95c1bf4f9c5c68a3f00ca017 SHA512 dad1e763b1a74607995548b7c8a81b930286fc1d403f10fa2e88b165948fb323370233a9969eb972020cfa8782bc8aecd59c905a8ff63f18b0e50fe5b289bcf5
-DIST honggfuzz-1.2.tar.gz 53810802 BLAKE2B fa57027a7cfeb2f80c9563924acf8046272abab7014efedf719b65086d3fcf421a726dc3aa11eab2d4032a0f8bea3cff3a296301e9006883357795d876ce29a0 SHA512 8c5ccdd78ae4c1861b1cf3ff72177717fb07cf4009d6e93b77e64698f5ff6d1ee1ef6a5b0143483dd7b828b541682065ad218a7853ed050adfabcc77e07a0dd9
DIST honggfuzz-1.3.tar.gz 64461562 BLAKE2B b17271d147bab5d03ed056623760bca84d497871971ca57bb431d0bf7da6e600db0e7435afc214bebbcffa411db8d12659c92ee26cc6ac9dbe6e78825b46f324 SHA512 768ec82088c587858200c02c32c040a37a4ebb8bb21e2c6263f533954f4a4e4733cc61f8c6bc0d393bd49d4658177a80dfbb5a75b5c6de2bc8e95011aaf2cc3c
DIST honggfuzz-1.4.tar.gz 79323662 BLAKE2B 187f87b596f58efd07ad090a4ce5fee6eda84c2e60ebd6fabd4e2c31582eceb34866416ca2645ee16921ad25dd893deb9743b7a247c986a9e332ffbef51b30a0 SHA512 9eaf4cd9cdf9a9bff438b49f9bb2e217d796a072c083174a810a74f08ed02b520565e3cadcb405db86bbdc09588f11962090705a91f32258918628826eb355b7
diff --git a/app-forensics/honggfuzz/files/honggfuzz-1.0-no-error.patch b/app-forensics/honggfuzz/files/honggfuzz-1.0-no-error.patch
deleted file mode 100644
index c7d7f48af54..00000000000
--- a/app-forensics/honggfuzz/files/honggfuzz-1.0-no-error.patch
+++ /dev/null
@@ -1,7 +0,0 @@
-diff --git a/Makefile b/Makefile
-index 378df7d..75a6b71 100644
---- a/Makefile
-+++ b/Makefile
-@@ -30 +30 @@ CC_SRCS := display.c log.c util.c files.c hfuzz_cc/hfuzz-clang.c
--COMMON_CFLAGS := -D_GNU_SOURCE -Wall -Werror -Wframe-larger-than=131072
-+COMMON_CFLAGS := -D_GNU_SOURCE -Wall -Wframe-larger-than=131072
diff --git a/app-forensics/honggfuzz/honggfuzz-1.0.ebuild b/app-forensics/honggfuzz/honggfuzz-1.0.ebuild
deleted file mode 100644
index b87a2be3562..00000000000
--- a/app-forensics/honggfuzz/honggfuzz-1.0.ebuild
+++ /dev/null
@@ -1,43 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit toolchain-funcs
-
-DESCRIPTION="A general purpose fuzzer with feedback support"
-HOMEPAGE="http://google.github.io/honggfuzz/"
-SRC_URI="https://github.com/google/honggfuzz/archive/${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE=""
-
-RDEPEND="
- sys-libs/binutils-libs:=
- sys-libs/libunwind
-"
-
-DEPEND="${RDEPEND}"
-
-PATCHES=(
- "${FILESDIR}"/${PN}-1.0-no-error.patch
-)
-
-DOCS=(
- CHANGELOG
- COPYING
- CONTRIBUTING
- README.md
-)
-
-src_compile() {
- CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" emake
-}
-
-src_install() {
- dobin ${PN}
-
- einstalldocs
-}
diff --git a/app-forensics/honggfuzz/honggfuzz-1.1.ebuild b/app-forensics/honggfuzz/honggfuzz-1.1.ebuild
deleted file mode 100644
index eb072b67c9b..00000000000
--- a/app-forensics/honggfuzz/honggfuzz-1.1.ebuild
+++ /dev/null
@@ -1,46 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit toolchain-funcs
-
-DESCRIPTION="A general purpose fuzzer with feedback support"
-HOMEPAGE="http://google.github.io/honggfuzz/"
-SRC_URI="https://github.com/google/honggfuzz/archive/${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE=""
-
-RDEPEND="
- sys-libs/binutils-libs:=
- sys-libs/libunwind
-"
-
-DEPEND="${RDEPEND}"
-
-DOCS=(
- CHANGELOG
- COPYING
- CONTRIBUTING
- README.md
-)
-
-src_prepare() {
- default
- if has_version ">=sys-libs/binutils-libs-2.29"; then
- eapply "${FILESDIR}"/${PN}-1.1-binutils-2.29.patch
- fi
-}
-
-src_compile() {
- CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" emake
-}
-
-src_install() {
- dobin ${PN}
-
- einstalldocs
-}
diff --git a/app-forensics/honggfuzz/honggfuzz-1.2.ebuild b/app-forensics/honggfuzz/honggfuzz-1.2.ebuild
deleted file mode 100644
index eb072b67c9b..00000000000
--- a/app-forensics/honggfuzz/honggfuzz-1.2.ebuild
+++ /dev/null
@@ -1,46 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit toolchain-funcs
-
-DESCRIPTION="A general purpose fuzzer with feedback support"
-HOMEPAGE="http://google.github.io/honggfuzz/"
-SRC_URI="https://github.com/google/honggfuzz/archive/${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE=""
-
-RDEPEND="
- sys-libs/binutils-libs:=
- sys-libs/libunwind
-"
-
-DEPEND="${RDEPEND}"
-
-DOCS=(
- CHANGELOG
- COPYING
- CONTRIBUTING
- README.md
-)
-
-src_prepare() {
- default
- if has_version ">=sys-libs/binutils-libs-2.29"; then
- eapply "${FILESDIR}"/${PN}-1.1-binutils-2.29.patch
- fi
-}
-
-src_compile() {
- CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" emake
-}
-
-src_install() {
- dobin ${PN}
-
- einstalldocs
-}
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-forensics/honggfuzz/, app-forensics/honggfuzz/files/
@ 2018-11-23 16:18 Sergei Trofimovich
0 siblings, 0 replies; 7+ messages in thread
From: Sergei Trofimovich @ 2018-11-23 16:18 UTC (permalink / raw
To: gentoo-commits
commit: 8c8b2a4bb107b5dc2fbf1648f53a79ec71bc366c
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 23 09:54:21 2018 +0000
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Fri Nov 23 16:18:13 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c8b2a4b
app-forensics/honggfuzz: drop -Werror
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
app-forensics/honggfuzz/files/honggfuzz-1.7-no-werror.patch | 5 +++++
app-forensics/honggfuzz/honggfuzz-1.7.ebuild | 7 ++++++-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/app-forensics/honggfuzz/files/honggfuzz-1.7-no-werror.patch b/app-forensics/honggfuzz/files/honggfuzz-1.7-no-werror.patch
new file mode 100644
index 00000000000..bf4d6537736
--- /dev/null
+++ b/app-forensics/honggfuzz/files/honggfuzz-1.7-no-werror.patch
@@ -0,0 +1,5 @@
+--- a/Makefile
++++ b/Makefile
+@@ -29 +29 @@ HFUZZ_CC_SRCS := hfuzz_cc/hfuzz-cc.c
+-COMMON_CFLAGS := -D_GNU_SOURCE -Wall -Werror -Wno-format-truncation -I.
++COMMON_CFLAGS := -D_GNU_SOURCE -Wall -Wno-format-truncation -I.
diff --git a/app-forensics/honggfuzz/honggfuzz-1.7.ebuild b/app-forensics/honggfuzz/honggfuzz-1.7.ebuild
index a1c990e1022..c41e64b032c 100644
--- a/app-forensics/honggfuzz/honggfuzz-1.7.ebuild
+++ b/app-forensics/honggfuzz/honggfuzz-1.7.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -28,8 +28,13 @@ DOCS=(
README.md
)
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.7-no-werror.patch
+)
+
src_prepare() {
default
+
if has_version ">=sys-libs/binutils-libs-2.29"; then
eapply "${FILESDIR}"/${PN}-1.1-binutils-2.29.patch
fi
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-forensics/honggfuzz/, app-forensics/honggfuzz/files/
@ 2019-12-07 17:23 Sergei Trofimovich
0 siblings, 0 replies; 7+ messages in thread
From: Sergei Trofimovich @ 2019-12-07 17:23 UTC (permalink / raw
To: gentoo-commits
commit: cfd1533e8a1d6615e34038a6b9057385327f8d4a
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 7 17:22:58 2019 +0000
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sat Dec 7 17:23:24 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cfd1533e
app-forensics/honggfuzz: bump up to 2.0
Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
app-forensics/honggfuzz/Manifest | 1 +
.../honggfuzz/files/honggfuzz-2.0-no-werror.patch | 11 ++++++
app-forensics/honggfuzz/honggfuzz-2.0.ebuild | 44 ++++++++++++++++++++++
3 files changed, 56 insertions(+)
diff --git a/app-forensics/honggfuzz/Manifest b/app-forensics/honggfuzz/Manifest
index 126fd2351cf..c08df21a4e8 100644
--- a/app-forensics/honggfuzz/Manifest
+++ b/app-forensics/honggfuzz/Manifest
@@ -1,2 +1,3 @@
DIST honggfuzz-1.8.tar.gz 78491883 BLAKE2B 359bc3c78046bded1003d08795f5c1eb65b2dc9e7e0952bb772d73840c3886acd370bce3973693b45b0db3607bb8b5c3a648dbbad5e6b8278000762f126731e5 SHA512 4643deca357dccaa6f229b6c56a040b6b16682a3de7396dcbecb7fba6075beef8381a8c4699b602c8677e06e90b7c870393b027126242fcc326c485b741352f0
DIST honggfuzz-1.9.tar.gz 78491908 BLAKE2B 961562d87e063804cb6a91d6ba0cffd0a4c3b3cb140f93a9362bd6749b8da251f7203e9ff7643bbad561620a8fdb9ca755758beb45fc46194c5907ecafcf0d2a SHA512 07ee10de723b14bc8ed9df9de196bcf308d8c10a825ba18b20d4f881d22c4254a45455bcbf965653572d9f71b2bff009284a34d0d5a6f879114b149b456c2eda
+DIST honggfuzz-2.0.tar.gz 65205954 BLAKE2B fb01fdb12cd5bf9a7c316c9df3a4ac9eb91ee535cbcdbb93436e7abcb81405a3af0fb5140b935abe44d11f5917f6f5189d697e86d3e81abfd9da38db2f899c36 SHA512 91e633ffe439aae6cb944f71cd5998f8adc2f1e6892c17b6d7876d707b3f167008a0574ad4b5671b82371cbe21e6c536acb148c0b844665fb3789c5e7fda52ba
diff --git a/app-forensics/honggfuzz/files/honggfuzz-2.0-no-werror.patch b/app-forensics/honggfuzz/files/honggfuzz-2.0-no-werror.patch
new file mode 100644
index 00000000000..c5d6b806045
--- /dev/null
+++ b/app-forensics/honggfuzz/files/honggfuzz-2.0-no-werror.patch
@@ -0,0 +1,11 @@
+--- a/Makefile
++++ b/Makefile
+@@ -26,7 +26,7 @@ LD = $(CC)
+ BIN := honggfuzz
+ HFUZZ_CC_BIN := hfuzz_cc/hfuzz-cc
+ HFUZZ_CC_SRCS := hfuzz_cc/hfuzz-cc.c
+-COMMON_CFLAGS := -std=c11 -I/usr/local/include -D_GNU_SOURCE -Wall -Wextra -Werror -Wno-format-truncation -Wno-override-init -I.
++COMMON_CFLAGS := -std=c11 -I/usr/local/include -D_GNU_SOURCE -Wall -Wextra -Wno-format-truncation -Wno-override-init -I.
+ COMMON_LDFLAGS := -pthread -lm
+ COMMON_SRCS := $(sort $(wildcard *.c))
+ CFLAGS ?= -O3 -mtune=native -funroll-loops
diff --git a/app-forensics/honggfuzz/honggfuzz-2.0.ebuild b/app-forensics/honggfuzz/honggfuzz-2.0.ebuild
new file mode 100644
index 00000000000..c6f560e1a1e
--- /dev/null
+++ b/app-forensics/honggfuzz/honggfuzz-2.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+DESCRIPTION="A general purpose fuzzer with feedback support"
+HOMEPAGE="http://google.github.io/honggfuzz/"
+SRC_URI="https://github.com/google/honggfuzz/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND="
+ >=sys-libs/binutils-libs-2.29:=
+ sys-libs/libunwind:=
+"
+
+DEPEND="${RDEPEND}"
+
+DOCS=(
+ CHANGELOG
+ COPYING
+ CONTRIBUTING
+ README.md
+)
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.0-no-werror.patch
+ "${FILESDIR}"/${PN}-1.1-binutils-2.29.patch
+)
+
+src_compile() {
+ CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" emake
+}
+
+src_install() {
+ dobin ${PN}
+
+ einstalldocs
+}
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-forensics/honggfuzz/, app-forensics/honggfuzz/files/
@ 2021-11-29 19:33 Marek Szuba
0 siblings, 0 replies; 7+ messages in thread
From: Marek Szuba @ 2021-11-29 19:33 UTC (permalink / raw
To: gentoo-commits
commit: ad8f95bc0feb13a824d6287f63960e842c3d8679
Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 29 19:32:37 2021 +0000
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Mon Nov 29 19:33:49 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad8f95bc
app-forensics/honggfuzz: fix building against musl
With many thanks to sam for having pointed me to queue-standalone!
Closes: https://bugs.gentoo.org/715648
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
| 45 ++++++++++++++++++++++
app-forensics/honggfuzz/honggfuzz-2.4.ebuild | 6 ++-
2 files changed, 49 insertions(+), 2 deletions(-)
--git a/app-forensics/honggfuzz/files/honggfuzz-2.4-headers-musl.patch b/app-forensics/honggfuzz/files/honggfuzz-2.4-headers-musl.patch
new file mode 100644
index 000000000000..e70d6eae4eaf
--- /dev/null
+++ b/app-forensics/honggfuzz/files/honggfuzz-2.4-headers-musl.patch
@@ -0,0 +1,45 @@
+From 29864795b194481dd0446326cda89b9802f4fe51 Mon Sep 17 00:00:00 2001
+From: David Carlier <devnexen@gmail.com>
+Date: Sat, 8 May 2021 11:23:32 +0100
+Subject: [PATCH] musl build fix proposal
+
+--- a/linux/arch.c
++++ b/linux/arch.c
+@@ -34,7 +34,9 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#if defined(__GLIBC__)
+ #include <sys/cdefs.h>
++#endif
+ #include <sys/personality.h>
+ #include <sys/prctl.h>
+ #include <sys/syscall.h>
+--- a/linux/perf.c
++++ b/linux/perf.c
+@@ -30,12 +30,12 @@
+ #include <linux/hw_breakpoint.h>
+ #include <linux/perf_event.h>
+ #include <linux/sysctl.h>
++#include <poll.h>
+ #include <signal.h>
+ #include <stdlib.h>
+ #include <string.h>
+ #include <sys/ioctl.h>
+ #include <sys/mman.h>
+-#include <sys/poll.h>
+ #include <sys/ptrace.h>
+ #include <sys/syscall.h>
+ #include <unistd.h>
+--- a/linux/trace.c
++++ b/linux/trace.c
+@@ -34,7 +34,9 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#if defined(__GLIBC__)
+ #include <sys/cdefs.h>
++#endif
+ #include <sys/personality.h>
+ #include <sys/ptrace.h>
+ #include <sys/resource.h>
diff --git a/app-forensics/honggfuzz/honggfuzz-2.4.ebuild b/app-forensics/honggfuzz/honggfuzz-2.4.ebuild
index e73640196eb9..5220a5f4c483 100644
--- a/app-forensics/honggfuzz/honggfuzz-2.4.ebuild
+++ b/app-forensics/honggfuzz/honggfuzz-2.4.ebuild
@@ -12,7 +12,7 @@ SRC_URI="https://github.com/google/honggfuzz/archive/${PV}.tar.gz -> ${P}.tar.gz
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
-IUSE="clang"
+IUSE="clang elibc_musl"
RDEPEND="
>=sys-libs/binutils-libs-2.29:=
@@ -21,7 +21,8 @@ RDEPEND="
clang? ( sys-libs/blocksruntime )
"
-DEPEND="${RDEPEND}"
+DEPEND="${RDEPEND}
+ elibc_musl? ( sys-libs/queue-standalone )"
DOCS=(
CHANGELOG
@@ -32,6 +33,7 @@ DOCS=(
PATCHES=(
"${FILESDIR}"/${PN}-2.0-no-werror.patch
+ "${FILESDIR}"/${PN}-2.4-headers-musl.patch
)
pkg_pretend() {
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-forensics/honggfuzz/, app-forensics/honggfuzz/files/
@ 2022-09-19 20:39 Marek Szuba
0 siblings, 0 replies; 7+ messages in thread
From: Marek Szuba @ 2022-09-19 20:39 UTC (permalink / raw
To: gentoo-commits
commit: c882ddbf58031c073f6cfd1ae77063cc7542cf89
Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 19 20:36:53 2022 +0000
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Mon Sep 19 20:39:10 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c882ddbf
app-forensics/honggfuzz: support binutils-2.39
Backported upstream fix from their git master.
Closes: https://bugs.gentoo.org/868126
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
.../files/honggfuzz-2.5_binutils239.patch | 51 ++++++++++++++++++++++
...onggfuzz-2.5.ebuild => honggfuzz-2.5-r1.ebuild} | 3 +-
2 files changed, 53 insertions(+), 1 deletion(-)
diff --git a/app-forensics/honggfuzz/files/honggfuzz-2.5_binutils239.patch b/app-forensics/honggfuzz/files/honggfuzz-2.5_binutils239.patch
new file mode 100644
index 000000000000..af574bc495a0
--- /dev/null
+++ b/app-forensics/honggfuzz/files/honggfuzz-2.5_binutils239.patch
@@ -0,0 +1,51 @@
+From 23c3da7ea63e4a841fa0e181d173e16b437adff0 Mon Sep 17 00:00:00 2001
+From: Robert Swiecki <robert@swiecki.net>
+Date: Thu, 2 Jun 2022 23:17:49 +0200
+Subject: [PATCH] Always pass 4 arguments to init_disassemble_info(), no matter
+ what's the declaration. binutils/libopcode offers an unstable interface
+
+---
+ linux/bfd.c | 23 +++++++++++++++++++++--
+ 1 file changed, 21 insertions(+), 2 deletions(-)
+
+diff --git a/linux/bfd.c b/linux/bfd.c
+index 228365f69..236f050ec 100644
+--- a/linux/bfd.c
++++ b/linux/bfd.c
+@@ -197,6 +197,24 @@ static int arch_bfdFPrintF(void* buf, const char* fmt, ...) {
+ return ret;
+ }
+
++static int arch_bfdFPrintFStyled(void* buf, int style HF_ATTR_UNUSED, const char* fmt, ...) {
++ va_list args;
++ va_start(args, fmt);
++ int ret = util_vssnprintf(buf, _HF_INSTR_SZ, fmt, args);
++ va_end(args);
++
++ return ret;
++}
++
++/*
++ * binutils/libopcode has an unstable public interface. At some point in time the function
++ * init_disassemble_info() started taking 4 arguments instead of 3. Always pass 4 arguments to it,
++ * no matter what's the declaration.
++ */
++static void arch_bfdInitDisassembleInfoStub(
++ struct disassemble_info* info, char* instr, void* bfd_printf_func, void* bfd_printf_styled_func)
++ __attribute__((weakref, alias("init_disassemble_info")));
++
+ void arch_bfdDisasm(pid_t pid, uint8_t* mem, size_t size, char* instr) {
+ MX_SCOPED_LOCK(&arch_bfd_mutex);
+
+@@ -227,8 +245,9 @@ void arch_bfdDisasm(pid_t pid, uint8_t* mem, size_t size, char* instr) {
+ return;
+ }
+
+- struct disassemble_info info;
+- init_disassemble_info(&info, instr, arch_bfdFPrintF);
++ struct disassemble_info info = {};
++
++ arch_bfdInitDisassembleInfoStub(&info, instr, arch_bfdFPrintF, arch_bfdFPrintFStyled);
+ info.arch = bfd_get_arch(bfdh);
+ info.mach = bfd_get_mach(bfdh);
+ info.buffer = mem;
diff --git a/app-forensics/honggfuzz/honggfuzz-2.5.ebuild b/app-forensics/honggfuzz/honggfuzz-2.5-r1.ebuild
similarity index 92%
rename from app-forensics/honggfuzz/honggfuzz-2.5.ebuild
rename to app-forensics/honggfuzz/honggfuzz-2.5-r1.ebuild
index 69db69f71a79..54fe2dc7889f 100644
--- a/app-forensics/honggfuzz/honggfuzz-2.5.ebuild
+++ b/app-forensics/honggfuzz/honggfuzz-2.5-r1.ebuild
@@ -15,7 +15,7 @@ KEYWORDS="~amd64"
IUSE="clang"
RDEPEND="
- <sys-libs/binutils-libs-2.39:=
+ >=sys-libs/binutils-libs-2.29:=
sys-libs/libunwind:=
app-arch/xz-utils
clang? ( sys-libs/blocksruntime )
@@ -33,6 +33,7 @@ DOCS=(
PATCHES=(
"${FILESDIR}"/${PN}-2.0-no-werror.patch
+ "${FILESDIR}"/${PN}-2.5_binutils239.patch
)
pkg_pretend() {
^ permalink raw reply related [flat|nested] 7+ messages in thread
end of thread, other threads:[~2022-09-19 20:39 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-07 22:03 [gentoo-commits] repo/gentoo:master commit in: app-forensics/honggfuzz/, app-forensics/honggfuzz/files/ Sergei Trofimovich
-- strict thread matches above, loose matches on Subject: below --
2022-09-19 20:39 Marek Szuba
2021-11-29 19:33 Marek Szuba
2019-12-07 17:23 Sergei Trofimovich
2018-11-23 16:18 Sergei Trofimovich
2017-06-30 21:38 Sergei Trofimovich
2016-11-11 23:03 Sergei Trofimovich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox