Accepting request 24429 from Base:System

Copy from Base:System/libhugetlbfs based on submit request 24429 from user msmeissn

OBS-URL: https://build.opensuse.org/request/show/24429
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libhugetlbfs?expand=0&rev=13
This commit is contained in:
OBS User autobuild 2009-11-16 16:17:15 +00:00 committed by Git OBS Bridge
parent d0b397551b
commit 2e4491a314
9 changed files with 126 additions and 135 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8f3bbb5875217c314149fec87cc55a750a056f7dd84e446970c9a5006eb0c8c4
size 76847

3
libhugetlbfs-2.5.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ad8e216c4e13fad67326986c0ff5ec6eda40b2458b7e3f435f8dc751e1abe724
size 116809

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Mon Oct 12 19:12:48 UTC 2009 - aj@suse.de
- Fix typo in requires.
-------------------------------------------------------------------
Wed Jul 29 15:46:42 CEST 2009 - trenn@suse.de
- Update from version 2.0 to 2.5
-------------------------------------------------------------------
Mon Feb 2 10:51:07 CET 2009 - olh@suse.de

View File

@ -0,0 +1,26 @@
Force --no-as-needed linker option
Otherwise things won't link.
Having --as-needed be set in a build environment can give you
quite some headache to find out why it links the one, but not
the other way.
Signed-off-by: Thomas Renninger <trenn@suse.de>
---
tests/Makefile | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
Index: libhugetlbfs-2.5/tests/Makefile
===================================================================
--- libhugetlbfs-2.5.orig/tests/Makefile
+++ libhugetlbfs-2.5/tests/Makefile
@@ -26,7 +26,7 @@ BADTOOLCHAIN = bad-toolchain.sh
CFLAGS = -O2 -Wall -g
CPPFLAGS = -I..
-LDLIBS = -ldl -lpthread -lhugetlbfs_privutils
+LDLIBS = -Wl,--no-as-needed -ldl -lpthread -lhugetlbfs_privutils
LDFLAGS32 = -L../obj32
LDFLAGS64 = -L../obj64
INSTALL = install

View File

@ -2,14 +2,16 @@
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/Makefile
+++ b/Makefile
@@ -55,7 +55,7 @@ endif
Index: libhugetlbfs-2.5/Makefile
===================================================================
--- libhugetlbfs-2.5.orig/Makefile
+++ libhugetlbfs-2.5/Makefile
@@ -64,7 +64,7 @@ endif
else
ifeq ($(ARCH),ia64)
CC64 = gcc
-LIB64 = lib64
+LIB64 = lib
-TMPLIB64 = lib64
+TMPLIB64 = lib
CFLAGS += -DNO_ELFLINK
else
ifeq ($(ARCH),sparc64)

View File

@ -0,0 +1,30 @@
run_test.sh vs run_test.ph typo in install Makefile part
Signed-off-by: Thomas Renninger <trenn@suse.de>
---
tests/Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: libhugetlbfs-2.5/tests/Makefile
===================================================================
--- libhugetlbfs-2.5.orig/tests/Makefile
+++ libhugetlbfs-2.5/tests/Makefile
@@ -223,7 +223,7 @@ obj32/install:
$(INSTALL) -m 755 wrapper-utils.sh $(DESTDIR)$(INST_TESTSDIR32)/obj32
$(INSTALL) -m 755 $(HELPERS:%=obj32/%) $(DESTDIR)$(INST_TESTSDIR32)/obj32
$(INSTALL) -m 755 $(HELPER_LIBS:%=obj32/%) $(DESTDIR)$(INST_TESTSDIR32)/obj32
- $(INSTALL) -m 755 run_tests.sh $(DESTDIR)$(INST_TESTSDIR32)
+ $(INSTALL) -m 755 run_tests.py $(DESTDIR)$(INST_TESTSDIR32)
obj64/install:
@$(VECHO) INSTALL64 $(INST_TESTSDIR64)
@@ -235,6 +235,6 @@ obj64/install:
$(INSTALL) -m 755 $(HELPERS:%=obj64/%) $(DESTDIR)$(INST_TESTSDIR64)/obj64
$(INSTALL) -m 755 $(HELPER_LIBS:%=obj64/%) $(DESTDIR)$(INST_TESTSDIR64)/obj64
$(INSTALL) -m 755 $(TESTS_64:%=obj64/%) $(DESTDIR)$(INST_TESTSDIR64)/obj64
- $(INSTALL) -m 755 run_tests.sh $(DESTDIR)$(INST_TESTSDIR64)
+ $(INSTALL) -m 755 run_tests.py $(DESTDIR)$(INST_TESTSDIR64)
install: $(OBJDIRS:%=%/install)

View File

