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--