Re: [easybuild] cd to a directory with easybuild
On Thu, Jul 2, 2015 at 6:05 PM, Yann Sagonwrote: > I have copied the Makefile in my work directory as Makefile.o and Makefile > Modified the Makefile. > Created the diff : diff -u Makefile.o Makefile > > Gadget-2.0.7-makefile-hardcoding.patch > > Error message: "Can't determine patch level for patch" You can specify the patch level with a tuple: patches = [('Gadget-2.0.7-makefile-hardcoding.patch', 1)] will give a you a patch level of 1. An alternative is to specify the relative directory path where to apply the patch, for example patches = [('Gadget-2.0.7-makefile-hardcoding.patch', '..')] Ward
Re: [easybuild] cd to a directory with easybuild
Hello Ward, thanks, it is exactly my problem in fact (multiple directories created) but you gave me the answer:) I have now another error, as I need to patch the Makefile provided with Gadget2. I have copied the Makefile in my work directory as Makefile.o and Makefile Modified the Makefile. Created the diff : diff -u Makefile.o Makefile > Gadget-2.0.7-makefile-hardcoding.patch Error message: "Can't determine patch level for patch" 2015-07-02 17:51 GMT+02:00 Ward Poelmans: > Hi Yann, > > Welcome to Easybuild. > > On Thu, Jul 2, 2015 at 5:46 PM, Yann Sagon wrote: > > I'm trying to write my first easyconfig file (for Gadget2). Once > untarred, the source of Gadget2 contains a directory named Gadget2, so I > need to instruct easybuild to cd to that directory. Is this possible or I > need to write my own easyblock? I'm using the easyblock MakeCp as there is > no configure. > > You don't need to do anything. EB will first extract the provide > source and then cd in the directory that was created. It is only when > multiple directories are created that you need to help EB and tell > which one to use (with the start_dir variable in the easyconfig). If > you run eb with the -l option, you should see that it changes to the > extracted directory, the variable is called start_dir. > > Ward >
Re: [easybuild] cd to a directory with easybuild
Hi Yann, Welcome to Easybuild. On Thu, Jul 2, 2015 at 5:46 PM, Yann Sagonwrote: > I'm trying to write my first easyconfig file (for Gadget2). Once untarred, > the source of Gadget2 contains a directory named Gadget2, so I need to > instruct easybuild to cd to that directory. Is this possible or I need to > write my own easyblock? I'm using the easyblock MakeCp as there is no > configure. You don't need to do anything. EB will first extract the provide source and then cd in the directory that was created. It is only when multiple directories are created that you need to help EB and tell which one to use (with the start_dir variable in the easyconfig). If you run eb with the -l option, you should see that it changes to the extracted directory, the variable is called start_dir. Ward
[easybuild] cd to a directory with easybuild
Hello, this is my first post to this mailling list. I'm the sys admin of a cluster in University of Geneva. I'm playing with easybuild with the idea to replace our manual software installation procedure. I'm trying to write my first easyconfig file (for Gadget2). Once untarred, the source of Gadget2 contains a directory named Gadget2, so I need to instruct easybuild to cd to that directory. Is this possible or I need to write my own easyblock? I'm using the easyblock MakeCp as there is no configure. Thanks -- Yann SAGON Ingénieur système HPC 24 Rue du Général-Dufour 1211 Genève 4 - Suisse Tél. : +41 (0)22 379 7737 yann.sa...@unige.ch - www.unige.ch