From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id rSBWNAAQR2ANCwAA0tVLHw (envelope-from ) for ; Tue, 09 Mar 2021 06:04:48 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 6B6XLwAQR2AiFQAAB5/wlQ (envelope-from ) for ; Tue, 09 Mar 2021 06:04:48 +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 39A9112783 for ; Tue, 9 Mar 2021 07:04:48 +0100 (CET) Received: from localhost ([::1]:43414 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJVU6-0005yZ-T6 for larch@yhetil.org; Tue, 09 Mar 2021 01:04:46 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48808) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJVTm-0005yH-BN for guix-devel@gnu.org; Tue, 09 Mar 2021 01:04:26 -0500 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]:37265) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lJVTk-0006LG-Cx for guix-devel@gnu.org; Tue, 09 Mar 2021 01:04:26 -0500 Received: by mail-pl1-x62e.google.com with SMTP id 30so1472153ple.4 for ; Mon, 08 Mar 2021 22:04:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=B/rTHCSOlUX96BR41Mr20YEME0oWx3OKs4FWmcYLgoI=; b=m+hcj7R1Sv8CSI7tHMwWeNCRDDept8ONHvatGznPCtGyTZpXXZyAPA53mgn+UwF0v5 PGO/1E0Rgi1EyYxqABbfkYuy9pYWF6Qb9jI5DYyj3OvgB3PFdhaRI8yVeACQ+QVTavLl wCLba9HgySAo8DEnXXdVVO7XxloacUtvQ6g0CFYFkaIxWbHGijSchEJ/3wcfeQOnXa9i XtZ2R+bBoenISzdFqNz8oVsEXopQMmp155Kmj1JIQfL2RgaOAlO9NOZV+0bwn5kdQdM3 BPX5qFFfaVKOL+M/PrNy89FyCiceA6K2SVDXaCvIp5q5QYhF7x7GKM7l53COdYcUyMbG Ux9A== 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:references:date:in-reply-to :message-id:user-agent:mime-version; bh=B/rTHCSOlUX96BR41Mr20YEME0oWx3OKs4FWmcYLgoI=; b=RykiN5B9/2nRPg8Sptc9MIZPxxV4JP38jA085BmhKuJEBr6OZhEtEx6eRLOVMh3PKN FaBmzxaV6nKgczPVEn0QXtmGioB3hGK05sEq/KeFiy6SU15iL0BPDoir1Qjv81a7bEF5 9NcqVibXF/MkZ5Er2VZ0S5pom6KUgXVBDupNEeOgMGubAsiZVDrKQv1Y2EJpPLk2Xo+a T3iaqs//9H1MlGjESfxi9B2Y3UfVYb+a2KpUZ6MAa9C3RPw/zscc6F3cJPmTNRgdYAfl pBbftU/mIsjA2tZlgTPtWbvXcaGxWXacfNSNqBSiNUXfJ9nmGVw2JGgYtw8kNa2nFhbP /6ew== X-Gm-Message-State: AOAM533bZfpndPWJ22TETC33CY/Q6guBsg6qsVtmVb/jV36lMQa5BsGA eT80C7n8EoiG9tDdINtZCVB2IocJfKTRvw== X-Google-Smtp-Source: ABdhPJwL/PN9+4eDl8UT7PT0ZROaIkAo4cuQUnm5QdKaJmHI7AOQANWVtFyljD7DlFR2hmmDGjrkXQ== X-Received: by 2002:a17:90b:1651:: with SMTP id il17mr3048843pjb.16.1615269861559; Mon, 08 Mar 2021 22:04:21 -0800 (PST) Received: from garuda-lan (c-24-18-44-142.hsd1.wa.comcast.net. [24.18.44.142]) by smtp.gmail.com with ESMTPSA id l20sm5651090pfd.82.2021.03.08.22.04.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Mar 2021 22:04:20 -0800 (PST) From: Chris Marusich To: Mark H Weaver , Ricardo Wurmus , Christopher Baines , Leo Famulari Subject: Re: core-updates: Emacs is only supported on x86_64-linux? References: <87a6rf5rd6.fsf@gmail.com> <87a6rf5rd6.fsf@gmail.com> <87r1krgs10.fsf@netris.org> <87a6rf5rd6.fsf@gmail.com> <87r1krgs10.fsf@netris.org> <874khm5pab.fsf_-_@gmail.com> <87a6rf5rd6.fsf@gmail.com> <87r1krgs10.fsf@netris.org> <874khm5pab.fsf_-_@gmail.com> <87sg56i55h.fsf@netris.org> <87a6rf5rd6.fsf@gmail.com> <87r1krgs10.fsf@netris.org> <874khm5pab.fsf_-_@gmail.com> <87sg56i55h.fsf@netris.org> Date: Mon, 08 Mar 2021 22:04:16 -0800 In-Reply-To: <87sg56i55h.fsf@netris.org> (Mark H. Weaver's message of "Mon, 08 Mar 2021 00:29:51 -0500, Mon, 08 Mar 2021 08:19:16 +0100, Mon, 08 Mar 2021 22:33:00 +0000") Message-ID: <87zgzc50db.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=2607:f8b0:4864:20::62e; envelope-from=cmmarusich@gmail.com; helo=mail-pl1-x62e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615269888; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=B/rTHCSOlUX96BR41Mr20YEME0oWx3OKs4FWmcYLgoI=; b=etuK/otYDNNTn7ixiliG+pUVT6QTamI276OwkON/7FTRCNk/WOZYjvD4YYq3T8uGDa5Pgm sUYAEV8MxM9rvUqDqXEv6mPcGt+3NsEzFpWllbLpDXUhZEETL+kTFg9phMHYJ11hla9wKy s0yhISat0iERdfobnKEVxWxHJkaBWcVuBoo744hrkOiaXM+Wuj46i+bxBuhVhgD44fedjA q8IYmxWrCYbThAXZCZHd1Ge6elQ9apOKb+x5O0/ttYBqpdmS/MGgldizH8xJnfI/s/XI4f 23Hw9AXzXfFB/olqzvUlIZlYeWb8kTLysrwjUwv4JA/oW/xwh8FDRY88XkHSDA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615269888; a=rsa-sha256; cv=none; b=tWrF9MbErLLPjcdW4t/c1rkBAwN0xIH7hYbe/Tu9pNe2KKurcOEiVr77vVOszWShLYdFl5 8Beett2nsgyBhytBsa9v1tGF/O4TmCgkzbqgv+BVei57CfCyitejm21C4/EdyQ7TzDvp1Q lbWbqLxL9JRVVo6NawQZb5mYvEgYlg3W6qL3Bo5cl1iYaKwQbj0lsmJ/rku4wVA6NGK3ws Gw3Q36Xkm57sA6S3aVSWNFisv/jBNQmmWp9DzgssUdBGXmVSq2n47MkeKt6ZWx+1Ga9SlK wPBa8cPPusdFsllS2oV94YhrRAvAkLZ4s1on3D8MzTuErzXf6hBEdpHwLtUPOQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=m+hcj7R1; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -4.18 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=m+hcj7R1; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 39A9112783 X-Spam-Score: -4.18 X-Migadu-Scanner: scn0.migadu.com X-TUID: Dj73J1UU9T36 --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hi, Mark H Weaver writes: > Ugh. I'd prefer to avoid removing 'gtk+' from the inputs to 'emacs' on > any system, because the distinguishing characteristic of that package > (compared with the other Emacs variants) is that it's the Gtk+ variant > of Emacs. How about a patch like the following - would it be acceptable to you? --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=patch Content-Transfer-Encoding: quoted-printable diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index 98061c93ae..4d2caf205a 100644 =2D-- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -71,6 +71,7 @@ #:use-module (gnu packages xml) #:use-module (gnu packages xorg) #:use-module (guix utils) + #:use-module (ice-9 match) #:use-module (srfi srfi-1)) =20 (define-public emacs @@ -236,7 +237,12 @@ ("libpng" ,libpng) ("zlib" ,zlib) =20 =2D ("librsvg" ,librsvg) + ;; librsvg is an optional dependency that pulls in rust. Rust is n= ot + ;; supported well on every architecture yet. + ,@(match (or (%current-target-system) + (%current-system)) + ("x86_64-linux" `(("librsvg" ,librsvg))) + (_ '())) ("libxpm" ,libxpm) ("libxml2" ,libxml2) ("libice" ,libice) diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm index f458366fb6..0468cbf830 100644 =2D-- a/gnu/packages/gtk.scm +++ b/gnu/packages/gtk.scm @@ -776,7 +776,12 @@ is part of the GNOME accessibility project.") (outputs '("out" "bin" "doc")) (propagated-inputs `(("atk" ,atk) =2D ("gdk-pixbuf" ,gdk-pixbuf+svg) + ;; SVG support is optional and requires librsvg, which pulls in rust. + ;; Rust is not supported well on every architecture yet. + ("gdk-pixbuf" ,(match (or (%current-target-system) + (%current-system)) + ("x86_64-linux" gdk-pixbuf+svg) + (_ gdk-pixbuf))) ("pango" ,pango))) (inputs `(("cups" ,cups) @@ -843,7 +848,12 @@ application suites.") (propagated-inputs `(("at-spi2-atk" ,at-spi2-atk) ("atk" ,atk) =2D ("gdk-pixbuf" ,gdk-pixbuf+svg) + ;; SVG support is optional and requires librsvg, which pulls in rust. + ;; Rust is not supported well on every architecture yet. + ("gdk-pixbuf" ,(match (or (%current-target-system) + (%current-system)) + ("x86_64-linux" gdk-pixbuf+svg) + (_ gdk-pixbuf))) ("libepoxy" ,libepoxy) ("libxcursor" ,libxcursor) ("libxi" ,libxi) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I've tested this patch (on its own, applied to wip-ppc64le locally, without the other two patches mentioned earlier in this thread), and it successfully restores the "supported systems" for emacs (thus fixing the tests/package.sh test failure), without changing rust's list of supported systems, which remains hard-coded to x86_64-linux. Eventually I think I will definitely need a change like the one Chris proposed in order to actually troubleshoot build failures involving rust on powerpc64le-linux, but I suppose when the time comes, I can do it in a private branch and save the build farm some wasted cycles. It's fine with me if we don't make a change like that right now, since it isn't blocking my porting work. Mark H Weaver writes: > Aside: I wish that Guix included a convenient tool to answer the > question "Why does package X depend on package Y?", i.e. "What paths of > dependencies lead from package X to package Y?", without having to view > the entire dependency graph (which is often too complex to grasp > visually). Ricardo Wurmus writes: > (=E2=80=9Cguix graph=E2=80=9D is of no help here, because it doesn=E2=80= =99t show build system > packages, so I looked through the derivations.) The "--paths" option with "--type=3Dbag" shows you this (results below were, of course, taken before applying the patch above): =2D-8<---------------cut here---------------start------------->8--- marusich@suzaku:~/repos/guix$ ./pre-inst-env guix graph --type=3Dbag --path= gtk+ rust gtk+@3.24.24 gdk-pixbuf+svg@2.42.2 librsvg@2.50.3 rust@1.49.0 =2D-8<---------------cut here---------------end--------------->8--- Christopher Baines writes: > I've gone ahead and pushed the patch I proposed to master, I think it's > a step forward. > > As you say, adapting the change for core-updates might be good as > well. I want to check though if rust builds for i686-linux on > core-updates, as the path is different to master, so it may well work. > > So yeah, once I've found out whether rust works on i686-linux on > core-updates, I might make a change there too. I don't have a strong personal opinion about this, since I'm building everything from source anyway, and I want a patch like this eventually on core-updates, too. However, in light of Mark's comments, is it a good idea to apply that patch right now? =2D-=20 Chris --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAmBHD+AACgkQ3UCaFdgi Rp2H0xAArdkVTEM5J4JPGakreep/jX6InIz5Dik6Uhs/8OiLVlC1oOoin/tnEL4F wqttT3EZvxYpNPuzfLqLnLck1YRVKIkhJtGyNzfxFYK4kjr7B37cz3x6dVb3bCBb gwnVh44YeAQEkyKULK0z4WVUraJtjtGR6Jl069fgJ6rEravT+i7cxbs0HclpvKtG fRxiY+cFBvbmH+b/+kjSAFZvAWPrvvxvPGpnHlCndvGr+4C+xO3ZFWd9wzDLhgZ/ ADx47jAXJlHf5nrCb0Pnb9i8V1kL7ZwfWG8ZzWXukuou/Swe7s5I8nToXXEUgcEV jnKNdosXNoMQ0P/zYCza1lNmYq2S38VN3ZcgOfhzgNFwmFR0yBQjK2AyOt6V50S9 M3dwUzXLTTqXpD+dvxXSynDER/sRGo/ArUwy3gQlw4Zg8c3Ly6bXdVqZPCpyWIHk T/Jyxtjq6NuMpMLRzGnD+WOLPsbUc0BF7XlAOPZRbDvwunJWPvh/BMtTIo0wv6n0 jqWA3IPrEMZOTWRmjTQhP+CE8SWPSsBJFGh9TWEBO1Sd+kyLJ8wDoLuVQU+pvQ1x SSSP25p59JRDdttstQev4lsSmRpyaVW8HPAFPQKPJ063HpEGdbMetCk2gp5+G+DF ZjYq75eiyJdSN9tQhzNPl1OCOeL3E1xUqnFQ0Ar1s6D4N8VAZRY= =y10o -----END PGP SIGNATURE----- --==-=-=--