From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnaud B Subject: Trying to define a package Date: Mon, 2 Apr 2018 13:50:35 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="883d24f22960b9218b0568dc3284" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48102) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f2xyy-0005Sv-Ji for help-guix@gnu.org; Mon, 02 Apr 2018 07:50:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f2xyx-0005i2-6u for help-guix@gnu.org; Mon, 02 Apr 2018 07:50:40 -0400 Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]:54033) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f2xyw-0005gp-Sh for help-guix@gnu.org; Mon, 02 Apr 2018 07:50:39 -0400 Received: by mail-wm0-x235.google.com with SMTP id p9so24765717wmc.3 for ; Mon, 02 Apr 2018 04:50:38 -0700 (PDT) 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: help-guix@gnu.org --883d24f22960b9218b0568dc3284 Content-Type: multipart/alternative; boundary="883d24f22960b921890568dc3282" --883d24f22960b921890568dc3282 Content-Type: text/plain; charset="UTF-8" Hello all, I'm trying to create a package definition, following mainly the manual pages : - Packaging Guidelines - Defining-Packages - and Debugging-Build-Failures In the attached .scm file, here is what I gathered it might look like as a first try. The thing is that I can not debug the build process, even though I use the --keep-failed option : I'm not getting a temp build directory (/tmp/guix-build-...) as I expect : arnaud@brix ~$ guix build -f /home/arnaud/freefilesync.scm --keep-failed guix build: error: #: not something we can build arnaud@brix ~$ cd /tmp/ babel-10188XJP/ guix-inst/ mozilla_arnaud0/ emacs-guix-101889w1/ icecat_arnaud/ .overlayfs-workdir/ .esd-1000/ .ICE-unix/ .X11-unix/ arnaud@brix ~$ One thing to add is that the downloaded source file is not tar.gz file format but zip file, perhaps that's part of the problem ? This is a GuixSD install with guix pull done yesterday. Thanks in advance Arnaud --883d24f22960b921890568dc3282 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hel= lo all,
I'm trying to create a package definition, following mainly the manual= pages :
- Packaging Guidelines
- = Defining-Packages

In the attached .scm file, here is what I gathered it might look lik= e as a first try.
The thing is that I can not debug the build process, even though I u= se the --keep-failed option : I'm not getting a temp build directory (/= tmp/guix-build-...) as I expect :
arnaud@brix ~$ guix build -f /home/ar= naud/freefilesync.scm --keep-failed
guix build: error: #<unspecified&= gt;: not something we can build
arnaud@brix ~$ cd /tmp/
babel-10188XJ= P/=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 guix-inst/=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 mozilla_arnaud0/=C2=A0=C2=A0=C2=A0=C2=A0 emacs-guix-101889w1/ icecat_arnaud/=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 .o= verlayfs-workdir/=C2=A0
.esd-1000/=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 .ICE-unix/=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 .X11-unix/=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0
arnaud@brix ~$
One thing to add is that the downloaded source f= ile is not tar.gz file format but zip file, perhaps that's part of the = problem ?
T= his is a GuixSD install with guix pull done yesterday.

