Blame SPECS/libhugetlbfs.spec

f4a552
Name: libhugetlbfs
f4a552
Version: 2.16
f4a552
Release: 13%{?dist}
f4a552
Summary: A library which provides easy access to huge pages of memory
f4a552
Group: System Environment/Libraries
f4a552
License: LGPLv2+
f4a552
URL: http://libhugetlbfs.sourceforge.net/
f4a552
Source0: http://downloads.sourceforge.net/libhugetlbfs/%{name}-%{version}.tar.gz
f4a552
Patch0: libhugetlbfs-2.16-s390.patch
f4a552
Patch1: libhugetlbfs-2.15-fortify.patch
f4a552
Patch2: libhugetlbfs-2.16-misalign_test.patch
f4a552
Patch3: libhugetlbfs-2.17-aarch64.patch
f4a552
Patch4: libhugetlbfs-2.16-makefile_cflags.patch
f4a552
Patch5: libhugetlbfs-2.16-makefile_segments.patch
f4a552
Patch6: libhugetlbfs-2.16-mounts_warning.patch
f4a552
Patch7: libhugetlbfs-2.16-ppc64le-support.patch
f4a552
Patch8: libhugetlbfs-2.16-plt_extrasz_fix.patch
f4a552
Patch9: libhugetlbfs-2.16-map_high_truncate.patch
f4a552
Patch10:libhugetlbfs-2.20-tests-linkhuge_rw-function-ptr-may-not-refer-to-text.patch
f4a552
Patch11:libhugetlbfs-2.20-do-not-assume-default-huge-page-size-is-first.patch
f4a552
Patch12:libhugetlbfs-2.20-defined-task-size-value-to-be-512T-if-it-is-more-than-64Tb.patch
f4a552
# downstream patches for bz#1422960
f4a552
Patch13: 0001-testutils-fix-range_is_mapped.patch
f4a552
Patch14: 0002-stack_grow_into_huge-don-t-clobber-existing-mappings.patch
f4a552
f4a552
BuildRequires: glibc-devel
f4a552
BuildRequires: glibc-static
f4a552
f4a552
%define ldscriptdir %{_datadir}/%{name}/ldscripts
f4a552
f4a552
%description
f4a552
libhugetlbfs is a library which provides easy access to huge pages of memory.
f4a552
It is a wrapper for the hugetlbfs file system. Applications can use huge pages
f4a552
to fulfill malloc() requests without being recompiled by using LD_PRELOAD.
f4a552
Alternatively, applications can be linked against libhugetlbfs without source
f4a552
modifications to load BSS or BSS, data, and text segments into large pages.
f4a552
f4a552
%package devel
f4a552
Summary:	Header files for libhugetlbfs
f4a552
Group:		Development/Libraries
f4a552
Requires:	%{name} = %{version}-%{release}
f4a552
%description devel
f4a552
Contains header files for building with libhugetlbfs.
f4a552
f4a552
%package utils
f4a552
Summary:	Userspace utilities for configuring the hugepage environment
f4a552
Group:		Applications/System
f4a552
Requires:	%{name} = %{version}-%{release}
f4a552
%description utils
f4a552
This packages contains a number of utilities that will help administrate the
f4a552
use of huge pages on your system.  hugeedit modifies binaries to set default
f4a552
segment remapping behavior. hugectl sets environment variables for using huge
f4a552
pages and then execs the target program. hugeadm gives easy access to huge page
f4a552
pool size control. pagesize lists page sizes available on the machine.
f4a552
f4a552
%prep
f4a552
%setup -q -n %{name}-%{version}
f4a552
%patch0 -p1 -b .s390
f4a552
%patch1 -p1 -b .fortify
f4a552
%patch2 -p1 -b .misalign_test
f4a552
%patch3 -p1 -b .aarch64
f4a552
%patch4 -p1 -b .makefile_cflags
f4a552
%patch5 -p1 -b .makefile_segments
f4a552
%patch6 -p1 -b .mounts_warning
f4a552
%patch7 -p1 -b .ppc64le_support
f4a552
%patch8 -p1 -b .plt_extrasz_fix
f4a552
%patch9 -p1 -b .map_high_truncate
f4a552
%patch10 -p1 -b .linkhuge_rw-func
f4a552
%patch11 -p1 -b .default-huge-page
f4a552
%patch12 -p1 -b .defined-task-size
f4a552
%patch13 -p1 -b .bz1422960.patch-1
f4a552
%patch14 -p1 -b .bz1422960.patch-2
f4a552
f4a552
%build
f4a552
ln -s sys-elf64ppc.S sys-elf64lppc.S
f4a552
ln -s elf64ppc.c elf64lppc.c
f4a552
# Parallel builds are not reliable
f4a552
make BUILDTYPE=NATIVEONLY
f4a552
f4a552
%install
f4a552
make install PREFIX=%{_prefix} DESTDIR=$RPM_BUILD_ROOT LDSCRIPTDIR=%{ldscriptdir} BUILDTYPE=NATIVEONLY
f4a552
make install-helper PREFIX=%{_prefix} DESTDIR=$RPM_BUILD_ROOT LDSCRIPTDIR=%{ldscriptdir} BUILDTYPE=NATIVEONLY
f4a552
mkdir -p -m755 $RPM_BUILD_ROOT%{_sysconfdir}/security/limits.d
f4a552
touch $RPM_BUILD_ROOT%{_sysconfdir}/security/limits.d/hugepages.conf
f4a552
f4a552
# remove statically built libraries:
f4a552
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.a
f4a552
# remove unused sbin directory
f4a552
rm -fr $RPM_BUILD_ROOT/%{_sbindir}/
f4a552
f4a552
%post -p /sbin/ldconfig
f4a552
f4a552
%postun -p /sbin/ldconfig
f4a552
f4a552
%files
f4a552
%{_libdir}/libhugetlbfs.so*
f4a552
%{_datadir}/%{name}/
f4a552
%{_mandir}/man7/libhugetlbfs.7.gz
f4a552
%ghost %config(noreplace) %{_sysconfdir}/security/limits.d/hugepages.conf
f4a552
%exclude %{_libdir}/libhugetlbfs_privutils.so
f4a552
%doc README HOWTO LGPL-2.1 NEWS
f4a552
f4a552
%files devel
f4a552
%{_includedir}/hugetlbfs.h
f4a552
%{_mandir}/man3/getpagesizes.3.gz
f4a552
%{_mandir}/man3/free_huge_pages.3.gz
f4a552
%{_mandir}/man3/get_huge_pages.3.gz
f4a552
%{_mandir}/man3/gethugepagesize.3.gz
f4a552
%{_mandir}/man3/gethugepagesizes.3.gz
f4a552
%{_mandir}/man3/free_hugepage_region.3.gz
f4a552
%{_mandir}/man3/get_hugepage_region.3.gz
f4a552
%{_mandir}/man3/hugetlbfs_find_path.3.gz
f4a552
%{_mandir}/man3/hugetlbfs_find_path_for_size.3.gz
f4a552
%{_mandir}/man3/hugetlbfs_test_path.3.gz
f4a552
%{_mandir}/man3/hugetlbfs_unlinked_fd.3.gz
f4a552
%{_mandir}/man3/hugetlbfs_unlinked_fd_for_size.3.gz
f4a552
f4a552
%files utils
f4a552
%{_bindir}/hugeedit
f4a552
%{_bindir}/hugeadm
f4a552
%{_bindir}/hugectl
f4a552
%{_bindir}/pagesize
f4a552
%{_bindir}/huge_page_setup_helper.py
f4a552
%exclude %{_bindir}/cpupcstat
f4a552
%exclude %{_bindir}/oprofile_map_events.pl
f4a552
%exclude %{_bindir}/oprofile_start.sh
f4a552
%{_mandir}/man8/hugeedit.8.gz
f4a552
%{_mandir}/man8/hugectl.8.gz
f4a552
%{_mandir}/man8/hugeadm.8.gz
f4a552
%{_mandir}/man1/pagesize.1.gz
f4a552
%{_mandir}/man1/ld.hugetlbfs.1.gz
f4a552
%exclude %{_mandir}/man8/cpupcstat.8.gz
f4a552
%exclude /usr/lib/perl5/TLBC
f4a552
f4a552
%changelog
f4a552
* Thu Aug 02 2018 Rafael Aquini <aquini@redhat.com> - 2.16-13
f4a552
- tests/stack_grow_into libhugetlbfs test fixes (#1422960)
f4a552
- PPC vm/hugepage/libhugetlbfs test fix (#1515365)
f4a552
f4a552
* Tue Jun 07 2016 Petr holasek <pholasek@redhat.com> - 2.16-12
f4a552
- linkhuge_rw test fix (#1240568)
f4a552
- hugeadm fix for firestone ppc systems (#1258622)
f4a552
f4a552
* Mon Dec 15 2014 Petr Holasek <pholasek@redhat.com> - 2.16-11
f4a552
- map_high_truncate_2 test fix (#1161677)
f4a552
f4a552
* Thu Nov 06 2014 Petr Holasek <pholasek@redhat.com> - 2.16-10
f4a552
- fix plt_extrasz() always returning 0 on ppc64le (#1160217)
f4a552
f4a552
* Wed Aug 13 2014 Petr Holasek <pholasek@redhat.com> - 2.16-9
f4a552
- ppc64le support (#1125576)
f4a552
f4a552
* Tue Jul 29 2014 Petr Holasek <pholasek@redhat.com> - 2.16-8
f4a552
- Fixed malloc failures in testsuite
f4a552
- Fixed warning when /etc/mtab is symlink
f4a552
f4a552
* Mon Mar 03 2014 Petr Holasek <pholasek@redhat.com> - 2.16-7
f4a552
- Compiling with -fstack-protector-strong flag (#1070772)
f4a552
f4a552
* Wed Feb 12 2014 Petr Holasek <pholasek@redhat.com> - 2.16-6
f4a552
- Backport patches from 2.17 for AArch64 support.
f4a552
f4a552
* Tue Feb 11 2014 Petr Holasek <pholasek@redhat.com> - 2.16-5
f4a552
- Fix of misalign test (#1034549)
f4a552
f4a552
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 2.16-4
f4a552
- Mass rebuild 2014-01-24
f4a552
f4a552
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.16-3
f4a552
- Mass rebuild 2013-12-27
f4a552
f4a552
* Sun May 12 2013 Anton Arapov <anton@redhat.com> - 2.16-2
f4a552
- Fortify code
f4a552
- Fix s390 build issues (#960107)
f4a552
f4a552
* Mon Apr 29 2013 Peter Robinson <pbrobinson@fedoraproject.org> - 2.16-1
f4a552
- Upstream 2.16 release (adds ARM support)
f4a552
f4a552
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.15-2
f4a552
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f4a552
f4a552
* Sat Dec 08 2012 Eric B Munson <emunson@mgebm.net> - 2.15
f4a552
- Update for upstream 2.15 release
f4a552
f4a552
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.13-2
f4a552
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f4a552
f4a552
* Sat Mar 24 2012 Eric B Munson <emunson@mgebm.net>
f4a552
- Update for upstream 2.13 release
f4a552
f4a552
* Wed Jul 20 2011 Eric B Munson <emunson@mgebm.net>
f4a552
- Update for upstream 2.12 release
f4a552
f4a552
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.9-2
f4a552
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f4a552
f4a552
* Mon Apr 05 2010 Eric B Munson <ebmunson@us.ibm.com> 2.8-1
f4a552
- Update for upstream 2.8 release
f4a552
f4a552
* Wed Feb 10 2010 Eric B Munson <ebmunson@us.ibm.com> 2.7-2
f4a552
- Include patch that fixes build on ppc
f4a552
f4a552
* Tue Jan 05 2010 Eric B Munson <ebmunson@us.ibm.com> 2.7-1
f4a552
- Update for upstream 2.7 release
f4a552
f4a552
* Fri Oct 02 2009 Jarod Wilson <jarod@redhat.com> 2.6-3
f4a552
- Add hopefully-about-to-be-merged-upstream hugeadm enhancements
f4a552
- Add huge pages setup helper script, using new hugeadm enhancements
f4a552
f4a552
* Thu Sep 03 2009 Nils Philippsen <nils@redhat.com> 2.6-2
f4a552
- fix building on s390x
f4a552
f4a552
* Mon Aug 31 2009 Eric Munson <ebmunson@us.ibm.com> 2.6-1
f4a552
- Updating for the libhugetlbfs-2.6 release
f4a552
f4a552
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-3
f4a552
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
f4a552
f4a552
* Mon Jul 20 2009 Eric Munson <ebmunson@us.ibm.com> 2.5-2
f4a552
- Update Group for -utils package to Applications/System
f4a552
f4a552
* Tue Jun 30 2009 Eric Munson <ebmunson@us.ibm.com> 2.5-1
f4a552
- Updating for the libhugetlbfs-2.5 release
f4a552
f4a552
* Tue Jun 02 2009 Eric Munson <ebmunson@us.ibm.com> 2.4-2
f4a552
- Adding patch to remove S390 32 bit build
f4a552
f4a552
* Fri May 29 2009 Eric Munson <ebmunson@us.ibm.com> 2.4-1
f4a552
- Updating for the libhugetlbfs-2.4 release
f4a552
f4a552
* Wed Apr 15 2009 Eric Munson <ebmunson@us.ibm.com> 2.3-1
f4a552
- Updating for the libhugetlbfs-2.3 release
f4a552
f4a552
* Wed Feb 11 2009 Eric Munson <ebmunson@us.ibm.com> 2.2-1
f4a552
- Updating for the libhugetlbfs-2.2 release
f4a552
f4a552
* Fri Dec 19 2008 Eric Munson <ebmunson@us.ibm.com> 2.1.2-1
f4a552
- Updating for libhugetlbfs-2.1.2 release
f4a552
f4a552
* Fri Dec 19 2008 Eric Munson <ebmunson@us.ibm.com> 2.1.1-1
f4a552
- Updating for libhugetlbfs-2.1.1 release
f4a552
f4a552
* Thu Dec 18 2008 Josh Boyer <jwboyer@gmail.com> 2.1-2
f4a552
- Fix broken dependency caused by just dropping -test
f4a552
  subpackage
f4a552
f4a552
* Thu Oct 16 2008 Eric Munson <ebmunson@us.ibm.com> 2.1-1
f4a552
- Updating for libhuge-2.1 release
f4a552
- Adding -devel and -utils subpackages for various utilities
f4a552
  and devel files.
f4a552
f4a552
* Wed May 14 2008 Eric Munson <ebmunson@us.ibm.com> 1.3-1
f4a552
- Updating for libhuge-1.3 release
f4a552
f4a552
* Tue Mar 25 2008 Eric Munson <ebmunson@us.ibm.com> 1.2-1
f4a552
- Removing test rpm target, and excluding test files
f4a552
f4a552
* Mon Mar 26 2007 Steve Fox <drfickle@k-lug.org> - 1.1-1
f4a552
- New release (1.1)
f4a552
- Fix directory ownership
f4a552
f4a552
* Wed Aug 30 2006 Steve Fox <drfickle@k-lug.org> - 0.20060825-1
f4a552
- New release (1.0-preview4)
f4a552
- patch0 (Makefile-ldscript.diff) merged upstream
f4a552
f4a552
* Tue Jul 25 2006 Steve Fox <drfickle@k-lug.org> - 0.20060706-4
f4a552
- Bump for build system
f4a552
f4a552
* Tue Jul 25 2006 Steve Fox <drfickle@k-lug.org> - 0.20060706-3
f4a552
- Don't use parallel build as it has random failures
f4a552
f4a552
* Thu Jul 20 2006 Steve Fox <drfickle@k-lug.org> - 0.20060706-2
f4a552
- Fix the Makefile so that the ld.hugetlbfs script doesn't store the
f4a552
  DESTDIR in the path to the ldscripts dir
f4a552
f4a552
* Fri Jul 7 2006 Steve Fox <drfickle@k-lug.org> - 0.20060706-1
f4a552
- New release which includes a fix for the syscall macro removal in the
f4a552
  Rawhide kernels
f4a552
f4a552
* Thu Jun 29 2006 Steve Fox <drfickle@k-lug.org> - 0.20060628-1
f4a552
- First Fedora package