From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnaud B Subject: Re: Trying to define a package Date: Tue, 3 Apr 2018 23:18:01 +0200 Message-ID: References: <878ta5r8kw.fsf@gmail.com> <87woxpd1k9.fsf@gmail.com> <20180403212716.1d74ee3d@merlin.browniehive.net> <20180403214120.168ebeab@merlin.browniehive.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000dbb7910568f83dd4" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36533) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f3TJe-0002XQ-Pw for help-guix@gnu.org; Tue, 03 Apr 2018 17:18:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f3TJc-0002sH-Mg for help-guix@gnu.org; Tue, 03 Apr 2018 17:18:06 -0400 Received: from mail-lf0-x22c.google.com ([2a00:1450:4010:c07::22c]:38021) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f3TJc-0002ow-A3 for help-guix@gnu.org; Tue, 03 Apr 2018 17:18:04 -0400 Received: by mail-lf0-x22c.google.com with SMTP id u3-v6so22231592lff.5 for ; Tue, 03 Apr 2018 14:18:04 -0700 (PDT) In-Reply-To: <20180403214120.168ebeab@merlin.browniehive.net> 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" Cc: help-guix@gnu.org --000000000000dbb7910568f83dd4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable OK I wrongly assumed that the 3 bash packages, being listed in the system packages, did not need to be explicitly installed in order to be used by (gnu build system). So now i've corrected that and they're in my user path. arnaud@brix ~$ guix package --search-paths export PATH=3D"/home/arnaud/.guix-profile/bin:/home/arnaud/.guix-profile/sb= in" *export BASH_LOADABLES_PATH=3D"/home/arnaud/.guix-profile/lib/bash"* export GUIX_GTK2_PATH=3D"/home/arnaud/.guix-profile/lib/gtk-2.0" export XDG_DATA_DIRS=3D"/home/arnaud/.guix-profile/share" export GIO_EXTRA_MODULES=3D"/home/arnaud/.guix-profile/lib/gio/modules" export PKG_CONFIG_PATH=3D"/home/arnaud/.guix-profile/lib/pkgconfig:/home/arnaud/.g= uix-profile/share/pkgconfig" export C_INCLUDE_PATH=3D"/home/arnaud/.guix-profile/include" export CPLUS_INCLUDE_PATH=3D"/home/arnaud/.guix-profile/include" export LIBRARY_PATH=3D"/home/arnaud/.guix-profile/lib" export INFOPATH=3D"/home/arnaud/.guix-profile/share/info" arnaud@brix ~$ Still, the result is the same. As Thomas kindly noticed, there actually is no configure script provided anywhere in the source code, so perhaps the Makefile can be directly invoked, skipping the usual configure stage ? In the meantime I'm going to try the environment definition route as well. Thanks for your help, really appreciated ! 2018-04-03 21:41 GMT+02:00 Thomas Sigurdsen : > Haha, I see that I added bash because I misread the error and someone > mentioned bash was needed. > > Bash is not needed. You can delete the input for bash both the use-module > and > the native-input bit. Be careful of matching parenthesis. > > On Tue, 3 Apr 2018 21:27:16 +0200 > Thomas Sigurdsen wrote: > > > Hi Arnaud. > > > > Had a look at your package, it does not have the configure script where > > build-system gnu is expecting. I couldn't see it anywhere else either. > > > > I've made a few changes that I attached. With this you can put the file > in a > > directory that you append to your $GUIX_PACKAGE_PATH and then just run > 'guix > > build freefilesync'. > > > > I see the License file has three other licenses in addition to GPL3. Bu= t > the > > names look like free software too (though I'm not a lawyer). No idea ho= w > we > > handle cases like that. > > > > Also, the rest of the code tree looks very non-standard as far as the > tools > > I'm used go... Which is probably why you are having trouble building it= . > > > > Hope that helps a little. > > > > Thomas > > > > On Tue, 3 Apr 2018 19:14:34 +0200 > > Arnaud B wrote: > > > > > Hello everyone, > > > > > > Well I'm happy to report that thanks to your advice I made some > progress. > > > Using the scm file attached and the command : > > > *guix build -L /home/arnaud/guix_packages/gnu/packages/ -K -f > > > freefilesync.scm* > > > the build process starts as it should, the zip file is downloaded, > checked > > > and unziped as needed, and the cpp files compile normally. > > > It stops at the configure script stage, apparently not finding the > > > configure command. > > > H > > > =E2=80=8Bere is the relevant part : > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > *phase `unpack' succeeded after 0.3 secondsstarting phase > > > `patch-usr-bin-file'phase `patch-usr-bin-file' succeeded after 0.0 > > > secondsstarting phase `patch-source-shebangs'phase > `patch-source-shebangs' > > > succeeded after 0.2 secondsstarting phase `configure'source directory= : > > > "/tmp/guix-build-freefilesync-9.9.drv-0/source" (relative from build: > > > ".")build directory: > > > "/tmp/guix-build-freefilesync-9.9.drv-0/source"configure flags: > > > ("CONFIG_SHELL=3D/gnu/store/icz3hd36aqpjz5slyp4hhr8wsfbgim > l1-bash-minimal-4.4.12/bin/bash" > > > "SHELL=3D/gnu/store/icz3hd36aqpjz5slyp4hhr8wsfbgim > l1-bash-minimal-4.4.12/bin/bash" > > > "--prefix=3D/gnu/store/v07x6jfph9yy7bf54ibdb9z08snjn6 > lh-freefilesync-9.9" > > > "--enable-fast-install" > > > "--build=3Dx86_64-unknown-linux-gnu") > > > /gnu/store/icz3hd36aqpjz5slyp4hhr8wsfbgiml1-bash-minimal-4.4.12/bin/ > bash: > > > ./configure: No such file or > > > directory phase > `configure' > > > failed after 0.0 secondsnote: keeping build directory > > > `/tmp/guix-build-freefilesync-9.9.drv-1'builder for > > > `/gnu/store/r13m30fdxvxindynh4161ca498lj3y09-freefilesync-9.9.drv' > failed > > > with exit code 1@ build-failed > > > /gnu/store/r13m30fdxvxindynh4161ca498lj3y09-freefilesync-9.9.drv - 1 > > > builder for > > > `/gnu/store/r13m30fdxvxindynh4161ca498lj3y09-freefilesync-9.9.drv' > failed > > > with exit code 1 guix build: error: build failed: > > > build of > > > `/gnu/store/r13m30fdxvxindynh4161ca498lj3y09-freefilesync-9.9.drv' > failed* > > > This is surprising to me as, according to the manual > > > Defining-Packages.html>, > > > configure is part of the usual set of tools found in the gnu build > system. > > > Let met quote : > > > *"The (...) gnu-build-system represents the familiar GNU Build System= , > > > where packages may be configured, built, and installed with the usual > > > ./configure && make && make check && make install command sequence."* > > > I checked that bash, bash-minimal, bash-completion are all found in t= he > > > store (actually in 3 differents versions after guix puil I guess). > > > > > > So again I rely on your knowledge, hoping to get through eventually. > > > > > > Many thanks in advance > > > > > > Arnaud > > > > > > PS : I reworded the package name and description as per the guideline= s. > > > > > > > > > 2018-04-02 21:53 GMT+02:00 Arnaud B : > > > > > > > =E2=80=8BHello Pierre and Oleg > > > > > > > > Thanks a lot for the detailed and helpful answers, I will do > accordingly > > > > tomorrow night after work and report. > > > > Cheers > > > > > > > > > > > > --000000000000dbb7910568f83dd4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
OK = I wrongly assumed that the 3 bash packages, being listed in the system pack= ages, did not need to be explicitly installed in order to be used by (gnu b= uild system). So now i've corrected that and they're in my user pat= h.
arna= ud@brix ~$ guix package --search-paths
export PATH=3D"/home/arnaud/.guix-profile/bin:/home/arnaud/.guix-pro= file/sbin"
export BASH= _LOADABLES_PATH=3D"/home/arnaud/.guix-profile/lib/bash"
export GUIX_GTK2_PATH=3D"/home/arnaud/.guix-profile/lib/gtk-2.0&q= uot;
export XDG_DATA_DIRS=3D"/home/arnaud/.guix-profile/share"=
export GIO_EXTRA_MODULES=3D"/home/arnaud/.guix-profile/lib/gio/mod= ules"
export PKG_CONFIG_PATH=3D"/home/arnaud/.guix-profile/lib= /pkgconfig:/home/arnaud/.guix-profile/share/pkgconfig"=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0
export C_INCLUDE_PATH= =3D"/home/arnaud/.guix-profile/include"
export CPLUS_INCLUDE_P= ATH=3D"/home/arnaud/.guix-profile/include"
export LIBRARY_PATH= =3D"/home/arnaud/.guix-profile/lib"
export INFOPATH=3D"/h= ome/arnaud/.guix-profile/share/info"
arnaud@brix ~$
<= br>
Still, the = result is the same.
As Thomas kindly noticed, there actually is no conf= igure script provided anywhere in the source code, so perhaps the Makefile = can be directly invoked, skipping the usual configure stage ?
In the meantime I'm = going to try the environment definition route as well.
Thanks for your help, really a= ppreciated !