Thanks in advance
Arnaud
--883d24f22960b921890568dc3282-- --883d24f22960b9218b0568dc3284 Content-Type: text/x-scheme; charset="US-ASCII"; name="freefilesync.scm" Content-Disposition: attachment; filename="freefilesync.scm" Content-Transfer-Encoding: base64 X-Attachment-Id: f_jfi6779a0 KGRlZmluZS1tb2R1bGUgKGdudSBwYWNrYWdlcyBmcmVlZmlsZXN5bmMpCiAgIzp1c2UtbW9kdWxl IChndWl4IHBhY2thZ2VzKQogICM6dXNlLW1vZHVsZSAoZ3VpeCBkb3dubG9hZCkKICAjOnVzZS1t b2R1bGUgKGd1aXggYnVpbGQtc3lzdGVtIGdudSkKICAjOnVzZS1tb2R1bGUgKGd1aXggbGljZW5z ZXMpCiAgIzp1c2UtbW9kdWxlIChnbnUgcGFja2FnZXMgZ2F3aykpCgooZGVmaW5lLXB1YmxpYyBm cmVlZmlsZXN5bmMKICAocGFja2FnZQogICAgICAgICAgICAobmFtZSAiRnJlZUZpbGVTeW5jIikK ICAgICAgICAgICAgKHZlcnNpb24gIjkuOSIpCiAgICAgICAgICAgIChzb3VyY2UgKG9yaWdpbgog ICAgICAgICAgICAgICAgICAgICAgKG1ldGhvZCB1cmwtZmV0Y2gpCiAgICAgICAgICAgICAgICAg ICAgICAodXJpICJodHRwczovL3d3dy5mcmVlZmlsZXN5bmMub3JnL2Rvd25sb2FkL0ZyZWVGaWxl U3luY185LjlfU291cmNlLnppcCIpCgkJICAgICAgKHNoYTI1NgogICAgICAgICAgICAgICAgICAg ICAgICAgKGJhc2UzMgogICAgICAgICAgICAgICAgICAgICAgICAgICAgIjB3NTlwNXdrYXpybXlo OW5xMDJ3Y3BxNGljYjhrOHcxMmYxbWJtNmE5bWJiYWs0ZDd2YTMiKSkpKQogICAgICAgICAgICAo YnVpbGQtc3lzdGVtIGdudS1idWlsZC1zeXN0ZW0pCiAgICAgICAgICAgIChzeW5vcHNpcyAiRnJl ZUZpbGVTeW5jLCBPcGVuIFNvdXJjZSBGaWxlIFN5bmNocm9uaXN6YXRpb24iKQogICAgICAgICAg ICAoZGVzY3JpcHRpb24gIm11bHRpcGxhdGZvcm0sIEMrKywgb3BlbiBzb3VyY2UgYnV0IGNvbWVz IHdpdGggbWFsd2FyZSBhY2NvcmRpbmcgdG8gc29tZSIpCiAgICAgICAgICAgIChob21lLXBhZ2Ug Imh0dHBzOi8vd3d3LmZyZWVmaWxlc3luYy5vcmcvIikKICAgICAgICAgICAgKGxpY2Vuc2UgZ3Bs MykpKQo= --883d24f22960b9218b0568dc3284-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: Trying to define a package Date: Mon, 02 Apr 2018 19:53:11 +0530 Message-ID: <878ta5r8kw.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53501) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f30Mh-0005Ef-TK for help-guix@gnu.org; Mon, 02 Apr 2018 10:23:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f30Mf-0002Tb-79 for help-guix@gnu.org; Mon, 02 Apr 2018 10:23:19 -0400 Received: from mail-pl0-x22e.google.com ([2607:f8b0:400e:c01::22e]:40865) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f30Me-0002TJ-Vp for help-guix@gnu.org; Mon, 02 Apr 2018 10:23:17 -0400 Received: by mail-pl0-x22e.google.com with SMTP id x4-v6so4294828pln.7 for ; Mon, 02 Apr 2018 07:23:16 -0700 (PDT) In-reply-to: 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: Arnaud B Cc: help-guix@gnu.org --=-=-= Content-Type: text/plain Arnaud B writes: > The thing is that I can not debug the build process, even though I use the > --keep-failed option : I'm not getting a temp build directory > (/tmp/guix-build-...) as I expect : This is so because it fails too early, that is, before it builds. The error is that when using `-f`, guix build _evaluates_ the target file and builds the _result_. See `guix build --help`. The `define-public` does not return a `package`, hence the error. Simply remove the `define-public` and it should work. Alternatively, you can place your file in a folder pointed by GUIX_PACKAGE_PATH, leave the `define-public` and build with `guix build freefilesync --keep-failed`. Don't forget that the declared module must match the path, so if you stick to (gnu packages freefilesync) place the file in $GUIX_PACKAGE_PATH/gnu/packages/freefilesync.scm. > One thing to add is that the downloaded source file is not tar.gz file > format but zip file, perhaps that's part of the problem ? I think you need (native-inputs `(("unzip" ,unzip))) And add the (gnu packages compression) module. A nit: the package name should be lowercase I think. Love the description, haha! :) -- Pierre Neidhardt --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlrCPM8ACgkQm9z0l6S7 zH956AgAjg6laTK2D7p+EP2XmTWkCI574LtVCxrtygvtRKKlwvhobUplEJYe56Dn Ab6hYMPNs8Ui8pPUYN5eInHCUdPiDmE5y/EnT5S4mDTmKr8d0jJNaGR0ChHVLFms XWs+jzEKGY7v62mPrXVe4uYlJXg1OK2ixdc1/sHsNJMTJv7npXyoUZHPM4K/22vK 04uFUIMo49Z23ADaUjveGQnCHMcmLDJErzoUkUGqR4PPc2o9m4J7rLxbJFVnZiW5 52FHDuSLVEjHEN4WEccnOz1zeb3Nj71vXcuCGeuSKUpGYY/UaHWMynvP7q0uLDkI qB1OhstdsjgiW8BYON6TcDRkurRjdw== =k7m6 -----END PGP SIGNATURE----- --=-=-=-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleg Pykhalov Subject: Re: Trying to define a package Date: Mon, 02 Apr 2018 19:18:30 +0300 Message-ID: <87woxpd1k9.fsf@gmail.com> References: <878ta5r8kw.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51601) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f32AM-00077v-5W for help-guix@gnu.org; Mon, 02 Apr 2018 12:18:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f32AH-0000BJ-OW for help-guix@gnu.org; Mon, 02 Apr 2018 12:18:42 -0400 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]:36897) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f32AH-0000At-Ga for help-guix@gnu.org; Mon, 02 Apr 2018 12:18:37 -0400 Received: by mail-wm0-x236.google.com with SMTP id r131so28242008wmb.2 for ; Mon, 02 Apr 2018 09:18:37 -0700 (PDT) In-Reply-To: <878ta5r8kw.fsf@gmail.com> (Pierre Neidhardt's message of "Mon, 02 Apr 2018 19:53:11 +0530") 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: Arnaud B Cc: help-guix@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Arnaud, Pierre Neidhardt writes: > Arnaud B writes: [=E2=80=A6] >> One thing to add is that the downloaded source file is not tar.gz file >> format but zip file, perhaps that's part of the problem ? > > I think you need > > (native-inputs > `(("unzip" ,unzip))) > > And add the (gnu packages compression) module. You will also need to modify a =E2=80=98%standard-phases=E2=80=99 to unzip = it. Alternatively you could use =E2=80=98url-fetch/zipbomb=E2=80=99 from =E2=80=98guix/guix/download.scm=E2=80=99 instead of =E2=80=98url-fetch=E2= =80=99. Oleg. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEc+OyAXw1EaDPCmAPckbhHGm3lWkFAlrCV9YACgkQckbhHGm3 lWkg7w/+NQixnemiMfCRVp7bd9ylQG8zWUUjNx5Zm33Od90jV+q0dz60AjZxHYas 0mmHc3R5EyBNjwZhL59/5DbczOf5ZqKz5C32VWc1x+Rz/PGVNKLDRnG0j3eZ8PkS cqyROIxJoPGEr4XNdh4nV8JfLrk6+2eDtceDoGtt8/S/1AllhsjFfBWfQNDbzJVU qHb16IXvEl96J4GCwxXFiNhK0+Tv5R2wqEFDSHzXUHDqYVam6sGJd7oYlqHSbFyQ H1OOq4KWCEI7A4zUrIVrJGoV/32tUMTlLBvcRgl6umjZpFhk1IK0s3E8VONhpOos dQkihPrApJQixFvAKiNVGCamySBVZAU3r3F/HVU3M893PAb6U/pzCBzJoA1Zf3QM OYFNXs0pttkHAb81PMNKdBT3Tpjc085ZUNkR8k6vvIbJhZgjNySevqVuTcyK/eCt DBEue19y6RWXEp4Cuyy/EPnujcbBKENNo42YmNNFaHJ44zHck1hREqZNv2XtYk9f zNX69Jxc/qqpTl6SADwyXmib8/YIQl9Y2NKeE+JZHgttK9pPv1Z6bKg1B5j704bE l2U8tAUfXhuNHdt6WQc9Gtn3FTmfl4XBXvZNdFVOMMy+Qh5cVeky4+nG0R3glV/L rVcJF+BDsdzIZaLIAgEJ21RIuirvbTfVhB9YQbddGe3mUKEyrsQ= =E4WA -----END PGP SIGNATURE----- --=-=-=-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnaud B Subject: Re: Trying to define a package Date: Mon, 2 Apr 2018 21:53:23 +0200 Message-ID: References: <878ta5r8kw.fsf@gmail.com> <87woxpd1k9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="883d24f22a7c4b9a0a0568e2f14d" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60705) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f35WD-0000BT-6W for help-guix@gnu.org; Mon, 02 Apr 2018 15:53:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f35W9-0003iK-CP for help-guix@gnu.org; Mon, 02 Apr 2018 15:53:29 -0400 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]:50786) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f35W9-0003hT-5E for help-guix@gnu.org; Mon, 02 Apr 2018 15:53:25 -0400 Received: by mail-wm0-x229.google.com with SMTP id t67so8209760wmt.0 for ; Mon, 02 Apr 2018 12:53:24 -0700 (PDT) In-Reply-To: <87woxpd1k9.fsf@gmail.com> 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: help-guix@gnu.org --883d24f22a7c4b9a0a0568e2f14d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =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 --883d24f22a7c4b9a0a0568e2f14d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
=E2=80=8BHello Pierre and Oleg

