Files
packages/net/gnunet/patches/0001-meson-convert-SQLite-version-detection-to-compile-ti.patch
Daniel Golle f24c97fff8 gnunet: update to version 0.25.1
GNUnet 0.25 dropped the autotools based build system and now requires
being built with Meson. As expected there are some cross-compiling
related issues which have been fixed using downstream patches by now.

v0.25.1:
  - transport: hotfix incorrect communicator key derivations
  - tests: make failing tests work again
  - util: Change to assigned HPKE codepoint for DHKEM+Elligator. See https://www.iana.org/assignments/hpke/
  - fs: service failed to start because of PILS addition

v0.25.0:
  - util: Removed authkem from HPKE implementation as it is going to be removed from the RFC9180bis spec and is unused in GNUnet anyway.
  - core: New AKE implementation.
  - pils: New service.
  - gns: Various improvements to performance and DNS migration tooling.
  - build: Retired autotools.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2025-10-11 16:51:00 +01:00

36 lines
1.1 KiB
Diff

From 05ec421a2f72f4fd63702959d677e9a7ac538d80 Mon Sep 17 00:00:00 2001
From: Daniel Golle <daniel@makrotopia.org>
Date: Fri, 10 Oct 2025 00:44:56 +0100
Subject: [PATCH 1/8] meson: convert SQLite version detection to compile-time
test
Use compile-time test instead of relying on testing the SQLite version
at runtime. This is done to make cross-compilation possible again.
---
meson.build | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
--- a/meson.build
+++ b/meson.build
@@ -175,14 +175,17 @@ if not sqlite_dep.found()
sqlite_dep = cc.find_library('sqlite3', required: true)
sqlite_version_check = '''#include <sqlite3.h>
int main(int argc, char **argv) {
- return (SQLITE_VERSION_NUMBER >= 3035000) ? 0 : 1;
+ #if SQLITE_VERSION_NUMBER < 3035000
+ #error "SQLite version >= 3.35.0 required"
+ #endif
+ return 0;
}
'''
- if cc.run(
+ if not cc.compiles(
sqlite_version_check,
name: 'sqlite version check',
dependencies: sqlite_dep,
- ).returncode() != 0
+ )
error('Sqlite version >= 3.35.0 requried')
endif
endif