2018-04-03 21:41 GMT+02:00 Thomas Sigurdsen &l= t;thomas.si= gurdsen@gmail.com>:
Haha, I= see that I added bash because I misread the error and someone
mentioned bash was needed.

Bash is not needed. You can delete the input for bash both the use-module a= nd
the native-input bit. Be careful of matching parenthesis.

On Tue, 3 Apr 2018 21:27:16 +0200
Thomas Sigurdsen <thomas.s= igurdsen@gmail.com> wrote:

> Hi Arnaud.
>
> Had a look at your package, it does not have the configure script wher= e
> build-system gnu is expecting. I couldn't see it anywhere else eit= her.
>
> I've made a few changes that I attached. With this you can put the= file in a
> directory that you append to your $GUIX_PACKAGE_PATH and then just run= 'guix
> build freefilesync'.
>
> I see the License file has three other licenses in addition to GPL3. B= ut the
> names look like free software too (though I'm not a lawyer). No id= ea how we
> handle cases like that.
>
> Also, the rest of the code tree looks very non-standard as far as the = tools
> I'm used go... Which is probably why you are having trouble buildi= ng it.
>
> Hope that helps a little.
>
> Thomas
>
> On Tue, 3 Apr 2018 19:14:34 +0200
> Arnaud B <arnaud.beau= dhuin@gmail.com> wrote:
>
> > Hello everyone,
> >
> > Well I'm happy to report that thanks to your advice I made so= me progress.
> > Using the scm file attached and the command :
> > *guix build -L /home/arnaud/guix_packages/gnu/packages/ -K -= f
> > freefilesync.scm*
> > the build process starts as it should, the zip file is downloaded= , checked
> > and unziped as needed, and the cpp files compile normally.
> > It stops at the configure script stage, apparently not finding th= e
> > configure command.
> > H
> > =E2=80=8Bere is the relevant part :
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > *phase `unpack' succeeded after 0.3 secondsstarting phase
> > `patch-usr-bin-file'phase `patch-usr-bin-file' succeeded = after 0.0
> > secondsstarting phase `patch-source-shebangs'phase `patch-sou= rce-shebangs'
> > succeeded after 0.2 secondsstarting phase `configure'source d= irectory:
> > "/tmp/guix-build-freefilesync-9.9.drv-0/source" (r= elative from build:
> > ".")build directory:
> > "/tmp/guix-build-freefilesync-9.9.drv-0/source"con= figure flags:
> > ("CONFIG_SHELL=3D/gnu/store/icz3hd36aqpjz5slyp4hhr8wsfb= giml1-bash-minimal-4.4.12/bin/bash"
> > "SHELL=3D/gnu/store/icz3hd36aqpjz5slyp4hhr8wsfbgim= l1-bash-minimal-4.4.12/bin/bash"
> > "--prefix=3D/gnu/store/v07x6jfph9yy7bf54ibdb9z08snjn6lh-freefilesync-9.9"
> > "--enable-fast-install"
> > "--build=3Dx86_64-unknown-linux-gnu")
> > /gnu/store/icz3hd36aqpjz5slyp4hhr8wsfbgiml1-bash-minima= l-4.4.12/bin/bash:
> > ./configure: No such file or
> > directory=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 phase `configure'
> > failed after 0.0 secondsnote: keeping build directory
> > `/tmp/guix-build-freefilesync-9.9.drv-1'builder for
> > `/gnu/store/r13m30fdxvxindynh4161ca498lj3y09-freefilesy= nc-9.9.drv' failed
> > with exit code 1@ build-failed
> > /gnu/store/r13m30fdxvxindynh4161ca498lj3y09-freefilesyn= c-9.9.drv - 1
> > builder for
> > `/gnu/store/r13m30fdxvxindynh4161ca498lj3y09-freefilesy= nc-9.9.drv' failed
> > with exit code 1=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0guix build: error: build failed:
> > build of
> > `/gnu/store/r13m30fdxvxindynh4161ca498lj3y09-freefilesy= nc-9.9.drv' failed*
> > This is surprising to me as, according to the manual
> > <https://www.g= nu.org/software/guix/manual/html_node/Defining-Packages.html&= gt;,
> > configure is part of the usual set of tools found in the gnu buil= d system.
> > Let met quote :
> > *"The (...) gnu-build-system represents the familiar GNU Bui= ld System,
> > where packages may be configured, built, and installed with the u= sual
> > ./configure && make && make check && make= install command sequence."*
> > I checked that bash, bash-minimal, bash-completion are all found = in the
> > store (actually in 3 differents versions after guix puil I guess)= .
> >
> > So again I rely on your knowledge, hoping to get through eventual= ly.
> >
> > Many thanks in advance
> >
> > Arnaud
> >
> > PS : I reworded the package name and description as per the guide= lines.
> >
> >
> > 2018-04-02 21:53 GMT+02:00 Arnaud B <arnaud.beaudhuin@gmail.com>:
> >
> > > =E2=80=8BHello Pierre and Oleg
> > >
> > > Thanks a lot for the detailed and helpful answers, I will do= accordingly
> > > tomorrow night after work and report.
> > > Cheers
> > >
> > >
>


--000000000000dbb7910568f83dd4--