SHA256
1
0
forked from pool/quilt

45 Commits

Author SHA256 Message Date
819b5349fc Accepting request 1273478 from devel:tools:scm
- Update to upstream version 0.69.
- Make it possible to run "quilt setup" on a spec file which excludes the local architecture (boo#1238516).

OBS-URL: https://build.opensuse.org/request/show/1273478
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=79
2025-04-30 17:03:29 +00:00
Jean Delvare
c9cce0c0ed - Update to version 0.69:
* Fix escaping of % and backslash in patch names
  * new: Stop claiming support of option -p ab
  * patches: Several performance optimizations
  * series: Simplify the code
  * Obsoletes fix-two-exit-values.patch
  * Obsoletes guards-fix-exit-operator-precedence-error.patch
  * Obsoletes inspect-wrapper-fix-rpm-4.20.patch
  * Obsoletes setup-implement-a-spec-filter-library.patch
  * Obsoletes setup-new-option-spec-filter.patch
  * Obsoletes setup-pass-define-to-rpmbuild-instead-of-eval-define.patch
- setup-deal-with-ExclusiveArch.patch: Make it possible to run
  "quilt setup" on a spec file which excludes the local
  architecture (boo#1238516).

OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/quilt?expand=0&rev=138
2025-04-29 13:28:00 +00:00
89831a70e9 Accepting request 1253876 from devel:tools:scm
OBS-URL: https://build.opensuse.org/request/show/1253876
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=78
2025-03-17 21:19:17 +00:00
Jean Delvare
6fc10e5a7d Accepting request 1253869 from home:jdelvare:branches:devel:tools:scm
- Fix 2 bugs in "quilt setup" caused by the update to rpm 4.20 (boo#1236907).
- New "quilt setup" option to preprocess spec files which do not comply with the standard (boo#1236907).
- Install the bash completion file to the right directory (reported by rpmlint).

OBS-URL: https://build.opensuse.org/request/show/1253869
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/quilt?expand=0&rev=136
2025-03-17 16:33:13 +00:00
7e71b8b100 Accepting request 1166315 from devel:tools:scm
- Update to version 0.68.
- Drop the non-upstream "expand" command.
- Recommend unzip and zstd.

OBS-URL: https://build.opensuse.org/request/show/1166315
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=77
2024-04-09 14:47:55 +00:00
ea7a91354b Accepting request 1151866 from devel:tools:scm
OBS-URL: https://build.opensuse.org/request/show/1151866
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=76
2024-02-26 18:50:05 +00:00
a40eed825c Accepting request 1008647 from devel:tools:scm
Document the fact that "quilt setup" does not support arbitrary %prep sections and some adjustments to the spec file may be  needed (boo#1203791).

OBS-URL: https://build.opensuse.org/request/show/1008647
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=75
2022-10-10 16:43:30 +00:00
42b486edb7 Accepting request 1002352 from devel:tools:scm
OBS-URL: https://build.opensuse.org/request/show/1002352
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=74
2022-09-10 18:17:14 +00:00
888e0f6e31 Accepting request 955039 from devel:tools:scm
- Update to version 0.67:
  * Call pager with original LANG environment variable
  * Consistently complain early if no series file is found
  * Tighten the patch format parsing
  * Reuse the shell (performance)
  * Document the series file format further
  * Document that quilt loads /etc/quilt.quiltrc
  * series: Minor optimizations
  * setup: Don't obey the settings of any englobing .pc
  * setup: Default to fast mode
  * quilt.el: Fix documentation of quilt-pc-directory
  * quilt.el: Load /etc/quilt.quiltrc if ~/.quiltrc doesn't exist
  * quilt.el: Fix quilt-editable when QUILT_PATCHES_PREFIX is set

OBS-URL: https://build.opensuse.org/request/show/955039
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=73
2022-02-16 23:30:09 +00:00
6546310bb9 Accepting request 854526 from devel:tools:scm
OBS-URL: https://build.opensuse.org/request/show/854526
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=72
2020-12-12 19:27:23 +00:00
3c18785f0d Accepting request 689914 from devel:tools:scm
Update to version 0.66

OBS-URL: https://build.opensuse.org/request/show/689914
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=71
2019-04-02 07:16:38 +00:00
1a53999cca Accepting request 603634 from devel:tools:scm
- quiltrc-support-all-patch-formats-by-default.patch: quiltrc:
  Support all patch formats by default (bsc#1088281).

OBS-URL: https://build.opensuse.org/request/show/603634
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=70
2018-05-06 13:00:17 +00:00
a6b09d2b01 Accepting request 528751 from devel:tools:scm
1

OBS-URL: https://build.opensuse.org/request/show/528751
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=69
2017-10-02 14:45:10 +00:00
ff6bfa1d03 Accepting request 512346 from devel:tools:scm
1

OBS-URL: https://build.opensuse.org/request/show/512346
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=68
2017-08-08 09:57:13 +00:00
9db0b5baaf Accepting request 501141 from devel:tools:scm
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/501141
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=67
2017-06-05 16:50:57 +00:00
b2298bb597 Accepting request 489824 from devel:tools:scm
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/489824
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=66
2017-04-28 07:11:07 +00:00
b35e912340 Accepting request 439564 from devel:tools:scm
Update to version 0.65

OBS-URL: https://build.opensuse.org/request/show/439564
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=65
2016-11-11 13:32:15 +00:00
d2ff2bafb0 Accepting request 431137 from devel:tools:scm
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/431137
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=64
2016-10-04 13:46:35 +00:00
9d0c8ed461 Accepting request 428090 from devel:tools:scm
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/428090
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=63
2016-09-21 16:24:24 +00:00
ec370b016f Accepting request 287372 from devel:tools:scm
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/287372
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=62
2015-02-27 10:06:35 +00:00
2e2d2e07da Accepting request 285522 from devel:tools:scm
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/285522
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=61
2015-02-13 07:33:58 +00:00
2d4e474e8d Accepting request 283317 from devel:tools:scm
- Update upstream references.
- quilt-el-fix-tramp-support.patch: quilt-el: Fix tramp support.
- quilt-el-fix-patch-select-completion.patch: quilt-el: Fix patch
  select completion.
- hackweek-11-13-setup-let-normalize_path-deal-with-dot.patch:
  setup: Let normalize_path deal with ".".
- hackweek-11-14-setup-fix-link-creation.patch: setup: Fix link
  creation.
- dont-substitute-release.patch: mail: Don't include the release
  number in User-Agent.

OBS-URL: https://build.opensuse.org/request/show/283317
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=60
2015-01-30 22:57:30 +00:00
364626b681 Accepting request 264682 from devel:tools:scm
1

OBS-URL: https://build.opensuse.org/request/show/264682
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=59
2014-12-17 18:17:58 +00:00
Stephan Kulow
b67f82e509 Accepting request 257865 from devel:tools:scm
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/257865
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=58
2014-10-31 17:27:05 +00:00
Stephan Kulow
b604b85435 Accepting request 254707 from devel:tools:scm
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/254707
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=57
2014-10-11 17:25:52 +00:00
2ff2a6655d Accepting request 244185 from devel:tools:scm
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/244185
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=55
2014-08-13 06:48:58 +00:00
Stephan Kulow
576b96bf50 Accepting request 237536 from devel:tools:scm
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/237536
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=54
2014-06-19 11:08:34 +00:00
Stephan Kulow
ad15ef49d4 Accepting request 232517 from devel:tools:scm
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/232517
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=53
2014-05-06 12:02:46 +00:00
Stephan Kulow
fafbef0969 Accepting request 231239 from devel:tools:scm
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/231239
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=52
2014-04-26 04:06:21 +00:00
Stephan Kulow
231079f286 Accepting request 227278 from devel:tools:scm
- quilt requires less, unless PAGER is set

also broken in SLE12:

abuild@bax:/home/abuild/rpmbuild/BUILD/kernel-default-3.12.14/linux-obj> quilt app
/usr/share/quilt/scripts/patchfns: line 1021: less: command not found
abuild@bax:/home/abuild/rpmbuild/BUILD/kernel-default-3.12.14/linux-obj> env PAGER=/bin/cat quilt app
patches/vrss.patch (forwarded request 226944 from jdelvare)

OBS-URL: https://build.opensuse.org/request/show/227278
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=51
2014-03-25 12:27:50 +00:00
Stephan Kulow
a3a02065b8 Accepting request 210033 from devel:tools:scm
- Recompress the source archive with bzip2 (to remove a rpmlint warning.)
- Change bzip2 from required to recommended. Quilt works just fine without it and xz compression if becoming more popular than bzip2.
- update to 0.61

OBS-URL: https://build.opensuse.org/request/show/210033
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=50
2013-12-10 15:03:28 +00:00
Stephan Kulow
c390fd5c0a Accepting request 201478 from devel:tools:scm
- quilt-makefile-fix-find-perm-usage.patch: Makefile: Fix "find
  -perm" usage.
- quilt-makefile-fix-configure-with-xargs.patch: Makefile: Fix
  support for "./configure --with-xargs".
- quilt-find-quoting-style.patch: delete.test: Cope with new
  quoting style in find error message.

OBS-URL: https://build.opensuse.org/request/show/201478
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=49
2013-10-01 06:34:57 +00:00
Stephan Kulow
bcfa19b201 Accepting request 171337 from devel:tools:scm
- Cleanup spec file
- Add Source URL, see https://en.opensuse.org/SourceUrls (forwarded request 162828 from namtrac)

OBS-URL: https://build.opensuse.org/request/show/171337
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=47
2013-04-18 08:43:12 +00:00
Stephan Kulow
a00df87d7a Accepting request 139312 from devel:tools:scm
Many improvements to "quilt setup".

OBS-URL: https://build.opensuse.org/request/show/139312
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=45
2012-10-26 15:29:53 +00:00
Stephan Kulow
35f2bd09c5 Accepting request 108311 from devel:tools:scm
- Update to version 0.60.
- Fix interaction with vimdiff.

OBS-URL: https://build.opensuse.org/request/show/108311
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=43
2012-03-07 12:45:17 +00:00
Stephan Kulow
cdc877fc81 Accepting request 107075 from devel:tools:scm
make build output stable (forwarded request 106956 from msmeissn)

OBS-URL: https://build.opensuse.org/request/show/107075
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=42
2012-02-28 13:15:35 +00:00
Stephan Kulow
4d1ed41384 Accepting request 102386 from devel:tools:scm
Update to upstream version 0.51

OBS-URL: https://build.opensuse.org/request/show/102386
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=41
2012-02-03 09:26:13 +00:00
Stephan Kulow
8710994f5d Accepting request 100927 from devel:tools:scm
OBS-URL: https://build.opensuse.org/request/show/100927
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=40
2012-01-25 10:08:51 +00:00
Stephan Kulow
61d73b294a Accepting request 96758 from devel:tools:scm
Upgrade to version 0.50.

OBS-URL: https://build.opensuse.org/request/show/96758
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=39
2011-12-21 13:58:35 +00:00
Stephan Kulow
6a6973825c Accepting request 90927 from devel:tools:scm
Make quilt work again with xz compressed files

OBS-URL: https://build.opensuse.org/request/show/90927
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=38
2011-11-10 15:04:01 +00:00
Lars Vogdt
f0c0a06ce0 Accepting request 86968 from devel:tools:scm
- inspect-shell-syntax-errors.patch: Quote strings in inspect
  helper script to avoid flood of shell syntax errors during
  quilt setup -v *.spec.

OBS-URL: https://build.opensuse.org/request/show/86968
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=36
2011-10-06 22:50:24 +00:00
OBS User autobuild
80828389bd Autobuild autoformatter for 53433
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=34
2010-11-20 10:20:17 +00:00
Ruediger Oertel
d6c08bf25f Accepting request 53433 from devel:tools:scm
Accepted submit request 53433 from user coolo

OBS-URL: https://build.opensuse.org/request/show/53433
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=33
2010-11-20 10:19:56 +00:00
OBS User autobuild
1cd4cd3fcf Accepting request 41831 from devel:tools:scm
Copy from devel:tools:scm/quilt based on submit request 41831 from user jdelvare

OBS-URL: https://build.opensuse.org/request/show/41831
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=30
2010-06-21 15:53:16 +00:00
OBS User autobuild
f7658c373a Accepting request 40331 from devel:tools:scm
Copy from devel:tools:scm/quilt based on submit request 40331 from user puzel

OBS-URL: https://build.opensuse.org/request/show/40331
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quilt?expand=0&rev=29
2010-05-25 11:13:12 +00:00
6 changed files with 126 additions and 39 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:aa4f3f1ddcdbd135bfd99df26159a1fe65a1d6b571afb5b063995184c490eaa3
size 468692

3
quilt-0.69.tar.xz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:000ec454d659d09d98e4847ec1448140ba8cc14f2f9028d1ee95ea31e7683c51
size 469476

View File

@@ -1,3 +1,46 @@
-------------------------------------------------------------------
Tue Apr 29 12:28:28 UTC 2025 - Jean Delvare <jdelvare@suse.com>
- Update to version 0.69:
* Fix escaping of % and backslash in patch names
* new: Stop claiming support of option -p ab
* patches: Several performance optimizations
* series: Simplify the code
* Obsoletes fix-two-exit-values.patch
* Obsoletes guards-fix-exit-operator-precedence-error.patch
* Obsoletes inspect-wrapper-fix-rpm-4.20.patch
* Obsoletes setup-implement-a-spec-filter-library.patch
* Obsoletes setup-new-option-spec-filter.patch
* Obsoletes setup-pass-define-to-rpmbuild-instead-of-eval-define.patch
- setup-deal-with-ExclusiveArch.patch: Make it possible to run
"quilt setup" on a spec file which excludes the local
architecture (boo#1238516).
-------------------------------------------------------------------
Mon Mar 17 15:27:54 UTC 2025 - Jean Delvare <jdelvare@suse.com>
- Drop obsolete suse version checks (reported by rpmlint).
-------------------------------------------------------------------
Mon Mar 17 14:34:07 UTC 2025 - Jean Delvare <jdelvare@suse.com>
- guards-fix-exit-operator-precedence-error.patch,
fix-two-exit-values.patch: Avoid a perl warning due to missing
parentheses when using the ?: operator to compute an exit value.
- setup-pass-define-to-rpmbuild-instead-of-eval-define.patch: Fix
building noarch packages with rpm >= 4.20 (boo#1236907).
- setup-new-option-spec-filter.patch,
setup-implement-a-spec-filter-library.patch: Make it possible to
preprocess spec files which do not comply with the standard. Most
notably multibuild OBS spec files need to be preprocessed. Use
option "--spec-filter=obs" for these (boo#1236907).
- inspect-wrapper-fix-rpm-4.20.patch: Detect the change of build
root path hierarchy introduced by rpm 4.20 (boo#1236907).
- Drop suse-workaround-pseudo-release.patch, superseded by new
option --spec-filter.
- Install the bash completion file to the right directory (reported
by rpmlint).
-------------------------------------------------------------------
Thu Mar 28 13:37:03 UTC 2024 - Jean Delvare <jdelvare@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package quilt
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,14 +17,16 @@
Name: quilt
Version: 0.68
Version: 0.69
Release: 0
Summary: A Tool for Working with Many Patches
License: GPL-2.0-or-later
Group: Development/Tools/Version Control
BuildRequires: bash-completion-devel
BuildRequires: diffstat
BuildRequires: ed
BuildRequires: emacs-nox
BuildRequires: pkg-config
BuildRequires: xz
Requires: coreutils
Requires: diffstat
@@ -39,8 +41,8 @@ Requires: perl
URL: http://savannah.nongnu.org/projects/quilt
Source: %{name}-%{version}.tar.xz
Source1: suse-start-quilt-mode.el
Patch1: setup-deal-with-ExclusiveArch.patch
Patch82: quilt-support-vimdiff.patch
Patch84: suse-workaround-pseudo-release.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%if 0%{?suse_version}
@@ -49,11 +51,7 @@ Recommends: bzip2
Recommends: ed
Recommends: procmail
Recommends: unzip
%endif
%if 0%{?suse_version} > 1120
Recommends: xz
%endif
%if 0%{?suse_version} > 1210
Recommends: zstd
%endif
@@ -98,7 +96,9 @@ export NO_BRP_STALE_LINK_ERROR=yes
make install BUILD_ROOT=%{buildroot}
install -m 644 lib/quilt.elc \
%{buildroot}%{_datadir}/emacs/site-lisp/
mv %{buildroot}%{_sysconfdir}/bash_completion.d/quilt{,.sh}
%define completionsdir %(pkg-config --variable completionsdir bash-completion)
install -m 755 -d %{buildroot}%{completionsdir}
mv %{buildroot}%{_sysconfdir}/bash_completion.d/quilt %{buildroot}%{completionsdir}/quilt
# We only needed the /usr/bin/patch compatibility symlink for the
# test suite.
[ %{buildroot}%{_datadir}/quilt/compat/patch -ef /usr/bin/patch ] \
@@ -118,8 +118,8 @@ install -m 644 %_sourcedir/suse-start-quilt-mode.el \
%{_bindir}/quilt
%{_datadir}/quilt/
%{_datadir}/emacs/
%{completionsdir}/quilt
%config %{_sysconfdir}/quilt.quiltrc
%config %{_sysconfdir}/bash_completion.d/quilt.sh
%doc %{_mandir}/man1/guards.1.gz
%doc %{_mandir}/man1/quilt.1.gz
%doc doc/README

View File

@@ -0,0 +1,71 @@
From: Jean Delvare <jdelvare@suse.de>
Subject: Let quilt setup deal with ExclusiveArch
References: boo#1238516
If the spec file includes an ExclusiveArch statement and the local
architecture isn't part of the list, rpmbuild will fail. Check for
the presence of this statement before calling rpmbuild, and if it
would fail, pass option --target to set the architecture to a
supported one.
---
quilt/setup.in | 35 ++++++++++++++++++++++++++++++++++-
1 file changed, 34 insertions(+), 1 deletion(-)
--- a/quilt/setup.in
+++ b/quilt/setup.in
@@ -270,6 +270,7 @@ inspect()
--define "__unzip $tmpdir/bin/unzip" \
--define "__7zip $tmpdir/bin/7z" \
"${DEFINE_FUZZ[@]}" \
+ "${FORCE_ARCH[@]}" \
--nodeps \
-bp "$specdir/$specfile" < /dev/null >&5 2>&5
status=$?
@@ -343,7 +344,36 @@ eval set -- "$options"
export QUILT_SETUP_FAST=1
prefix=
sourcedir=
-declare -a DEFINE_FUZZ
+declare -a DEFINE_FUZZ FORCE_ARCH
+
+# Sets FORCE_ARCH if needed
+check_exclusivearch()
+{
+ local spec_file=$1 our_arch a
+ local -a archs
+
+ archs=( $(sed -ne 's/^ExclusiveArch:[[:space:]]*\(.*\)$/\1/p' "$spec_file") )
+ if [ ${#archs[@]} -eq 0 ]
+ then
+ return
+ fi
+
+ # ExclusiveArch statement is present
+ our_arch=$(arch 2>/dev/null)
+ for a in "${archs[@]}"
+ do
+ if [ "$a" == "$our_arch" ]
+ then
+ # We are in the list, so no problem
+ return
+ fi
+ done
+
+ # We are not in the exclusive arch list. Force the target to the
+ # first listed architecture to make rpmbuild happy.
+
+ FORCE_ARCH=( "--target" "${archs[0]}" )
+}
while true
do
@@ -417,6 +447,9 @@ case "$1" in
# check if rpmbuild is installed before running inspect
check_external_tool rpmbuild rpm-build
+ # check if ExclusiveArch statement would block rpmbuild
+ check_exclusivearch "$spec_file"
+
if [ -n "$QUILT_SETUP_FAST" ]
then
if [ "${prefix:0:1}" = / ]

View File

@@ -1,27 +0,0 @@
Upstream: Never
Old Suse spec files have a pseudo release string which uses characters
newer versions of rpmbuild don't like. Filter them out to make rpmbuild
happy again. Packages in openSUSE 11.4 and later no longer need this.
---
quilt/setup.in | 8 ++++++++
1 file changed, 8 insertions(+)
--- a/quilt/setup.in
+++ b/quilt/setup.in
@@ -213,6 +213,14 @@ inspect()
ln -s $QUILT_DIR/scripts/inspect-wrapper $tmpdir/bin/unzip
ln -s $QUILT_DIR/scripts/inspect-wrapper $tmpdir/bin/7z
+ # Older versions of Suse packages have a symbolic release number, and
+ # rpmbuild won't like that, so change it to something compliant.
+ if grep -q '^Release:.*[<>]' "$specdir/$specfile"
+ then
+ sed -e '/^Release:/s/[<>]//g' < "$specdir/$specfile" > $tmpdir/"$specfile"
+ specdir=$tmpdir
+ fi
+
# Redirect file descriptors
# 5 is used in verbose mode, 4 in non-verbose mode, and 2 for both (real errors)
if [ -n "$verbose" ]