Hi Inge, I opened an issue in github for this problem: https://github.com/hpcugent/easybuild-framework/issues/1610
Damian > -----Original Message----- > From: [email protected] [mailto:easybuild- > [email protected]] On Behalf Of Inge Gutheil > Sent: Friday, 12. February 2016 12:54 > To: [email protected] > Subject: [easybuild] Patches that only add files > > Hello, > I wanted to patch an installation by adding 2 files to the distribution. > I said > diff -ruN /directory/in/the/distribution /directory/with/additional/files >> > update.patch and always got the message Build of > /homea/software/mathprod/JURECA/ELPA/ELPA-2015.11.001-intel-para- > 2015.07.eb > failed (err: "build failed (first 300 chars): Can't determine patch level for > patch > /homea/software/mathprod/JURECA/ELPA/elpa_examples.patch > from directory > /dev/shm/mathprod/ELPA/2015.11.001/intel-para-2015.07-pure-mpi/elpa- > 2015.11.001") > After looking for the error message "Can't determine patch level for patch /" > I got to https://github.com/hpcugent/easybuild- > framework/blob/master/easybuild/tools/filetools.py > and saw that patch level is > # - based on +++ lines > > # - first +++ line that matches an existing file determines guessed level > > # - we will try to match that level from current directo > > > As I only added two files there was no +++ line that matches an existing file > and thus the patch level could not be determined. > I solved this problem by just patching README by adding a comment, now > there was a > +++ line that matches an existing file > --- elpa-2015.11.001/README 2016-02-12 09:43:54.642611000 +0100 > +++ elpa-2015.11.001_ok/README 2016-02-12 09:41:25.588212000 +0100 > @@ -87,3 +87,6 @@ > and it worked. > I don't know whether there is another way to determine the patch level > other than with a +++ line that matches an existing file. > If not, it would be helpful to document this problem somewhere. > > Regards > Inge Gutheil > > -- > -- > > Inge Gutheil > Juelich Supercomputing Centre > Institute for Advanced Simulation > Forschungszentrum Juelich GmbH > 52425 Juelich, Germany > > Phone: +49-2461-61-3135 > Fax: +49-2461-61-6656 > E-mail:[email protected] > > > > ---------------------------------------------------------------------------------------------- > -- > ---------------------------------------------------------------------------------------------- > -- > Forschungszentrum Juelich GmbH > 52425 Juelich > Sitz der Gesellschaft: Juelich > Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498 > Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher > Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender), > Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt, Prof. Dr. > Sebastian M. Schmidt > ---------------------------------------------------------------------------------------------- > -- > ---------------------------------------------------------------------------------------------- > --

