Blame SPECS/libhugetlbfs.spec

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