leancrypto: Upgrade to 1.7.0

- Fix absolute paths in debug info for reproducible builds ( Thanks Gyorgy for suggestion)
- Drop upstreamed patch
- Changelog - https://github.com/smuellerDD/leancrypto/releases/tag/v1.7.0

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
Khem Raj
2026-03-24 09:08:28 -07:00
parent d0632021f7
commit a36cf132dd
2 changed files with 5 additions and 45 deletions
@@ -1,40 +0,0 @@
From 5a3c770b24a40a4e32154f25fdba3b685b0221d2 Mon Sep 17 00:00:00 2001
From: Ayoub Zaki <ayoub.zaki@embetrix.com>
Date: Thu, 19 Mar 2026 09:29:10 +0100
Subject: [PATCH] fix: strip absolute build paths from DWARF debug info for
reproducible builds
Upstream-Status: Backport [https://github.com/smuellerDD/leancrypto/commit/6561beeadf7376cc0815d937ee8d231a3bbbcba8]
Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Ayoub Zaki <ayoub.zaki@embetrix.com>
---
meson.build | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/meson.build b/meson.build
index 03616319..ba9bbcbd 100644
--- a/meson.build
+++ b/meson.build
@@ -121,6 +121,19 @@ endif
if get_option('dilithium_debug').enabled()
add_global_arguments([ '-DLC_DILITHIUM_DEBUG' ], language: 'c')
endif
+
+# Strip build directory paths from debug info to avoid buildpaths warnings
+# in debug packages
+if cc.has_argument('-ffile-prefix-map=/dev/null=/dev/null')
+ add_global_arguments([
+ '-ffile-prefix-map=' + meson.project_source_root() + '/=',
+ '-ffile-prefix-map=' + meson.project_build_root() + '/=',
+ ], language: 'c')
+ add_project_link_arguments([
+ '-ffile-prefix-map=' + meson.project_source_root() + '/=',
+ '-ffile-prefix-map=' + meson.project_build_root() + '/=',
+ ], language : 'c')
+endif
if get_option('kyber_debug').enabled()
add_global_arguments([ '-DLC_KYBER_DEBUG' ], language: 'c')
endif
--
2.43.0
@@ -6,21 +6,21 @@ ML-KEM (Kyber), ML-DSA (Dilithium), SLH-DSA (Sphincs+) and many more"
HOMEPAGE = "https://leancrypto.org"
LICENSE = "BSD-3-Clause | GPL-2.0-only"
LIC_FILES_CHKSUM = " \
file://LICENSE;md5=7e96f38306550c165071e7cab7b6b824 \
file://LICENSE;md5=4cc9ea7ae2518fb4fb0bbd9d1a60cbf4 \
file://LICENSE.bsd;md5=66a5cedaf62c4b2637025f049f9b826f \
file://LICENSE.gplv2;md5=eb723b61539feef013de476e68b5c50a \
"
SECTION = "libs"
SRC_URI = "git://github.com/smuellerDD/leancrypto.git;branch=master;protocol=https \
file://0001-fix-strip-absolute-build-paths-from-DWARF-debug-info.patch \
SRC_URI = "git://github.com/smuellerDD/leancrypto.git;branch=master;protocol=https;tag=v${PV} \
file://leancrypto-tests.sh \
"
# SRCREV tagged v1.6.0
SRCREV = "38215249fbe3951d1992b12447fca3c0c5e7e245"
# SRCREV tagged v1.7.0
SRCREV = "e60fba94e8cabf1661a1da488b78b84a4fba56e9"
inherit pkgconfig meson
EXTRA_OEMESON = "-Dstrip=false"
TARGET_LDFLAGS:append = " ${DEBUG_PREFIX_MAP}"
PACKAGECONFIG ??= "secure-exec apps tests"
PACKAGECONFIG[apps] = "-Dapps=enabled,-Dapps=disabled"