cygport 0.2.7 bug: .cygwin.patch applied with wrong patchlevel

Christian Franke Christian.Franke@t-online.de
Wed Jan 3 15:47:00 GMT 2007


cygport 0.2.7 applies the .cygwin.patch file with patchlevel 0 instead
of 2.

To reproduce try e.g:

$ cygport ./mktemp-1.5-4.cygport prep

This creates
  ./mktemp-1.5-4/src/mktemp-1.5/src/mktemp-1.5/CYGWIN-PATCHES/*

instead of

  ./mktemp-1.5-4/src/mktemp-1.5/CYGWIN-PATCHES/*

This patch should fix this:

--- cygport.orig	2006-12-26 06:43:10.001000000 +0100
+++ cygport	2007-01-03 16:21:49.984375000 +0100
@@ -517,7 +517,7 @@
 			continue;
 		fi
 
-		case ${patchfile} in
+		case ${patchfile##*/} in
 			${PF}.cygwin.patch)
 				if [ "${S}" = "${srcdir}" ]
 				then
---

Christian




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list