From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnaud B Subject: Re: Unison GTK UI in unison package Date: Tue, 3 Apr 2018 23:24:33 +0200 Message-ID: References: <20180402201605.GA3852@jasmine.lan> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="089e08241f303b47b80568f85544" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38512) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f3TQ0-0005Pm-Fe for help-guix@gnu.org; Tue, 03 Apr 2018 17:24:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f3TPy-0006TW-QS for help-guix@gnu.org; Tue, 03 Apr 2018 17:24:40 -0400 Received: from mail-lf0-x234.google.com ([2a00:1450:4010:c07::234]:33766) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f3TPy-0006TB-DJ for help-guix@gnu.org; Tue, 03 Apr 2018 17:24:38 -0400 Received: by mail-lf0-x234.google.com with SMTP id x70-v6so15459627lfa.0 for ; Tue, 03 Apr 2018 14:24:38 -0700 (PDT) In-Reply-To: <20180402201605.GA3852@jasmine.lan> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Leo Famulari , help-guix@gnu.org --089e08241f303b47b80568f85544 Content-Type: text/plain; charset="UTF-8" Hello Leo As you may have seen I'm trying to complete the process of packaging FreeFileSync. As soon as this is hopefully done - or decidedly way above my current ability -, I'll come back to the Unison case, thanks to your enlightnening input. Thanks for that Arnaud 2018-04-02 22:16 GMT+02:00 Leo Famulari : > On Mon, Apr 02, 2018 at 02:10:22PM +0200, Arnaud B wrote: > > I looked at the ocaml.scm file where the unison package is defined, > > together with ocaml, lablgtk and a number of other related tools. It uses > > the gtk module (gnu packages gtk), in which there is pango as well. > > > So it seems everything is in place to build unison and at the same time > its > > graphical version, according to the build instructions > > > > > given for that. > > But in the end in my GuixSD as the user having done the installation, I > > just end up with the CLI unison and not unison-gtk2 as expected. > > I tried explicitly installing various packages such as gtk+, lablgtk, and > > then rebuilding the unison package, to no avail. > > Basically, the packages that are required to build the Unison GUI, such > as lablgtk, GTK+ itself, etc, are not present in the environment where > Unison is built by Guix. They may be defined in the same source file as > the Unison package, or they may be imported by that file, but this does > not mean they are present in the Unison build environment. Additionally, > installing a package with `guix package --install` has no effect on how > packages are built. > > Each time Guix builds a package, it uses an isolated environment that > only includes the software specified in the package definition of the > package being built, as well as "implicit" dependencies that come with > the specified build system. > > To make progress on building the Unison GUI, I recommend adding the > required packages to a new inputs field in the Unison package > definition. You can copy the structure of the native-inputs field for > this. > > I recommend reading the Introduction of the Guix manual [0], and > continuing to other sections as your interest allows. You will also find > some useful info in Package Reference [1]. > > Please don't hesitate to ask more questions here or on the Guix IRC > channel, #guix on Freenode. > > [0] > https://www.gnu.org/software/guix/manual/html_node/Introduction.html > > [1] > https://www.gnu.org/software/guix/manual/html_node/package-Reference.html > --089e08241f303b47b80568f85544 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hel= lo Leo
As y= ou may have seen I'm trying to complete the process of packaging FreeFi= leSync.
As= soon as this is hopefully done - or decidedly way above my current ability= -, I'll come back to the Unison case, thanks to your enlightnening inp= ut. Thanks for that
Arnaud

2018-04-02 22:16 GMT+02:00 Leo Famulari <= ;leo@famulari.name>:
On Mon, A= pr 02, 2018 at 02:10:22PM +0200, Arnaud B wrote:
> I looked at the ocaml.scm file where the unison package is defined, > together with ocaml, lablgtk and a number of other related tools. It u= ses
> the gtk module (gnu packages gtk), in which there is pango as well.
> So it seems everything is in place to build unison and at the same tim= e its
> graphical version, according to the build instructions
> <
https://webda= v.seas.upenn.edu/svn/unison/branches/2.48/src/INSTALL.gtk2>= ;
> given for that.
> But in the end in my GuixSD as the user having done the installation, = I
> just end up with the CLI unison and not unison-gtk2 as expected.
> I tried explicitly installing various packages such as gtk+, lablgtk, = and
> then rebuilding the unison package, to no avail.

Basically, the packages that are required to build the Unison GUI, s= uch
as lablgtk, GTK+ itself, etc, are not present in the environment where
Unison is built by Guix. They may be defined in the same source file as
the Unison package, or they may be imported by that file, but this does
not mean they are present in the Unison build environment. Additionally, installing a package with `guix package --install` has no effect on how
packages are built.

Each time Guix builds a package, it uses an isolated environment that
only includes the software specified in the package definition of the
package being built, as well as "implicit" dependencies that come= with
the specified build system.

To make progress on building the Unison GUI, I recommend adding the
required packages to a new inputs field in the Unison package
definition. You can copy the structure of the native-inputs field for
this.

I recommend reading the Introduction of the Guix manual [0], and
continuing to other sections as your interest allows. You will also find some useful info in Package Reference [1].

Please don't hesitate to ask more questions here or on the Guix IRC
channel, #guix on Freenode.

[0]
https://www.gnu.org/software/guix/manual/html_node/Introduction.html

[1]
https://www.gnu.org/softwar= e/guix/manual/html_node/package-Reference.html

--089e08241f303b47b80568f85544--