Thanks a lot for the detailed and he= lpful answers, I will do accordingly tomorrow night after work and report.<= br>
Cheers

--883d24f22a7c4b9a0a0568e2f14d-- 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 19:14:34 +0200 Message-ID: References: <878ta5r8kw.fsf@gmail.com> <87woxpd1k9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="089e0823d3e4382bc70568f4d7b6" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37069) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f3PW9-0008Tm-SV for help-guix@gnu.org; Tue, 03 Apr 2018 13:14:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f3PW8-000679-7j for help-guix@gnu.org; Tue, 03 Apr 2018 13:14:45 -0400 Received: from mail-lf0-x22a.google.com ([2a00:1450:4010:c07::22a]:45590) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f3PW7-00061Z-Pn for help-guix@gnu.org; Tue, 03 Apr 2018 13:14:44 -0400 Received: by mail-lf0-x22a.google.com with SMTP id q5-v6so21275870lff.12 for ; Tue, 03 Apr 2018 10:14:37 -0700 (PDT) In-Reply-To: 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: help-guix@gnu.org --089e0823d3e4382bc70568f4d7b6 Content-Type: multipart/alternative; boundary="089e0823d3e4382bc40568f4d7b4" --089e0823d3e4382bc40568f4d7b4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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/icz3hd36aqpjz5slyp4hhr8wsfbgiml1-bash-minimal-4= .4.12/bin/bash" "SHELL=3D/gnu/store/icz3hd36aqpjz5slyp4hhr8wsfbgiml1-bash-minimal-4.4.12/bi= n/bash" "--prefix=3D/gnu/store/v07x6jfph9yy7bf54ibdb9z08snjn6lh-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 = , 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 the 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 guidelines. 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 > > --089e0823d3e4382bc40568f4d7b4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hel= lo everyone,

