With grep 2.19, egrep is no longer a binary but a shell script.
So it doesn't need to be patched using patchelf (and furthermore it
must be removed from the binaries list, otherwise it makes the
build fail).
Bug-Tizen: TC-2375
Bug-Tizen: TC-1828/related
Change-Id: I51019421bfe8b32b82b58bd8f7fcb121297ef66c
Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
/usr/bin/{tar,gzip,bzip2,xz,xzdec} \
%endif # use_cross_archivators
%if 0%{?use_cross_stream_editors}
- /usr/bin/{grep,egrep,sed} \
+ /usr/bin/{grep,sed} \
%endif # use_cross_stream_editors
%if 0%{use_cross_nss}
%ifarch %ix86
# /opt/testing/bin/python: error while loading shared libraries: libpython2.7.so.1.0: wrong ELF class: ELFCLASS32
for executable in $LD \
- /bin/{bash,grep,egrep,gzip,sed,tar,rpm} \
+ /bin/{bash,grep,gzip,sed,tar,rpm} \
/usr/lib64/libnssdbm3.so /usr/lib64/libsoftokn3.so /lib64/libfreebl3.so \
/usr/bin/{bzip2,cat,expr,make,m4,mkdir,msgexec,msgfmt,msgcat,msgmerge,mv,patch,rm,rmdir,rpmbuild,xz,xzdec} \
%if %use_icecream
/usr/sbin/iceccd /usr/bin/icecc /usr/bin/schroot \
%endif
/usr/arm-tizen-linux-gnueabi/bin/{as,ar,ld,ld.bfd,objcopy,objdump}
-do
+do
binaries="$binaries $executable `ldd $executable | sed -n 's,.*=> \(/[^ ]*\) .*,\1,p'`"
done
# as soon as we have lib64 in arm, we're doomed :)
cp /lib64/security/pam_permit.so %buildroot/%_lib/security
mkdir -p %buildroot/etc/pam.d/
-for i in auth session account password session; do
+for i in auth session account password session; do
echo "$i optional pam_permit.so" >> %buildroot/etc/pam.d/schroot
done
-# Install
+# Install
mkdir -p %buildroot/usr/share/icecream-envs/%{icecream_cross_env}
pushd %buildroot/usr/share/icecream-envs/%{icecream_cross_env}
tar xvf /usr/share/icecream-envs/%{icecream_cross_env}.tar.gz
echo 'export PATH=/opt/icecream/bin:$PATH' >> %{buildroot}/etc/profile.d/icecream.sh
mkdir -p %{buildroot}/etc/schroot
-(
-echo "[cross]"
-echo "directory=/usr/share/icecream-envs/%{icecream_cross_env}"
+(
+echo "[cross]"
+echo "directory=/usr/share/icecream-envs/%{icecream_cross_env}"
echo "users=abuild"
) > %{buildroot}/etc/schroot/schroot.conf
%endif
%if %hijack_gcc
-# Install
+# Install
mkdir -p %buildroot%{our_path}/usr/share/icecream-envs/%{icecream_cross_env}
cp -a /usr/share/icecream-envs/%{icecream_cross_env}.tar.gz \
%buildroot%{our_path}/usr/share/icecream-envs
builtin echo ':arm:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/qemu/qemu-arm-binfmt:P' > /proc/sys/fs/binfmt_misc/register
fi
-if [ $did_mount_it ]; then
+if [ $did_mount_it ]; then
builtin echo "Unmounting again.";
umount /proc/sys/fs/binfmt_misc
fi
ln -s /lib /usr/armv7el-tizen-linux-gnueabi/lib
%files
-%defattr(-,root,root)
+%defattr(-,root,root)
%if %use_icecream
/etc/profile.d
/etc/pam.d
for executable in $LD \
/usr/bin/{bash,rpm,rpmdb} \
- /usr/bin/{gzip,grep,egrep,sed,tar} \
+ /usr/bin/{gzip,grep,sed,tar} \
/usr/lib64/libnssdbm3.so /usr/lib64/libsoftokn3.so /lib64/libfreebl3.so \
/usr/bin/{bzip2,cat,expr,make,m4,mkdir,msgexec,msgfmt,msgcat,msgmerge,mv,patch,rm,rmdir,rpmbuild,xz,xzdec} \
/usr/arm-tizen-linux-gnueabi/bin/{as,ar,ld,ld.bfd,objcopy,objdump}
-do
+do
binaries="$binaries $executable `ldd $executable | sed -n 's,.*=> \(/[^ ]*\) .*,\1,p'`"
done
%if %hijack_gcc
-# Install
+# Install
mkdir -p %buildroot%{our_path}/usr/share/icecream-envs/%{icecream_cross_env}
cp -a /usr/share/icecream-envs/%{icecream_cross_env}.tar.gz \
%buildroot%{our_path}/usr/share/icecream-envs
builtin echo ':arm:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/qemu/qemu-arm-binfmt:P' > /proc/sys/fs/binfmt_misc/register
fi
-if [ $did_mount_it ]; then
+if [ $did_mount_it ]; then
builtin echo "Unmounting again.";
umount /proc/sys/fs/binfmt_misc
fi
ln -s /lib /usr/armv7hl-tizen-linux-gnueabi/usr/lib
%files
-%defattr(-,root,root)
+%defattr(-,root,root)
%dir /usr/armv7hl-tizen-linux-gnueabi
/usr/armv7hl-tizen-linux-gnueabi/usr
/emul
for executable in $LD \
/usr/bin/{bash,rpm,rpmdb} \
- /usr/bin/{gzip,grep,egrep,sed,tar} \
+ /usr/bin/{gzip,grep,sed,tar} \
%ifarch %ix86
/usr/lib/libnssdbm3.so /usr/lib/libsoftokn3.so /lib/libfreebl3.so \
%else
%endif
/usr/bin/{bzip2,cat,expr,make,m4,mkdir,msgexec,msgfmt,msgcat,msgmerge,mv,patch,rm,rmdir,rpmbuild,xz,xzdec} \
/usr/arm-tizen-linux-gnueabi/bin/{as,ar,ld,ld.bfd,objcopy,objdump}
-do
+do
binaries="$binaries $executable `ldd $executable | sed -n 's,.*=> \(/[^ ]*\) .*,\1,p'`"
done
%if %hijack_gcc
-# Install
+# Install
mkdir -p %buildroot%{our_path}/usr/share/icecream-envs/%{icecream_cross_env}
cp -a /usr/share/icecream-envs/%{icecream_cross_env}.tar.gz \
%buildroot%{our_path}/usr/share/icecream-envs
for executable in $LD \
/usr/bin/{bash,rpm} \
- /usr/bin/{gzip,grep,egrep,sed,tar} \
+ /usr/bin/{gzip,grep,sed,tar} \
/usr/lib64/libnssdbm3.so /usr/lib64/libsoftokn3.so /usr/lib64/libfreebl3.so \
/usr/bin/{bzip2,cat,expr,make,m4,mkdir,msgexec,msgfmt,msgcat,msgmerge,mv,patch,rm,rmdir,rpmbuild,xz,xzdec} \
/usr/arm-tizen-linux-gnueabi/bin/{as,ar,ld,ld.bfd,objcopy,objdump}