.
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=149
This commit is contained in:
parent
5f58c3fb11
commit
deaf1d25cd
@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:441c0e7f90b24072c6acf50d14da277a5854e7f4446b03b2faae5c4748eb6c5f
|
oid sha256:6901414b1d93b5bc046ea7d946722c56baf503743243bed97ef2f98e05af1742
|
||||||
size 26485
|
size 27775
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 21 11:51:54 UTC 2013 - werner@suse.de
|
||||||
|
|
||||||
|
- Add patch from upstream mailing list to speed up array handling
|
||||||
|
- Add patch from upstream mailing list to avoid fdleaks
|
||||||
|
- Use lsdiff to determine the depth of the leading slashes in a
|
||||||
|
patch file
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Mar 15 15:35:51 UTC 2013 - werner@suse.de
|
Fri Mar 15 15:35:51 UTC 2013 - werner@suse.de
|
||||||
|
|
||||||
|
28
bash.spec
28
bash.spec
@ -27,6 +27,7 @@ BuildRequires: fdupes
|
|||||||
BuildRequires: makeinfo
|
BuildRequires: makeinfo
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
|
BuildRequires: patchutils
|
||||||
BuildRequires: screen
|
BuildRequires: screen
|
||||||
%define bash_vers 4.2
|
%define bash_vers 4.2
|
||||||
%define rl_vers 6.2
|
%define rl_vers 6.2
|
||||||
@ -269,14 +270,19 @@ as well as programming with the interface of the readline library.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n bash-%{bash_vers}%{extend} -b1 -b2 -b3
|
%setup -q -n bash-%{bash_vers}%{extend} -b1 -b2 -b3
|
||||||
|
typeset -i level
|
||||||
for patch in ../bash-%{bash_vers}-patches/*; do
|
for patch in ../bash-%{bash_vers}-patches/*; do
|
||||||
level=-p1
|
|
||||||
test -e $patch || break
|
test -e $patch || break
|
||||||
[[ $(head -n 1 $patch) =~ From ]] || level=-p0
|
let level=0 || true
|
||||||
|
file=$(lsdiff --files=1 $patch)
|
||||||
|
if test ! -e $file ; then
|
||||||
|
file=${file#*/}
|
||||||
|
let level++ || true
|
||||||
|
fi
|
||||||
|
test -e $file || exit 1
|
||||||
echo Patch $patch
|
echo Patch $patch
|
||||||
patch -s $level < $patch
|
patch -s -p$level < $patch
|
||||||
done
|
done
|
||||||
unset p
|
|
||||||
%patch1 -p0 -b .manual
|
%patch1 -p0 -b .manual
|
||||||
%patch2 -p0 -b .security
|
%patch2 -p0 -b .security
|
||||||
%patch3 -p0 -b .2.4.4
|
%patch3 -p0 -b .2.4.4
|
||||||
@ -308,10 +314,16 @@ unset p
|
|||||||
%patch47
|
%patch47
|
||||||
%patch0 -p0 -b .0
|
%patch0 -p0 -b .0
|
||||||
pushd ../readline-%{rl_vers}%{extend}
|
pushd ../readline-%{rl_vers}%{extend}
|
||||||
for p in ../readline-%{rl_vers}-patches/*; do
|
for patch in ../readline-%{rl_vers}-patches/*; do
|
||||||
test -e $p || break
|
test -e $patch || break
|
||||||
echo Patch $p
|
let level=0 || true
|
||||||
patch -s -p0 < $p
|
file=$(lsdiff --files=1 $patch)
|
||||||
|
if test ! -e $file ; then
|
||||||
|
file=${file#*/}
|
||||||
|
let level++ || true
|
||||||
|
fi
|
||||||
|
echo Patch $patch
|
||||||
|
patch -s -p$level < $patch
|
||||||
done
|
done
|
||||||
%patch21 -p2 -b .zerotty
|
%patch21 -p2 -b .zerotty
|
||||||
%patch22 -p2 -b .wrap
|
%patch22 -p2 -b .wrap
|
||||||
|
Loading…
Reference in New Issue
Block a user