From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id gBzEA1dU/2W9/wAAqHPOHw:P1 (envelope-from ) for ; Sat, 23 Mar 2024 23:14:47 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id gBzEA1dU/2W9/wAAqHPOHw (envelope-from ) for ; Sat, 23 Mar 2024 23:14:47 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=VMbwVXS+; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1711232086; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=AtKro++RCykLSefucQm3fE7Ij2J39wK8L1AaHxSX+xk=; b=AAFfqhBACB77uKsA6txE3foUFDvzqc43tHZHrOieU/65yZEzXOC/Avcyv++T5WXlBAAKk9 X4GXbbqmyfjUcHaOC+RDziVNjUFTmRuKlYW+6BCUbmJhkE/cwf632gzCfw+hZ0TuoCiw5Y QdJGW/kV7qjguIpzudIeaqRjKNt2ediGgXIUH6A3PV4iYc5XEJTYl53NwHcDRHgMgq1sTx q867oZl0TzTldkRTUl+GTlrm/VxOQlitVT5kNJxivchITePYutwNDbqZNQG4H8VHByp1DG enmhxPmpNiVJldZ1uij1P7HoXoaHRh+UnrjAU2hPwklaZILOD0MtF1DPRPA1eQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=VMbwVXS+; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1711232086; a=rsa-sha256; cv=none; b=DLLYpyjVNE3fwKz/dEtD7kJCSw4m2OC8aV9PZbJEczOECPeiq47BM7qkiVe+ZSHXGLMrPz XTCLN9CyZPL1RspRzwYAVAAYnjaFbUNrPdN3lhijKlsUorcUbJN1vQSjIjz2r4JB5yotvs KGaHA+VVq0F40F8XZmxyYe/ops2O3uXaDPmuFp6KfqLBD9ocj1MFDLcvXu0FIqYlqPF/6+ QzN5e8vxDCiCTGtzcTCQxt0ccj/8SMQG/TzH7/xue0myOY9sY/8TD77YkIW7MRDUNwgg+C Sb4s+wItHXh3Vy8VGGMQLxYBgxozd5P8dZDWKBS7aOD+j1IZUgSwjVHLCD9bmQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AE39E7FE3A for ; Sat, 23 Mar 2024 23:14:46 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ro9d9-0006r6-ES; Sat, 23 Mar 2024 18:14:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ro9d8-0006qr-8H for guix-patches@gnu.org; Sat, 23 Mar 2024 18:14:22 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ro9d8-0001AL-00 for guix-patches@gnu.org; Sat, 23 Mar 2024 18:14:22 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ro9dn-0006oF-C9 for guix-patches@gnu.org; Sat, 23 Mar 2024 18:15:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#69591] [PATCH v4 15/32] gnu: clog: Add "-DUSE_SYSTEM_LIBS=ON" configure flag. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 23 Mar 2024 22:15:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69591 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69591@debbugs.gnu.org Cc: David Elsing Received: via spool by 69591-submit@debbugs.gnu.org id=B69591.171123207326022 (code B ref 69591); Sat, 23 Mar 2024 22:15:03 +0000 Received: (at 69591) by debbugs.gnu.org; 23 Mar 2024 22:14:33 +0000 Received: from localhost ([127.0.0.1]:57003 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ro9dJ-0006lZ-5v for submit@debbugs.gnu.org; Sat, 23 Mar 2024 18:14:33 -0400 Received: from mout02.posteo.de ([185.67.36.66]:48649) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ro9d7-0006jx-Em for 69591@debbugs.gnu.org; Sat, 23 Mar 2024 18:14:24 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 960FC240101 for <69591@debbugs.gnu.org>; Sat, 23 Mar 2024 23:05:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1711231528; bh=46JZETtr3S9WOsXOtdEyqWRlNQF/Hiz+UVAAeR/PRGE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=VMbwVXS+wQIDNxUgGgKGtycf3KoML8eRkJG2ZxZTG9xDYkO1jxkz0eBWoZLSfszUl 2CFXBi+afkir68jLliXsQFaFRrm0APhhkzpwSRngC2EsrMOA8AETSNOuETvWT0Jkq5 C6nwEDRkoLX0uJ4kLozyGEBbxj+/3c9GAtnHEXKatLpZcbGTNkqz3InrrFFarGRWRI QGa7FnnNc+qula/f6h5KlH7hndhrAPl6PMm/XRmjs+O2tqA9UySDj1EnKA8cGmLmwD Pm2UIj3sSKlPY3kZiWzQNo1v7Qvo2g/uLpQzQQ4q5ZqPZU+FkM4zsKQSkrR1MGXLBQ JLKGiLf1s/iXA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4V2Ctc1znxz6tx0; Sat, 23 Mar 2024 23:05:28 +0100 (CET) From: David Elsing Date: Sat, 23 Mar 2024 22:04:54 +0000 Message-ID: <20240323220518.25063-15-david.elsing@posteo.net> In-Reply-To: <20240323214040.20221-1-david.elsing@posteo.net> References: <20240323214040.20221-1-david.elsing@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: AE39E7FE3A X-Spam-Score: -3.93 X-Migadu-Spam-Score: -3.93 X-Migadu-Scanner: mx10.migadu.com X-TUID: wnoSScz3YBxv * 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 -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