commit: a0684d40405468ce7d5282805bc8c5a2dab2b159 Author: NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com> AuthorDate: Fri Mar 28 20:19:55 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Apr 24 19:11:26 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0684d40
net-wireless/bss: update EAPI 7 -> 8, fix build with C23 compilers Added missing includes. Makefile hardcodes BINPATH, ETCPATH, but uses only BINPATH and only for make install we install with portage machinery, not with make install Closes: https://bugs.gentoo.org/880799 Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com> Part-of: https://github.com/gentoo/gentoo/pull/41355 Closes: https://github.com/gentoo/gentoo/pull/41355 Signed-off-by: Sam James <sam <AT> gentoo.org> net-wireless/bss/bss-0.8-r3.ebuild | 32 +++++++++++++++++++++++++++ net-wireless/bss/files/bss-0.8-Makefile.patch | 3 ++- net-wireless/bss/files/bss-0.8-includes.patch | 24 ++++++++++++++++++++ 3 files changed, 58 insertions(+), 1 deletion(-) diff --git a/net-wireless/bss/bss-0.8-r3.ebuild b/net-wireless/bss/bss-0.8-r3.ebuild new file mode 100644 index 000000000000..436babb34ec3 --- /dev/null +++ b/net-wireless/bss/bss-0.8-r3.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Bluetooth stack smasher / fuzzer" +HOMEPAGE="http://securitech.homeunix.org/blue/" +SRC_URI="http://securitech.homeunix.org/blue/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" + +DEPEND="net-wireless/bluez" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}"/${P}-Makefile.patch + "${FILESDIR}"/${P}-includes.patch +) + +src_configure() { + tc-export CC +} + +src_install() { + dosbin bss + dodoc AUTHOR BUGS CHANGELOG CONTRIB NOTES README TODO \ + replay_packet/replay_l2cap_packet.c +} diff --git a/net-wireless/bss/files/bss-0.8-Makefile.patch b/net-wireless/bss/files/bss-0.8-Makefile.patch index 6238ea6ae912..7f4380882732 100644 --- a/net-wireless/bss/files/bss-0.8-Makefile.patch +++ b/net-wireless/bss/files/bss-0.8-Makefile.patch @@ -1,3 +1,4 @@ +Make build system respect CFLAGS and PREFIX https://bugs.gentoo.org/725228 --- a/Makefile +++ b/Makefile @@ -25,7 +26,7 @@ https://bugs.gentoo.org/725228 - $(CC) -c $(L2P_SRC) - $(CC) -c $(REP_SRC) - $(CC) $(BSS_TMP) $(L2P_TMP) $(REP_TMP) -o $(BSS_OBJ) $(CFLAGS) $(BSS_FLAGS) $(BSS_LIBS) -+ $(CC) $(CFLAGS) $(CPPFLAGS) -c $(BSS_SRC) ++ $(CC) $(CFLAGS) $(CPPFLAGS) -c $(BSS_SRC) + $(CC) $(CFLAGS) $(CPPFLAGS) -c $(L2P_SRC) + $(CC) $(CFLAGS) $(CPPFLAGS) -c $(REP_SRC) + $(CC) $(LDFLAGS) $(BSS_TMP) $(L2P_TMP) $(REP_TMP) -o $(BSS_OBJ) $(CFLAGS) $(BSS_LIBS) diff --git a/net-wireless/bss/files/bss-0.8-includes.patch b/net-wireless/bss/files/bss-0.8-includes.patch new file mode 100644 index 000000000000..e781484c3423 --- /dev/null +++ b/net-wireless/bss/files/bss-0.8-includes.patch @@ -0,0 +1,24 @@ +Add missing includes for compilation with C23 +https://bugs.gentoo.org/880799 +diff '--color=auto' -ru bss-0.8.old/bss.c bss-0.8/bss.c +--- a/bss.c 2025-03-28 23:12:14.780857512 +0300 ++++ b/bss.c 2025-03-28 23:13:44.003579006 +0300 +@@ -34,6 +34,7 @@ + #include <stdio.h> + #include <string.h> + #include <stdlib.h> ++#include <time.h> + #include <unistd.h> + #include <sys/types.h> + #include <sys/socket.h> +diff '--color=auto' -ru bss-0.8.old/replace.c bss-0.8/replace.c +--- a/replace.c 2025-03-28 23:12:14.780857512 +0300 ++++ b/replace.c 2025-03-28 23:14:07.107852000 +0300 +@@ -10,6 +10,7 @@ + // Modifications by Ollie Whitehouse <ol at uncon dot org> + // + #include <stdio.h> ++#include <string.h> + + char *replace(char *string, char *oldpiece, char *newpiece) { +
