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 ms11 with LMTPS id 2IOkIqC23F+XPgAA0tVLHw (envelope-from ) for ; Fri, 18 Dec 2020 14:03:12 +0000 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 eCBnHqC23F8iDgAA1q6Kng (envelope-from ) for ; Fri, 18 Dec 2020 14:03:12 +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 E40CC940253 for ; Fri, 18 Dec 2020 14:03:11 +0000 (UTC) Received: from localhost ([::1]:57770 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kqGLe-00028K-Ps for larch@yhetil.org; Fri, 18 Dec 2020 09:03:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34006) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqGIV-0008Rs-2c for help-guix@gnu.org; Fri, 18 Dec 2020 08:59:56 -0500 Received: from mail-qt1-x830.google.com ([2607:f8b0:4864:20::830]:41868) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kqGIQ-0004gU-4a for help-guix@gnu.org; Fri, 18 Dec 2020 08:59:54 -0500 Received: by mail-qt1-x830.google.com with SMTP id j26so1273686qtq.8 for ; Fri, 18 Dec 2020 05:59:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=skBcuJh6sCadvMaJs2aNQUOaHQP2wNCw+QtzJlOdkS4=; b=JXTayfY/tT3mSggA5ZY/PorUII9gH/KK4YWSHmyqqKKXXL2iJwIk4WIXwMmSkuBYjh IVa5zOL5jOK+l/aMhNyJ/1sxbKgEtL9H1PQvRsHiIZeOZQR0c94tVjkuKb1cG9q+Wvuz bxrs6hrrHYFTsZRaiXmrX4V7yDg7FPNA+x+rCw30l/fSguI2SmzzaMmSxGGbv5lbWrsh K1GjW2qdbFVYPq4Ce/fTn6ICJQvQkM5B9c1D9sKvld1WYcphdSE3aeAKycRg3zsKpOEd 1Tqi2x8KXXf2OCuobQmwYOcYjhQUAm/8v28e2Z2KxiXH2YXlo2JhNz7k0dcgNiB73RDl b+yA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=skBcuJh6sCadvMaJs2aNQUOaHQP2wNCw+QtzJlOdkS4=; b=k71WOg+m56+VYVf5NG6OZJHhOkyvhRZXoZCWRTjTogjEGEai+brIb/hgxCimw/ckRB FyIDbzU6SLAnGgcESXOYW6fYhYXf+L4Z3Omo7tjQPeUiUH2itdmgNThC64Wl9jkYuKdL Ghw79MYaF5Uq9T0l+4q8dA0eYRKPRhG1MJeN4bxpT9S+Q6Mgym01GsyZR5w6H6/s5JIg ixGaqesm55gwNAWIEHdm/F7jlvukBGsN+zMVt1biKJgDMuBhV4DOu9wxmPGaQSRzwm88 GISTALJ4Y7LyiTjTdxpYVCLKUrcnwxFiFPiDmlBu6gyuGKm+EdlRhLBYNwZ3ckPIzZ6j 4REA== X-Gm-Message-State: AOAM531Jqnj754/Z8cfiHxOpFa5vaLxQ0nCLgi+Ku5GNBYLM2MIE4aCH tk7B5YD2yQshlxzoq2GyGkaZ/rVOwYGoQzHshZqgedv7 X-Google-Smtp-Source: ABdhPJxABfC9jVGJfuInxugfpoR5vDQBnpTki8Sa6KRQ+f6TgpMAu+cRtp7ksZ3Lx/F+Zor+s/nQWdvd3AZPoFK/Krs= X-Received: by 2002:ac8:598d:: with SMTP id e13mr4024732qte.313.1608299989083; Fri, 18 Dec 2020 05:59:49 -0800 (PST) MIME-Version: 1.0 References: <87h7ov0vxl.fsf@disroot.org> <87h7ou1yxf.fsf@ambrevar.xyz> <861rfxj0lx.fsf@gmail.com> <87wnxgf3hh.fsf@disroot.org> <867dpfools.fsf@gmail.com> <875z4z4v6s.fsf@zancanaro.id.au> <86h7ojmqtq.fsf@gmail.com> <8736034fsk.fsf@zancanaro.id.au> <86eejnmmao.fsf@gmail.com> <87wnxf2vle.fsf@zancanaro.id.au> In-Reply-To: <87wnxf2vle.fsf@zancanaro.id.au> From: zimoun Date: Fri, 18 Dec 2020 14:59:37 +0100 Message-ID: Subject: Re: Can I easily install GNU Emacs 27.1.50 via Guix? To: Carlo Zancanaro Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::830; envelope-from=zimon.toutoune@gmail.com; helo=mail-qt1-x830.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: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.02 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=JXTayfY/; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: E40CC940253 X-Spam-Score: -2.02 X-Migadu-Scanner: scn0.migadu.com X-TUID: W+52bi+0Ds+P Hi, On Fri, 18 Dec 2020 at 12:37, Carlo Zancanaro wrote: > My point is: Guix manipulates environment variables in a way that > can, and does, break "foreign" programs when Guix's programs > launch "foreign" programs. We should consider this a bug. This bug > might be hard, or even impossible, to resolve but we should > consider it a bug nonetheless. I am not sure to agree. The unexpected (by you :-)) behaviour at hand is about Emacs and "M-x shell"; and I will not speak "in general". > > --8<---------------cut > > here---------------start------------->8--- > > guix environment --ad-hoc emacs grep coreutils --pure > > env | grep GTK_PATH > > /usr/bin/evince # Works! > > > > emacs -q -f shell > > sh-5.0$ env | grep GTK_PATH > > GTK_PATH=/gnu/store/v3rqcgz6chnmv2sg7lgf4s9kv2xyb5rl-gtk+-3.24.23/lib/gtk-3.0 > > sh-5.0$ /usr/bin/evince > > > > (evince:21780): GLib-GIO-ERROR **: 11:24:25.706: No GSettings > > schemas are installed on the system > > Trace/breakpoint trap > > sh-5.0$ unset GTK_PATH > > sh-5.0$ env | grep GTK_PATH > > sh-5.0$ /usr/bin/evince > > > > (evince:25064): GLib-GIO-ERROR **: 11:32:22.826: No GSettings > > schemas are installed on the system > > Trace/breakpoint trap > > --8<---------------cut > > here---------------end--------------->8--- > > > > So the story seems more complicated than GTK_PATH. :-) > > Did you try opening the print dialog in evince? If you did, then I cannot even open "evince" inside Emacs shell... > you should have seen different behaviour when GTK_PATH was set > compared to when it wasn't. Namely, when GTK_PATH was set you ...and whatever if GTK_PATH is set or unset. That's what my example shows. > The problem is that GTK_PATH is checked for libraries first, where > it finds the above library and tries and fails to load it. It does > not fall back to the default paths, but rather treats loading that > library as having failed, and thus evince cannot print. When > GTK_PATH is unset it checks the default locations, and > successfully finds and loads the library, and thus evince can > print. My point is: it is more complicated than only the environment variable GTK_PATH. Well, if you feel it is a bug, please open a bug report detailing what is the problem. Personally, I do miss what it is and what could be the actionable next step. All the best, simon