@ -1,23 +1,27 @@
Do not build 31 bit for S390x, allow to build on S390
---
Makefile | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
--- a/Makefile
+++ b/Makefile
@@ -65,8 +65,11 @@ CFLAGS += -DNO_ELFLINK
Index: libhugetlbfs-2.5/Makefile
===================================================================
--- libhugetlbfs-2.5.orig/Makefile
+++ libhugetlbfs-2.5/Makefile
@@ -74,8 +74,11 @@ CFLAGS += -DNO_ELFLINK
else
ifeq ($(ARCH),s390x)
CC64 = gcc -m64
-CC32 = gcc -m31
LIB64 = lib64
TMPLIB64 = lib64
+CFLAGS += -DNO_ELFLINK
+else
+ifeq ($(ARCH),s390)
+CC32 = gcc -m31
LIB32 = lib
TMPLIB32 = lib
CFLAGS += -DNO_ELFLINK
else
@@ -74,6 +77,7 @@ $(error "Unrecognized architecture ($(AR
@@ -83,6 +86,7 @@ $(error "Unrecognized architecture ($(AR
endif
endif
endif

View File

@ -1,5 +1,5 @@
#
# spec file for package libhugetlbfs (Version 2.0)
# spec file for package libhugetlbfs (Version 2.5)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@ -22,51 +22,55 @@ Name: libhugetlbfs
BuildRequires: doxygen
License: LGPL v2.1 or later
Group: Development/Libraries/Other
Summary: hugetlbfs helper library
Summary: Hugetlbfs helper library
# bug437293
%ifarch ppc64
Obsoletes: libhugetlbfs-64bit
%endif
#
Version: 2.0
Release: 12
Version: 2.5
Release: 1
Url: http://libhugetlbfs.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define my_make_flags V=1 CFLAGS="$RPM_OPT_FLAGS -g -fPIC" BUILDTYPE=NATIVEONLY PREFIX=/usr LIBDIR32=%{_libdir} DESTDIR=$RPM_BUILD_ROOT
%define my_make_flags V=1 CFLAGS="$RPM_OPT_FLAGS -fPIC" BUILDTYPE=NATIVEONLY PREFIX=/usr LIBDIR32=%{_libdir} DESTDIR=$RPM_BUILD_ROOT
Source0: libhugetlbfs-%{version}.tar.bz2
Patch0: libhugetlbfs.install-header.patch
Patch1: libhugetlbfs.ia64-libdir.patch
Patch2: libhugetlbfs.s390.patch
Patch3: libhugetlbfs.tests-malloc.patch
Patch4: libhugetlbfs.linkerscript.patch
Patch5: libhugetlbfs.small_bss.patch
Patch6: libhugetlbfs.linker-sections.patch
Patch7: libhugetlbfs.howto.patch
Patch3: libhugetlbfs.exchange_library_order.patch
Patch4: libhugetlbfs.tests-malloc.patch
Patch5: libhugetlbfs.run_test_fix.patch
#Patch7: libhugetlbfs.versioning.patch
%description
libhugetlbfs interacts with the Linux hugetlbfs to make large pages
available to applications in a transparent manner.
The libhugetlbfs package 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>
%package libhugetlb-devel
License: LGPL v2.1 or later
Summary: Devel package for libhugetlb
Requires: libhugetlbfs
Group: Development/Libraries/Other
AutoReqProv: on
%description libhugetlb-devel
Devel package, header and static library, of libhugetlb
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
#%patch7 -p1
%build
make %{my_make_flags} libs $tests
make %{my_make_flags}
%install
tests=
@ -86,107 +90,20 @@ rm -rf $RPM_BUILD_ROOT
%doc LGPL-2.1 HOWTO README NEWS
/usr/share/libhugetlbfs
/usr/bin/*
/usr/include/*
%{_libdir}/lib*
%{_mandir}/man*/*.gz
%{_libdir}/libhugetlbfs_privutils.so
%{_libdir}/libhugetlbfs.so
%{_libdir}/libhugetlbfs
%{_libdir}/libhugetlbfs/*
# ToDo: What are these for...
%dir /usr/lib/perl5/TLBC
/usr/lib/perl5/TLBC/DataCollect.pm
/usr/lib/perl5/TLBC/OpCollect.pm
/usr/lib/perl5/TLBC/Report.pm
%files libhugetlb-devel
%defattr(-, root, root)
/usr/include/hugetlbfs.h
%{_libdir}/libhugetlbfs.a
%changelog
* Mon Feb 02 2009 olh@suse.de
- document workaround for NX configurations on x86 (bnc#470234 - LTC50261)
* 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)
* Thu Nov 06 2008 olh@suse.de
- fix libhugetlbfs 32bit test case xB.linkhuge failure (bnc#442209 - LTC49702)
* Tue Oct 21 2008 olh@suse.de
- handle older binutils versions in elf32ppclinux.xBDT (bnc#436451 - LTC49076)
* 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
* 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
* 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
- 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.
* Sun Jul 08 2007 olh@suse.de
- disable zero_filesize_segment test
* Sun Apr 15 2007 olh@suse.de
- update to version 1.1 (262564 - LTC33711)
* Mon Feb 05 2007 olh@suse.de
- update to 20070129 devel snapshot
drop hugetlbd
* Mon Feb 05 2007 olh@suse.de
- build -m64/-m32 if required
* Sat Dec 09 2006 olh@suse.de
- build with -g
make install should not depend on all
* Fri Dec 08 2006 olh@suse.de
- package testsuite, fix make check
* Tue Dec 05 2006 olh@suse.de
- add the hugetlbd (214426)
* Sun Oct 29 2006 olh@suse.de
- 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
* Thu Oct 05 2006 olh@suse.de
- update to final 1.0
* Tue Sep 19 2006 olh@suse.de
- update to 20060913 git state
docu updates
use library versioning
* Wed Jul 19 2006 olh@suse.de
- update to 1.0-pre3
* Tue Apr 18 2006 olh@suse.de
- drop unneeded -packages from Buildrequires
* Sat Apr 08 2006 olh@suse.de
- update to 1.0-pre2 (#142046 - LTC20562)
* Tue Feb 21 2006 olh@suse.de
- remove backup files
* Tue Feb 21 2006 olh@suse.de
- add linker scripts on ppc, ppc64, i386 and x86_64
* Thu Feb 09 2006 olh@suse.de
- create package, version 1.0-pre1 (#142046 - LTC20562)

View File

@ -1,3 +1,5 @@
Test malloc, set unused to NULL if it fails
---
tests/heapshrink-helper.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)