[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to correctly patch without cdbs?



On Mon, 19 Jun 2006 09:59:40 -0400, Justin Pryzby <justinpryzby@users.sourceforge.net> said:

> dpatch uses a "patch patch" format, where the first column is all
> pluses; they're really ugly.

I don't know what version of dpatch you're using, but that's not the
case here.  For example, from the alsaplayer Debian package source:

---------- BEGIN -----------
#! /bin/sh /usr/share/dpatch/dpatch-run
## 02_http_header.dpatch by Paul Brossier <piem@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Add a missing space after colon in HTTP header.

@DPATCH@

--- alsaplayer-0.99.76.orig/reader/http/http.c
+++ alsaplayer-0.99.76/reader/http/http.c
@@ -564,7 +564,7 @@
                             "Connection: close\r\n"
                             "User-Agent: %s/%s\r\n"
                             "Range: bytes=%ld-\r\n"
-                            "Icy-Metadata:1\r\n"
+                            "Icy-Metadata: 1\r\n"
                             "\r\n",
                             desc->path, desc->host, PACKAGE, VERSION,
                             desc->pos);
---------- END -----------

Generally, you can build a dpatch source by just taking a regular patch,
and adding a header (like above) to it.

Then you just create a 00list file, which lists all the patches in order
(without the .dpatch extension).

-- 
Hubert Chan - email & Jabber: hubert@uhoreg.ca - http://www.uhoreg.ca/
PGP/GnuPG key: 1024D/124B61FA   (Key available at wwwkeys.pgp.net)
Fingerprint: 96C5 012F 5F74 A5F7 1FF7  5291 AF29 C719 124B 61FA



Reply to: