2007-01-16 00:22:07 +01:00
|
|
|
#
|
2008-08-28 12:39:19 +02:00
|
|
|
# spec file for package libhugetlbfs (Version 2.0)
|
2007-01-16 00:22:07 +01:00
|
|
|
#
|
2009-01-08 18:36:50 +01:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:22:07 +01:00
|
|
|
#
|
2008-08-28 12:39:19 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:22:07 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-04-10 14:28:59 +02:00
|
|
|
|
2007-01-16 00:22:07 +01:00
|
|
|
Name: libhugetlbfs
|
|
|
|
BuildRequires: doxygen
|
2008-01-15 10:01:42 +01:00
|
|
|
License: LGPL v2.1 or later
|
2007-01-16 00:22:07 +01:00
|
|
|
Group: Development/Libraries/Other
|
|
|
|
Summary: hugetlbfs helper library
|
2009-01-08 18:36:50 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libhugetlbfs-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2008-08-28 12:39:19 +02:00
|
|
|
Version: 2.0
|
2009-02-03 22:54:12 +01:00
|
|
|
Release: 12
|
2008-01-15 10:01:42 +01:00
|
|
|
Url: http://libhugetlbfs.sourceforge.net/
|
2007-01-16 00:22:07 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-01-15 10:01:42 +01:00
|
|
|
%define my_make_flags V=1 CFLAGS="$RPM_OPT_FLAGS -g -fPIC" BUILDTYPE=NATIVEONLY PREFIX=/usr LIBDIR32=%{_libdir} DESTDIR=$RPM_BUILD_ROOT
|
2008-06-25 20:52:49 +02:00
|
|
|
Source0: libhugetlbfs-%{version}.tar.bz2
|
2008-08-28 12:39:19 +02:00
|
|
|
Patch0: libhugetlbfs.install-header.patch
|
|
|
|
Patch1: libhugetlbfs.ia64-libdir.patch
|
|
|
|
Patch2: libhugetlbfs.s390.patch
|
|
|
|
Patch3: libhugetlbfs.tests-malloc.patch
|
2008-10-22 18:13:52 +02:00
|
|
|
Patch4: libhugetlbfs.linkerscript.patch
|
2008-11-06 22:14:38 +01:00
|
|
|
Patch5: libhugetlbfs.small_bss.patch
|
2009-01-08 18:36:50 +01:00
|
|
|
Patch6: libhugetlbfs.linker-sections.patch
|
2009-02-03 22:54:12 +01:00
|
|
|
Patch7: libhugetlbfs.howto.patch
|
2007-01-16 00:22:07 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
libhugetlbfs interacts with the Linux hugetlbfs to make large pages
|
|
|
|
available to applications in a transparent manner.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
David Gibson <dwg@au1.ibm.com>
|
|
|
|
Adam Litke <agl@us.ibm.com>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2008-08-28 12:39:19 +02:00
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
2008-10-22 18:13:52 +02:00
|
|
|
%patch4 -p1
|
2008-11-06 22:14:38 +01:00
|
|
|
%patch5 -p1
|
2009-01-08 18:36:50 +01:00
|
|
|
%patch6 -p1
|
2009-02-03 22:54:12 +01:00
|
|
|
%patch7 -p1
|
2007-01-16 00:22:07 +01:00
|
|
|
|
|
|
|
%build
|
2008-01-15 10:01:42 +01:00
|
|
|
make %{my_make_flags} libs $tests
|
2007-01-16 00:22:07 +01:00
|
|
|
|
|
|
|
%install
|
2008-01-15 10:01:42 +01:00
|
|
|
tests=
|
2007-01-16 00:22:07 +01:00
|
|
|
%ifarch ppc ppc64 %ix86 x86_64
|
|
|
|
tests=install-tests
|
|
|
|
%endif
|
2008-01-15 10:01:42 +01:00
|
|
|
make %{my_make_flags} install $tests
|
2007-01-16 00:22:07 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/include
|
|
|
|
cp -avL hugetlbfs.h $RPM_BUILD_ROOT/usr/include
|
2007-07-10 18:54:10 +02:00
|
|
|
chmod 644 $RPM_BUILD_ROOT%{_libdir}/*.a
|
2007-01-16 00:22:07 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc LGPL-2.1 HOWTO README NEWS
|
|
|
|
/usr/share/libhugetlbfs
|
2008-08-28 12:39:19 +02:00
|
|
|
/usr/bin/*
|
2007-01-16 00:22:07 +01:00
|
|
|
/usr/include/*
|
|
|
|
%{_libdir}/lib*
|
|
|
|
|
2007-04-15 20:16:24 +02:00
|
|
|
%changelog
|
2009-02-03 22:54:12 +01:00
|
|
|
* Mon Feb 02 2009 olh@suse.de
|
|
|
|
- document workaround for NX configurations on x86 (bnc#470234 - LTC50261)
|
2009-01-08 18:36:50 +01:00
|
|
|
* Wed Jan 07 2009 olh@suse.de
|
|
|
|
- Update SECTIONS from linker scripts for binutils 2.19 compatibility
|
|
|
|
(bnc#445372 - LTC50129)
|
|
|
|
* Wed Jan 07 2009 olh@suse.de
|
|
|
|
- obsolete old -XXbit packages (bnc#437293)
|
2008-11-06 22:14:38 +01:00
|
|
|
* Thu Nov 06 2008 olh@suse.de
|
|
|
|
- fix libhugetlbfs 32bit test case xB.linkhuge failure (bnc#442209 - LTC49702)
|
2008-10-22 18:13:52 +02:00
|
|
|
* Tue Oct 21 2008 olh@suse.de
|
|
|
|
- handle older binutils versions in elf32ppclinux.xBDT (bnc#436451 - LTC49076)
|
2008-08-28 12:39:19 +02:00
|
|
|
* Wed Aug 27 2008 olh@suse.de
|
|
|
|
- update to version 2.0 (fate#304340)
|
|
|
|
New Features
|
|
|
|
* New scriptless relinking for binutils >= 2.17
|
|
|
|
* Added direct allocator API for huge pages
|
|
|
|
Bug Fixes
|
|
|
|
* /proc/mounts is parsed line at a time to handle file larger than 4kb
|
|
|
|
* Read-only mappings use MAP_NORESERVE
|
2008-06-25 20:52:49 +02:00
|
|
|
* Wed Jun 25 2008 olh@suse.de
|
|
|
|
- update to version 1.3
|
|
|
|
New features
|
|
|
|
* Add HUGETLB_NO_PREFAULT to control prefaulting of huge pages via mlock
|
|
|
|
* Add "[hostname:pid]" to output messages
|
|
|
|
* Setup for handling larger huge page sizes e.g. 16G huge pages
|
|
|
|
* Update for new upstream sysctl
|
|
|
|
* Add support for hugetlbfs_morecore to shrink the heap
|
|
|
|
Bug fixes
|
|
|
|
* Disable heap shrinking by default to avoid bug in glibc malloc
|
|
|
|
* Skip elflink calls in setup_libhugetlbfs for IA64 and sparc64
|
|
|
|
* Replace gethugepagesize with check_hugepagesize for error checking
|
|
|
|
* Make morecore argument a long to handle larger page sizes
|
|
|
|
Tets suite fixes
|
|
|
|
* Check uid/gid in tests where it matters
|
|
|
|
* tests: verify there are enough huge pages
|
|
|
|
* Change tests to read /proc/meminfo
|
|
|
|
* tests: verify that huge page size isn't too big for the test
|
2008-04-10 14:28:59 +02:00
|
|
|
* Thu Apr 10 2008 ro@suse.de
|
|
|
|
- added baselibs.conf file to build xxbit packages
|
|
|
|
for multilib support
|
|
|
|
* Mon Jan 14 2008 olh@suse.de
|
2008-01-15 10:01:42 +01:00
|
|
|
- update to version 1.2
|
|
|
|
New features
|
|
|
|
* Partial segment remapping. This allows non-relinked binaries to try
|
|
|
|
to take advantage of libhugetlbfs' segment remapping code. Large
|
|
|
|
segments are required, especially on Power. This feature is useful
|
|
|
|
for estimating huge page performance, however full relinking will
|
|
|
|
still perform better.
|
|
|
|
* Add extra debugging for binaries that may run out of address space.
|
|
|
|
* Log library version when HUGETLB_VERBOSE is enabled.
|
|
|
|
* New test to check handling of misaligned mmap() parameters.
|
|
|
|
Bug fixes
|
|
|
|
* Fix EH_FRAME segment. Fixes some C++ applications.
|
|
|
|
* Rework PLT detection to work better on Power.
|
|
|
|
* Add per-target-arch syscall stubs to the library. These provide
|
|
|
|
reliable error messages from elflink.c if they occur while the
|
|
|
|
program segments are unmapped.
|
|
|
|
* Add proper SONAME to shared libs.
|
|
|
|
* Makefile respects CFLAGS/LDFLAGS/CPPFLAGS environment variables.
|
|
|
|
* Make mlock() failure non-fatal.
|
2008-04-10 14:28:59 +02:00
|
|
|
* Sun Jul 08 2007 olh@suse.de
|
2007-07-10 18:54:10 +02:00
|
|
|
- disable zero_filesize_segment test
|
2008-04-10 14:28:59 +02:00
|
|
|
* Sun Apr 15 2007 olh@suse.de
|
2007-04-15 20:16:24 +02:00
|
|
|
- update to version 1.1 (262564 - LTC33711)
|
2008-04-10 14:28:59 +02:00
|
|
|
* Mon Feb 05 2007 olh@suse.de
|
2007-04-15 20:16:24 +02:00
|
|
|
- update to 20070129 devel snapshot
|
|
|
|
drop hugetlbd
|
2008-04-10 14:28:59 +02:00
|
|
|
* Mon Feb 05 2007 olh@suse.de
|
2007-04-15 20:16:24 +02:00
|
|
|
- build -m64/-m32 if required
|
2008-04-10 14:28:59 +02:00
|
|
|
* Sat Dec 09 2006 olh@suse.de
|
2007-01-16 00:22:07 +01:00
|
|
|
- build with -g
|
|
|
|
make install should not depend on all
|
2008-04-10 14:28:59 +02:00
|
|
|
* Fri Dec 08 2006 olh@suse.de
|
2007-01-16 00:22:07 +01:00
|
|
|
- package testsuite, fix make check
|
2008-04-10 14:28:59 +02:00
|
|
|
* Tue Dec 05 2006 olh@suse.de
|
2007-01-16 00:22:07 +01:00
|
|
|
- add the hugetlbd (214426)
|
2008-04-10 14:28:59 +02:00
|
|
|
* Sun Oct 29 2006 olh@suse.de
|
2007-01-16 00:22:07 +01:00
|
|
|
- update to bugfix release 1.0.1 (214426)
|
|
|
|
* Always install linker scripts for all targets
|
|
|
|
* Error message updates
|
|
|
|
* Add documentation on HUGETLB_DEBUG
|
|
|
|
* Testcase updates
|
2008-04-10 14:28:59 +02:00
|
|
|
* Thu Oct 05 2006 olh@suse.de
|
2007-01-16 00:22:07 +01:00
|
|
|
- update to final 1.0
|
2008-04-10 14:28:59 +02:00
|
|
|
* Tue Sep 19 2006 olh@suse.de
|
2007-01-16 00:22:07 +01:00
|
|
|
- update to 20060913 git state
|
|
|
|
docu updates
|
|
|
|
use library versioning
|
2008-04-10 14:28:59 +02:00
|
|
|
* Wed Jul 19 2006 olh@suse.de
|
2007-01-16 00:22:07 +01:00
|
|
|
- update to 1.0-pre3
|
2008-04-10 14:28:59 +02:00
|
|
|
* Tue Apr 18 2006 olh@suse.de
|
2007-01-16 00:22:07 +01:00
|
|
|
- drop unneeded -packages from Buildrequires
|
2008-04-10 14:28:59 +02:00
|
|
|
* Sat Apr 08 2006 olh@suse.de
|
2007-01-16 00:22:07 +01:00
|
|
|
- update to 1.0-pre2 (#142046 - LTC20562)
|
2008-04-10 14:28:59 +02:00
|
|
|
* Tue Feb 21 2006 olh@suse.de
|
2007-01-16 00:22:07 +01:00
|
|
|
- remove backup files
|
2008-04-10 14:28:59 +02:00
|
|
|
* Tue Feb 21 2006 olh@suse.de
|
2007-01-16 00:22:07 +01:00
|
|
|
- add linker scripts on ppc, ppc64, i386 and x86_64
|
2008-04-10 14:28:59 +02:00
|
|
|
* Thu Feb 09 2006 olh@suse.de
|
2007-01-16 00:22:07 +01:00
|
|
|
- create package, version 1.0-pre1 (#142046 - LTC20562)
|