[Pkg-openldap-devel] Bug#485263: openldap2.3: FTBFS when converted to new source format 3.0 (quilt): require -p0 for some patches
Raphael Hertzog
hertzog at debian.org
Mon Jul 14 20:03:14 UTC 2008
On Sun, 13 Jul 2008, Russ Allbery wrote:
> Raphael Hertzog <hertzog at debian.org> writes:
> > You can use the following command to easily update all the patches
> > that use the '-p0' option:
> > awk '{ if ($2 == "-p0") print $1 }' debian/patches/series | while read f; do perl -pi -e 's|^--- (?:\./)?|--- a/|; s|^\+\+\+ (?:\./)?|+++ b/|;' debian/patches/$f ; done
>
> Just FYI, a simple quilt refresh -p1 will convert a patch as well. I
> used:
I discovered this in the mean time and I even advertised it on
-devel-announce:
http://lists.debian.org/debian-devel-announce/2008/07/msg00000.html
> for p in `grep -h -- -p0 debian/patches/series | awk '{print $1}'`; do
> quilt push $p
> quilt refresh -p1
> done
> quilt pop -a
I suggested a shorter solution:
quilt pop -a; while quilt push; do quilt refresh -p1; done
Cheers,
--
Raphaël Hertzog
Le best-seller français mis à jour pour Debian Etch :
http://www.ouaza.com/livre/admin-debian/
More information about the Pkg-openldap-devel
mailing list