Well I'm happy to report that thanks to your advice I made some p= rogress. Using the scm file attached and the command :
guix build -L /home/arnaud/guix_packages/gnu/packages/ -K -f freefilesy= nc.scm
the build process starts as it should, the zip file is= downloaded, checked and unziped as needed, and the cpp files compile norma= lly.
It sto= ps at the configure script stage, apparently not finding the configure comm= and.
H
=E2=80=8Bere is the relevant part :
phase `unpack' succeeded after 0.3 s= econds
starting phase `patch-usr-bin-file'
phase `patch-usr-bin-f= ile' succeeded after 0.0 seconds
starting phase `patch-source-sheban= gs'
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/icz3hd36aqpjz5slyp4hh= r8wsfbgiml1-bash-minimal-4.4.12/bin/bash" "SHELL=3D/gnu/store/icz= 3hd36aqpjz5slyp4hhr8wsfbgiml1-bash-minimal-4.4.12/bin/bash" "--pr= efix=3D/gnu/store/v07x6jfph9yy7bf54ibdb9z08snjn6lh-freefilesync-9.9" &= quot;--enable-fast-install" "--build=3Dx86_64-unknown-linux-gnu&q= uot;)=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
/gnu/store/icz3hd36aqpjz5slyp4hhr8wsfbgiml1-bash-mi= nimal-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=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 af= ter 0.0 seconds
note: keeping build directory `/tmp/guix-build-freefiles= ync-9.9.drv-1'
builder for `/gnu/store/r13m30fdxvxindynh4161ca498lj3= y09-freefilesync-9.9.drv' failed with exit code 1
@ build-failed /gn= u/store/r13m30fdxvxindynh4161ca498lj3y09-freefilesync-9.9.drv - 1 builder f= or `/gnu/store/r13m30fdxvxindynh4161ca498lj3y09-freefilesync-9.9.drv' f= ailed 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=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0
g= uix build: error: build failed: build of `/gnu/store/r13m30fdxvxindynh4161c= a498lj3y09-freefilesync-9.9.drv' failed

