From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WEO2JswKSWFWJgAAgWs5BA (envelope-from ) for ; Tue, 21 Sep 2021 00:27:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id SJJnIswKSWEEfwAA1q6Kng (envelope-from ) for ; Mon, 20 Sep 2021 22:27:24 +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 D5D4A11170 for ; Tue, 21 Sep 2021 00:27:23 +0200 (CEST) Received: from localhost ([::1]:52704 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSRkw-0005ks-Ln for larch@yhetil.org; Mon, 20 Sep 2021 18:27:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40500) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSRaw-0006xi-IN for guix-patches@gnu.org; Mon, 20 Sep 2021 18:17:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60904) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mSRaw-0007Zw-2C for guix-patches@gnu.org; Mon, 20 Sep 2021 18:17:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mSRav-0000PS-Tw for guix-patches@gnu.org; Mon, 20 Sep 2021 18:17:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49713] [PATCH v3 1/3] 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: Mon, 20 Sep 2021 22:17:01 +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.16321761941499 (code B ref 49713); Mon, 20 Sep 2021 22:17:01 +0000 Received: (at 49713) by debbugs.gnu.org; 20 Sep 2021 22:16:34 +0000 Received: from localhost ([127.0.0.1]:44211 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSRaU-0000O7-8N for submit@debbugs.gnu.org; Mon, 20 Sep 2021 18:16:34 -0400 Received: from mail.spbu.ru ([195.70.197.23]:37579 helo=cgp2.pu.ru) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSRaQ-0000Nm-WA for 49713@debbugs.gnu.org; Mon, 20 Sep 2021 18:16:32 -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=YJqklWLd9QHCxifGoJi04TEpCrsuL4ZVaUQElzfy85VWvvE9JyIW/zujHZI+Rj2QOieTozmfV6 qoSnIxminhVvvmPz4Txo6XfE4G398tTkZc55ZFsZd67x2KUl45bRkyBzmqmtNnFjhhPPxDhfIAtKF eeKiBmPcmOb0xf0EURD04j7KytrhzXdP9reRJ8d5P9lIRZ2FzcbeLBAMyRbjCatkD8nvwCFKQgEHS dAMqNK5kpKqEcrbwPfT7ad6L/+w9IHhhMHLK1OXdnqfwqrW6DnAk949/eGBW+G61mgEwWZo3IkA4C R1kw6j0b3VPby4mZv4+2inBe8se0v/Pm7b01A== 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 187015456; Tue, 21 Sep 2021 01:16:23 +0300 From: Ivan Gankevich Date: Tue, 21 Sep 2021 01:15:48 +0300 Message-Id: <20210920221549.14678-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=1632176844; 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=ngKOCnWuWbkQrhM3GCK9wqf2Ddsy7AhW4FX9M4RZ4LTvL7lzo0PkTxiU0q9Yxsatai6H0+ F3XeyVLiJJsJqiQKz00SKykTvUzwrAMu8HpabyvhHfNgW0oIxtp7gsRokRSVX/fxkkoakj x3IMoBRk4/4KdrkmkJLclyZrWBzlkYkB8tI5V1MFSp0VG4OBTbd3/mUjksbLJRFtcgzfvQ 1MBlmEGVyUFFNgqgynYdAiUN/ObDyFVPbuLSvPFqEQdBkHz9goU/fOOU+s46co3vOe1B0H XHWtnhwLrB2ZUbiYDGKHu2w3mXoH16du9hrM6A0q2nZ3n31E1ZYD+BgH1EWK8w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632176844; a=rsa-sha256; cv=none; b=Ybzy7qpG1EA3i7caGRow55SncsJqf/S/TPxblxzo4JqfxdqUqSA89wiDTmkJl7EMAkHWQF 2QwpKBjkr1bHPnnHdkKhpmJtnI5TeyBTqEqqfY3ZC/1VdDtm6VQJlNHxi02Dy8//DHTPxd SHqtw5wcpxzpkKChja05eJEVk3UP10QTDtvjIFcoz3UrXH9N1GU6L+nyrjRvMO1mQ0qgRZ GsLL7nefdWlAiUVshWFnWTbZac6Nph7Zxv8GgVuiWr5DPdPhRq5x72wXc/L7Z8rNwpJm7X FCS8E9mHoMp4D/oimK7NDpWov7DGWL2zQXwRzq/Vw2QPmh+Pur6XsK1YoL+zqw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=spbu.ru header.s=20180812 header.b=YJqklWLd; 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=YJqklWLd; 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: D5D4A11170 X-Spam-Score: 3.61 X-Migadu-Scanner: scn0.migadu.com X-TUID: pakmj+5BAjTB * 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