From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id CPhaHQMMNGB8KwAA0tVLHw (envelope-from ) for ; Mon, 22 Feb 2021 19:54:43 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id cONCGQMMNGCCRwAA1q6Kng (envelope-from ) for ; Mon, 22 Feb 2021 19:54:43 +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 91B712DDA7 for ; Mon, 22 Feb 2021 20:54:42 +0100 (CET) Received: from localhost ([::1]:45436 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lEHI1-0005uV-NC for larch@yhetil.org; Mon, 22 Feb 2021 14:54:41 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33082) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lEHFS-0003RK-QE for bug-guix@gnu.org; Mon, 22 Feb 2021 14:52:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:46075) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lEHFS-0007CF-Hw for bug-guix@gnu.org; Mon, 22 Feb 2021 14:52:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lEHFS-0006so-H2 for bug-guix@gnu.org; Mon, 22 Feb 2021 14:52:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#36117: [PATCH 2/4] gnu: Add glib-static. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 22 Feb 2021 19:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36117 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 36117@debbugs.gnu.org Received: via spool by 36117-submit@debbugs.gnu.org id=B36117.161402348826389 (code B ref 36117); Mon, 22 Feb 2021 19:52:02 +0000 Received: (at 36117) by debbugs.gnu.org; 22 Feb 2021 19:51:28 +0000 Received: from localhost ([127.0.0.1]:57615 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lEHEq-0006rQ-JS for submit@debbugs.gnu.org; Mon, 22 Feb 2021 14:51:28 -0500 Received: from mail-qk1-f177.google.com ([209.85.222.177]:33091) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lEHEm-0006qv-EV for 36117@debbugs.gnu.org; Mon, 22 Feb 2021 14:51:21 -0500 Received: by mail-qk1-f177.google.com with SMTP id b14so13921501qkk.0 for <36117@debbugs.gnu.org>; Mon, 22 Feb 2021 11:51:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6eRo7BjInm/fMoeHho9SKV2FNPoj7XK9oee959m8XCc=; b=n6cen+D6EFC7AtME3nEUnvcrLYI6Setk14R64Q7JlXdME191Wghszivv4MoJu4bXx6 azyja+qnCWkN/+Q0pT8ZCtXmoA9/vxu1DWXnXdQaCzAJML68n6gM/jESmM2kkWFx+8y3 xOP8rg8I7HmQxI6kX5YoXlMRd5qHyDDlz5d6WlnLFFWZNfuPC1+Vl2kTBVv7JiTy8ymb uUzvh5ai9yuZQuTJ/7/NWu5cKYQP04jypSza7Ehe2omQCSiMFGTsWR/9JKzlvPZ3A/RJ 7rGNGaA4S25kaLaGj62q7X0Z1Ys+Eoi/BmMXagDovaDsNf0bmLethl/ROEK6z4Dm8LvH Lnmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6eRo7BjInm/fMoeHho9SKV2FNPoj7XK9oee959m8XCc=; b=h1O9cfdVgHQGtd3AzQgXLCEA6x1GW9SfHeRaJ54S5oa3K/MV2Un6taPN8HUsUcnvmq zjI/L98LqoBwDd8HgyMAsysoU0Wcig8OKApCptHx2FBE7bm37dEne42zpBxj+THVaPoR TzQQpb6wiQgoAw0nwPZskVPqbbenkRQFhb1kihzg5HhL3zkLzWVBP7Kh7hmCqYE+6vLq SvKrff3zeYEPHtpZZd/4oJu3eJcYRdkNUEBldtwQ2bo6Qc4yFZm/VTTrqYKIAJLHYmsk zQXZvZPTeKo8PAl6iAoTMXpcnJjq1oniVrefAaUO3OfSpA4osW46vFZZetHsC2DQkNFl Felg== X-Gm-Message-State: AOAM533wpXx5NkAvhYMLPgX7FmF2H82fLV9Ggzcd5BknpVKu/nV6uBJD WRgFDfd2lqERsZxigQe4lNhifuUd6w9XQg== X-Google-Smtp-Source: ABdhPJxh9HMpSA1Qj+DhuTWbQj7xIcWcWX/H+gG5PVXK1xHlEi7/PR8sa3quq9gtA9DPy8tmkmDIOQ== X-Received: by 2002:ae9:c30e:: with SMTP id n14mr22500406qkg.291.1614023474857; Mon, 22 Feb 2021 11:51:14 -0800 (PST) Received: from localhost.localdomain (dsl-154-25.b2b2c.ca. [66.158.154.25]) by smtp.gmail.com with ESMTPSA id e14sm11438619qte.18.2021.02.22.11.51.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Feb 2021 11:51:14 -0800 (PST) From: Maxim Cournoyer Date: Mon, 22 Feb 2021 14:50:04 -0500 Message-Id: <20210222195006.11357-2-maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210222195006.11357-1-maxim.cournoyer@gmail.com> References: <87k1dbb260.fsf@gnu.org> <20210222195006.11357-1-maxim.cournoyer@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=yes Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Vagrant Cascadian , Maxim Cournoyer Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.27 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=n6cen+D6; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 91B712DDA7 X-Spam-Score: -1.27 X-Migadu-Scanner: scn0.migadu.com X-TUID: 3VJRV6jb1rMW * gnu/packages/glib.scm (glib-static): New variable. --- gnu/packages/glib.scm | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm index 9cc2b1b69e..18c905b70d 100644 --- a/gnu/packages/glib.scm +++ b/gnu/packages/glib.scm @@ -9,7 +9,7 @@ ;;; Copyright © 2017 Petter ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice ;;; Copyright © 2018 Alex Vong -;;; Copyright © 2019 Maxim Cournoyer +;;; Copyright © 2019, 2021 Maxim Cournoyer ;;; Copyright © 2019 Giacomo Leidi ;;; Copyright © 2019, 2020 Marius Bakke ;;; Copyright © 2020 Nicolò Balzarotti @@ -417,6 +417,34 @@ dynamic loading, and an object system.") (delete-file-recursively (string-append out html)) #t))))))))) +;;; TODO: Merge into glib as a 'static' output in core-updates. +(define-public glib-static + (hidden-package + (package + (inherit glib) + (name "glib-static") + (outputs '("out")) + (arguments + (substitute-keyword-arguments (package-arguments glib) + ((#:configure-flags flags ''()) + `(cons* "--default-library=static" + "-Dselinux=disabled" + "-Dman=false" + "-Dgtk_doc=false" + "-Dinternal_pcre=false" + ,flags)) + ((#:phases phases) + `(modify-phases ,phases + (delete 'move-executables) + (replace 'install + ;; Only install the static libraries. + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (lib (string-append out "/lib"))) + (for-each (lambda (f) + (install-file f lib)) + (find-files "." "\\.a$")))))))))))) + (define gobject-introspection (package (name "gobject-introspection") -- 2.30.1