=
This is surprising t= o me as, according to the manual, configure is part of the u= sual 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 = the store (actually in 3 differents versions after guix puil I guess).
<= /div>

So again I = rely on your knowledge, hoping to get through eventually.

Many thanks in advance

Arnaud
PS : I r= eworded the package name and description as per the guidelines.

=

2018-04-02 21:53 = GMT+02:00 Arnaud B <arnaud.beaudhuin@gmail.com>:
=E2=80=8BHello Pierre and Ol= eg

Than= ks a lot for the detailed and helpful answers, I will do accordingly tomorr= ow night after work and report.
Cheers


--089e0823d3e4382bc40568f4d7b4-- --089e0823d3e4382bc70568f4d7b6 Content-Type: text/x-scheme; charset="US-ASCII"; name="freefilesync.scm" Content-Disposition: attachment; filename="freefilesync.scm" Content-Transfer-Encoding: base64 X-Attachment-Id: f_jfjx6nu40 KHVzZS1tb2R1bGVzCiAgKGd1aXgpCiAgKGd1aXggcGFja2FnZXMpCiAgKGd1aXggZG93bmxvYWQp CiAgKGd1aXggYnVpbGQtc3lzdGVtIGdudSkKICAoZ3VpeCBsaWNlbnNlcykKICAoZ251IHBhY2th Z2VzIGNvbXByZXNzaW9uKSkKCihwYWNrYWdlCiAobmFtZSAiZnJlZWZpbGVzeW5jIikKICh2ZXJz aW9uICI5LjkiKQogKHNvdXJjZSAob3JpZ2luCgkgIChtZXRob2QgdXJsLWZldGNoL3ppcGJvbWIp CgkgICh1cmkgImh0dHBzOi8vd3d3LmZyZWVmaWxlc3luYy5vcmcvZG93bmxvYWQvRnJlZUZpbGVT eW5jXzkuOV9Tb3VyY2UuemlwIikKCSAgKHNoYTI1NgoJICAgKGJhc2UzMgoJICAgICIwdzU5cDV3 a2F6cm15aDlucTAyd2NwcTRpY2I4azh3MTJmMW1ibTZhOW1iYmFrNGQ3dmEzIikpKSkKIChidWls ZC1zeXN0ZW0gZ251LWJ1aWxkLXN5c3RlbSkKIChuYXRpdmUtaW5wdXRzIGAoKCJ1bnppcCIgLHVu emlwKSkpCiAoc3lub3BzaXMgIkZpbGUgc3luY2hyb25pemF0aW9uIHRocm91Z2ggYSBHVUkiKQog KGRlc2NyaXB0aW9uICJIZXJlIGlzIGFuIGFsdGVybmF0aXZlIHRvIFVuaXNvbiwgd3JpdHRlbiBp biBDKysgOyBpdCBpcyBhbiBvcGVuIHNvdXJjZSBjcm9zc3BsYXRmb3JtIHRvb2wgdGhhdCBoYXMg YmVlbiBkZXZlbG9wcGVkIGZvciB5ZWFycy4gU3luY2hyb25pemF0aW9uIGlzIGVhc2lseSBzZXR1 cCwgYmlkaXJlY3Rpb25uYWwgYW5kIHJlbGlhYmxlLiBCZXdhcmUgb2YgdW53YW50ZWQgY3JhcHdh cmUgYnVuZGxlZCB3aXRoIHRoZSBXaW5kb3dzIGJpbmFyaWVzIHRocm91Z2ggdGhlIGluc3RhbGxl ciwgaWYgeW91IG5lZWQgdGhlc2UuIikKIChob21lLXBhZ2UgImh0dHBzOi8vd3d3LmZyZWVmaWxl c3luYy5vcmcvIikKIChsaWNlbnNlIGdwbDMpKQo= --089e0823d3e4382bc70568f4d7b6-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: Trying to define a package Date: Tue, 03 Apr 2018 23:08:13 +0530 Message-ID: <87370cp4vu.fsf@gmail.com> References: <878ta5r8kw.fsf@gmail.com> <87woxpd1k9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41785) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f3Pt0-0008RO-Md for help-guix@gnu.org; Tue, 03 Apr 2018 13:38:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f3Psx-0003NU-I7 for help-guix@gnu.org; Tue, 03 Apr 2018 13:38:22 -0400 Received: from mail-pl0-x236.google.com ([2607:f8b0:400e:c01::236]:40116) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f3Psx-0003NG-Bi for help-guix@gnu.org; Tue, 03 Apr 2018 13:38:19 -0400 Received: by mail-pl0-x236.google.com with SMTP id x4-v6so9817247pln.7 for ; Tue, 03 Apr 2018 10:38:19 -0700 (PDT) In-reply-to: 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: Arnaud B Cc: help-guix@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Arnaud B writes: > *"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 the > store (actually in 3 differents versions after guix puil I guess). But are they found in your user PATH? If bash-minimal and bash are not installed in your user session and you run ~guix build...~ directly, the failure is to be expected. Two solutions here: =2D Install all the required tools in your user profile. =2D Use ~guix environment freefilesync...~. Cf. the manual. =2D-=20 Pierre Neidhardt --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlrDvAUACgkQm9z0l6S7 zH86JAgAlcTZG8dklV89o4ybVVFH9vXsAqYE+pXFYLcqv4RonTlGcE4RZNcPoAiJ YchoeJKrHEFa6AmLdZtxt7ExUKvvpZTLIdwYrZWn8ezeXOQzgVYjOuzQpCn3iyQ7 UgTbF+Skqfsba2+/iK+x32qI3JKXyuGqs077inYWtmq61j/FQK1TpqTqU2KebomL NqofjWs+MARn2e3bNiszlE1sCGs5/x/QrsXyHLcboGjYrwBifCCOqM1SvngiUu1t +NXkE/Rg3MB1Ftlrwi/LeAWzIfiw42o6i5gN1XFcLUT044rgolIiTgWlwb9iHATa HOfzVAl7yskXwmZPIBmMLlRHZqDAdw== =TSNX -----END PGP SIGNATURE----- --=-=-=-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Sigurdsen Subject: Re: Trying to define a package Date: Tue, 3 Apr 2018 21:27:16 +0200 Message-ID: <20180403212716.1d74ee3d@merlin.browniehive.net> References: <878ta5r8kw.fsf@gmail.com> <87woxpd1k9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/afDijS=nEfts_S/shBaWhFB" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38323) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f3Rad-0004st-BV for help-guix@gnu.org; Tue, 03 Apr 2018 15:27:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f3Raa-0007gD-6P for help-guix@gnu.org; Tue, 03 Apr 2018 15:27:31 -0400 Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]:55336) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f3RaZ-0007eV-Qd for help-guix@gnu.org; Tue, 03 Apr 2018 15:27:28 -0400 Received: by mail-wm0-x235.google.com with SMTP id b127so35091686wmf.5 for ; Tue, 03 Apr 2018 12:27:27 -0700 (PDT) In-Reply-To: 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: Arnaud B Cc: help-guix@gnu.org --MP_/afDijS=nEfts_S/shBaWhFB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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. But the names look like free software too (though I'm not a lawyer). No idea 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 building it. Hope that helps a little. Thomas On Tue, 3 Apr 2018 19:14:34 +0200 Arnaud B wrote: > Hello everyone, >=20 > 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 : >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 > *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/icz3hd36aqpjz5slyp4hhr8wsfbgiml1-bash-minimal= -4.4.12/bin/bash" > "SHELL=3D/gnu/store/icz3hd36aqpjz5slyp4hhr8wsfbgiml1-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-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: bui= ld > of `/gnu/store/r13m30fdxvxindynh4161ca498lj3y09-freefilesync-9.9.drv' > failed* > This is surprising to me as, according to the manual > , > 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 the > store (actually in 3 differents versions after guix puil I guess). >=20 > So again I rely on your knowledge, hoping to get through eventually. >=20 > Many thanks in advance >=20 > Arnaud >=20 > PS : I reworded the package name and description as per the guidelines. >=20 >=20 > 2018-04-02 21:53 GMT+02:00 Arnaud B : >=20 > > =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 > > > > --MP_/afDijS=nEfts_S/shBaWhFB Content-Type: text/x-scheme Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=freefilesync.scm (define-module (freefilesync) #:use-module (guix) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix build-system gnu) #:use-module (guix licenses) #:use-module (gnu packages bash) #:use-module (gnu packages compression)) (define-public freefilesync (package (name "freefilesync") (version "9.9") (source (origin (method url-fetch/zipbomb) (uri "https://www.freefilesync.org/download/FreeFileSync_9.9_Source.zip") (sha256 (base32 "0w59p5wkazrmyh9nq02wcpq4icb8k8w12f1mbm6a9mbbak4d7va3")))) (build-system gnu-build-system) (native-inputs `(("unzip" ,unzip) ("bash" ,bash))) (synopsis "File synchronization through a GUI") (description "Here is an alternative to Unison, written in C++ ; it is an open source crossplatform tool that has been developped for years. Synchronization is easily setup, bidirectionnal and reliable. Beware of unwanted crapware bundled with the Windows binaries through the installer, if you need these.") (home-page "https://www.freefilesync.org/") (license gpl3))) --MP_/afDijS=nEfts_S/shBaWhFB-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Sigurdsen Subject: Re: Trying to define a package Date: Tue, 3 Apr 2018 21:41:20 +0200 Message-ID: <20180403214120.168ebeab@merlin.browniehive.net> References: <878ta5r8kw.fsf@gmail.com> <87woxpd1k9.fsf@gmail.com> <20180403212716.1d74ee3d@merlin.browniehive.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41706) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f3Ro9-0002Z1-Lj for help-guix@gnu.org; Tue, 03 Apr 2018 15:41:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f3Ro6-0005XF-Ih for help-guix@gnu.org; Tue, 03 Apr 2018 15:41:29 -0400 Received: from mail-wr0-x231.google.com ([2a00:1450:400c:c0c::231]:33344) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f3Ro6-0005Wx-8X for help-guix@gnu.org; Tue, 03 Apr 2018 15:41:26 -0400 Received: by mail-wr0-x231.google.com with SMTP id z73so19817279wrb.0 for ; Tue, 03 Apr 2018 12:41:26 -0700 (PDT) In-Reply-To: <20180403212716.1d74ee3d@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" To: Arnaud B Cc: help-guix@gnu.org 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 wrote: > Hi Arnaud. >=20 > 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. >=20 > I've made a few changes that I attached. With this you can put the file i= n a > directory that you append to your $GUIX_PACKAGE_PATH and then just run 'g= uix > build freefilesync'. >=20 > I see the License file has three other licenses in addition to GPL3. But = the > names look like free software too (though I'm not a lawyer). No idea how = we > handle cases like that. >=20 > Also, the rest of the code tree looks very non-standard as far as the too= ls > I'm used go... Which is probably why you are having trouble building it. >=20 > Hope that helps a little. >=20 > Thomas >=20 > On Tue, 3 Apr 2018 19:14:34 +0200 > Arnaud B wrote: >=20 > > Hello everyone, > >=20 > > Well I'm happy to report that thanks to your advice I made some progres= s. > > 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, chec= ked > > 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 : > >=20 > >=20 > >=20 > >=20 > >=20 > >=20 > >=20 > >=20 > >=20 > >=20 > >=20 > >=20 > >=20 > >=20 > >=20 > >=20 > > *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-sheban= gs' > > 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/icz3hd36aqpjz5slyp4hhr8wsfbgiml1-bash-minim= al-4.4.12/bin/bash" > > "SHELL=3D/gnu/store/icz3hd36aqpjz5slyp4hhr8wsfbgiml1-bash-minimal-4.4.1= 2/bin/bash" > > "--prefix=3D/gnu/store/v07x6jfph9yy7bf54ibdb9z08snjn6lh-freefilesync-9.= 9" > > "--enable-fast-install" > > "--build=3Dx86_64-unknown-linux-gnu") > > /gnu/store/icz3hd36aqpjz5slyp4hhr8wsfbgiml1-bash-minimal-4.4.12/bin/bas= h: > > ./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' fail= ed > > with exit code 1@ build-failed > > /gnu/store/r13m30fdxvxindynh4161ca498lj3y09-freefilesync-9.9.drv - 1 > > builder for > > `/gnu/store/r13m30fdxvxindynh4161ca498lj3y09-freefilesync-9.9.drv' fail= ed > > with exit code 1 guix build: error: build failed: > > build of > > `/gnu/store/r13m30fdxvxindynh4161ca498lj3y09-freefilesync-9.9.drv' fail= ed* > > This is surprising to me as, according to the manual > > , > > configure is part of the usual set of tools found in the gnu build syst= em. > > 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 the > > store (actually in 3 differents versions after guix puil I guess). > >=20 > > So again I rely on your knowledge, hoping to get through eventually. > >=20 > > Many thanks in advance > >=20 > > Arnaud > >=20 > > PS : I reworded the package name and description as per the guidelines. > >=20 > >=20 > > 2018-04-02 21:53 GMT+02:00 Arnaud B : > >=20 > > > =E2=80=8BHello Pierre and Oleg > > > > > > Thanks a lot for the detailed and helpful answers, I will do accordin= gly > > > tomorrow night after work and report. > > > Cheers > > > > > > >=20 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-- 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:54:06 +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="000000000000ed4c810568f8be0b" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45598) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f3TsZ-00088d-2C for help-guix@gnu.org; Tue, 03 Apr 2018 17:54:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f3TsY-0003jW-6P for help-guix@gnu.org; Tue, 03 Apr 2018 17:54:11 -0400 Received: from mail-lf0-x233.google.com ([2a00:1450:4010:c07::233]:46758) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f3TsX-0003jS-Qh for help-guix@gnu.org; Tue, 03 Apr 2018 17:54:10 -0400 Received: by mail-lf0-x233.google.com with SMTP id j68-v6so22336117lfg.13 for ; Tue, 03 Apr 2018 14:54:09 -0700 (PDT) In-Reply-To: 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: help-guix@gnu.org --000000000000ed4c810568f8be0b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Well I just tried, reading that it's doable, according to section 4.2 of the manual. =E2=80=8BSo I added =E2=80=8Bone line right after (build-system gnu-build-s= ystem) : (arguments '(#:phases (modify-phases %standard-phases (delete 'configure)))= ) And logically the outcome changed : phase `unpack' succeeded after 0.1 seconds starting phase `patch-usr-bin-file' phase `patch-usr-bin-file' succeeded after 0.0 seconds starting phase `patch-source-shebangs' phase `patch-source-shebangs' succeeded after 0.1 seconds starting phase `patch-generated-file-shebangs' phase `patch-generated-file-shebangs' succeeded after 0.2 seconds starting phase `build' make: *** No targets specified and no makefile found. Stop. phase `build' failed after 0.1 seconds builder for `/gnu/store/s0diig2i0533r6sl7iib9pmskpx8ri4a-freefilesync-9.9.drv' failed with exit code 1 @ build-failed /gnu/store/s0diig2i0533r6sl7iib9pmskpx8ri4a-freefilesync-9.9.drv - 1 builder for `/gnu/s tore/s0diig2i0533r6sl7iib9pmskpx8ri4a-freefilesync-9.9.drv' failed with exit code 1 guix build: error: build failed: build of `/gnu/store/s0diig2i0533r6sl7iib9pmskpx8ri4a-freefilesync-9.9 .drv' failed arnaud@brix ~/guix_packages/gnu/packages$ Getting late tonight but tomorrow pointing directly to the provided Makefile might help ? Cheers and thanks for reading so far :) --000000000000ed4c810568f8be0b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Wel= l I just tried, reading that it's doable, according to section 4.2 of t= he manual.=

=E2=80=8BSo I added =E2=80=8Bone line ri= ght after (build-system gnu-build-system) :
(arguments '(#:phases (modify-phas= es %standard-phases (delete 'configure))))

