Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/openscap: bump to version 1.4.5
@ 2026-10-19 15:21 Alexis Lothoré via buildroot
  2026-10-19 16:59 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: Alexis Lothoré via buildroot @ 2026-10-19 15:21 UTC (permalink / raw)
  To: buildroot; +Cc: Thomas Petazzoni, Alexis Lothoré

Changelog available at
https://github.com/OpenSCAP/openscap/releases/tag/1.4.5

The two patches present in the package directory are now integrated in
the new version, so drop them.

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
---
 .../0001-Fix-build-without-crypto-support.patch    | 57 ----------------------
 ...gcrypt-cmake-variables-if-gcrypt-is-not-f.patch | 50 -------------------
 package/openscap/openscap.hash                     |  8 +--
 package/openscap/openscap.mk                       |  2 +-
 4 files changed, 5 insertions(+), 112 deletions(-)

diff --git a/package/openscap/0001-Fix-build-without-crypto-support.patch b/package/openscap/0001-Fix-build-without-crypto-support.patch
deleted file mode 100644
index 97da60f032a3..000000000000
--- a/package/openscap/0001-Fix-build-without-crypto-support.patch
+++ /dev/null
@@ -1,57 +0,0 @@
-From d12d820a9493b0a0ee1ad4b0aeaa87da28aa0080 Mon Sep 17 00:00:00 2001
-From: Eljees <yurytumanov.r@yandex.ru>
-Date: Mon, 27 Jul 2026 06:57:38 +0300
-Subject: [PATCH] Fix build without crypto support
-
-Upstream: https://github.com/OpenSCAP/openscap/commit/d12d820a9493b0a0ee1ad4b0aeaa87da28aa0080
-Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
----
- src/CMakeLists.txt                   | 2 +-
- src/OVAL/probes/CMakeLists.txt       | 2 +-
- src/OVAL/probes/crapi/CMakeLists.txt | 7 ++++++-
- 3 files changed, 8 insertions(+), 3 deletions(-)
-
-diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
-index 5d59bf3f036f..f31ce8040e0a 100644
---- a/src/CMakeLists.txt
-+++ b/src/CMakeLists.txt
-@@ -59,7 +59,7 @@ if (ENABLE_PROBES)
- 		)
- 	endif()
- endif()
--if (HAVE_MMAN_H AND (GCRYPT_FOUND OR NSS_FOUND))
-+if (HAVE_MMAN_H)
- 	list(APPEND OBJECTS_TO_LINK_AGAINST
- 		$<TARGET_OBJECTS:crapi_object>
- 	)
-diff --git a/src/OVAL/probes/CMakeLists.txt b/src/OVAL/probes/CMakeLists.txt
-index e505908f5842..25e3ca56a0c3 100644
---- a/src/OVAL/probes/CMakeLists.txt
-+++ b/src/OVAL/probes/CMakeLists.txt
-@@ -1,7 +1,7 @@
- add_subdirectory("SEAP")
- add_subdirectory("probe")
- 
--if (HAVE_MMAN_H AND CRYPTO_FOUND)
-+if (HAVE_MMAN_H)
- 	add_subdirectory("crapi")
- endif()
- 
-diff --git a/src/OVAL/probes/crapi/CMakeLists.txt b/src/OVAL/probes/crapi/CMakeLists.txt
-index 1f3e5a963bbf..3fb6f123c8d6 100644
---- a/src/OVAL/probes/crapi/CMakeLists.txt
-+++ b/src/OVAL/probes/crapi/CMakeLists.txt
-@@ -1,4 +1,9 @@
--file(GLOB_RECURSE CRAPI_SOURCES "*.c")
-+if (CRYPTO_FOUND)
-+	file(GLOB_RECURSE CRAPI_SOURCES "*.c")
-+else()
-+	# crapi_init has a no-op implementation for builds without a digest backend.
-+	set(CRAPI_SOURCES "crapi.c")
-+endif()
- file(GLOB_RECURSE CRAPI_HEADERS "*.h")
- 
- add_library(crapi_object OBJECT ${CRAPI_SOURCES} ${CRAPI_HEADERS})
--- 
-2.55.0
-
diff --git a/package/openscap/0002-Do-not-use-gcrypt-cmake-variables-if-gcrypt-is-not-f.patch b/package/openscap/0002-Do-not-use-gcrypt-cmake-variables-if-gcrypt-is-not-f.patch
deleted file mode 100644
index d4d3bd2d1653..000000000000
--- a/package/openscap/0002-Do-not-use-gcrypt-cmake-variables-if-gcrypt-is-not-f.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-From 5b858d1786c025cbd50dfc284b252c3ee6dd99dc Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Alexis=20Lothor=C3=A9?= <alexis.lothore@bootlin.com>
-Date: Tue, 18 Aug 2026 09:38:05 +0200
-Subject: [PATCH] Do not use gcrypt cmake variables if gcrypt is not found
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Commit d12d820a9493 ("Fix build without crypto support") enabled
-building the crapi library without a crypto backend, but left the
-target_include_directories and target_compile_definitions calls
-unguarded. When no crypto library is available, the GCrypt find module
-leaves GCRYPT_INCLUDE_DIRS unset, so CMake fails at the generate step
-with:
-
-  CMake Error: The following variables are used in this project, but
-  they are set to NOTFOUND: GCRYPT_INCLUDE_DIR
-
-The test command provided at this time made the build successful because
-it provided -DCMAKE_DISABLE_FIND_PACKAGE_GCrypt=TRUE, but if no crypto
-backend is provided, it does not make sense to provide those cmake
-configuration options preventing dependency search manually.
-
-Guard both calls with a CRYPTO_FOUND check so they are only applied when
-an actual digest backend is present, even without providing
--DCMAKE_DISABLE_FIND_PACKAGE_foo
-
-Upstream: https://github.com/OpenSCAP/openscap/commit/5b858d1786c025cbd50dfc284b252c3ee6dd99dc
-Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
----
- src/OVAL/probes/crapi/CMakeLists.txt | 6 ++++--
- 1 file changed, 4 insertions(+), 2 deletions(-)
-
-diff --git a/src/OVAL/probes/crapi/CMakeLists.txt b/src/OVAL/probes/crapi/CMakeLists.txt
-index 3fb6f123c8d6..88cb916b6d96 100644
---- a/src/OVAL/probes/crapi/CMakeLists.txt
-+++ b/src/OVAL/probes/crapi/CMakeLists.txt
-@@ -8,5 +8,7 @@ file(GLOB_RECURSE CRAPI_HEADERS "*.h")
- 
- add_library(crapi_object OBJECT ${CRAPI_SOURCES} ${CRAPI_HEADERS})
- set_oscap_generic_properties(crapi_object)
--target_include_directories(crapi_object PUBLIC ${NSS_INCLUDE_DIRS} ${GCRYPT_INCLUDE_DIRS})
--target_compile_definitions(crapi_object PUBLIC ${GCRYPT_DEFINITIONS})
-+if (CRYPTO_FOUND)
-+	target_include_directories(crapi_object PUBLIC ${NSS_INCLUDE_DIRS} ${GCRYPT_INCLUDE_DIRS})
-+	target_compile_definitions(crapi_object PUBLIC ${GCRYPT_DEFINITIONS})
-+endif()
--- 
-2.55.0
-
diff --git a/package/openscap/openscap.hash b/package/openscap/openscap.hash
index 16cebc54c91d..60b34287f3bb 100644
--- a/package/openscap/openscap.hash
+++ b/package/openscap/openscap.hash
@@ -1,6 +1,6 @@
-# From https://github.com/OpenSCAP/openscap/releases/tag/1.4.4
-sha256  25b1b046822121204e6d53d877a532c88bf7fde14b94c9c72297cd5709b03478  openscap-1.4.4.tar.gz
-# From https://github.com/OpenSCAP/openscap/releases/download/1.4.4/openscap-1.4.4.tar.gz.sha512
-sha512  c69736bee997e50a04aff8e4f22da880f342190e1289c5df0fb73b7af34833d3bd9f4e5055b227a18d571167671f821701a09f8c9a3e4568c7da68cc4be51133  openscap-1.4.4.tar.gz
+# From https://github.com/OpenSCAP/openscap/releases/tag/1.4.5
+sha256  f4fc0a54b50441b3c6bb3527c292345cdb3bea16a9d23435292beb508eb96e47  openscap-1.4.5.tar.gz
+# From https://github.com/OpenSCAP/openscap/releases/download/1.4.5/openscap-1.4.5.tar.gz.sha512
+sha512  cb39e53a5cfe8e0bf69418f04ff2175e2579656620d59ae84bab4de482bcb35a58580d598f86dfdfc7613bb7c1c37dd99aa9c9bbb8ff015f4772ad62fecd6267  openscap-1.4.5.tar.gz
 # Locally computed
 sha256  5df07007198989c622f5d41de8d703e7bef3d0e79d62e24332ee739a452af62a  COPYING
