mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2024-09-20 11:23:16 +00:00
main/iproute2: fix build with gcc 14
This commit is contained in:
parent
999fda402a
commit
3b5e15051c
2 changed files with 38 additions and 2 deletions
|
@ -0,0 +1,33 @@
|
|||
From 1ee98e3025a8d8738e4f5d14ec6d6fb661ff1488 Mon Sep 17 00:00:00 2001
|
||||
From: Natanael Copa <ncopa@alpinelinux.org>
|
||||
Date: Thu, 8 Aug 2024 09:13:26 +0200
|
||||
Subject: [PATCH] libnetlink: fix build with musl and gcc 14
|
||||
|
||||
Fixes compilation error with musl libc and gcc 14:
|
||||
|
||||
../include/libnetlink.h: In function 'rta_getattr_be64':
|
||||
../include/libnetlink.h:280:16: error: implicit declaration of function 'htobe64' [-Wimplicit-function-declaration]
|
||||
280 | return htobe64(rta_getattr_u64(rta));
|
||||
| ^~~~~~~
|
||||
|
||||
Reference: https://man7.org/linux/man-pages/man3/endian.3.html
|
||||
Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
|
||||
---
|
||||
include/libnetlink.h | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/include/libnetlink.h b/include/libnetlink.h
|
||||
index 30f0c2d2..0139efa0 100644
|
||||
--- a/include/libnetlink.h
|
||||
+++ b/include/libnetlink.h
|
||||
@@ -2,6 +2,7 @@
|
||||
#ifndef __LIBNETLINK_H__
|
||||
#define __LIBNETLINK_H__ 1
|
||||
|
||||
+#include <endian.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <asm/types.h>
|
||||
--
|
||||
2.46.0
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
||||
pkgname=iproute2
|
||||
pkgver=6.10.0
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="IP Routing Utilities"
|
||||
url="https://wiki.linuxfoundation.org/networking/iproute2"
|
||||
arch="all"
|
||||
|
@ -31,7 +31,9 @@ subpackages="
|
|||
$pkgname-rdma
|
||||
"
|
||||
source="https://kernel.org/pub/linux/utils/net/iproute2/iproute2-$pkgver.tar.xz
|
||||
basename.patch"
|
||||
0001-libnetlink-fix-build-with-musl-and-gcc-14.patch
|
||||
basename.patch
|
||||
"
|
||||
options="!check" # requires namespaces support and root
|
||||
|
||||
# secfixes:
|
||||
|
@ -89,5 +91,6 @@ rdma() {
|
|||
|
||||
sha512sums="
|
||||
706479aa37a25fcf30c525c6abd85e0861e484d046e0636a28dbc52b958d45c9dba70b912f530dedd4b0b496e4b98969e23501bbbb41d3de50810bae014fcb41 iproute2-6.10.0.tar.xz
|
||||
2e2cb5ee73ac5eda619d64c63f6b05e145e0f5cfd4dfd03c4642469d125959717fde78ccf56013ae94a0172be71d193994b4cea997c5be5a08c0e514b53ae34c 0001-libnetlink-fix-build-with-musl-and-gcc-14.patch
|
||||
7d38eddfc55a2c02b92a05597d9ff66607a35565caadc788b09ac729e9c3539c7535165265d6a0fa3ed30348cb069b37beb01d212196f36a4ec0b3b23579f17c basename.patch
|
||||
"
|
||||
|
|
Loading…
Reference in a new issue