[Build-common-hackers] Bug#305857: ability to use uu-encoded patches
Christopher Martin
Christopher Martin <christopher.martin@utoronto.ca>, 305857@bugs.debian.org
Fri, 22 Apr 2005 10:43:51 -0400
--Boundary-00=_o2QaCXOKX4nmmSd
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Package: cdbs
Tags: patch
Hello,
The following patch (inspired by Achim Bohnet) gives simple-patchsys.mk the
ability to handle uuencoded patches. Aside from applying the patch, you'd
simply have to add a Recommends for sharutils.
Please do apply the patch soon if it looks OK - uu-encoding is the easiest
way to ship binaries in a diff, and this ability is very important for KDE,
where branch updates often include new icons, etc.
Thanks,
Christopher Martin
--Boundary-00=_o2QaCXOKX4nmmSd
Content-Type: text/x-diff;
charset="us-ascii";
name="cdbs.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="cdbs.patch"
--- cdbs.orig/simple-patchsys.mk
+++ cdbs.patched/simple-patchsys.mk
@@ -35,7 +35,7 @@
_cdbs_patch_system_apply_rule := apply-patches
_cdbs_patch_system_unapply_rule := reverse-patches
-DEB_PATCH_SUFFIX ?= .diff .diff.gz .diff.bz2 .patch .patch.gz .patch.bz2
+DEB_PATCH_SUFFIX ?= .diff .diff.gz .diff.bz2 .diff.uu .patch .patch.gz .patch.bz2 .patch.uu
DEB_PATCHDIRS ?= debian/patches
close_parenthesis ?= )
DEB_PATCHES := $(shell\
@@ -86,6 +86,7 @@
case $$patch in \
*.gz) cat=zcat ;; \
*.bz2) cat=bzcat ;; \
+ *.uu) cat="uudecode -o -" ;; \
*) cat=cat ;; \
esac; \
level=$$(head $$patch | egrep '^#DPATCHLEVEL=' | cut -f 2 -d '='); \
--Boundary-00=_o2QaCXOKX4nmmSd--