From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: Re: Help required: packaging Foliate Date: Thu, 6 Feb 2020 21:51:51 +0200 Message-ID: <20200206195151.GE7827@E5400> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="X3gaHHMYHkYqP6yf" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:34244) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iznCw-0001F8-EK for guix-devel@gnu.org; Thu, 06 Feb 2020 14:53:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iznCr-0002fC-Ui for guix-devel@gnu.org; Thu, 06 Feb 2020 14:53:02 -0500 Received: from flashner.co.il ([178.62.234.194]:49560) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iznCr-0000z2-NS for guix-devel@gnu.org; Thu, 06 Feb 2020 14:52:57 -0500 Content-Disposition: inline In-Reply-To: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane-mx.org@gnu.org Sender: "Guix-devel" To: Alexandru-Sergiu Marton Cc: guix-devel@gnu.org --X3gaHHMYHkYqP6yf Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 06, 2020 at 09:30:04AM +0000, Alexandru-Sergiu Marton wrote: > Hi, >=20 > I'm trying to package the ebook reader called Foliate [1]. >=20 > I managed to write a recipe that installs it, but it has problems at > runtime. If you click anything that is supposed to open up a dialog, > such as the "Open file" or "Preferences" buttons, the whole thing > freezes. I'm not good at (read: I don't know a single thing about) GTK > and GNOME stuff, so I'm putting this out here hoping that someone > might know what's happening. >=20 > Here's the package definition (the use-modules part is written by hand > in this email cause I had this in a module of it's own): >=20 > (use-modules (gnu packages) > (guix build-system meson) > ((guix licenses) #:prefix license:) > (guix download) > (guix packages) > (guix utils)) > (use-package-modules gnome gettext webkit pkg-config glib gtk freedesktop) >=20 > (package > (name "foliate") > (version "1.5.3") > (source (origin > (method url-fetch) > (uri (string-append > "https://github.com/johnfactotum/foliate/archive/" version ".tar.gz")) > (sha256 > (base32 > "1mz27qj9zwkn978yd4sdswha4laq5gf9s6cs5xrkqfj9242mrx4m")))) > (build-system meson-build-system) > (inputs > `(("gettext" ,gnu-gettext) > ("pkg-config" ,pkg-config) > ("glib:bin" ,glib "bin") > ("gtk+:bin" ,gtk+ "bin") > ("desktop-file-utils" ,desktop-file-utils))) > (propagated-inputs > `(("gjs" ,gjs) > ("webkitgtk" ,webkitgtk) > ("gsettings-desktop-schemas" ,gsettings-desktop-schemas))) > (synopsis "Simple and modern GTK eBook viewer, built with GJS and Epub.j= s") > (description "") > (home-page "https://johnfactotum.github.io/foliate/") > (license license:gpl3+)) >=20 >=20 > [1]: https://github.com/johnfactotum/foliate >=20 I built it but I wasn't able to get it to run: $ com.github.johnfactotum.Foliate (.com.github.johnfactotum.Foliate-real:16928): Gjs-WARNING **: 21:50:01.247= : JS ERROR: ImportError: No JS module 'main' found in search path @/gnu/store/ghbd2isjs02445c390xv90l0p3bbla5v-foliate-1.5.3/bin/.com.github.= johnfactotum.Foliate-real:9:1 Script /gnu/store/ghbd2isjs02445c390xv90l0p3bbla5v-foliate-1.5.3/bin/.com.g= ithub.johnfactotum.Foliate-real threw an exception I tried adding (arguments '(#:glib-or-gtk? #t)) to the package definition, which I think should solve your problem. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --X3gaHHMYHkYqP6yf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl48blMACgkQQarn3Mo9 g1Fagg/+Ox0WHe0HPurdAwRu9U40yyjPGcPf6lAWh1zKD+uQQWcFD2t032+Qhrrc +f61duTqcFZEYSrkiGbEtEpxONUX0F0vzNDVcPXWhWkH074DO0FHR2N+2i12K442 tKc20nwNkXEzZNqwxdG/FkNstvr1zWjT4FNZr+MIZU6f1tXlZLFCNdZLSXzK8BWn 05yWsMVfNI1Jg+5uPnD2QhdIhPxWc0syK9mF/UXw5RBFcJRuHzoKXGXS6oIW3STE j2YvnBg2Oxto0mUKSa7ZqvB7ELGfbK7S83JO+EM+XPn3oC1Tr9fNnsxL25BGJWCq Fe6PcIIoJbs8bc04f+ENZHBhCh9mdFgK7NGquPq0XrZldHF1d9fmgRsU9W6T19Ec oJK56isBVQ1+FOJ3ZLQUb8vLvTH0o3xfLozGn5rpz9581MpxSsJLOE/Fyckt6FjT j9QOVe5UpnfpWON1sL6k2Xq2gb8mZw4oMijmNo89BKtYvKSnrrnxkRi3neiQsrCB CInPG7oIfeqhzrsEqARk/zBjifwU7JImPJ0weQao+oY1etopgNk5OIWY1Q8/QWSU tGoeal70FKbdQTAO/ATbgnSTrOIPsHyqpibuK5vr08to5d86gJPlXkxjk66mRpva 9gfUpxG2qt7BQVjqkCHyZiZcOLEMKbg8qW7lzcRaASHdY0Puhic= =26g6 -----END PGP SIGNATURE----- --X3gaHHMYHkYqP6yf--