From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yB9GIqPbeGFNbQAAgWs5BA (envelope-from ) for ; Wed, 27 Oct 2021 06:54:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id QIcLHqPbeGGGbgAA1q6Kng (envelope-from ) for ; Wed, 27 Oct 2021 04:54:59 +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 467252AA10 for ; Wed, 27 Oct 2021 06:54:59 +0200 (CEST) Received: from localhost ([::1]:38860 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mfaxm-00037D-BB for larch@yhetil.org; Wed, 27 Oct 2021 00:54:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52614) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfaww-0001vW-Be for guix-patches@gnu.org; Wed, 27 Oct 2021 00:54:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36619) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mfaww-0003og-3b for guix-patches@gnu.org; Wed, 27 Oct 2021 00:54:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mfaww-00059Q-3A for guix-patches@gnu.org; Wed, 27 Oct 2021 00:54:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51428] [PATCH core-update-frozen 11/13] gnu: gusb-minimal: Introduce minimal variant. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 27 Oct 2021 04:54:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51428 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 51428@debbugs.gnu.org Cc: Maxim Cournoyer Received: via spool by 51428-submit@debbugs.gnu.org id=B51428.163531041519624 (code B ref 51428); Wed, 27 Oct 2021 04:54:06 +0000 Received: (at 51428) by debbugs.gnu.org; 27 Oct 2021 04:53:35 +0000 Received: from localhost ([127.0.0.1]:48136 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfawR-00056Q-0M for submit@debbugs.gnu.org; Wed, 27 Oct 2021 00:53:35 -0400 Received: from mail-qk1-f182.google.com ([209.85.222.182]:40878) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfaw6-00053O-Bq for 51428@debbugs.gnu.org; Wed, 27 Oct 2021 00:53:14 -0400 Received: by mail-qk1-f182.google.com with SMTP id x123so1334060qke.7 for <51428@debbugs.gnu.org>; Tue, 26 Oct 2021 21:53:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=DlOkfqpT78Lx8CUoeOSaF9nkNuNVVl3iV24Tx7MA/9Q=; b=plYRIuCCvvZ0xY6gjUPDDBAzU5gW9bcDNgiPU0G0r0mX9aakgkkUgSEZwrkt6GEmxm GX/nN+cQKt7nH/bHHcE6ULtzlFWeg7n+q9CA2rKRpbSm+HbpcPogxrqFFHx0RT4J34ed QzChKwgeVKMcBbvL7XmjUMPyZxKRXGMXIqk+ZkgRNqG6b9tuM+pMbLFjyYvOmVJelsQL NPdprJnZe/xywyyrMyLfMeqwtHDTo0oXn+ZVT1gQ1X8a0twnPqHBJBQCHaEy3veMEAwX Y7JL0eyZls5b2ROIQHYuRyR+Wr2nJgw0AJrzxgK/2t40ihqZLBe+7gsHJBZRtxMrhMEG tEQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=DlOkfqpT78Lx8CUoeOSaF9nkNuNVVl3iV24Tx7MA/9Q=; b=r8bv8JLb59wZNVTdEfdMD+a98o+5PjJs6iUZ2z/z40cEzXF/tjYPtl/gLBJqHgy3zj nmd9R75zxgWYGAMr87faAXtwOVF1SwHcGtXpnKZlO94YmjHPjDsArcwXbnC7fYVXYmpB F1q7Fcxsa0A9EOt+swQtZ+yBl3WZ8TR15uRPd2uNnTMZruv0/T074dwkaYH4v/o1W0R/ QSQJnJkW0+XlcEyQgWN7B4vRNN18kyy94b2iDvxr+ofNrJJ2HLd7/zn6huiTJv3M1Pio fvZACPPJynfEcVJ1WeziV3GCoPDtmFINSqUdoxzuxgSvTpOFkVg3lAgduCnWC86xDDrh TXYQ== X-Gm-Message-State: AOAM532S6WvhK9EemZMfZddBvJsHZ47wZjVcCx7a7dVDaZVb1IoEp9wc su24MGnv/GJizbY2rtkKancYk225wT4= X-Google-Smtp-Source: ABdhPJz1cRpqdv8jyYFFgz7IJkAmDQNDHUI8y9h38S1GDiY9alL1xVZd3U3Y1+L/gSDzs6nT5Kx9ww== X-Received: by 2002:a05:620a:2486:: with SMTP id i6mr22769999qkn.380.1635310388697; Tue, 26 Oct 2021 21:53:08 -0700 (PDT) Received: from localhost.localdomain (dsl-10-133-98.b2b2c.ca. [72.10.133.98]) by smtp.gmail.com with ESMTPSA id bk13sm11868197qkb.58.2021.10.26.21.53.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Oct 2021 21:53:08 -0700 (PDT) From: Maxim Cournoyer Date: Wed, 27 Oct 2021 00:51:42 -0400 Message-Id: <20211027045151.9889-11-maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211027045151.9889-1-maxim.cournoyer@gmail.com> References: <20211027045151.9889-1-maxim.cournoyer@gmail.com> 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=1635310499; 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=DlOkfqpT78Lx8CUoeOSaF9nkNuNVVl3iV24Tx7MA/9Q=; b=GLnWOJc1EpqqJfWpKrZ/rHV4u06eT36M7uKPGUN8ODtktTHAUmQe0o1Vkq5ez5Bs1fn8aW Ubu8jnBKXoQYKcrUDtEyt3A3VgWs+9jJwgYmaedF9XiEjTTMSaDAzwJEFFrEkWNNl2QBX3 LEQD5gDoDlzrTjhlZOPppEoWJN9prc3Ak3uy6AGuXCA2575IlUgepW+fLiNlxv2GjCNPc/ Qoce1JyI8bLcS9d6JHLN8oZbL78ypfLqZo36fnNGPOvY2nR9PrkglnoxeTeaMvLAMMzsZz LgOEcEe14KSVHX/DFD0WoVFnOiZBQL+b1dssKU7rsLhleV+Sw10UXF+tnDudng== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635310499; a=rsa-sha256; cv=none; b=V0dkVbeLFintEUN7YPnlcYE8v7yvfnzsrNesCkvcQ/U1BbxikiJTq45KZEJvufB8XxBkuu zbt4tGyFQitgywZvFK/09VMjBY6UPgy+/vF5Mo+qQvj+ZpnDJ8hDgPTXYhzgpIB/HmayeY WN7xWGkOs3bLj5DjRg7ffhgxwX2VmHoLcX1Mls3ePtBgSnzwPFc2rg3ySVfJjO2dSYQv29 QbQKkpqHBosrEZ6rhm2/39DiMNYYmSqZpXSeyig7LbShXL8PSo1aNDjxwbGSxPOGMp4s0l /apq0efflyQGxhhOk7RheIW9BDL1i8XcBDOnqTMm9xL1ev0OO2Xb3tbiXO2klw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=plYRIuCC; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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-Spam-Score: 4.17 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=plYRIuCC; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: 467252AA10 X-Spam-Score: 4.17 X-Migadu-Scanner: scn0.migadu.com X-TUID: aMp+GTI1Uas5 This is needed to prevent a dependency cycle between Inkscape and GTK+. * gnu/packages/gnome.scm (gusb-minimal): New variable. [configure-flags]: Disable docs. [native-inputs]: Remove gtk-doc. (gusb): Rewrite in terms of gusb-minimal. [configure-flags]: Enable docs. [native-inputs]: Add gtk-doc. --- gnu/packages/gnome.scm | 42 +++++++++++++++++++++++++++--------------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index 1c4f6a4c94..b79cf48199 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -6587,38 +6587,38 @@ (define-public gvfs DAV, and others.") (license license:lgpl2.0+))) -(define-public gusb +(define-public gusb-minimal (package - (name "gusb") + (name "gusb-minimal") (version "0.3.5") (source (origin (method git-fetch) (uri (git-reference - (url "https://github.com/hughsie/libgusb") - (commit version))) + (url "https://github.com/hughsie/libgusb") + (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "0ifhdqhpyxwsg0z9s1anj7cf5pya5qsqyp5ksh9n7mqwa4lrjkl8")))) (build-system meson-build-system) + (arguments + `(#:tests? #f ;libusb fails to initialize. Wonder what that is. + #:configure-flags + (cons "-Ddocs=false" + (if ,(%current-target-system) + ;; Introspection data cannot currently be cross-compiled. + '("-Dintrospection=false" + ;; Requires introspection data. + "-Dvapi=false") + '())))) (native-inputs `(("gobject-introspection" ,gobject-introspection) ("pkg-config" ,pkg-config) - ("vala" ,vala) - ("gtk-doc" ,gtk-doc/stable))) + ("vala" ,vala))) (propagated-inputs ;; Both of these are required by gusb.pc. `(("glib" ,glib) ("libusb" ,libusb))) - (arguments - `(#:tests? #f ;libusb fails to initialize. Wonder what that is. - #:configure-flags - ,(if (%current-target-system) - ;; Introspection data cannot currently be cross-compiled. - ''("-Dintrospection=false" - ;; Requires introspection data. - "-Dvapi=false") - ''()))) (home-page "https://github.com/hughsie/libgusb") (synopsis "GLib binding for libusb1") (description @@ -6628,6 +6628,18 @@ (define-public gusb USB transfers with your high-level application or system daemon.") (license license:lgpl2.1+))) +(define-public gusb + (package/inherit gusb-minimal + (name "gusb") + (arguments + (substitute-keyword-arguments (package-arguments gusb-minimal) + ((#:configure-flags flags) + `(cons "-Ddocs=true" + (delete "-Ddocs=false" ,flags))))) + (native-inputs + (cons `("gtk-doc" ,gtk-doc/stable) + (package-native-inputs gusb-minimal))))) + (define-public simple-scan (package (name "simple-scan") -- 2.33.1