add patch to fix cp test on 32bits
This commit is contained in:
parent
e554c3367a
commit
017a05b722
|
@ -10,6 +10,8 @@ Patch2: https://github.com/dex4er/fakechroot/pull/85/commits/534e6d55573
|
|||
Patch3: https://github.com/dex4er/fakechroot/pull/85/commits/75d7e6fa191c11a791faff06a0de86eaa7801d05.patch
|
||||
Patch4: https://github.com/dex4er/fakechroot/pull/85/commits/693a3597ea7fccfb62f357503ff177bd3e3d5a89.patch
|
||||
Patch5: https://github.com/dex4er/fakechroot/pull/86.patch
|
||||
Patch6: fix_test_on_32bits.patch
|
||||
|
||||
|
||||
|
||||
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||
|
@ -47,10 +49,10 @@ chmod -x scripts/{relocatesymlinks,restoremode,savemode}.sh
|
|||
%build
|
||||
autoreconf -vfi
|
||||
|
||||
%if "%{_libdir}" == "/usr/lib64"
|
||||
%if 0%{?__isa_bits} == 64
|
||||
%configure --disable-static --disable-silent-rules --with-libpath="%{_libdir}/fakechroot:/usr/lib/fakechroot"
|
||||
%else
|
||||
%configure --disable-static --disable-silent-rules --with-libpath="%{_libdir}/fakechroot"
|
||||
%configure --disable-static --disable-silent-rules --with-libpath="%{_libdir}/fakechroot:/usr/lib64/fakechroot"
|
||||
%endif
|
||||
|
||||
%make_build
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
removing leading / for some reason cp doesn't like it
|
||||
--- fakechroot-2.20.1/test/t/cp.t 2019-03-22 21:02:42.000000000 +0000
|
||||
+++ fakechroot-2.20.1/test/t/cp.t 2022-03-04 02:07:11.511455404 +0000
|
||||
@@ -19,13 +19,13 @@ for chroot in chroot fakechroot; do
|
||||
else
|
||||
|
||||
echo 'something' > $testtree/file-$chroot
|
||||
- ln -s /file-$chroot $testtree/symlink-$chroot
|
||||
+ ln -s file-$chroot $testtree/symlink-$chroot
|
||||
|
||||
- t=`$srcdir/$chroot.sh $testtree /bin/sh -c "cp $CP_ARGS /file-$chroot /file2-$chroot; cat /file2-$chroot" 2>&1`
|
||||
+ t=`$srcdir/$chroot.sh $testtree /bin/sh -c "cp $CP_ARGS file-$chroot file2-$chroot; cat /file2-$chroot" 2>&1`
|
||||
test "$t" = "something" || not
|
||||
- ok "$chroot cp $CP_ARGS /file-$chroot /file2-$chroot:" $t
|
||||
+ ok "$chroot cp $CP_ARGS file-$chroot file2-$chroot:" $t
|
||||
|
||||
- t=`$srcdir/$chroot.sh $testtree /bin/sh -c "cp $CP_ARGS /symlink-$chroot /symlink2-$chroot; cat /symlink2-$chroot" 2>&1`
|
||||
+ t=`$srcdir/$chroot.sh $testtree /bin/sh -c "cp $CP_ARGS symlink-$chroot symlink2-$chroot; cat /symlink2-$chroot" 2>&1`
|
||||
test "$t" = "something" || not
|
||||
ok "$chroot cp $CP_ARGS /symlink-$chroot /symlink2-$chroot:" $t
|
||||
|
Loading…
Reference in New Issue