From 57f2a13d999856209ccd6f213fe1ab180604fa93 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Oct 18 2008 23:03:04 +0000 Subject: - permit tab as macro argument separator (#467567) --- diff --git a/rpm-4.6.0-rc1-permit-tab.patch b/rpm-4.6.0-rc1-permit-tab.patch new file mode 100644 index 0000000..964e822 --- /dev/null +++ b/rpm-4.6.0-rc1-permit-tab.patch @@ -0,0 +1,20 @@ +commit 49c515179ac0d34c2bb43bf242b8eb27ff6c11b2 +Author: Panu Matilainen +Date: Sun Oct 19 01:53:03 2008 +0300 + + Permit tab as whitespace between macro arguments (rhbz#467567) + - another dumb regression from macro handling cleanups + +diff --git a/rpmio/macro.c b/rpmio/macro.c +index 1e292c6..d1cbf93 100644 +--- a/rpmio/macro.c ++++ b/rpmio/macro.c +@@ -798,7 +798,7 @@ grabArgs(MacroBuf mb, const rpmMacroEntry me, const char * se, + char *s = xcalloc((lastc-se)+1, sizeof(*s)); + memcpy(s, se, (lastc-se)); + +- argvSplit(&av, s, " "); ++ argvSplit(&av, s, " \t"); + argvAppend(&argv, av); + + argvFree(av); diff --git a/rpm.spec b/rpm.spec index b5a01a4..fc6cbe6 100644 --- a/rpm.spec +++ b/rpm.spec @@ -18,7 +18,7 @@ Summary: The RPM package management system Name: rpm Version: %{rpmver} -Release: 0.%{snapver}.1 +Release: 0.%{snapver}.2 Group: System Environment/Base Url: http://www.rpm.org/ Source0: http://rpm.org/releases/testing/%{name}-%{srcver}.tar.bz2 @@ -32,6 +32,9 @@ Patch2: rpm-4.5.90-gstreamer-provides.patch # XXX only create provides for pkgconfig and libtool initially Patch100: rpm-4.6.x-no-pkgconfig-reqs.patch +# Patches already in upstream +Patch200: rpm-4.6.0-rc1-permit-tab.patch + # These are not yet upstream Patch300: rpm-4.5.90-posttrans.patch @@ -162,6 +165,8 @@ that will manipulate RPM packages and databases. %patch2 -p1 -b .gstreamer-prov %patch100 -p1 -b .pkgconfig-deps +%patch200 -p1 -b .permit-tab + # needs a bit of upstream love first... #%patch300 -p1 -b .posttrans @@ -352,6 +357,9 @@ exit 0 %doc doc/librpm/html/* %changelog +* Sun Oct 19 2008 Panu Matilainen +- permit tab as macro argument separator (#467567) + * Thu Oct 16 2008 Panu Matilainen - update to 4.6.0-rc1 - fixes #465586, #466597, #465409, #216221, #466503, #466009, #463447...