diff --git a/package/openscap/openscap.mk b/package/openscap/openscap.mk
index 6fbe09771863..feb70048edcf 100644
--- a/package/openscap/openscap.mk
+++ b/package/openscap/openscap.mk
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-OPENSCAP_VERSION = 1.4.4
+OPENSCAP_VERSION = 1.4.5
 OPENSCAP_SITE = https://github.com/OpenSCAP/openscap/releases/download/$(OPENSCAP_VERSION)
 OPENSCAP_LICENSE = LGPL-2.1+
 OPENSCAP_LICENSE_FILES = COPYING

---
base-commit: 05dc49017ccdf1be2519460c736432b2a426c968
change-id: 20261019-bump_openscap-b9933d93122e

Best regards,
--  
Alexis Lothoré <alexis.lothore@bootlin.com>

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH] package/openscap: bump to version 1.4.5
  2026-10-19 15:21 [Buildroot] [PATCH] package/openscap: bump to version 1.4.5 Alexis Lothoré via buildroot
@ 2026-10-19 16:59 ` Thomas Petazzoni via buildroot
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-10-19 16:59 UTC (permalink / raw)
  To: Alexis Lothoré; +Cc: buildroot

On Mon, Oct 19, 2026 at 05:21:05PM +0200, Alexis Lothoré via buildroot wrote:
> Changelog available at
> https://github.com/OpenSCAP/openscap/releases/tag/1.4.5
> 
> The two patches present in the package directory are now integrated in
> the new version, so drop them.
> 
> Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>

Applied to master, thanks!

Best regards,

Thomas Petazzoni
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-10-19 16:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-19 15:21 [Buildroot] [PATCH] package/openscap: bump to version 1.4.5 Alexis Lothoré via buildroot
2026-10-19 16:59 ` Thomas Petazzoni via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox