From debbugs-submit-bounces@debbugs.gnu.org Tue May 15 08:49:35 2018 Received: (at submit) by debbugs.gnu.org; 15 May 2018 12:49:35 +0000 Received: from localhost ([127.0.0.1]:35167 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fIZOZ-0000lJ-La for submit@debbugs.gnu.org; Tue, 15 May 2018 08:49:35 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57116) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fIZOY-0000l7-FS for submit@debbugs.gnu.org; Tue, 15 May 2018 08:49:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fIZOS-0006FF-94 for submit@debbugs.gnu.org; Tue, 15 May 2018 08:49:29 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:57268) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fIZOS-0006Eq-50 for submit@debbugs.gnu.org; Tue, 15 May 2018 08:49:28 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48079) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIZOQ-00007J-Uv for guix-patches@gnu.org; Tue, 15 May 2018 08:49:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fIZON-00060D-MF for guix-patches@gnu.org; Tue, 15 May 2018 08:49:27 -0400 Received: from dd26836.kasserver.com ([85.13.145.193]:53744) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fIZON-0005wq-E0 for guix-patches@gnu.org; Tue, 15 May 2018 08:49:23 -0400 Received: from localhost.localdomain (213162073015.public.t-mobile.at [213.162.73.15]) by dd26836.kasserver.com (Postfix) with ESMTPSA id 806B83360BF6; Tue, 15 May 2018 14:49:21 +0200 (CEST) From: Danny Milosavljevic To: guix-patches@gnu.org Subject: [PATCH] profiles: Add hook to generate "gschemas.compiled". Date: Tue, 15 May 2018 14:49:17 +0200 Message-Id: <20180515124917.1751-1-dannym@scratchpost.org> X-Mailer: git-send-email 2.16.2 Tags: patch X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit Cc: Danny Milosavljevic X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) * guix/profiles.scm (glib-schemas): New procedure. (%default-profile-hooks): Add it. --- guix/profiles.scm | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/guix/profiles.scm b/guix/profiles.scm index dca247976..300324362 100644 --- a/guix/profiles.scm +++ b/guix/profiles.scm @@ -843,6 +843,57 @@ MANIFEST. Single-file bundles are required by programs such as Git and Lynx." #:local-build? #t #:substitutable? #f)) +(define (glib-schemas manifest) + "Return a derivation that unions all schemas from manifest entries and +creates the Glib 'gschemas.compiled' file." + (define glib ; lazy reference + (module-ref (resolve-interface '(gnu packages glib)) 'glib)) + + (mlet %store-monad ((%glib (manifest-lookup-package manifest "glib")) + ;; XXX: Can't use glib-compile-schemas corresponding + ;; to the glib referenced by 'manifest'. Because + ;; '%glib' can be either a package or store path, and + ;; there's no way to get the "bin" output for the later. + (glib-compile-schemas + -> #~(string-append #+glib:bin + "/bin/glib-compile-schemas"))) + + (define build + (with-imported-modules '((guix build utils) + (guix build union) + (guix build profiles) + (guix search-paths) + (guix records)) + #~(begin + (use-modules (guix build utils) + (guix build union) + (guix build profiles) + (srfi srfi-26)) + + (let* ((destdir (string-append #$output "/share/glib-2.0/schemas")) + (schemadirs (filter file-exists? + (map (cut string-append <> "/share/glib-2.0/schemas") + '#$(manifest-inputs manifest))))) + + ;; Union all the schemas. + (mkdir-p (string-append #$output "/share/glib-2.0")) + (union-build destdir schemadirs + #:log-port (%make-void-port "w")) + + (let ((dir destdir)) + (when (file-is-directory? dir) + (ensure-writable-directory dir) + (invoke #+glib-compile-schemas + (string-append "--targetdir=" dir) + dir))))))) + + ;; Don't run the hook when there's nothing to do. + (if %glib + (gexp->derivation "glib-schemas" build + #:local-build? #t + #:substitutable? #f) + (return #f)))) + (define (gtk-icon-themes manifest) "Return a derivation that unions all icon themes from manifest entries and creates the GTK+ 'icon-theme.cache' file for each theme." @@ -1198,6 +1249,7 @@ the entries in MANIFEST." fonts-dir-file ghc-package-cache-file ca-certificate-bundle + glib-schemas gtk-icon-themes gtk-im-modules xdg-desktop-database From debbugs-submit-bounces@debbugs.gnu.org Thu May 17 04:57:51 2018 Received: (at 31462) by debbugs.gnu.org; 17 May 2018 08:57:51 +0000 Received: from localhost ([127.0.0.1]:37917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fJEjP-00079s-G0 for submit@debbugs.gnu.org; Thu, 17 May 2018 04:57:51 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39597) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fJEjO-00079f-86 for 31462@debbugs.gnu.org; Thu, 17 May 2018 04:57:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJEjI-00061E-7s for 31462@debbugs.gnu.org; Thu, 17 May 2018 04:57:45 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43313) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJEjE-00060K-Cq; Thu, 17 May 2018 04:57:40 -0400 Received: from [193.50.110.196] (port=39106 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fJEjD-00004t-PZ; Thu, 17 May 2018 04:57:40 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Danny Milosavljevic Subject: Re: [bug#31462] [PATCH] profiles: Add hook to generate "gschemas.compiled". References: <20180515124917.1751-1-dannym@scratchpost.org> Date: Thu, 17 May 2018 10:57:37 +0200 In-Reply-To: <20180515124917.1751-1-dannym@scratchpost.org> (Danny Milosavljevic's message of "Tue, 15 May 2018 14:49:17 +0200") Message-ID: <87bmde4q2m.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 31462 Cc: =?utf-8?B?5a6L5paH5q2m?= , 31462@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Hello! Danny Milosavljevic skribis: > * guix/profiles.scm (glib-schemas): New procedure. > (%default-profile-hooks): Add it. [...] > + (mlet %store-monad ((%glib (manifest-lookup-package manifest "glib")) > + ;; XXX: Can't use glib-compile-schemas correspondi= ng > + ;; to the glib referenced by 'manifest'. Because > + ;; '%glib' can be either a package or store path, = and > + ;; there's no way to get the "bin" output for the = later. > + (glib-compile-schemas > + -> #~(string-append #+glib:bin > + "/bin/glib-compile-schemas"))) Oh right, too bad. =E5=AE=8B=E6=96=87=E6=AD=A6, any comments, since you wrote the existing hoo= ks in that area? Otherwise LGTM, thank you Danny! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu May 17 07:55:52 2018 Received: (at 31462) by debbugs.gnu.org; 17 May 2018 11:55:52 +0000 Received: from localhost ([127.0.0.1]:37998 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fJHVg-0004pj-Bt for submit@debbugs.gnu.org; Thu, 17 May 2018 07:55:52 -0400 Received: from rezeros.cc ([45.76.207.221]:41096) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fJHVe-0004pZ-86 for 31462@debbugs.gnu.org; Thu, 17 May 2018 07:55:51 -0400 Received: from localhost (117.174.107.113 [117.174.107.113]) by rezeros.cc (OpenSMTPD) with ESMTPSA id 2845e3d1 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Thu, 17 May 2018 11:54:55 +0000 (UTC) Received: from gift (localhost.localdomain [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 8d21a443; Thu, 17 May 2018 11:55:08 +0000 (UTC) From: iyzsong@member.fsf.org (=?utf-8?B?5a6L5paH5q2m?=) To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [bug#31462] [PATCH] profiles: Add hook to generate "gschemas.compiled". References: <20180515124917.1751-1-dannym@scratchpost.org> <87bmde4q2m.fsf@gnu.org> Date: Thu, 17 May 2018 19:55:08 +0800 In-Reply-To: <87bmde4q2m.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Thu, 17 May 2018 10:57:37 +0200") Message-ID: <874lj6pkdf.fsf@member.fsf.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.1 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: ludo@gnu.org (Ludovic Courtès) writes: > Hello! > > Danny Milosavljevic skribis: > >> * guix/profiles.scm (glib-schemas): New procedure. >> (%default-profile-hooks): Add it. > > [...] > >> + (mlet %store-monad ((%glib (manifest-lookup-package manifest "glib")) >> + ;; XXX: Can't use glib-compile-schemas corresponding >> + ;; to the glib referenced by 'manifest'. Because >> + ;; '%glib' can be either a package or store path, and >> + ;; there's no way to get the "bin" output for the later. >> + (glib-compile-schemas >> + -> #~(string-append #+glib:bin >> + "/bin/glib-compile-schemas"))) > > Oh right, too bad. > > 宋文武, any comments, since you wrote the existing hooks in that area? > [...] Content analysis details: (1.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.1 FROM_EXCESS_BASE64 From: base64 encoded unnecessarily X-Debbugs-Envelope-To: 31462 Cc: Danny Milosavljevic , 31462@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.1 (/) ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Hello! > > Danny Milosavljevic skribis: > >> * guix/profiles.scm (glib-schemas): New procedure. >> (%default-profile-hooks): Add it. > > [...] > >> + (mlet %store-monad ((%glib (manifest-lookup-package manifest "glib")) >> + ;; XXX: Can't use glib-compile-schemas correspond= ing >> + ;; to the glib referenced by 'manifest'. Because >> + ;; '%glib' can be either a package or store path,= and >> + ;; there's no way to get the "bin" output for the= later. >> + (glib-compile-schemas >> + -> #~(string-append #+glib:bin >> + "/bin/glib-compile-schemas")= )) > > Oh right, too bad. > > =E5=AE=8B=E6=96=87=E6=AD=A6, any comments, since you wrote the existing h= ooks in that area? > Well, I think this situation is not changed. Our profile hooks currently use latest version of zlib, gzip, guile-gdbm-ffi, gtk+, ghc and etc. We'd like to use packages from the manifest to avoid additional downloads, but it's not awlays possible... From debbugs-submit-bounces@debbugs.gnu.org Thu May 17 11:57:03 2018 Received: (at 31462) by debbugs.gnu.org; 17 May 2018 15:57:03 +0000 Received: from localhost ([127.0.0.1]:38754 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fJLH4-000206-TM for submit@debbugs.gnu.org; Thu, 17 May 2018 11:57:03 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36745) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fJLH3-0001zd-JQ for 31462@debbugs.gnu.org; Thu, 17 May 2018 11:57:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJLGv-0000Tt-6g for 31462@debbugs.gnu.org; Thu, 17 May 2018 11:56:56 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51139) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJLGv-0000Tp-2c; Thu, 17 May 2018 11:56:53 -0400 Received: from [193.50.110.196] (port=55024 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fJLGu-0000eV-JT; Thu, 17 May 2018 11:56:52 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: iyzsong@member.fsf.org (=?utf-8?B?5a6L5paH5q2m?=) Subject: Re: [bug#31462] [PATCH] profiles: Add hook to generate "gschemas.compiled". References: <20180515124917.1751-1-dannym@scratchpost.org> <87bmde4q2m.fsf@gnu.org> <874lj6pkdf.fsf@member.fsf.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 28 =?utf-8?Q?Flor=C3=A9al?= an 226 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 17 May 2018 17:56:50 +0200 In-Reply-To: <874lj6pkdf.fsf@member.fsf.org> (=?utf-8?B?IuWui+aWh+atpiIn?= =?utf-8?B?cw==?= message of "Thu, 17 May 2018 19:55:08 +0800") Message-ID: <87k1s2xol9.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 31462 Cc: Danny Milosavljevic , 31462@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Hey, iyzsong@member.fsf.org (=E5=AE=8B=E6=96=87=E6=AD=A6) skribis: > ludo@gnu.org (Ludovic Court=C3=A8s) writes: > >> Hello! >> >> Danny Milosavljevic skribis: >> >>> * guix/profiles.scm (glib-schemas): New procedure. >>> (%default-profile-hooks): Add it. >> >> [...] >> >>> + (mlet %store-monad ((%glib (manifest-lookup-package manifest "glib")) >>> + ;; XXX: Can't use glib-compile-schemas correspon= ding >>> + ;; to the glib referenced by 'manifest'. Because >>> + ;; '%glib' can be either a package or store path= , and >>> + ;; there's no way to get the "bin" output for th= e later. >>> + (glib-compile-schemas >>> + -> #~(string-append #+glib:bin >>> + "/bin/glib-compile-schemas"= ))) >> >> Oh right, too bad. >> >> =E5=AE=8B=E6=96=87=E6=AD=A6, any comments, since you wrote the existing = hooks in that area? >> > > Well, I think this situation is not changed. Our profile hooks > currently use latest version of zlib, gzip, guile-gdbm-ffi, gtk+, ghc > and etc. We'd like to use packages from the manifest to avoid > additional downloads, but it's not awlays possible... Right, so that=E2=80=99s not new. You=E2=80=99re OK with the rest of the patch? Thanks for your quick reply! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sat May 19 00:34:35 2018 Received: (at 31462) by debbugs.gnu.org; 19 May 2018 04:34:35 +0000 Received: from localhost ([127.0.0.1]:40363 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fJtZj-00085d-2j for submit@debbugs.gnu.org; Sat, 19 May 2018 00:34:35 -0400 Received: from rezeros.cc ([45.76.207.221]:41202) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fJtZg-00085T-OJ for 31462@debbugs.gnu.org; Sat, 19 May 2018 00:34:33 -0400 Received: from localhost (117.174.26.147 [117.174.26.147]) by rezeros.cc (OpenSMTPD) with ESMTPSA id 79c8bdf4 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Sat, 19 May 2018 04:33:37 +0000 (UTC) Received: from gift (localhost.localdomain [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id b1cbec11; Sat, 19 May 2018 04:34:10 +0000 (UTC) From: iyzsong@member.fsf.org (=?utf-8?B?5a6L5paH5q2m?=) To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [bug#31462] [PATCH] profiles: Add hook to generate "gschemas.compiled". References: <20180515124917.1751-1-dannym@scratchpost.org> <87bmde4q2m.fsf@gnu.org> <874lj6pkdf.fsf@member.fsf.org> <87k1s2xol9.fsf@gnu.org> Date: Sat, 19 May 2018 12:34:09 +0800 In-Reply-To: <87k1s2xol9.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Thu, 17 May 2018 17:56:50 +0200") Message-ID: <87o9hcxnzy.fsf@member.fsf.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.1 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: ludo@gnu.org (Ludovic Courtès) writes: > Hey, > > iyzsong@member.fsf.org (宋文武) skribis: > >> ludo@gnu.org (Ludovic Courtès) writes: >> >>> Hello! >>> >>> Danny Milosavljevic skribis: >>> >>>> * guix/profiles.scm (glib-schemas): New procedure. >>>> (%default-profile-hooks): Add it. >>> >>> [...] >>> >>>> + (mlet %store-monad ((%glib (manifest-lookup-package manifest "glib")) >>>> + ;; XXX: Can't use glib-compile-schemas corresponding >>>> + ;; to the glib referenced by 'manifest'. Because >>>> + ;; '%glib' can be either a package or store path, and >>>> + ;; there's no way to get the "bin" output for the later. >>>> + (glib-compile-schemas >>>> + -> #~(string-append #+glib:bin >>>> + "/bin/glib-compile-schemas"))) >>> >>> Oh right, too bad. >>> >>> 宋文武, any comments, since you wrote the existing hooks in that area? >>> >> >> Well, I think this situation is not changed. Our profile hooks >> currently use latest version of zlib, gzip, guile-gdbm-ffi, gtk+, ghc >> and etc. We'd like to use packages from the manifest to avoid >> additional downloads, but it's not awlays possible... > > Right, so that’s not new. > > You’re OK with the rest of the patch? > [...] Content analysis details: (1.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.1 FROM_EXCESS_BASE64 From: base64 encoded unnecessarily X-Debbugs-Envelope-To: 31462 Cc: Danny Milosavljevic , 31462@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.1 (/) ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Hey, > > iyzsong@member.fsf.org (=E5=AE=8B=E6=96=87=E6=AD=A6) skribis: > >> ludo@gnu.org (Ludovic Court=C3=A8s) writes: >> >>> Hello! >>> >>> Danny Milosavljevic skribis: >>> >>>> * guix/profiles.scm (glib-schemas): New procedure. >>>> (%default-profile-hooks): Add it. >>> >>> [...] >>> >>>> + (mlet %store-monad ((%glib (manifest-lookup-package manifest "glib"= )) >>>> + ;; XXX: Can't use glib-compile-schemas correspo= nding >>>> + ;; to the glib referenced by 'manifest'. Becau= se >>>> + ;; '%glib' can be either a package or store pat= h, and >>>> + ;; there's no way to get the "bin" output for t= he later. >>>> + (glib-compile-schemas >>>> + -> #~(string-append #+glib:bin >>>> + "/bin/glib-compile-schemas= "))) >>> >>> Oh right, too bad. >>> >>> =E5=AE=8B=E6=96=87=E6=AD=A6, any comments, since you wrote the existing= hooks in that area? >>> >> >> Well, I think this situation is not changed. Our profile hooks >> currently use latest version of zlib, gzip, guile-gdbm-ffi, gtk+, ghc >> and etc. We'd like to use packages from the manifest to avoid >> additional downloads, but it's not awlays possible... > > Right, so that=E2=80=99s not new. > > You=E2=80=99re OK with the rest of the patch? > Yes, it looks good to me, and it's useful for the 'dconf-editor' package, which can edit the dconf database with the support from available gsetting schemas. From debbugs-submit-bounces@debbugs.gnu.org Sun May 20 16:33:10 2018 Received: (at 31462) by debbugs.gnu.org; 20 May 2018 20:33:10 +0000 Received: from localhost ([127.0.0.1]:42144 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fKV0v-0006TY-Di for submit@debbugs.gnu.org; Sun, 20 May 2018 16:33:09 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38612) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fKV0t-0006TI-Ms for 31462@debbugs.gnu.org; Sun, 20 May 2018 16:33:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fKV0n-0004oZ-Oa for 31462@debbugs.gnu.org; Sun, 20 May 2018 16:33:02 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36936) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fKV0j-0004mw-QD; Sun, 20 May 2018 16:32:57 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=47896 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fKV0j-0005Ni-Bw; Sun, 20 May 2018 16:32:57 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: iyzsong@member.fsf.org (=?utf-8?B?5a6L5paH5q2m?=) Subject: Re: [bug#31462] [PATCH] profiles: Add hook to generate "gschemas.compiled". References: <20180515124917.1751-1-dannym@scratchpost.org> <87bmde4q2m.fsf@gnu.org> <874lj6pkdf.fsf@member.fsf.org> <87k1s2xol9.fsf@gnu.org> <87o9hcxnzy.fsf@member.fsf.org> Date: Sun, 20 May 2018 22:32:56 +0200 In-Reply-To: <87o9hcxnzy.fsf@member.fsf.org> (=?utf-8?B?IuWui+aWh+atpiIn?= =?utf-8?B?cw==?= message of "Sat, 19 May 2018 12:34:09 +0800") Message-ID: <874lj2nk3r.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 31462 Cc: Danny Milosavljevic , 31462@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) iyzsong@member.fsf.org (=E5=AE=8B=E6=96=87=E6=AD=A6) skribis: > ludo@gnu.org (Ludovic Court=C3=A8s) writes: > >> Hey, >> >> iyzsong@member.fsf.org (=E5=AE=8B=E6=96=87=E6=AD=A6) skribis: >> >>> ludo@gnu.org (Ludovic Court=C3=A8s) writes: >>> >>>> Hello! >>>> >>>> Danny Milosavljevic skribis: >>>> >>>>> * guix/profiles.scm (glib-schemas): New procedure. >>>>> (%default-profile-hooks): Add it. >>>> >>>> [...] >>>> >>>>> + (mlet %store-monad ((%glib (manifest-lookup-package manifest "glib= ")) >>>>> + ;; XXX: Can't use glib-compile-schemas corresp= onding >>>>> + ;; to the glib referenced by 'manifest'. Beca= use >>>>> + ;; '%glib' can be either a package or store pa= th, and >>>>> + ;; there's no way to get the "bin" output for = the later. >>>>> + (glib-compile-schemas >>>>> + -> #~(string-append #+glib:bin >>>>> + "/bin/glib-compile-schema= s"))) >>>> >>>> Oh right, too bad. >>>> >>>> =E5=AE=8B=E6=96=87=E6=AD=A6, any comments, since you wrote the existin= g hooks in that area? >>>> >>> >>> Well, I think this situation is not changed. Our profile hooks >>> currently use latest version of zlib, gzip, guile-gdbm-ffi, gtk+, ghc >>> and etc. We'd like to use packages from the manifest to avoid >>> additional downloads, but it's not awlays possible... >> >> Right, so that=E2=80=99s not new. >> >> You=E2=80=99re OK with the rest of the patch? >> > > Yes, it looks good to me, and it's useful for the 'dconf-editor' > package, which can edit the dconf database with the support from > available gsetting schemas. Alright, good to know. So Danny, go ahead! :-) Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon May 21 03:57:26 2018 Received: (at control) by debbugs.gnu.org; 21 May 2018 07:57:26 +0000 Received: from localhost ([127.0.0.1]:42436 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fKfh8-0004XX-Md for submit@debbugs.gnu.org; Mon, 21 May 2018 03:57:26 -0400 Received: from dd26836.kasserver.com ([85.13.145.193]:33966) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fKfh6-0004XO-AO for control@debbugs.gnu.org; Mon, 21 May 2018 03:57:25 -0400 Received: from localhost (77.118.193.245.wireless.dyn.drei.com [77.118.193.245]) by dd26836.kasserver.com (Postfix) with ESMTPSA id C2F033361FED for ; Mon, 21 May 2018 09:57:22 +0200 (CEST) Date: Mon, 21 May 2018 09:57:18 +0200 From: Danny Milosavljevic To: Message-ID: <20180521095718.7ed3a042@scratchpost.org> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: close 31462 [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [85.13.145.193 listed in list.dnswl.org] 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) close 31462 From debbugs-submit-bounces@debbugs.gnu.org Fri May 25 05:16:50 2018 Received: (at 31462) by debbugs.gnu.org; 25 May 2018 09:16:50 +0000 Received: from localhost ([127.0.0.1]:47423 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fM8qA-00035r-GN for submit@debbugs.gnu.org; Fri, 25 May 2018 05:16:50 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58971) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fM8q8-00035X-VI for 31462@debbugs.gnu.org; Fri, 25 May 2018 05:16:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fM8q2-0004zu-Tg for 31462@debbugs.gnu.org; Fri, 25 May 2018 05:16:43 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55338) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fM8pt-0004x4-0t; Fri, 25 May 2018 05:16:33 -0400 Received: from [193.50.110.236] (port=38400 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fM8ps-0005Tq-9V; Fri, 25 May 2018 05:16:32 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Danny Milosavljevic Subject: Re: [bug#31462] [PATCH] profiles: Add hook to generate "gschemas.compiled". References: <20180515124917.1751-1-dannym@scratchpost.org> Date: Fri, 25 May 2018 11:16:30 +0200 In-Reply-To: <20180515124917.1751-1-dannym@scratchpost.org> (Danny Milosavljevic's message of "Tue, 15 May 2018 14:49:17 +0200") Message-ID: <8736yg5c41.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 31462 Cc: 31462@debbugs.gnu.org, 30642@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Hi Danny, Danny Milosavljevic skribis: > * guix/profiles.scm (glib-schemas): New procedure. > (%default-profile-hooks): Add it. I just tried: guix environment --ad-hoc libreoffice -- libreoffice which at some point shows: No schema files found: doing nothing. and it doesn=E2=80=99t fix the file open dialog crash reported at . Any idea? Thanks, Ludo=E2=80=99. From unknown Wed Jun 25 09:10:49 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 22 Jun 2018 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator