mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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@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@gentoo.org>
This commit is contained in:
32
net-wireless/bss/bss-0.8-r3.ebuild
Normal file
32
net-wireless/bss/bss-0.8-r3.ebuild
Normal file
@@ -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
|
||||
}
|
||||
@@ -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)
|
||||
|
||||
24
net-wireless/bss/files/bss-0.8-includes.patch
Normal file
24
net-wireless/bss/files/bss-0.8-includes.patch
Normal file
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user