commit: 2676f6a58b1b1f5dce1f85dc78e083509a7b8e5f Author: Vladislav Mikhailikov <vmikhailikov <AT> gmail <DOT> com> AuthorDate: Sun Jun 1 16:33:33 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Jun 1 18:09:06 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2676f6a5
dev-libs/libnl: add 3.11.0 [sam: Revert to old style. Restore test restriction for now as they still fail for me with the current ebuild state. Keep Python 3.11.] Signed-off-by: Vladislav Mikhailikov <vmikhailikov <AT> gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/42116 Closes: https://github.com/gentoo/gentoo/pull/42116 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-libs/libnl/Manifest | 1 + .../0001-Fix-compilation-error-in-GCC-14.patch | 36 ++++++++++++++++++++++ .../{libnl-9999.ebuild => libnl-3.11.0.ebuild} | 6 +++- dev-libs/libnl/libnl-9999.ebuild | 2 +- 4 files changed, 43 insertions(+), 2 deletions(-) diff --git a/dev-libs/libnl/Manifest b/dev-libs/libnl/Manifest index 96ee31132b19..4f3a214de00c 100644 --- a/dev-libs/libnl/Manifest +++ b/dev-libs/libnl/Manifest @@ -1 +1,2 @@ DIST libnl-3.10.0.tar.gz 1116186 BLAKE2B 13383c4ef49be3bcf89122b24d1d5dc9834353aa7128f04f50993203add14aa7f97a4500164982ddcb82f481f7324a26efc2375036d5a23bfa62b15c4fe07473 SHA512 c95e79fba69308c63a08d0c576503b4398710ea9cd1d0097851500a7fbc5fbe87fb32ac281cf42bbfe57eab07b110055e6bc9b95d82244bba3df8a31fe562962 +DIST libnl-3.11.0.tar.gz 1124072 BLAKE2B 8e2792620f56e1e9e05e4fe1f9bece70938c82c2d1a9f4e0f9de1ce0b1a7a2bf60f31a42e6056407b383875c08c575b26df87b9bd6b421d5053e96983e193c54 SHA512 69ecec6e792fc7b9c443fff8742cf45782af5c5c4664687440942eaeb616ba7b4ed2b606e33c5d86e44e6b49a9c79a1fed4b7c77781a059e13cf6a844d94530e diff --git a/dev-libs/libnl/files/0001-Fix-compilation-error-in-GCC-14.patch b/dev-libs/libnl/files/0001-Fix-compilation-error-in-GCC-14.patch new file mode 100644 index 000000000000..e0efcabb1715 --- /dev/null +++ b/dev-libs/libnl/files/0001-Fix-compilation-error-in-GCC-14.patch @@ -0,0 +1,36 @@ +https://github.com/thom311/libnl/commit/f278e5921498fc635bd9534a3f24979bb1b2849d + +From f278e5921498fc635bd9534a3f24979bb1b2849d Mon Sep 17 00:00:00 2001 +From: Aleksander Mazur <[email protected]> +Date: Sat, 29 Mar 2025 01:34:46 +0100 +Subject: [PATCH] Fix compilation error in GCC 14 + +lib/socket.c: In function '_badrandom_from_time': +lib/socket.c:70:13: error: implicit declaration of function 'time' [-Wimplicit-function-declaration] + 70 | t = time(NULL); + | ^~~~ +lib/socket.c:39:1: note: 'time' is defined in header '<time.h>'; this is probably fixable by adding '#include <time.h>' + 38 | #include "nl-aux-core/nl-core.h" + +++ |+#include <time.h> + 39 | + +https://github.com/thom311/libnl/pull/424 +--- + lib/socket.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/lib/socket.c b/lib/socket.c +index 4e64cbb3..c6200958 100644 +--- a/lib/socket.c ++++ b/lib/socket.c +@@ -23,6 +23,7 @@ + + #include "nl-default.h" + ++#include <time.h> + #include <fcntl.h> + #include <limits.h> + #include <sys/socket.h> +-- +2.49.0 + diff --git a/dev-libs/libnl/libnl-9999.ebuild b/dev-libs/libnl/libnl-3.11.0.ebuild similarity index 96% copy from dev-libs/libnl/libnl-9999.ebuild copy to dev-libs/libnl/libnl-3.11.0.ebuild index b30c49db70f8..dad5eaada213 100644 --- a/dev-libs/libnl/libnl-9999.ebuild +++ b/dev-libs/libnl/libnl-3.11.0.ebuild @@ -8,7 +8,7 @@ EAPI=8 DISTUTILS_EXT=1 DISTUTILS_OPTIONAL=1 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..13} ) +PYTHON_COMPAT=( python3_{11..14} ) inherit autotools distutils-r1 multilib-minimal LIBNL_P=${P/_/-} @@ -67,6 +67,10 @@ MULTILIB_WRAPPED_HEADERS=( /usr/include/libnl3/netlink/cli/utils.h ) +PATCHES=( + "${FILESDIR}"/0001-Fix-compilation-error-in-GCC-14.patch +) + src_prepare() { default diff --git a/dev-libs/libnl/libnl-9999.ebuild b/dev-libs/libnl/libnl-9999.ebuild index b30c49db70f8..fa0d4e1efc44 100644 --- a/dev-libs/libnl/libnl-9999.ebuild +++ b/dev-libs/libnl/libnl-9999.ebuild @@ -8,7 +8,7 @@ EAPI=8 DISTUTILS_EXT=1 DISTUTILS_OPTIONAL=1 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..13} ) +PYTHON_COMPAT=( python3_{11..14} ) inherit autotools distutils-r1 multilib-minimal LIBNL_P=${P/_/-}
