File ia32el.spec of Package ia32el
#
# spec file for package ia32el (Version 6687_6639)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: ia32el
BuildRequires: java2-devel-packages
%ifarch ia64
BuildRequires: ia32el-x86
%endif
%ifarch %ix86
BuildRequires: binutils-devel
%endif
Summary: IA32 Execution Layer
Version: 6687_6639
Release: 1
Group: System/Base
License: LGPL v2.1 or later
Source: ia32el_6687_6635.tar.gz
Source1: ia32el.init
Source2: cpuid.c
Patch: 6635to6636.patch
Patch1: 6636to6639.patch
Patch42: ia32el.diff
Patch43: alsa-emu.diff
PreReq: %insserv_prereq
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: ia64 %ix86
%description
IA32 Execution Layer
%prep
%setup -q -n ia32el_6687_6635/src
%patch -p1
%patch1 -p1
%patch42
%patch43
%build
RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fno-stack-protector -Wno-conversion -Wno-shadow -Wno-array-bounds"
export RPM_OPT_FLAGS
%ifarch ia64
make RELEASE=1
make -C MTL RELEASE=1
%else
make -C MTL/auxapp
gcc $RPM_OPT_FLAGS %{S:2} -o cpuid
%endif
%install
mkdir -p $RPM_BUILD_ROOT/usr/lib/ia32el
%ifarch ia64
install -m 755 /emul/ia32-linux/usr/lib/ia32el/{cpuid,auxapp} $RPM_BUILD_ROOT/usr/lib/ia32el
install -m 644 ../ia32exec.bin $RPM_BUILD_ROOT/usr/lib/ia32el
install -m 755 ia32x/bin.release/libia32x.so MTL/mme/bin.release/libmme.so $RPM_BUILD_ROOT/usr/lib/ia32el
install -m 755 loader/bin.release/ia32x_loader $RPM_BUILD_ROOT/usr/lib/ia32el
install -m 4755 loader/bin.release/suid_ia32x_loader $RPM_BUILD_ROOT/usr/lib/ia32el
mkdir -p $RPM_BUILD_ROOT/etc/init.d $RPM_BUILD_ROOT/usr/sbin
install -m 755 %{S:1} $RPM_BUILD_ROOT/etc/init.d/ia32el
ln -s /etc/init.d/ia32el $RPM_BUILD_ROOT/usr/sbin/rcia32el
# Avoid dependency on 32bit libraries
cat <<\EOF > %{_builddir}/find-requires
#!/bin/sh
grep -v -e /usr/lib/ia32el/cpuid -e /usr/lib/ia32el/auxapp | %__find_requires "$@"
EOF
chmod +x %{_builddir}/find-requires
%define __find_requires %{_builddir}/find-requires
%else
install -m 755 MTL/auxapp/auxapp cpuid $RPM_BUILD_ROOT/usr/lib/ia32el
%endif
%ifarch ia64
%preun
%stop_on_removal ia32el
%post
%insserv_force_if_yast ia32el
%run_permissions
%postun
%restart_on_update ia32el
%insserv_cleanup
%verifyscript
%verify_permissions -e /usr/lib/ia32el/suid_ia32x_loader
%endif
%clean
rm -fr $RPM_BUILD_ROOT %{_builddir}/find-requires
%files
%defattr(-, root, root)
%ifarch ia64
%config /etc/init.d/ia32el
/usr/sbin/rcia32el
%dir /usr/lib/ia32el
/usr/lib/ia32el/cpuid
/usr/lib/ia32el/auxapp
/usr/lib/ia32el/ia32exec.bin
/usr/lib/ia32el/libia32x.so
/usr/lib/ia32el/libmme.so
/usr/lib/ia32el/ia32x_loader
%verify(not mode) %attr(755, root, root) /usr/lib/ia32el/suid_ia32x_loader
%else
/usr/lib/ia32el
%endif
%changelog
* Wed Dec 03 2008 schwab@suse.de
- Update to BTLib 6639.
1. syscall futex failed to return as timeout. the issue is caused by the
new flag FUTEX_PRIVATE_FLAG for the syscall futex
2. x86 application failed to read /proc/self/stat, because IA-32 EL use
pread to implement the functionalityl. however pread is not supported by
new kenerl. Now the pread was replaced by lseek and read.
3. btlib build issue. it failed to build BTLib on SLES11 because the new
version gcc follows more strict rule to report warnings and errors.
4. some new syscalls in kernel 2.6.27 are supported by BTLib
now. beacuse the new glibc on SLES11 requires some of the syscalls
otherwise it reports an error. for example wordexp function returns as a
failure if pipe2 is not implemented.
* Tue Oct 21 2008 schwab@suse.de
- Start in boot runlevel.
* Fri Aug 15 2008 ro@suse.de
- add ExclusiveArch to specfile
* Wed Aug 06 2008 schwab@suse.de
- Update init script.
* Wed Jul 16 2008 schwab@suse.de
- Fix linking against libbfd.
* Thu Apr 10 2008 ro@suse.de
- added baselibs.conf file to build xxbit packages
for multilib support
* Wed Feb 27 2008 schwab@suse.de
- Enlarge cpu_set_t [#358766].
* Tue Nov 13 2007 schwab@suse.de
- Disable useless warnings.
* Thu Sep 27 2007 schwab@suse.de
- Update to ia32el version 6687_6635 [#328809].
* Fri Aug 31 2007 schwab@suse.de
- Add partial ALSA emulation.
* Mon Jun 18 2007 schwab@suse.de
- Fix broken casts.
* Fri Feb 02 2007 schwab@suse.de
- Add -fno-stack-protector.
* Fri Jan 12 2007 schwab@suse.de
- Add binutils-devel to BuildRequires.
* Thu Oct 26 2006 schwab@suse.de
- Fix include path.
- Add noexecstack annotations.
* Mon Aug 14 2006 schwab@suse.de
- Update to BTLib version 6100 [#198637].
* Thu Mar 16 2006 schwab@suse.de
- Update to BTLib version 6097 [#158570].
* Thu Mar 09 2006 schwab@suse.de
- Avoid dependency on 32bit libraries [#156334].
* Thu Mar 02 2006 schwab@suse.de
- Update to ia32el version 6096/6515 [#154321].
* Thu Feb 23 2006 schwab@suse.de
- Update to ia32el version 6505.6092 [#153004].
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Jan 10 2006 schwab@suse.de
- Update to ia32el 6 BETA.
* Fri Nov 04 2005 schwab@suse.de
- Fix use of atomic builtins.
* Tue Oct 18 2005 schwab@suse.de
- Prevent the erroneous unmapping of page zero [#117783].
* Tue Sep 20 2005 schwab@suse.de
- Update to ia32el 5.3.109.44.24, ia32exec 5352.
* Mon Apr 25 2005 schwab@suse.de
- Update to ia32el 5.3.102.39.23, ia32exec 5338.
* Wed Apr 20 2005 schwab@suse.de
- Fix building with gcc4.
* Mon Feb 28 2005 schwab@suse.de
- Update to ia32el 5.3.98.37.22, fixes #65041.
* Mon Jan 31 2005 schwab@suse.de
- Update to ia32el 5.3.96.36.22, ia32exec 5337.
* Mon Dec 06 2004 schwab@suse.de
- Update to ia32el 5.3.88.34.22, fixes #48726, #48727, #48729, #48730,
[#48733].
* Tue Nov 09 2004 schwab@suse.de
- Fix truncation in mmap64 [#48026].
* Mon Nov 01 2004 schwab@suse.de
- Allow executing non-readable binaries [#47814].
- Avoid race registering /proc/sys/fs/binfmt.
* Tue Oct 19 2004 rw@suse.de
- Adjust to changes in the stat64 interface that were made
in 2.6 kernel [#46767].
* Thu Oct 14 2004 schwab@suse.de
- No need to split st_dev/st_rdev, they are correctly aligned.
* Thu Oct 14 2004 schwab@suse.de
- Update to ia32el 5.3.
* Thu Jun 17 2004 schwab@suse.de
- Fix emulation of fxsave [#42090].
* Mon Jun 14 2004 schwab@suse.de
- Update last change [#40234].
* Sun Jun 13 2004 schwab@suse.de
- Fix off-by-one in debug code.
- Check execute permission when running suid [#40234].
* Wed Jun 02 2004 schwab@suse.de
- Another affinity patch [#40340].
* Mon May 31 2004 schwab@suse.de
- Fix thinko in last change.
- Fix missing error return when running suid [#40234].
* Wed May 26 2004 schwab@suse.de
- Fix shift_argv [#40234].
* Sat May 22 2004 schwab@suse.de
- Run permission checks.
* Tue May 18 2004 schwab@suse.de
- Change version to 4.
* Mon May 17 2004 schwab@suse.de
- Fix buffer overflow [#40234].
* Fri May 14 2004 schwab@suse.de
- Update affinity patch [#40340].
- Fix MT apps [#40535].
* Thu May 13 2004 schwab@suse.de
- Fix emulation of affinity calls [#40340].
* Thu May 06 2004 schwab@suse.de
- Fix typo in post script.
* Thu Apr 15 2004 schwab@suse.de
- Update to latest code drop [#34210].
* Mon Mar 29 2004 schwab@suse.de
- Fix statfs emulation [#37343].
* Thu Mar 11 2004 schwab@suse.de
- Fix header of start script.
* Thu Jan 29 2004 schwab@suse.de
- Add start script.
* Thu Jan 29 2004 schwab@suse.de
- Update to version 1.0-11.
* Sat Jan 24 2004 schwab@suse.de
- Remove bogus inline.
* Thu Jan 15 2004 schwab@suse.de
- Update to version 1.0.10.
* Mon Oct 20 2003 schwab@suse.de
- Update to new version from Intel.
* Fri Mar 21 2003 schwab@suse.de
- Disable setuid for now.
* Thu Mar 20 2003 schwab@suse.de
- Package created.