From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0Jt0LqebQ2Gy0wAAgWs5BA (envelope-from ) for ; Thu, 16 Sep 2021 21:31:51 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id qDEGKqebQ2F5PwAAbx9fmQ (envelope-from ) for ; Thu, 16 Sep 2021 19:31:51 +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 1C5D2548E for ; Thu, 16 Sep 2021 21:31:51 +0200 (CEST) Received: from localhost ([::1]:55330 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQx6s-00070q-66 for larch@yhetil.org; Thu, 16 Sep 2021 15:31:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35754) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQx2E-0003dp-51 for guix-patches@gnu.org; Thu, 16 Sep 2021 15:27:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45061) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mQx2D-0000tZ-SG for guix-patches@gnu.org; Thu, 16 Sep 2021 15:27:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mQx2D-0004SA-Ow for guix-patches@gnu.org; Thu, 16 Sep 2021 15:27:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50627] [PATCH 1/2] gnu: gtk: Move wayland-protocols to native-inputs. Resent-From: muradm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 16 Sep 2021 19:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50627 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50627@debbugs.gnu.org Received: via spool by 50627-submit@debbugs.gnu.org id=B50627.163182041117080 (code B ref 50627); Thu, 16 Sep 2021 19:27:01 +0000 Received: (at 50627) by debbugs.gnu.org; 16 Sep 2021 19:26:51 +0000 Received: from localhost ([127.0.0.1]:56603 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQx22-0004RO-CR for submit@debbugs.gnu.org; Thu, 16 Sep 2021 15:26:50 -0400 Received: from nomad-cl1.staging.muradm.net ([139.162.159.157]:58066 helo=nomad-cl1.muradm.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQx20-0004RC-R4 for 50627@debbugs.gnu.org; Thu, 16 Sep 2021 15:26:49 -0400 Received: from [176.234.10.27] (port=7038 helo=localhost) by nomad-cl1.muradm.net with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mQx20-0000Y5-OM for 50627@debbugs.gnu.org; Thu, 16 Sep 2021 19:26:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=muradm.net; s=mail; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=J/TuWgqOG2BAplCq+gFqkqBbFuo+lwXaWA2K+oI/Hdw=; b=AAi7RMDwPO1htN/P3EnMw6mpQ6 iADevAXV6PXAWYrXXmLBnvjkkPgbyXPd8eG91I6jhuHXfcCnNMOoBtrbUMDD91QseRJ3tr92Rrdd0 65eAGNhqH+C/sh/EFoM7Q1X0frS3vye4MSr3Bu4wmEh2aJ8mfXblBBfoW05iQGjhbzG5pCdQTsGn+ U74MkEeP623oyqStiZlgQgiXBui9T3ZCfSjr+SiCJeu6xpjgACQ9q1tknZgaxXuBiVN09drsn8r02 1c5n3KN6Evq8Sjm8ETZdnaR2MxHXwMgTXJaVanNItXq4qmaoqAd/kZpXD9f008PC0fzvGS66tg1Be AsfSn0+IFpuB9jISf9inCihIfyO66p2tO1Y9cvbOIAU0l4GB9VvMiONNUUCziolMbTAuXmxbiDD/8 /1zPn+vNV/tu3JEI+umY3LIUpf19YjZP5p7/fIwt+nIHMhx63V/PsPVFcx1G6nYM/fRsgaiqoBFoX q4zw97+2juboum7SKWmFhB7u; Received: from muradm by localhost with local (Exim 4.94.2) (envelope-from ) id 1mQx1y-0007jc-7i for 50627@debbugs.gnu.org; Thu, 16 Sep 2021 22:26:46 +0300 From: muradm Date: Thu, 16 Sep 2021 22:26:45 +0300 Message-Id: <20210916192646.29726-1-mail@muradm.net> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916192331.29606-1-mail@muradm.net> References: <20210916192331.29606-1-mail@muradm.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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1631820711; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=J/TuWgqOG2BAplCq+gFqkqBbFuo+lwXaWA2K+oI/Hdw=; b=dMKYLjl2yUn3S9v0Ty+H4fjgHVhZyPVbpD7pJmi9pLyJ6nhvl5o6dmZHc8Gvh1Rcnpbtb1 Q8IZj33PSxB8nSyS17sJQZSsu7PJxW6ckLBjgmfqYqn+djQgTUheZDx4oj+5o/d05QTVhz vTzRQtyHZNouzjgEvgiwYto3L1H9fO2m8dIGQiWBUoOU1D1t5zPWCafkfFaonoZK4+VOES ou2rwyBHi9/77hQxpfaHZL9nsQJjxhhrec3QC/IdsCwXR414Pdvz0tIKfSBljgC+X6HaJP 9I6ckC22SBng8lX1cCe2poXk3uhCesX2nhctMeB9UuqMvbhiC2IYesNht7mbPA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631820711; a=rsa-sha256; cv=none; b=Hg632ZCD/LQmLNGctMJ/gSikSsJQT0hZFX52Wb3MF/riC9EW7rjUU5oT9K85cOSAp6rYV6 KftyXGdp2V/PLlUps6hvW7xzHnwaW2iSq4KPPw0B9r0Kty0W08+sD0aHilOFt2p2VZS4Oo TfCnlbxW3Dpz6KSRjrU/jgUmRuvonfiKXez+pycHRteIxMhr+Xj7zoaqZsqzZ1p6ojm530 FzwQDOGf9nbAx9dbFwfh7oo72Zq9cymNYyreJZxJ2lt0wEyIKglKSBuItJZdytFHv1KdoR rp/cmjALXOc7mXk7caaH3EQ7ebSeLkWbC3ATr9ftOLjrJ0f5dhFBUcImVvrcnQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=muradm.net header.s=mail header.b=AAi7RMDw; 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: 5.10 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=muradm.net header.s=mail header.b=AAi7RMDw; 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: 1C5D2548E X-Spam-Score: 5.10 X-Migadu-Scanner: scn0.migadu.com X-TUID: mnHnXsBKIU9g I was building some packages on Guix. I figured out that wayland-protocols was listed among propagated-inputs for gtk+ package. wayland-protocols is not runtime dependency, so I moved it to native-inputs of gtk+ package, once moved, building of other applications that depening on gtk+ started to fail. Investigation showed that, all .pc (pkg-config) files prepared by gtk+ package, was including: Requires.private: ... wayland-protocols ... Since it becomes requirement, other applications was failing with missing dependency wayland-protocols of dependency gtk+, for instance: -- Checking for module 'gtk+-3.0' -- Package 'wayland-protocols', required by 'gdk-3.0', not found While actually wayland-protocols is not even a build time dependency of application that depends on gtk+. Advertisement of such requirement, is a bit misleading, because one does not need it at runtime, especially applications based on gtk. Same change also merged upstream for both master and gtk-3-24 branch. * gnu/packages/patches/gtk3-wayland-protocols-dependency.patch: Upstream change * gnu/packages/gtk.scm (gtk+): move wayland-protocols to native-inputs --- gnu/packages/gtk.scm | 7 +++--- .../gtk3-wayland-protocols-dependency.patch | 23 +++++++++++++++++++ 2 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 gnu/packages/patches/gtk3-wayland-protocols-dependency.patch diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm index 24c24d5653..2dbfcde6e5 100644 --- a/gnu/packages/gtk.scm +++ b/gnu/packages/gtk.scm @@ -948,7 +948,8 @@ application suites.") (base32 "1a9vg840fjq1mmm403b67k624qrkxh9shaz9pv7z9l8a6bzvyxds")) (patches (search-patches "gtk3-respect-GUIX_GTK3_PATH.patch" - "gtk3-respect-GUIX_GTK3_IM_MODULE_FILE.patch")))) + "gtk3-respect-GUIX_GTK3_IM_MODULE_FILE.patch" + "gtk3-wayland-protocols-dependency.patch")))) (propagated-inputs `(("atk" ,atk) ("at-spi2-atk" ,at-spi2-atk) @@ -978,8 +979,7 @@ application suites.") ("libxrender" ,libxrender) ("mesa" ,mesa) ("pango" ,pango) - ("wayland" ,wayland) - ("wayland-protocols" ,wayland-protocols))) + ("wayland" ,wayland))) (inputs `(("colord" ,colord) ("cups" ,cups) @@ -999,6 +999,7 @@ application suites.") ("pkg-config" ,pkg-config) ("python-wrapper" ,python-wrapper) ("sassc" ,sassc) + ("wayland-protocols" ,wayland-protocols) ;; By using a special xorg-server for GTK+'s tests, we reduce the impact ;; of updating xorg-server directly on the master branch. ("xorg-server" ,xorg-server-for-tests) diff --git a/gnu/packages/patches/gtk3-wayland-protocols-dependency.patch b/gnu/packages/patches/gtk3-wayland-protocols-dependency.patch new file mode 100644 index 0000000000..03196713bc --- /dev/null +++ b/gnu/packages/patches/gtk3-wayland-protocols-dependency.patch @@ -0,0 +1,23 @@ +diff --git a/configure b/configure +index edd41ad..cb36877 100755 +--- a/configure ++++ b/configure +@@ -23247,7 +23247,8 @@ $as_echo "no" >&6; } + fi + fi + +-WAYLAND_DEPENDENCIES="wayland-client >= 1.14.91 wayland-protocols >= 1.17 xkbcommon >= 0.2.0 wayland-cursor >= 1.14.91 wayland-egl" ++WAYLAND_RUNTIME_DEPENDENCIES="wayland-client >= 1.14.91 xkbcommon >= 0.2.0 wayland-cursor >= 1.14.91 wayland-egl" ++WAYLAND_DEPENDENCIES="wayland-protocols >= 1.17 $WAYLAND_RUNTIME_DEPENDENCIES" + if test "$enable_wayland_backend" = "maybe" ; then + # Extract the first word of "wayland-scanner", so it can be a program name with args. + set dummy wayland-scanner; ac_word=$2 +@@ -23320,7 +23321,7 @@ if test "$enable_wayland_backend" = "yes"; then + GDK_WINDOWING="$GDK_WINDOWING + #define GDK_WINDOWING_WAYLAND" + backend_immodules="$backend_immodules,wayland" +- WAYLAND_PACKAGES="$WAYLAND_DEPENDENCIES" ++ WAYLAND_PACKAGES="$WAYLAND_RUNTIME_DEPENDENCIES" + # Extract the first word of "wayland-scanner", so it can be a program name with args. + set dummy wayland-scanner; ac_word=$2 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -- 2.33.0