From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uP7sBmu7vGFQPAAAgWs5BA (envelope-from ) for ; Fri, 17 Dec 2021 17:31:39 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id cBuaAmu7vGGpSAAAB5/wlQ (envelope-from ) for ; Fri, 17 Dec 2021 16:31:39 +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 914838654 for ; Fri, 17 Dec 2021 17:31:38 +0100 (CET) Received: from localhost ([::1]:34054 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1myG8v-0003PU-KX for larch@yhetil.org; Fri, 17 Dec 2021 11:31:37 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44196) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myG8M-0003NE-9Q for bug-guix@gnu.org; Fri, 17 Dec 2021 11:31:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:57200) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1myG8M-0001JF-0p for bug-guix@gnu.org; Fri, 17 Dec 2021 11:31:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1myG8L-000381-UB for bug-guix@gnu.org; Fri, 17 Dec 2021 11:31:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#51968: Missing dependency for Xournal++ Resent-From: Alexander Asteroth Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 17 Dec 2021 16:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51968 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Daniel =?UTF-8?Q?Mei=C3=9Fner?= Received: via spool by 51968-submit@debbugs.gnu.org id=B51968.163975863211984 (code B ref 51968); Fri, 17 Dec 2021 16:31:01 +0000 Received: (at 51968) by debbugs.gnu.org; 17 Dec 2021 16:30:32 +0000 Received: from localhost ([127.0.0.1]:40513 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myG7r-00037C-VL for submit@debbugs.gnu.org; Fri, 17 Dec 2021 11:30:32 -0500 Received: from sv-2s11.infcs.de ([194.95.66.48]:51816 helo=ux-2s-mailproxy.inf.h-brs.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myG7p-00036w-Hm for 51968@debbugs.gnu.org; Fri, 17 Dec 2021 11:30:30 -0500 Received: from condor.h-brs.de (p5797302f.dip0.t-ipconnect.de [87.151.48.47]) (authenticated bits=0) by ux-2s-mailproxy.inf.h-brs.de (8.15.2/8.15.2/Debian-8ska0) with ESMTPSA id 1BHGUKwx004575 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Dec 2021 17:30:21 +0100 References: <87fsrsijtk.fsf@ruhr-uni-bochum.de> <87k0gca8lj.fsf@gnu.org> <87a6gzv94l.fsf@ruhr-uni-bochum.de> User-agent: mu4e 1.6.10; emacs 27.2 From: Alexander Asteroth Date: Fri, 17 Dec 2021 17:14:33 +0100 In-reply-to: <87a6gzv94l.fsf@ruhr-uni-bochum.de> Message-ID: <87czlvkxd7.fsf@h-brs.de> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Auth: by SMTP AUTH @ ux-2s11 X-MIMEDefang-Info-ge: Gescannt in Inf@FH-BRS, Regeln s. MiniFAQ E-Mail/Mailscanner X-Scanned-By: MIMEDefang @ FB02 @ H-BRS 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: 51968@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1639758698; 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: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; bh=lQoQW9FhfCg3/XBEzn4ZcNG7EKNbHE/OeHa4GECUAw4=; b=kI83z6Vu/Ug0e042aFAoUgO586m4n0jBNkRWIaukYgrrq+VzTdI9Bi1Rlx+2QuAaTwNP2R TCa0fr3kxgYS735Q6Tr4kt7eliK8MZct8SJc37FTP0yNgotTX0AkONGXMzfZk2FY+C7WpI byYG7Gwiom3THSgJjuT0hjwF3Gz3moEJ776UMqCBJEbjAsuNIUJYe6UwtE+0GSSqskPU0S AnBAltcbgmTI9y7ZTxtyCWLIGQzA1P5BvjMrXbr7iey3u/P2I4WgJeAVl/Hqf+btTsFnj2 MI2KXL+0EGRA2RPHJhLtjpNQVPwkJLg4aoM4sdNyVOAtkCub/+HUhcVyxlWGBg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639758698; a=rsa-sha256; cv=none; b=QizdBVFkWJILB49kMEnyWeexUYdnzZCCXhcSMnqsdbHRfeyTJScL6vZTkxrRwbQm5BjbGM V3PKBuj7E2ZLnt9mdmg9X7OY+sFO7OED/otC4QYAhbwUMIp1QJ8IhBL0Xr4vV9vjAm6Dpb EA59Qk10ftJM0vhN3s0EQtBRp4YyAxe6xDweNMeeyAL0OJOKt4qqMG08WsfZ76z3PtJoLO crrJuwSm38s/mVcK/UIuZzrRN4npNcp4wIKZ876/3w98xM4B9aTQ7BjNZ0rQTgENE8x+LS 2j0bIGXT9Ke4RJG3svE0KcHTe5Q8PzYUPX6c3dyLlKFIiMDWmUIXfaa2urhWjg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=h-brs.de (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.50 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=h-brs.de (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 914838654 X-Spam-Score: -5.50 X-Migadu-Scanner: scn0.migadu.com X-TUID: EdrkwjesrlV+ --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Daniel, Hi Ludovic, I can reproduce the missing icons issue by running=20 > guix shell --pure -f xournalpp-fix.scm -- xournalpp as suggested below. Wondering why the icons are not missing when I run xournalpp in my environment I discovered that > guix shell --pure gtk+ -f xournalpp-fix.scm -- xournalpp resolves this problem. Looking at your xournalpp-fix.scm file I wondered what the function modify-input exactly does (and how to add gtk+ to the append clause). I don't find neither documentation in the manuals nor code for it in a guix checkout (when I do a recursive grep in the source for guix or gnu modules the result is empty). Cheers, Alex On Fri, Dec 17 2021, 11:06:02, Daniel Mei=C3=9Fner wrote: > Hi Alexander, hi Ludo=E2=80=99, > > Ludovic Court=C3=A8s writes: >> Hi Daniel, >> >> Daniel Mei=C3=9Fner skribis: >> >>> there is a problem with the package xournalpp on Guix master. To >>> reproduce run: >>> >>> $ guix shell --pure xournalpp -- xournalpp > > [...] > >> How should this be addressed? Adding =E2=80=98gnome-icon-theme=E2=80=99= as a >> propagated input would be quite unusual, but maybe it=E2=80=99s become >> necessary? > > I have done some more analysis. First of all, I was wrong in pointing > out it has to be =E2=80=98adwaita-icon-theme=E2=80=99 for it to work, =E2= =80=98gnome-icon-theme=E2=80=99 > does also work. Of course, you then get a different =E2=80=98image-missi= ng=E2=80=99 > icon. However, let me elaborate a bit: > > The following command tries to invoke xournalpp in a pure and > environment. It crashes because it cannot find =E2=80=98image-missing.pn= g=E2=80=99. It > tries to load this icon in the first place because it cannot load its > own toolbar icons. > > #+begin_src bash > guix shell --pure xournalpp -- xournalpp > #+end_src > > > However, when run from within Gnome it works without problems and the > toolbar icons show up. Running the following prevents the crash but > most of the toolbar icons now show the =E2=80=98image-missing=E2=80=99 ic= on: > > #+begin_src bash > guix shell --pure xournalpp gnome-icon-theme > export XDG_DATA_DIRS=3D$GUIX_ENVIRONMENT/share > xournalpp > #+end_src > > > Depending on whether one uses =E2=80=98gnome-icon-theme=E2=80=99 or =E2= =80=98adwaita-icon-theme=E2=80=99 > different icons for =E2=80=98image-missing=E2=80=99 are used. > > It seems to me that evince also does not find all of its icons. > However, it does not crash because it has =E2=80=98adwaita-icon-theme=E2= =80=99 as one of > its inputs (although it is just an input, not a propagated input). The > missing icon is the =E2=80=98view-sidebar-symbolic-ltr=E2=80=99 and is co= mplained about > after opening some PDF. > > #+begin_src bash > guix shell --pure evince -- evince > #+end_src > > > Also in this case when run from Gnome the sidebar icon is correctly > displayed. > > So in order to address the crash it seems natural to add either > =E2=80=98gnome-icon-theme=E2=80=99 or =E2=80=99adwaita-icon-theme=E2=80= =99 to the list of inputs. For > example, the following package definition yields a =E2=80=9Cworking=E2=80= =9D Xournalpp > in the sense that it does not crash. > > #+begin_src scheme > (use-modules (guix packages) > (gnu packages pdf) > (gnu packages gnome)) > > (package/inherit xournalpp > (inputs (modify-inputs (package-inputs xournalpp) > (append adwaita-icon-theme)))) > #+end_src > > > Put the above in a file named =E2=80=98xournalpp-fix.scm=E2=80=99 and the= n run: > > #+begin_src bash > guix shell --pure -f xournalpp-fix.scm -- xournalpp > #+end_src > > Xournalpp does not crash, however, the correct toolbar icons are still > missing and this seems to be the actual problem. Any ideas where to > look for the problem? I have not tried to run Xournalpp in an XFCE > environment to see if the toolbar icons are missing there, too. But > maybe Alexander has, since he discovered the problem in the first place. > As I am using Gnome, I have never run into this issue before despite > having been using Xournalpp under Guix for a while now. > > Since evince also shows this behaviour in an isolated environment: > Might there be a general underlying problem? > > Best > Daniel --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFQBAEBCAA6FiEEXU8UwBfdlxG/YNXXLg/GxGpHPCwFAmG8uxQcHGFsZXhhbmRl ci5hc3Rlcm90aEBoLWJycy5kZQAKCRAuD8bEakc8LKwvB/9AYaD3wmvxPq2+vz5V VSRsq1axW+WYFaSDKEPrbLQEoITazvOSwpiOB4Y5cRkhvF46psDAjTCEVdzl28XK 8+Fqw464fNjcdIrcN2nP6tkRLaUmSN64U2CLesrny21VubPVNmg6mEgJfjj4d4P3 3cZ/yeIESES2RT9q4SOpoNiiDL5q7shuYlatx9qwBdPe+7cD4yKYBvdkddjiG4gr w3HyeDlIBEuV4MTzkktXr8SAf0DY6ldMoQn756YVrNdDW7OP+B2jqj+xf/JDa6C2 6oRsMmUCuhSKiO9GoplK1251UFysiJYQy3F4diD8+j1928TZ/NVbGEbvRg8ZHYQe 3Gzi =KCvH -----END PGP SIGNATURE----- --=-=-=--