On 2010-06-01 11:20, Marco Atzeri wrote:
> Following your suggestion for lapack-3.2.1
> http://thread.gmane.org/gmane.os.cygwin.ports.general/693/focus=697
>
> I created, some time ago, an additional patch
>
> PATCH_URI="3.2.1-INSTALL-Makefile.patch"
>
> that as structure
> --- origsrc/lapack-3.2.1/INSTALL/Makefile.am    1970-01-01
> +++ src/lapack-3.2.1/INSTALL/Makefile.am        2009-10-25 ...................
>
> is similar to the src.patch created by cygport itself
>
> --- origsrc/lapack-3.2.1/BLAS/Makefile.am       1970-01-01
> +++ src/lapack-3.2.1/BLAS/Makefile.am   2009-10-24
> ...
>
> however, instead of creating the expected
>
> src/lapack-3.2.1/INSTALL/Makefile.am
> it makes
> src/lapack-3.2.1/src/lapack-3.2.1/INSTALL/Makefile.am

cygpatch doesn't do well when the patch only creates new files; there is 
no way for the patch to know exactly which -pN to use.  Try changing the 
heading to require -p0, IOW:

 > --- INSTALL/Makefile.am    1970-01-01
 > +++ INSTALL/Makefile.am    2009-10-25 ...................

Or, better yet, won't you need to add INSTALL/Makefile to 
AC_CONFIG_FILES or INSTALL to the top-level SUBDIRS?  That would give 
the patch an existing file to anchor to.


Yaakov
Cygwin Ports

------------------------------------------------------------------------------

_______________________________________________
Cygwin-ports-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cygwin-ports-general

Reply via email to