Subject: Re: Patches from GNATS db broken
To: None <current-users@netbsd.org>
From: Toru TAKAMIZU <ttaka@earth.email.ne.jp>
List: current-users
Date: 01/18/2003 02:08:00
On Fri, Jan 17, 2003 at 09:28:47AM -0500,
Andrew Brown <atatat@atatdot.net> wrote:

> >Sometimes I want to try patches posted to GNATS database, for
> >example a new versions of a pkg. But these patches don't work
> >because of white spaces or something like that automatically
> >added somewhere.
> >

> more or less, yes, since the tabs get converted to spaces somewhere
> along the web.  try using patch with -l (or --ignore-whitespace) so
> that changes like this are ignored.

Thank you, but I had already tried (Sorry, I didn't write about that).
In many cases, they are beyond what "-l" can treat.

More precisely, patches sometimes work partially.

Take the example of pkg/19257. Both the originator's and mine
don't work. You can see "something is happening" when you take a look
at the "Makefile" part of both pathes and wm/evilwm/Makefile.

This is not caused by a browser. I tried Netscape, Mozilla, w3m and
wget. The result is always the same.

Should I use uuencode as a workaround?

************************************
wm/evilwm/Makefile:
************************************
# $NetBSD: Makefile,v 1.2 2002/03/04 15:56:37 agc Exp $
#

DISTNAME=	evilwm_0.99.4-1
PKGNAME=	evilwm-0.99.4
CATEGORIES=	wm x11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=evilwm/}


*************************************
the originator's patch:
*************************************
--- Makefile    2002/03/04 15:56:37     1.2
+++ Makefile    2002/12/03 22:29:06
@@ -1,8 +1,8 @@
 # $NetBSD: Makefile,v 1.2 2002/03/04 15:56:37 agc Exp $
 #

 
-DISTNAME=      evilwm_0.99.4-1
-PKGNAME=       evilwm-0.99.4
+DISTNAME=      evilwm_0.99.11.orig
+PKGNAME=       evilwm-0.99.11

*************************************
my patch:
*************************************
 --- Makefile	2002/03/04 15:56:37	1.2
 +++ Makefile	2003/01/10 10:50:16
 @@ -1,8 +1,8 @@
  # $NetBSD: Makefile,v 1.2 2002/03/04 15:56:37 agc Exp $
  #

  
 -DISTNAME=	evilwm_0.99.4-1
 -PKGNAME=	evilwm-0.99.4
 +DISTNAME=	evilwm_0.99.11.orig
 +PKGNAME=	evilwm-0.99.11


*************************************
what I posted to GNATS
*************************************
--- Makefile	2002/03/04 15:56:37	1.2
+++ Makefile	2003/01/10 10:50:16
@@ -1,8 +1,8 @@
 # $NetBSD: Makefile,v 1.2 2002/03/04 15:56:37 agc Exp $
 #
 
-DISTNAME=	evilwm_0.99.4-1
-PKGNAME=	evilwm-0.99.4
+DISTNAME=	evilwm_0.99.11.orig
+PKGNAME=	evilwm-0.99.11