[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#69591] [PATCH v4 15/32] gnu: clog: Add "-DUSE_SYSTEM_LIBS=ON" confi
From: |
David Elsing |
Subject: |
[bug#69591] [PATCH v4 15/32] gnu: clog: Add "-DUSE_SYSTEM_LIBS=ON" configure flag. |
Date: |
Sat, 23 Mar 2024 22:04:54 +0000 |
* gnu/packages/parallel.scm (clog)[arguments]: Add "-DUSE_SYSTEM_LIBS=ON"
to #:configure-flags.
* gnu/packages/patches/clog-fix-shared-build.patch: Adjust patch.
---
gnu/packages/parallel.scm | 13 ++++---
.../patches/clog-fix-shared-build.patch | 39 ++-----------------
2 files changed, 12 insertions(+), 40 deletions(-)
diff --git a/gnu/packages/parallel.scm b/gnu/packages/parallel.scm
index 4238312367..f591834047 100644
--- a/gnu/packages/parallel.scm
+++ b/gnu/packages/parallel.scm
@@ -527,11 +527,14 @@ (define-public clog
(inherit (package-source cpuinfo))
(patches (search-patches "clog-fix-shared-build.patch"))))
(arguments
- (list #:configure-flags #~(list "-DBUILD_SHARED_LIBS=ON")
- #:phases #~(modify-phases %standard-phases
- (add-after 'unpack 'chdir
- (lambda _
- (chdir "deps/clog"))))))
+ (list
+ #:configure-flags
+ ''("-DBUILD_SHARED_LIBS=ON"
+ "-DUSE_SYSTEM_LIBS=ON")
+ #:phases #~(modify-phases %standard-phases
+ (add-after 'unpack 'chdir
+ (lambda _
+ (chdir "deps/clog"))))))
(native-inputs (list googletest))
(inputs '())
(synopsis "C-style logging library based on printf")
diff --git a/gnu/packages/patches/clog-fix-shared-build.patch
b/gnu/packages/patches/clog-fix-shared-build.patch
index bf80544b90..eb305339f5 100644
--- a/gnu/packages/patches/clog-fix-shared-build.patch
+++ b/gnu/packages/patches/clog-fix-shared-build.patch
@@ -1,50 +1,19 @@
Author: Antero Mejr <antero@mailbox.org>
-Notes: Disabled function visibility hacks and googletest download. Enabled
-non-static builds.
+Notes: Disabled function visibility hacks. Enabled non-static builds.
diff --git a/deps/clog/CMakeLists.txt b/deps/clog/CMakeLists.txt
-index 083f519..b7b225a 100644
+index 6e50c41..db02e95 100644
--- a/deps/clog/CMakeLists.txt
+++ b/deps/clog/CMakeLists.txt
-@@ -38,20 +38,8 @@ SET(CONFU_DEPENDENCIES_SOURCE_DIR ${CMAKE_SOURCE_DIR}/deps
- SET(CONFU_DEPENDENCIES_BINARY_DIR ${CMAKE_BINARY_DIR}/deps
- CACHE PATH "Confu-style dependencies binary directory")
+@@ -55,7 +55,7 @@ IF(CLOG_BUILD_TESTS)
+ ENDIF()
--IF(CLOG_BUILD_TESTS)
-- IF(NOT DEFINED GOOGLETEST_SOURCE_DIR)
-- MESSAGE(STATUS "Downloading Google Test to
${CONFU_DEPENDENCIES_SOURCE_DIR}/googletest (define GOOGLETEST_SOURCE_DIR to
avoid it)")
-- CONFIGURE_FILE(cmake/DownloadGoogleTest.cmake
"${CONFU_DEPENDENCIES_BINARY_DIR}/googletest-download/CMakeLists.txt")
-- EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" .
-- WORKING_DIRECTORY
"${CONFU_DEPENDENCIES_BINARY_DIR}/googletest-download")
-- EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" --build .
-- WORKING_DIRECTORY
"${CONFU_DEPENDENCIES_BINARY_DIR}/googletest-download")
-- SET(GOOGLETEST_SOURCE_DIR "${CONFU_DEPENDENCIES_SOURCE_DIR}/googletest"
CACHE STRING "Google Test source directory")
-- ENDIF()
--ENDIF()
--
# ---[ clog library
-ADD_LIBRARY(clog STATIC src/clog.c)
+ADD_LIBRARY(clog src/clog.c)
SET_TARGET_PROPERTIES(clog PROPERTIES
C_STANDARD 99
C_EXTENSIONS NO)
-@@ -74,16 +62,6 @@ INSTALL(TARGETS clog
-
- # ---[ clog tests
- IF(CLOG_BUILD_TESTS)
-- # ---[ Build google test
-- IF(NOT TARGET gtest)
-- IF(MSVC AND NOT CLOG_RUNTIME_TYPE STREQUAL "static")
-- SET(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
-- ENDIF()
-- ADD_SUBDIRECTORY(
-- "${GOOGLETEST_SOURCE_DIR}"
-- "${CONFU_DEPENDENCIES_BINARY_DIR}/googletest")
-- ENDIF()
--
- ADD_EXECUTABLE(clog-test test/clog.cc)
- SET_TARGET_PROPERTIES(clog-test PROPERTIES
- CXX_STANDARD 11
diff --git a/deps/clog/include/clog.h b/deps/clog/include/clog.h
index 4143761..aa9000f 100644
--- a/deps/clog/include/clog.h
--
2.41.0
- [bug#69591] [PATCH v4 16/32] gnu: nnpack: Update to commit 70a77f4., (continued)
- [bug#69591] [PATCH v4 16/32] gnu: nnpack: Update to commit 70a77f4., David Elsing, 2024/03/23
- [bug#69591] [PATCH v4 28/32] gnu: python-torchvision: Update to 0.17.1., David Elsing, 2024/03/23
- [bug#69591] [PATCH v4 30/32] gnu: Add oneapi-dnnl-for-r-torch., David Elsing, 2024/03/23
- [bug#69591] [PATCH v4 27/32] gnu: Add python-pytorch-avx., David Elsing, 2024/03/23
- [bug#69591] [PATCH v4 19/32] gnu: Add fbgemm., David Elsing, 2024/03/23
- [bug#69591] [PATCH v4 31/32] gnu: Add qnnpack-pytorch-for-r-torch., David Elsing, 2024/03/23
- [bug#69591] [PATCH v4 24/32] gnu: Remove xnnpack-for-torch2., David Elsing, 2024/03/23
- [bug#69591] [PATCH v4 29/32] gnu: Add ideep-pytorch-for-r-torch., David Elsing, 2024/03/23
- [bug#69591] [PATCH v4 02/32] gnu: Add python-typing-extensions-4.10., David Elsing, 2024/03/23
- [bug#69591] [PATCH v4 07/32] gnu: Add python-pytest-rerunfailures-13., David Elsing, 2024/03/23
- [bug#69591] [PATCH v4 15/32] gnu: clog: Add "-DUSE_SYSTEM_LIBS=ON" configure flag.,
David Elsing <=
- [bug#69591] [PATCH v4 10/32] gnu: Add libnop., David Elsing, 2024/03/23
- [bug#69591] [PATCH v4 12/32] gnu: python-flatbuffers-next: Update to 23.5.26., David Elsing, 2024/03/23
- [bug#69591] [PATCH v4 23/32] gnu: xnnpack: Update to commit 51a9875., David Elsing, 2024/03/23
- [bug#69591] [PATCH v4 32/32] gnu: python-pytorch-for-r-torch: Adjust to new python-pytorch., David Elsing, 2024/03/23
- [bug#69591] [PATCH v4 11/32] gnu: Remove flatbuffers-next-shared., David Elsing, 2024/03/23
- [bug#69591] [PATCH v4 09/32] gnu: Add miniz-for-pytorch., David Elsing, 2024/03/23
- [bug#69591] [PATCH v4 03/32] gnu: Add python-optree., David Elsing, 2024/03/23
- [bug#69591] [PATCH v4 26/32] gnu: python-pytorch: Update to 2.2.1 and unbundle dependencies., David Elsing, 2024/03/23
- [bug#69591] [PATCH v4 14/32] gnu: cpuinfo: Update to commit aa4b216., David Elsing, 2024/03/23
- [bug#69591] [PATCH v4 01/32] gnu: asmjit: Update to commit 3ca5c18., David Elsing, 2024/03/23