On 02/07/15 18:05, Yann Sagon wrote:
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"

EasyBuild tries to guess the patch level based on the first +++ line in the patch file.

Usually, this works out well if the patch was created with the top-level directory included in the filepaths, i.e. (wild guess included):

diff -u Gadget-2.0.7/Makefile.o Gadget-2.0.7/Makefile


Of course, this assumes that a file named 'Makefile' is there after unpacking; maybe only Makefile.in is there, in which case the guessing of the patch level (and the patching itself too, of course) will fail. You should then patch Makefile.in instead.


regards,

Kenneth




2015-07-02 17:51 GMT+02:00 Ward Poelmans <[email protected] <mailto:[email protected]>>:

    Hi Yann,

    Welcome to Easybuild.

    On Thu, Jul 2, 2015 at 5:46 PM, Yann Sagon <[email protected]
    <mailto:[email protected]>> 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



Reply via email to