net-dialup/linux-atm: fix build with linux-headers-5.19

Closes: https://bugs.gentoo.org/863677
Suggested-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Signed-off-by: WANG Xuerui <xen0n@gentoo.org>
This commit is contained in:
WANG Xuerui 2022-08-07 12:20:58 +08:00
parent 213c8566d0
commit a041e5a65f
No known key found for this signature in database
GPG Key ID: 83EF2D9C2A5D6927
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,24 @@
linux/atm_zatm.h was removed in >=linux-headers-5.19. As the hardware is
said to be unlikely working on modern systems, just disable its utility
program to keep the rest building.
See: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=052e1f01bfae8be6
--- a/src/maint/Makefile.am
+++ b/src/maint/Makefile.am
@@ -1,5 +1,5 @@
BOOTPGMS=atmaddr esi
-SYSPGMS=atmloop atmtcp enitune zntune hediag # nstune
+SYSPGMS=atmloop atmtcp enitune hediag # nstune zntune
USRPGMS=atmdiag atmdump sonetdiag saaldump
INCLUDES=-I$(srcdir)/../q2931 -I$(srcdir)/../saal -I.
@@ -14,7 +14,7 @@ esi_SOURCES = esi.c
atmloop_SOURCES = atmloop.c
atmtcp_SOURCES = atmtcp.c
enitune_SOURCES = enitune.c
-zntune_SOURCES = zntune.c
+#zntune_SOURCES = zntune.c
#nstune_SOURCES = nstune.c
atmdiag_SOURCES = atmdiag.c

View File

@ -22,6 +22,7 @@ CONFIG_CHECK="~ATM"
PATCHES=(
"${FILESDIR}"/${P}-headers.patch
"${FILESDIR}"/${P}-linux-5.2-SIOCGSTAMP.patch
"${FILESDIR}"/${P}-linux-headers-5.19.patch
)
src_prepare() {