diff options
Diffstat (limited to 'app-misc/bfr')
-rw-r--r-- | app-misc/bfr/Manifest | 3 | ||||
-rw-r--r-- | app-misc/bfr/bfr-1.6-r6.ebuild | 33 | ||||
-rw-r--r-- | app-misc/bfr/files/bfr-1.6-bools.patch | 29 | ||||
-rw-r--r-- | app-misc/bfr/files/bfr-1.6-musl-include.patch | 12 |
4 files changed, 77 insertions, 0 deletions
diff --git a/app-misc/bfr/Manifest b/app-misc/bfr/Manifest index c33fad3cc6f3..a24afbf5e404 100644 --- a/app-misc/bfr/Manifest +++ b/app-misc/bfr/Manifest @@ -1,5 +1,8 @@ +AUX bfr-1.6-bools.patch 732 BLAKE2B 190ec7242962041e18e295a76323000ccfca91fe7fea58882445a1b3d4b088e676c4eb2b81d2634966885aeccf3bc35f840a93fc9631ee0f4a6b09a2328c1f68 SHA512 b8a15f939c41346757b0c9e075b39098387d07d7add2027e075d47d28ff79d9b7c299fbb599b8f7b3b173fa6ebcd2b5b20648664fe282fddd49b4d57de8da96e AUX bfr-1.6-long-types.patch 3638 BLAKE2B 251050b40495293b2ed9c3a27b12584a9556a92194338714294129cf74faa5e5cc45e1f139da7ebff4322750593a9b3a04c2190edff6acf81e34d65df6b8d084 SHA512 dd9067e5d8cc323f069bb1f7e6866a1948a6426ac71541e0855d7a2ce595aa4ffcc49f78413604b86c7b871d5788339382b89136a7a8628ba320b8288244c5f0 +AUX bfr-1.6-musl-include.patch 311 BLAKE2B 0d6490f304836c290dfcb0125380743571cc49ae896a31174df3f8829a9f1ec8a604958984ed2e45cc67c591284f69eb7c2d9abd02b05f6b688c1ef4860d2728 SHA512 532107cb335e9e1ba9664e0fa6be0db458400a0c5e4594308570af37ed5f807e0b538c43c1e4cb05b8490b2de15e93cb35f60860795c489cb68853bb41208886 AUX bfr-1.6-perl.patch 326 BLAKE2B b5e5273b8cd5e198d5c3dd76740d7d3e8588571e29822095ffe3b0eb50a85d6422163aca0774d8de955c64bf066ffc445d3e140eb5dcb4d06e39274c07e8e6fe SHA512 8f65f5113b60a6cbe692b9b2cbf02a7a7b3f046a6a5203cc05cae7a08e1344afd5ababa41608d334d5d1f04afb0eb2bf705622056c5620626805eec41351ffc3 DIST bfr-1.6.tar.bz2 81002 BLAKE2B 24339eb7e882ca319b29a2a5e033ccfd6a0abe920572d4f023b4ad0321e2e9ce3096c3aba317bada297f9d17bbe368edf08cddd903377e99f5cc2a1dda7261ea SHA512 19939218029219cc328e3efb8e799bb8c755ccff7b8cb81ba0c735d499a48f581aa42322045fdbd153dcfdb8792e84d9fddbfba9e9c5d94675e2830163936762 EBUILD bfr-1.6-r5.ebuild 613 BLAKE2B efa8eb587e4b3e7ddc5e298fc578f981b8a86ae77d172781c520cd8ce4d893ee70cb2c95976410126d7cd1f54be6b9eb4509de69c40473cf2349ba126f6fa008 SHA512 a59d580c1febccb40c3f8171999c339f7d3e0f66fd31664aa217533b73fdc9eacbe1c5321f68cff278bbd065da46f39386d1f23e04bfdf5062b3e06bf0254ab7 +EBUILD bfr-1.6-r6.ebuild 688 BLAKE2B 5ef1cb33e3c92adcbc5538e6e53cd96783f564a473300ce088221e0fb5f5cda8f724aae34177db074f7b6fe17fcd6613812d2919b181a4414b0492b5cbc50814 SHA512 4c4851b79d2ed4134a2984ea7d76a0f0c23167921acb19b823434790caeecc5c8c7c1ddbcce9f0b1897fd26c01fe2373c6037794a5084e3b149bf6e24cbedb22 MISC metadata.xml 272 BLAKE2B a253052dbe7dfd2dea2cdc3692698a5a94d0e2414979a348d56448cee6329b7fe29a1f252146f9ff04c1ea3b270996631395ecea454ac901eb726dc0b4dd9f29 SHA512 247c1006dd352c3cc7ee07dee2f283394767bdc0f72f0438a6cc845ac53549c05b3741c64ffedb992f003759e67f24aaa7121561db97d1b095c11269115746dc diff --git a/app-misc/bfr/bfr-1.6-r6.ebuild b/app-misc/bfr/bfr-1.6-r6.ebuild new file mode 100644 index 000000000000..dcb4d1e2571d --- /dev/null +++ b/app-misc/bfr/bfr-1.6-r6.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools toolchain-funcs + +DESCRIPTION="General-purpose command-line pipe buffer" +HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage" +SRC_URI="http://www.glines.org/bin/pk/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" + +BDEPEND="dev-lang/perl" + +PATCHES=( + "${FILESDIR}"/${P}-perl.patch + "${FILESDIR}"/${P}-long-types.patch + "${FILESDIR}"/${P}-bools.patch + "${FILESDIR}"/${P}-musl-include.patch +) + +src_prepare() { + default + eautoreconf # uses old broken checks for compiler, bug #874519 +} + +src_configure() { + tc-export CC + default +} diff --git a/app-misc/bfr/files/bfr-1.6-bools.patch b/app-misc/bfr/files/bfr-1.6-bools.patch new file mode 100644 index 000000000000..e1d7ed1e34ba --- /dev/null +++ b/app-misc/bfr/files/bfr-1.6-bools.patch @@ -0,0 +1,29 @@ +Uses bools for enabling/disabling debug. +Switch from self-defined to system version. +https://bugs.gentoo.org/944302 +--- a/bfr.h ++++ b/bfr.h +@@ -9,6 +9,7 @@ + #include <unistd.h> + #include <fcntl.h> + #include <errno.h> ++#include <stdbool.h> + #ifdef BUFPLAY + #include <sys/mman.h> + #endif +@@ -17,14 +18,13 @@ + # include "config.h" + #endif + +-typedef enum {false, true} logical; + typedef enum { IN, RO, BF, WO, RW } state; + + #ifndef DEBUG + # define debug(args...) + #else + # define debug(args...) if(dodebug==true) { fprintf(stderr, ## args); } +-logical dodebug; ++bool dodebug; + #endif + #define verbose(args...) if(verbose >= 1) { fprintf(stderr, ## args); } + #define vverbose(args...) if(verbose >= 2) { fprintf(stderr, ## args); } diff --git a/app-misc/bfr/files/bfr-1.6-musl-include.patch b/app-misc/bfr/files/bfr-1.6-musl-include.patch new file mode 100644 index 000000000000..fa56a0cc186e --- /dev/null +++ b/app-misc/bfr/files/bfr-1.6-musl-include.patch @@ -0,0 +1,12 @@ +Missing include for strcmp +https://bugs.gentoo.org/942415 +--- a/getopt.c ++++ b/getopt.c +@@ -52,6 +52,7 @@ + #endif + + #include <stdio.h> ++#include <string.h> + + /* Comment out all this code if we are using the GNU C Library, and are not + actually compiling the library itself. This code is part of the GNU C |