<= div style=3D"font-size:large" class=3D"gmail_default">And logically the outcome changed :
=
phase `unpack' succeeded after 0.1 seconds
starting phase `pa= tch-usr-bin-file'
phase `patch-usr-bin-file' succeeded after 0.0= seconds
starting phase `patch-source-shebangs'
phase `patch-sour= ce-shebangs' succeeded after 0.1 seconds
starting phase `patch-gener= ated-file-shebangs'
phase `patch-generated-file-shebangs' succee= ded after 0.2 seconds
starting phase `build'
make: *** No targets= specified and no makefile found.=C2=A0 Stop.
phase `build' failed a= fter 0.1 seconds
builder for `/gnu/store/s0diig2i0533r6sl7iib9pmskpx8ri4= a-freefilesync-9.9.drv' failed with exit code 1
@ build-failed /gnu/= store/s0diig2i0533r6sl7iib9pmskpx8ri4a-freefilesync-9.9.drv - 1 builder for= `/gnu/s
tore/s0diig2i0533r6sl7iib9pmskpx8ri4a-freefilesync-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=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0
guix build: e= rror: build failed: build of `/gnu/store/s0diig2i0533r6sl7iib9pmskpx8ri4a-f= reefilesync-9.9
.drv' failed=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
arnaud@brix ~/guix_packag= es/gnu/packages$

Get= ting late tonight but tomorrow pointing directly to the provided Makefile m= ight help ?
Cheers and thanks for reading so far :)
<= /div>

--000000000000ed4c810568f8be0b--