From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cOjgAkGBR2HHOgAAgWs5BA (envelope-from ) for ; Sun, 19 Sep 2021 20:28:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id D1n1OUCBR2HpOwAAbx9fmQ (envelope-from ) for ; Sun, 19 Sep 2021 18:28:16 +0000 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 6E4E6143DC for ; Sun, 19 Sep 2021 20:28:16 +0200 (CEST) Received: from localhost ([::1]:54874 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mS1Xz-0002WU-K7 for larch@yhetil.org; Sun, 19 Sep 2021 14:28:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58316) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mS1Xm-0002QO-Tv for guix-patches@gnu.org; Sun, 19 Sep 2021 14:28:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56614) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mS1Xm-0007KY-Jn for guix-patches@gnu.org; Sun, 19 Sep 2021 14:28:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mS1Xm-0005vg-Gm for guix-patches@gnu.org; Sun, 19 Sep 2021 14:28:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49713] [PATCH 1/3 v2] gnu: cereal: Use cmake to build and install the library. References: <20210723210037.28150-1-i.gankevich@spbu.ru> In-Reply-To: <20210723210037.28150-1-i.gankevich@spbu.ru> Resent-From: Ivan Gankevich Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 19 Sep 2021 18:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49713 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49713@debbugs.gnu.org Cc: Ivan Gankevich Received: via spool by 49713-submit@debbugs.gnu.org id=B49713.163207605822759 (code B ref 49713); Sun, 19 Sep 2021 18:28:02 +0000 Received: (at 49713) by debbugs.gnu.org; 19 Sep 2021 18:27:38 +0000 Received: from localhost ([127.0.0.1]:39927 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mS1XN-0005v0-VL for submit@debbugs.gnu.org; Sun, 19 Sep 2021 14:27:38 -0400 Received: from mail.spbu.ru ([195.70.197.23]:43374 helo=cgp2.pu.ru) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mS1XK-0005uj-GE for 49713@debbugs.gnu.org; Sun, 19 Sep 2021 14:27:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=simple/simple; d=spbu.ru; s=20180812; bh=E7HgJdZXi97A/F9kh7Qu8ZSJ7pgyl4+uB9lsxmBkD4I=; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject:Cc:To:From; b=rNlWX5f7pDdTW7oaHBcsLdJOGNTs10MRAE6GOVrLW+ryVVUBX+pL7aLbwgURRdpQ22/yhrYYTJ /TnednPQS+JZfZxtEnvixnHFeOcFBYIeIUdZ0ikMuivXpagzvSGqi6n6OPV5Jkl3J/0w2ujro49RM AfbCZNwroZjfXoLGI0CCMO1BjJTR/QeNI59UQeUb+eyszCMFy598rHsDPys05R4kDrQ8aJuN/F9Zc gRgOZRPrPKLjPb41UtB4zVVkfetCfsV/lwNKeGGWmC+Use403/iX5+19lUDlZgS+pG5E/D4VbAP8y CB+8ATYmsIj1v3ye4Q5mJCQaVYGZsZw4nAhbg== Received: from [172.27.221.159] (account st018947@spbu.ru HELO localhost.localdomain) by spbu.ru (CommuniGate Pro SMTP 6.2.15) with ESMTPSA id 186719382; Sun, 19 Sep 2021 21:27:26 +0300 From: Ivan Gankevich Date: Sun, 19 Sep 2021 21:26:47 +0300 Message-Id: <20210919182646.20188-1-i.gankevich@spbu.ru> X-Mailer: git-send-email 2.32.0 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632076096; 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=Z0udz9eSk46ckd74tUwTo6CU/XHzk6Jfqz9vvBq/4js=; b=MGzeMRxZTzDmnGsvLLqtiMaY0WRNL8QUA6qjKQMR4SWiiqB/Fi6yySthYneIhf2FQ4Jndb Twobx+1r1qPSwn4iiEi0V0gJjqeTkrIToiQXKElBsdn1tcz+L3FdRlxfpwLx0CHvMs8Vdk hAedhVkmsP7iR5Pgw8N15R7D0Rkr4cNqo11SXZXdJUwbVtsFLLdl4E4gtQ5ZFl6naRIMmk j2HnSTNsfrUsys3aM4qk+yxXnGb+ICbvRLzbO9fRTow4mugvw6sExgcn1FOuucoleIj11K hlqbkm9e+cBVvSr711UU8uUjKVMSbPZnJh0sfXau06mNhO9wU3WQH4nX9Oedkw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632076096; a=rsa-sha256; cv=none; b=XVZSlSWBqfgtmG46W8K6l2R6AI/Eu61ujt5kFBSS6SweUowxcADFrXStKvAo7ylCg8CaJN i4JEqmKnNhlmsDGB7pcxcErSlF0lVng2q6DmQ16fOXdURzPKZ2V6hqPvNF4pOBRqwKinMa +dWm4tRwtm+TvCS/hf2oRqwd3SHLLdY8MVww/9vEzx2L3Z2YzF3Z2Tm7zMRPKzeV9VCqsu HKlQXKGYjTV7DHUD4V9OsJcFjfPK5SL7qFuOQAtwDcljDwoG41p0MMxydSeqS2xD3ETX93 r5FiEJ9B/oiREq53PWbe796OoBXQlA4alD6E3LJJ4G7q7fR0PBOgLmhNalw9GA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=spbu.ru header.s=20180812 header.b=rNlWX5f7; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 3.61 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=spbu.ru header.s=20180812 header.b=rNlWX5f7; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 6E4E6143DC X-Spam-Score: 3.61 X-Migadu-Scanner: scn0.migadu.com X-TUID: BPsSj09w6mGt * gnu/packages/serialization.scm (cereal): Use cmake to build and install the library. --- gnu/packages/serialization.scm | 38 +++++++++++----------------------- 1 file changed, 12 insertions(+), 26 deletions(-) diff --git a/gnu/packages/serialization.scm b/gnu/packages/serialization.scm index 0e79b7c89c..3263805c68 100644 --- a/gnu/packages/serialization.scm +++ b/gnu/packages/serialization.scm @@ -142,32 +142,18 @@ implement RPC protocols.") "0hc8wh9dwpc1w1zf5lfss4vg5hmgpblqxbrpp1rggicpx9ar831p")))) (build-system cmake-build-system) (arguments - `(;; The only included tests are portability tests requiring - ;; cross-compilation and boost. Since we are building cereal on more - ;; platforms anyway, there is no compelling reason to build the tests. - #:tests? #f - #:out-of-source? #f - #:phases - (modify-phases %standard-phases - (delete 'configure) - (replace 'build - (lambda _ - (substitute* "doc/doxygen.in" - (("@CMAKE_CURRENT_BINARY_DIR@") ".") - (("@CMAKE_CURRENT_SOURCE_DIR@") ".")) - (with-directory-excursion "doc" - (invoke "doxygen" "doxygen.in")))) - ;; There is no "install" target, so we have to provide our own - ;; "install" phase. - (replace 'install - (lambda* (#:key outputs #:allow-other-keys) - (let* ((out (assoc-ref outputs "out")) - (doc (string-append out "/share/cereal/docs")) - (include (string-append out "/include/cereal"))) - (mkdir-p doc) - (mkdir-p include) - (copy-recursively "include/cereal" include) - (copy-recursively "doc/html" doc))))))) + `(#:configure-flags (list "-DSKIP_PORTABILITY_TEST=ON") + #:phases (modify-phases %standard-phases + (add-before 'configure 'skip-sandbox + (lambda _ + (substitute* "CMakeLists.txt" + (("add_subdirectory\\(sandbox\\)") "")))) + (add-after 'install 'install-doc + (lambda _ + (let ((doc (string-append %output "/share/doc/html"))) + (invoke "make" "doc") + (mkdir-p doc) + (copy-recursively "doc/html" doc))))))) (native-inputs `(("doxygen" ,doxygen))) (home-page "https://uscilab.github.io/cereal/") -- 2.32.0