From 84a1cd5978d2b754a24848ac92820d579993966d285a6b7530b80412a1283965 Mon Sep 17 00:00:00 2001 From: OBS User autobuild Date: Mon, 21 Jun 2010 15:53:15 +0000 Subject: [PATCH] Accepting request 41831 from devel:tools:scm checked in (request 41831) OBS-URL: https://build.opensuse.org/request/show/41831 OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/quilt?expand=0&rev=24 --- fix-patch-version-detection.patch | 21 ++----- quilt.changes | 14 ----- quilt.spec | 4 +- setup-add-fuzz-parameter.patch | 97 ------------------------------- setup-support-reverse-patch.patch | 40 ------------- 5 files changed, 7 insertions(+), 169 deletions(-) delete mode 100644 setup-add-fuzz-parameter.patch delete mode 100644 setup-support-reverse-patch.patch diff --git a/fix-patch-version-detection.patch b/fix-patch-version-detection.patch index fa5a8d8..b6b445c 100644 --- a/fix-patch-version-detection.patch +++ b/fix-patch-version-detection.patch @@ -1,22 +1,13 @@ -New versions of GNU patch present themselves as "GNU patch" instead -of just "patch". - ---- - configure.ac | 6 +++++- - 1 file changed, 5 insertions(+), 1 deletion(-) - ---- quilt-0.48.orig/configure.ac -+++ quilt-0.48/configure.ac -@@ -274,7 +274,11 @@ fi +Index: quilt-0.48/configure.ac +=================================================================== +--- quilt-0.48.orig/configure.ac 2009-01-31 03:28:06.000000000 +0100 ++++ quilt-0.48/configure.ac 2010-05-19 11:59:38.000000000 +0200 +@@ -274,7 +274,7 @@ fi AC_MSG_CHECKING([the version of $PATCH]) if $PATCH --version 2> /dev/null | grep GNU >/dev/null; then set -- `$PATCH --version 2> /dev/null` - patch_version=$2 -+ if test x$1 = xGNU ; then -+ patch_version=$3 -+ else -+ patch_version=$2 -+ fi ++ patch_version=$3 AC_MSG_RESULT($patch_version) saved_IFS=$IFS; IFS='.' set -- $patch_version diff --git a/quilt.changes b/quilt.changes index ea6e478..76ac7ca 100644 --- a/quilt.changes +++ b/quilt.changes @@ -1,17 +1,3 @@ -------------------------------------------------------------------- -Mon Jun 21 12:12:58 CEST 2010 - jdelvare@suse.de - -- fix-patch-version-detection.patch: Update so that we don't break - the build on all older distributions. - -------------------------------------------------------------------- -Sun Jun 20 22:22:41 CEST 2010 - jdelvare@suse.de - -- setup-add-fuzz-parameter.patch: Add a --fuzz parameter to quilt - setup and inspect (bnc#615073). -- setup-support-reverse-patch.patch: Handle reverted patches in - spec files (bnc#615065). - ------------------------------------------------------------------- Wed May 19 10:01:44 UTC 2010 - puzel@novell.com diff --git a/quilt.spec b/quilt.spec index ba6a5bb..af802ab 100644 --- a/quilt.spec +++ b/quilt.spec @@ -43,8 +43,6 @@ Patch8: fix-fr-import-message.diff Patch9: lzma-xz-support.patch Patch10: inspect-lzma-xz.patch Patch11: fix-patch-version-detection.patch -Patch12: setup-add-fuzz-parameter.patch -Patch13: setup-support-reverse-patch.patch Url: http://savannah.nongnu.org/projects/quilt BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -64,7 +62,7 @@ Authors: %prep %setup -q -%patch -p1 -P 1 -P 2 -P 3 -P 4 -P 5 -P 6 -P 7 -P 8 -P 9 -P 10 -P 11 -P 12 -P 13 +%patch -p1 -P 1 -P 2 -P 3 -P 4 -P 5 -P 6 -P 7 -P 8 -P 9 -P 10 -P 11 %build autoconf diff --git a/setup-add-fuzz-parameter.patch b/setup-add-fuzz-parameter.patch deleted file mode 100644 index 27e06ab..0000000 --- a/setup-add-fuzz-parameter.patch +++ /dev/null @@ -1,97 +0,0 @@ -From: Jean Delvare -Subject: Add a --fuzz parameter to quilt setup and inspect -References: bnc#615073 - -Let quilt setup and inspect overrule the _default_patch_fuzz -setting of rpmbuild, by adding a --fuzz option to both. This is -particularly useful when working on an old source tree with a -recent version of patch which defaults to fuzz 0. ---- - quilt/scripts/inspect.in | 9 +++++++-- - quilt/setup.in | 12 +++++++++--- - 2 files changed, 16 insertions(+), 5 deletions(-) - ---- quilt-0.48.orig/quilt/scripts/inspect.in -+++ quilt-0.48/quilt/scripts/inspect.in -@@ -17,11 +17,11 @@ fi - cd ${SUBDIR:-.} - - usage() { -- echo "Usage: ${0##*/} specfile" -+ echo "Usage: ${0##*/} [--fuzz=N] specfile" - exit 1 - } - --options=$(getopt -o v --long sourcedir: -n "${0##*/}" -- "$@") || exit -+options=$(getopt -o v --long sourcedir:,fuzz: -n "${0##*/}" -- "$@") || exit - - eval set -- "$options" - -@@ -36,6 +36,10 @@ do - --sourcedir) - sourcedir=${2%/}/ - shift 2 ;; -+ --fuzz) -+ # Only works with rpm 4.6 and later -+ DEFINE_FUZZ="%define _default_patch_fuzz $2" -+ shift 2 ;; - --) - shift - break ;; -@@ -269,6 +273,7 @@ rpmbuild --eval "%define _sourcedir $sou - --eval "%define _builddir $tmpdir/build" \ - --eval "%define __patch $tmpdir/bin/patch" \ - --eval "%define __tar $tmpdir/bin/tar" \ -+ --eval "$DEFINE_FUZZ" \ - --nodeps \ - -bp "$specdir/$specfile" < /dev/null >&2 - status=$? ---- quilt-0.48.orig/quilt/setup.in -+++ quilt-0.48/quilt/setup.in -@@ -72,7 +72,7 @@ create_symlink() { - - usage() - { -- printf $"Usage: quilt setup [-d path-prefix] [-v] [--sourcedir dir] {specfile|seriesfile}\n" -+ printf $"Usage: quilt setup [-d path-prefix] [-v] [--sourcedir dir] [--fuzz=N] {specfile|seriesfile}\n" - if [ x$1 = x-h ] - then - printf $" -@@ -84,6 +84,9 @@ Initializes a source tree from an rpm sp - Directory that contains the package sources. Defaults to \`.'. - - -v Verbose debug output. -+ -+--fuzz=N -+ Set the maximum fuzz factor (needs rpm 4.6 or later). - " - exit 0 - else -@@ -91,7 +94,7 @@ Initializes a source tree from an rpm sp - fi - } - --options=`getopt -o d:vh --long sourcedir: -- "$@"` -+options=`getopt -o d:vh --long sourcedir:,fuzz: -- "$@"` - - if [ $? -ne 0 ] - then -@@ -117,6 +120,9 @@ do - --sourcedir) - sourcedir=${2%/}/ - shift 2 ;; -+ --fuzz) -+ opt_fuzz="--fuzz $2" -+ shift 2 ;; - --) - shift - break ;; -@@ -137,7 +143,7 @@ case "$1" in - *.spec) - spec_file=$1 - -- if ! $QUILT_DIR/scripts/inspect $verbose $opt_sourcedir \ -+ if ! $QUILT_DIR/scripts/inspect $verbose $opt_sourcedir $opt_fuzz \ - "$spec_file" 2>&1 > $tmpfile - then - printf $"The %%prep section of %s failed; results may be incomplete\n" "$spec_file" diff --git a/setup-support-reverse-patch.patch b/setup-support-reverse-patch.patch deleted file mode 100644 index 8d7c553..0000000 --- a/setup-support-reverse-patch.patch +++ /dev/null @@ -1,40 +0,0 @@ -From: Jean Delvare -Subject: Handle reverted patches in spec files -References: bnc#615065 - -Let inspect (and thus quilt setup) handle reversed patches -in spec files. ---- - quilt/scripts/inspect.in | 14 +++++++++++++- - 1 file changed, 13 insertions(+), 1 deletion(-) - ---- quilt-0.48.orig/quilt/scripts/inspect.in -+++ quilt-0.48/quilt/scripts/inspect.in -@@ -185,6 +185,18 @@ cat <<-'EOF' > $tmpdir/bin/wrapper - fi - } - -+ # Extract the -R option from the command line -+ reverse_option() { -+ while [ $# -ne 0 -a "$1" != -R ] -+ do -+ shift -+ done -+ if [ "$1" = -R ] -+ then -+ echo $1 -+ fi -+ } -+ - patch_input_file() { - while [ $# -gt 0 ]; do - case "$1" in -@@ -244,7 +256,7 @@ cat <<-'EOF' > $tmpdir/bin/wrapper - patch) - echo -n p >&4 - echo "${0##*/} ${dir:-.} $unpackfile" \ -- $(strip_option "$@") >&3 -+ $(strip_option "$@") $(reverse_option "$@") >&3 - ;; - tar) - echo -n t >&4