diff options
author | Dongkyun, Son <dongkyun.s@samsung.com> | 2016-02-03 14:27:34 +0900 |
---|---|---|
committer | Dongkyun, Son <dongkyun.s@samsung.com> | 2016-02-03 14:27:41 +0900 |
commit | 4be81974b7f60f7b3b5081e128cf2a2d8b10e79d (patch) | |
tree | 1e68c59747c8a77942b0b718fa8ba6e1a04b5264 | |
parent | ba4d917b86021948a990336938d4e6876440aa49 (diff) | |
download | qemu-accel-4be81974b7f60f7b3b5081e128cf2a2d8b10e79d.tar.gz qemu-accel-4be81974b7f60f7b3b5081e128cf2a2d8b10e79d.tar.bz2 qemu-accel-4be81974b7f60f7b3b5081e128cf2a2d8b10e79d.zip |
Revert "add getfacl/setfacl"
This reverts commit ba4d917b86021948a990336938d4e6876440aa49.
Change-Id: I4820d840d9dd9d04e5ab04520fca6aec0738fc7a
-rw-r--r-- | packaging/baselibs.conf | 4 | ||||
-rw-r--r-- | packaging/qemu-accel-aarch64.spec | 13 | ||||
-rw-r--r-- | packaging/qemu-accel-armv7l.spec | 13 | ||||
-rw-r--r-- | packaging/qemu-accel.spec.in | 13 |
4 files changed, 7 insertions, 36 deletions
diff --git a/packaging/baselibs.conf b/packaging/baselibs.conf index 9decd76..04aa03a 100644 --- a/packaging/baselibs.conf +++ b/packaging/baselibs.conf @@ -7,11 +7,9 @@ qemu-accel targettype 32bit block! autoreqprov off +/ - requires "gcc sudo-rpm" + requires "gcc" config -/pkg-config$ post "#PLUGIN_POSTIN#" - post "#PLUGIN_POSTIN_ACL#" - post "#PLUGIN_POSTIN_SUDO#" postun "#PLUGIN_POSTUN#" python-accel diff --git a/packaging/qemu-accel-aarch64.spec b/packaging/qemu-accel-aarch64.spec index 74c56b2..27c34cd 100644 --- a/packaging/qemu-accel-aarch64.spec +++ b/packaging/qemu-accel-aarch64.spec @@ -55,7 +55,7 @@ BuildRequires: python-xml BuildRequires: python-magic BuildRequires: python-rpm BuildRequires: file -BuildRequires: sudo acl +BuildRequires: sudo Summary: Native binaries for speeding up cross compile License: GPL-2.0 Group: Development/Cross Compilation @@ -122,8 +122,7 @@ for executable in $LD \ %{_bindir}/%{target_arch}-{c++,g++,cpp,gcc,gcc-${gcc_version},gcc-ar,gcc-nm,gcc-ranlib,gcov,gfortran} \ %{libdir}/gcc/%{target_arch}/${gcc_version}/{cc1,cc1plus,collect2,f951,lto1,lto-wrapper,liblto_plugin.so} \ %{_bindir}/file \ - %{_bindir}/{sudo,getfacl,setfacl} \ - %{_libexecdir}/sudo/{group_file.so,sudo_noexec.so,sudoers.so,system_group.so} \ + %{_bindir}/sudo \ %{_bindir}/{find,xargs} do binaries="$binaries $executable `ldd $executable | sed -n 's,.*=> \(/[^ ]*\) .*,\1,p'`" @@ -139,9 +138,6 @@ do done | grep -v "not owned" | sed -e "s/-[0-9].*//g" | sort -u echo "" -# Create storage for permissions -mkdir -p %{buildroot}/%{our_path} -echo '' > %{buildroot}/%{our_path}/permissions.acl for binary in $binaries do @@ -156,7 +152,6 @@ do echo "ERROR file $binary leaks host information into the guest" exit 1 fi - getfacl $binary | sed -e '/file:/s|: |: %{our_path}/|' >> %{buildroot}%{our_path}/permissions.acl rm -f $outfile.data [ "$binary" == "$LD" ] && continue patchelf --set-rpath "%{our_path}/%{libdir}" $outfile @@ -189,7 +184,6 @@ ln -s usr/lib %{buildroot}%{our_path}/lib for binary in addr2line ar as c++filt dwp elfedit gprof ld ld.bfd ld.gold nm objcopy objdump ranlib readelf size strings strip do mv %{buildroot}%{our_path}%{_bindir}/%{target_arch}-$binary %{buildroot}%{our_path}%{_bindir}/$binary - sed -e "/file:/s|%{_bindir}/%{target_arch}-$binary|%{_bindir}/$binary|" -i %{buildroot}%{our_path}/permissions.acl done mkdir -p %{buildroot}/%{our_path}/%{_prefix}/%{target_arch}/bin @@ -242,7 +236,6 @@ for bin in c++ g++ cpp gcc gcc-ar gcc-nm gcc-ranlib gfortran do mv %{buildroot}%{our_path}%{_bindir}/%{target_arch}-$bin %{buildroot}/%{our_path}%{_bindir}/$bin ln -s $bin %{buildroot}%{our_path}%{_bindir}/%{target_arch}-$bin - sed -e "/file:/s|%{_bindir}/%{target_arch}-$bin|%{_bindir}/$bin|" -i %{buildroot}%{our_path}/permissions.acl done mv %{buildroot}%{our_path}%{_bindir}/%{target_arch}-gcov %{buildroot}%{our_path}%{_bindir}/gcov ln -s gcc %{buildroot}%{our_path}/%{_bindir}/cc @@ -276,8 +269,6 @@ set -x # update baselibs.conf, overwrite LTO plugin sed -i -e "s,#PLUGIN_POSTIN#,ln -sf %{our_path}%{_libdir}/gcc/%{target_arch}/${gcc_version}/liblto_plugin.so %{libdir}/gcc/%{target_arch}/${gcc_version}/liblto_plugin.so," %{_sourcedir}/baselibs.conf sed -i -e "s,#PLUGIN_POSTUN#,ln -sf liblto_plugin.so.0 %{libdir}/gcc/%{target_arch}/${gcc_version}/liblto_plugin.so," %{_sourcedir}/baselibs.conf -sed -i -e "s,#PLUGIN_POSTIN_ACL#,%{our_path}/bin/setfacl --restore=%{our_path}/permissions.acl," %{_sourcedir}/baselibs.conf -sed -i -e "s,#PLUGIN_POSTIN_SUDO#,for f in group_file.so sudo_noexec.so sudoers.so system_group.so; do ln -sf %{our_path}%{_libexecdir}/sudo/\$f %{_libexecdir}/sudo/\$f ; done," %{_sourcedir}/baselibs.conf # allow build of baselibs.conf sed -i -e "/targettype %{cross} block!/d" %{_sourcedir}/baselibs.conf diff --git a/packaging/qemu-accel-armv7l.spec b/packaging/qemu-accel-armv7l.spec index 7c4de3d..0ca0cc2 100644 --- a/packaging/qemu-accel-armv7l.spec +++ b/packaging/qemu-accel-armv7l.spec @@ -55,7 +55,7 @@ BuildRequires: python-xml BuildRequires: python-magic BuildRequires: python-rpm BuildRequires: file -BuildRequires: sudo acl +BuildRequires: sudo Summary: Native binaries for speeding up cross compile License: GPL-2.0 Group: Development/Cross Compilation @@ -122,8 +122,7 @@ for executable in $LD \ %{_bindir}/%{target_arch}-{c++,g++,cpp,gcc,gcc-${gcc_version},gcc-ar,gcc-nm,gcc-ranlib,gcov,gfortran} \ %{libdir}/gcc/%{target_arch}/${gcc_version}/{cc1,cc1plus,collect2,f951,lto1,lto-wrapper,liblto_plugin.so} \ %{_bindir}/file \ - %{_bindir}/{sudo,getfacl,setfacl} \ - %{_libexecdir}/sudo/{group_file.so,sudo_noexec.so,sudoers.so,system_group.so} \ + %{_bindir}/sudo \ %{_bindir}/{find,xargs} do binaries="$binaries $executable `ldd $executable | sed -n 's,.*=> \(/[^ ]*\) .*,\1,p'`" @@ -139,9 +138,6 @@ do done | grep -v "not owned" | sed -e "s/-[0-9].*//g" | sort -u echo "" -# Create storage for permissions -mkdir -p %{buildroot}/%{our_path} -echo '' > %{buildroot}/%{our_path}/permissions.acl for binary in $binaries do @@ -156,7 +152,6 @@ do echo "ERROR file $binary leaks host information into the guest" exit 1 fi - getfacl $binary | sed -e '/file:/s|: |: %{our_path}/|' >> %{buildroot}%{our_path}/permissions.acl rm -f $outfile.data [ "$binary" == "$LD" ] && continue patchelf --set-rpath "%{our_path}/%{libdir}" $outfile @@ -189,7 +184,6 @@ ln -s usr/lib %{buildroot}%{our_path}/lib for binary in addr2line ar as c++filt dwp elfedit gprof ld ld.bfd ld.gold nm objcopy objdump ranlib readelf size strings strip do mv %{buildroot}%{our_path}%{_bindir}/%{target_arch}-$binary %{buildroot}%{our_path}%{_bindir}/$binary - sed -e "/file:/s|%{_bindir}/%{target_arch}-$binary|%{_bindir}/$binary|" -i %{buildroot}%{our_path}/permissions.acl done mkdir -p %{buildroot}/%{our_path}/%{_prefix}/%{target_arch}/bin @@ -242,7 +236,6 @@ for bin in c++ g++ cpp gcc gcc-ar gcc-nm gcc-ranlib gfortran do mv %{buildroot}%{our_path}%{_bindir}/%{target_arch}-$bin %{buildroot}/%{our_path}%{_bindir}/$bin ln -s $bin %{buildroot}%{our_path}%{_bindir}/%{target_arch}-$bin - sed -e "/file:/s|%{_bindir}/%{target_arch}-$bin|%{_bindir}/$bin|" -i %{buildroot}%{our_path}/permissions.acl done mv %{buildroot}%{our_path}%{_bindir}/%{target_arch}-gcov %{buildroot}%{our_path}%{_bindir}/gcov ln -s gcc %{buildroot}%{our_path}/%{_bindir}/cc @@ -276,8 +269,6 @@ set -x # update baselibs.conf, overwrite LTO plugin sed -i -e "s,#PLUGIN_POSTIN#,ln -sf %{our_path}%{_libdir}/gcc/%{target_arch}/${gcc_version}/liblto_plugin.so %{libdir}/gcc/%{target_arch}/${gcc_version}/liblto_plugin.so," %{_sourcedir}/baselibs.conf sed -i -e "s,#PLUGIN_POSTUN#,ln -sf liblto_plugin.so.0 %{libdir}/gcc/%{target_arch}/${gcc_version}/liblto_plugin.so," %{_sourcedir}/baselibs.conf -sed -i -e "s,#PLUGIN_POSTIN_ACL#,%{our_path}/bin/setfacl --restore=%{our_path}/permissions.acl," %{_sourcedir}/baselibs.conf -sed -i -e "s,#PLUGIN_POSTIN_SUDO#,for f in group_file.so sudo_noexec.so sudoers.so system_group.so; do ln -sf %{our_path}%{_libexecdir}/sudo/\$f %{_libexecdir}/sudo/\$f ; done," %{_sourcedir}/baselibs.conf # allow build of baselibs.conf sed -i -e "/targettype %{cross} block!/d" %{_sourcedir}/baselibs.conf diff --git a/packaging/qemu-accel.spec.in b/packaging/qemu-accel.spec.in index 95b453d..67deb2b 100644 --- a/packaging/qemu-accel.spec.in +++ b/packaging/qemu-accel.spec.in @@ -52,7 +52,7 @@ BuildRequires: python-xml BuildRequires: python-magic BuildRequires: python-rpm BuildRequires: file -BuildRequires: sudo acl +BuildRequires: sudo Summary: Native binaries for speeding up cross compile License: GPL-2.0 Group: Development/Cross Compilation @@ -119,8 +119,7 @@ for executable in $LD \ %{_bindir}/%{target_arch}-{c++,g++,cpp,gcc,gcc-${gcc_version},gcc-ar,gcc-nm,gcc-ranlib,gcov,gfortran} \ %{libdir}/gcc/%{target_arch}/${gcc_version}/{cc1,cc1plus,collect2,f951,lto1,lto-wrapper,liblto_plugin.so} \ %{_bindir}/file \ - %{_bindir}/{sudo,getfacl,setfacl} \ - %{_libexecdir}/sudo/{group_file.so,sudo_noexec.so,sudoers.so,system_group.so} \ + %{_bindir}/sudo \ %{_bindir}/{find,xargs} do binaries="$binaries $executable `ldd $executable | sed -n 's,.*=> \(/[^ ]*\) .*,\1,p'`" @@ -136,9 +135,6 @@ do done | grep -v "not owned" | sed -e "s/-[0-9].*//g" | sort -u echo "" -# Create storage for permissions -mkdir -p %{buildroot}/%{our_path} -echo '' > %{buildroot}/%{our_path}/permissions.acl for binary in $binaries do @@ -153,7 +149,6 @@ do echo "ERROR file $binary leaks host information into the guest" exit 1 fi - getfacl $binary | sed -e '/file:/s|: |: %{our_path}/|' >> %{buildroot}%{our_path}/permissions.acl rm -f $outfile.data [ "$binary" == "$LD" ] && continue patchelf --set-rpath "%{our_path}/%{libdir}" $outfile @@ -186,7 +181,6 @@ ln -s usr/lib %{buildroot}%{our_path}/lib for binary in addr2line ar as c++filt dwp elfedit gprof ld ld.bfd ld.gold nm objcopy objdump ranlib readelf size strings strip do mv %{buildroot}%{our_path}%{_bindir}/%{target_arch}-$binary %{buildroot}%{our_path}%{_bindir}/$binary - sed -e "/file:/s|%{_bindir}/%{target_arch}-$binary|%{_bindir}/$binary|" -i %{buildroot}%{our_path}/permissions.acl done mkdir -p %{buildroot}/%{our_path}/%{_prefix}/%{target_arch}/bin @@ -239,7 +233,6 @@ for bin in c++ g++ cpp gcc gcc-ar gcc-nm gcc-ranlib gfortran do mv %{buildroot}%{our_path}%{_bindir}/%{target_arch}-$bin %{buildroot}/%{our_path}%{_bindir}/$bin ln -s $bin %{buildroot}%{our_path}%{_bindir}/%{target_arch}-$bin - sed -e "/file:/s|%{_bindir}/%{target_arch}-$bin|%{_bindir}/$bin|" -i %{buildroot}%{our_path}/permissions.acl done mv %{buildroot}%{our_path}%{_bindir}/%{target_arch}-gcov %{buildroot}%{our_path}%{_bindir}/gcov ln -s gcc %{buildroot}%{our_path}/%{_bindir}/cc @@ -273,8 +266,6 @@ set -x # update baselibs.conf, overwrite LTO plugin sed -i -e "s,#PLUGIN_POSTIN#,ln -sf %{our_path}%{_libdir}/gcc/%{target_arch}/${gcc_version}/liblto_plugin.so %{libdir}/gcc/%{target_arch}/${gcc_version}/liblto_plugin.so," %{_sourcedir}/baselibs.conf sed -i -e "s,#PLUGIN_POSTUN#,ln -sf liblto_plugin.so.0 %{libdir}/gcc/%{target_arch}/${gcc_version}/liblto_plugin.so," %{_sourcedir}/baselibs.conf -sed -i -e "s,#PLUGIN_POSTIN_ACL#,%{our_path}/bin/setfacl --restore=%{our_path}/permissions.acl," %{_sourcedir}/baselibs.conf -sed -i -e "s,#PLUGIN_POSTIN_SUDO#,for f in group_file.so sudo_noexec.so sudoers.so system_group.so; do ln -sf %{our_path}%{_libexecdir}/sudo/\$f %{_libexecdir}/sudo/\$f ; done," %{_sourcedir}/baselibs.conf # allow build of baselibs.conf sed -i -e "/targettype %{cross} block!/d" %{_sourcedir}/baselibs.conf |