|
|
7ec39c |
%define kmod_name oracleasm
|
|
|
7ec39c |
%define kmod_driver_version 2.0.8
|
|
|
e07f7d |
%define kmod_rpm_release 27
|
|
|
516038 |
%define kmod_git_hash 73eec1df4b6aec6e850db5015d74dbf6dee01e01
|
|
|
e07f7d |
%define kmod_kernel_version 3.10.0-1082.el7
|
|
|
e07f7d |
%define kernel_version 3.10.0-1082.el7
|
|
|
7ec39c |
%define kmod_kbuild_dir drivers/block/oracleasm
|
|
|
7ec39c |
|
|
|
7ec39c |
|
|
|
7ec39c |
%{!?dist: %define dist .el7}
|
|
|
7ec39c |
|
|
|
516038 |
Source0: %{kmod_name}-%{kmod_driver_version}.tar.bz2
|
|
|
516038 |
Source1: %{kmod_name}.files
|
|
|
516038 |
Source2: depmodconf
|
|
|
516038 |
Source3: find-requires.ksyms
|
|
|
516038 |
Source4: find-provides.ksyms
|
|
|
516038 |
Source5: kmodtool
|
|
|
516038 |
Source6: symbols.greylist-x86_64
|
|
|
7ec39c |
Source7: oracleasm.preamble
|
|
|
7ec39c |
|
|
|
7ec39c |
Patch0: oracleasm.patch
|
|
|
516038 |
Patch1: classify-device-connectivity-issues-as-global-errors.patch
|
|
|
02eaf0 |
Patch2: use-after-free-asm-request.patch
|
|
|
7ec39c |
|
|
|
7ec39c |
%define __find_requires %_sourcedir/find-requires.ksyms
|
|
|
7ec39c |
%define __find_provides %_sourcedir/find-provides.ksyms %{kmod_name} %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
7ec39c |
|
|
|
7ec39c |
Name: %{kmod_name}
|
|
|
7ec39c |
Version: %{kmod_driver_version}
|
|
|
7ec39c |
Release: %{kmod_rpm_release}%{?dist}
|
|
|
7ec39c |
Summary: %{kmod_name} kernel module
|
|
|
7ec39c |
|
|
|
7ec39c |
Group: System/Kernel
|
|
|
7ec39c |
License: GPLv2
|
|
|
7ec39c |
URL: http://www.kernel.org/
|
|
|
7ec39c |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
7ec39c |
BuildRequires: %kernel_module_package_buildreqs
|
|
|
7ec39c |
ExclusiveArch: x86_64
|
|
|
7ec39c |
|
|
|
7ec39c |
|
|
|
7ec39c |
# Build only for standard kernel variant(s); for debug packages, append "debug"
|
|
|
7ec39c |
# after "default" (separated by space)
|
|
|
7ec39c |
%kernel_module_package -s %{SOURCE5} -f %{SOURCE1} -p %{SOURCE7} default
|
|
|
7ec39c |
|
|
|
7ec39c |
%description
|
|
|
7ec39c |
%{kmod_name} - driver update
|
|
|
7ec39c |
|
|
|
7ec39c |
%prep
|
|
|
7ec39c |
%setup
|
|
|
7ec39c |
%patch0 -p1
|
|
|
516038 |
%patch1 -p1
|
|
|
02eaf0 |
%patch2 -p1
|
|
|
7ec39c |
|
|
|
7ec39c |
set -- *
|
|
|
7ec39c |
mkdir source
|
|
|
7ec39c |
mv "$@" source/
|
|
|
7ec39c |
cp %{SOURCE6} source/
|
|
|
7ec39c |
mkdir obj
|
|
|
7ec39c |
|
|
|
7ec39c |
%build
|
|
|
7ec39c |
for flavor in %flavors_to_build; do
|
|
|
7ec39c |
rm -rf obj/$flavor
|
|
|
7ec39c |
cp -r source obj/$flavor
|
|
|
7ec39c |
|
|
|
7ec39c |
# update symvers file if existing
|
|
|
7ec39c |
symvers=source/Module.symvers-%{_target_cpu}
|
|
|
7ec39c |
if [ -e $symvers ]; then
|
|
|
7ec39c |
cp $symvers obj/$flavor/%{kmod_kbuild_dir}/Module.symvers
|
|
|
7ec39c |
fi
|
|
|
7ec39c |
|
|
|
7ec39c |
make -C %{kernel_source $flavor} M=$PWD/obj/$flavor/%{kmod_kbuild_dir} \
|
|
|
7ec39c |
NOSTDINC_FLAGS="-I $PWD/obj/$flavor/include"
|
|
|
7ec39c |
|
|
|
7ec39c |
# mark modules executable so that strip-to-file can strip them
|
|
|
7ec39c |
find obj/$flavor/%{kmod_kbuild_dir} -name "*.ko" -type f -exec chmod u+x '{}' +
|
|
|
7ec39c |
done
|
|
|
7ec39c |
|
|
|
7ec39c |
%{SOURCE2} %{name} %{kmod_kernel_version} obj > source/depmod.conf
|
|
|
7ec39c |
|
|
|
7ec39c |
greylist=source/symbols.greylist-%{_target_cpu}
|
|
|
7ec39c |
if [ -f $greylist ]; then
|
|
|
7ec39c |
cp $greylist source/symbols.greylist
|
|
|
7ec39c |
else
|
|
|
7ec39c |
touch source/symbols.greylist
|
|
|
7ec39c |
fi
|
|
|
7ec39c |
|
|
|
7ec39c |
if [ -d source/firmware ]; then
|
|
|
7ec39c |
make -C source/firmware
|
|
|
7ec39c |
fi
|
|
|
7ec39c |
|
|
|
7ec39c |
%install
|
|
|
7ec39c |
export INSTALL_MOD_PATH=$RPM_BUILD_ROOT
|
|
|
7ec39c |
export INSTALL_MOD_DIR=extra/%{name}
|
|
|
7ec39c |
for flavor in %flavors_to_build ; do
|
|
|
7ec39c |
make -C %{kernel_source $flavor} modules_install \
|
|
|
7ec39c |
M=$PWD/obj/$flavor/%{kmod_kbuild_dir}
|
|
|
7ec39c |
# Cleanup unnecessary kernel-generated module dependency files.
|
|
|
7ec39c |
find $INSTALL_MOD_PATH/lib/modules -iname 'modules.*' -exec rm {} \;
|
|
|
7ec39c |
done
|
|
|
7ec39c |
|
|
|
7ec39c |
install -m 644 -D source/depmod.conf $RPM_BUILD_ROOT/etc/depmod.d/%{kmod_name}.conf
|
|
|
7ec39c |
install -m 644 -D source/symbols.greylist $RPM_BUILD_ROOT/usr/share/doc/kmod-%{kmod_name}/greylist.txt
|
|
|
7ec39c |
|
|
|
7ec39c |
if [ -d source/firmware ]; then
|
|
|
7ec39c |
make -C source/firmware INSTALL_PATH=$RPM_BUILD_ROOT INSTALL_DIR=updates install
|
|
|
7ec39c |
fi
|
|
|
7ec39c |
|
|
|
7ec39c |
%clean
|
|
|
7ec39c |
rm -rf $RPM_BUILD_ROOT
|
|
|
7ec39c |
|
|
|
7ec39c |
%changelog
|
|
|
e07f7d |
* Tue Aug 27 2019 Eugene Syromiatnikov <esyr@redhat.com> 2.0.8-27
|
|
|
e07f7d |
- For >= kernel-3.10.0-1082.el7
|
|
|
e07f7d |
- Resolves: #1746010
|
|
|
e07f7d |
|
|
|
e2d2d7 |
* Mon Apr 29 2019 Eugene Syromiatnikov <esyr@redhat.com> 2.0.8-26
|
|
|
e2d2d7 |
- Revert the addition
|
|
|
e2d2d7 |
of "oracleasm-claim-FMODE_EXCL-access-on-disk-during-asm.patch"
|
|
|
e2d2d7 |
as it introduces regressions ("ERROR: -15 ... asm_open error
|
|
|
e2d2d7 |
Operation not permitted").
|
|
|
e2d2d7 |
- Rebuilt against kernel-3.10.0-1043.el7
|
|
|
e2d2d7 |
- Resolves: #1700382
|
|
|
e2d2d7 |
|
|
|
e2d2d7 |
* Tue Mar 12 2019 Eugene Syromiatnikov <esyr@redhat.com> 2.0.8-25
|
|
|
e2d2d7 |
- Add "oracleasm-claim-FMODE_EXCL-access-on-disk-during-asm.patch"
|
|
|
e2d2d7 |
- Resolves: #1684223
|
|
|
e2d2d7 |
|
|
|
e2d2d7 |
* Tue Feb 05 2019 Eugene Syromiatnikov <esyr@redhat.com> 2.0.8-24
|
|
|
02eaf0 |
- Add "use-after-free-asm-request.patch"
|
|
|
02eaf0 |
- (oracleasm: Fix use after free for request processing timer)
|
|
|
e2d2d7 |
- Resolves: #1672733
|
|
|
02eaf0 |
|
|
|
275a90 |
* Tue Jun 19 2018 Eugene Syromiatnikov <esyr@redhat.com> 2.0.8-22
|
|
|
275a90 |
- For >= kernel-3.10.0-907.el7
|
|
|
275a90 |
- Resolves: #1568406
|
|
|
275a90 |
|
|
|
05059f |
* Thu Feb 22 2018 Petr Oros <poros@redhat.com> 2.0.8-21
|
|
|
05059f |
- For >= kernel-3.10.0-855.el7
|
|
|
05059f |
- Resolves: #1498103
|
|
|
05059f |
|
|
|
05059f |
* Tue Nov 14 2017 Petr Oros <poros@redhat.com> 2.0.8-20
|
|
|
05059f |
- For >= kernel-3.10.0-783.el7
|
|
|
05059f |
- Resolves: #1498103
|
|
|
05059f |
|
|
|
40c437 |
* Mon Jun 26 2017 Petr Oros <poros@redhat.com> 2.0.8-19
|
|
|
40c437 |
- For >= kernel-3.10.0-685.el7
|
|
|
40c437 |
- Resolves: #1441193
|
|
|
40c437 |
|
|
|
40c437 |
* Thu Apr 13 2017 Petr Oros <poros@redhat.com> 2.0.8-18
|
|
|
40c437 |
- For >= kernel-3.10.0-650.el7
|
|
|
40c437 |
- Resolves: #1441193
|
|
|
40c437 |
|
|
|
f29b93 |
* Mon Sep 26 2016 Petr Oros <poros@redhat.com> 2.0.8-17
|
|
|
f29b93 |
- For >= kernel-3.10.0-510.el7
|
|
|
f29b93 |
- Resolves: #1354376
|
|
|
f29b93 |
|
|
|
f29b93 |
* Mon Jul 11 2016 Petr Oros <poros@redhat.com> 2.0.8-16
|
|
|
f29b93 |
- For >= kernel-3.10.0-461.el7
|
|
|
f29b93 |
- Resolves: #1354376
|
|
|
f29b93 |
|
|
|
516038 |
* Mon Oct 26 2015 Petr Oros <poros@redhat.com> 2.0.8-15
|
|
|
516038 |
- For >= kernel-3.10.0-326.el7
|
|
|
516038 |
- Resolves: #1265218
|
|
|
516038 |
|
|
|
516038 |
* Tue Sep 22 2015 Petr Oros <poros@redhat.com> 2.0.8-14
|
|
|
516038 |
- Classify device connectivity issues as global errors
|
|
|
516038 |
- For >= kernel-3.10.0-319.el7
|
|
|
516038 |
- Resolves: #1265218
|
|
|
516038 |
|
|
|
516038 |
* Wed Sep 9 2015 Petr Oros <poros@redhat.com> 2.0.8-13
|
|
|
516038 |
- rebuild for >= kernel-3.10.0-315.el7
|
|
|
516038 |
- Resolves: #1245327
|
|
|
516038 |
|
|
|
516038 |
* Thu Sep 3 2015 Petr Oros <poros@redhat.com> 2.0.8-12
|
|
|
516038 |
- rebuild for kernel-3.10.0-313.el7
|
|
|
516038 |
- Resolves: #1245327
|
|
|
516038 |
|
|
|
516038 |
* Wed Aug 19 2015 Petr Oros <poros@redhat.com> 2.0.8-11
|
|
|
516038 |
- rebuild for kernel-3.10.0-306.0.1.el7
|
|
|
516038 |
- Resolves: #1245327
|
|
|
516038 |
|
|
|
516038 |
* Tue Aug 18 2015 Petr Oros <poros@redhat.com> 2.0.8-10
|
|
|
516038 |
- rebuild for kernel-3.10.0-306.el7
|
|
|
516038 |
- Resolves: #1245327
|
|
|
516038 |
|
|
|
516038 |
* Tue Aug 4 2015 Petr Oros <poros@redhat.com> 2.0.8-9
|
|
|
516038 |
- rebuild for kernel-3.10.0-302.el7
|
|
|
516038 |
- Resolves: #1245327
|
|
|
516038 |
|
|
|
40c437 |
* Fri Jan 30 2015 Dave Anderson <anderson@redhat.com> 2.0.8-8
|
|
|
7ec39c |
- rebuild for kernel-3.10.0-229.el7
|
|
|
7ec39c |
|
|
|
7ec39c |
* Wed Jan 28 2015 Jan Blazek <jblazek@redhat.com> 2.0.8-7
|
|
|
7ec39c |
- rebuild for kernel-3.10.0-227.el7
|
|
|
7ec39c |
|
|
|
7ec39c |
* Mon Dec 1 2014 Weiping Pan <wpan@redhat.com> 2.0.8 5
|
|
|
7ec39c |
- build oracleasm for 7.0.z,
|
|
|
7ec39c |
- codes from git://oss.oracle.com/git/linux-uek3-3.8.git,
|
|
|
7ec39c |
- commit 73eec1df4b6aec6e850db5015d74dbf6dee01e01
|
|
|
7ec39c |
- patch0 is to replace create_proc_entry with proc_create.
|
|
|
7ec39c |
|
|
|
7ec39c |
* Wed Aug 20 2014 Weiping Pan <wpan@redhat.com> 2.0.8 2
|
|
|
7ec39c |
- rebuild oracleasm for RHEL6.4 in brew, update the version tp 2.0.8-2
|
|
|
7ec39c |
|
|
|
7ec39c |
* Mon Aug 11 2014 Weiping Pan <wpan@redhat.com> 2.0.8.rh64 1
|
|
|
7ec39c |
- rebuild oracleasm for RHEL6.4, update the version tp 2.0.8.rh64-1
|
|
|
7ec39c |
|
|
|
7ec39c |
* Tue Jul 15 2014 Weiping Pan <wpan@redhat.com> 2.0.8.rh1 2
|
|
|
7ec39c |
- rebuild oracleasm for RHEL6.4, sync to upstream commit d368091e98dc
|
|
|
7ec39c |
- (oracleasm: Add support for new error return codes from block/SCSI)
|
|
|
7ec39c |
|
|
|
7ec39c |
* Fri Jan 24 2014 Weiping Pan <wpan@redhat.com> 2.0.8.rh1 1
|
|
|
7ec39c |
- rebuild oracleasm for RHEL6.5
|
|
|
7ec39c |
|
|
|
7ec39c |
* Tue Jan 29 2013 Jiri Benc <jbenc@redhat.com> 2.0.6.rh1 2
|
|
|
7ec39c |
- providing oracleasm to be compatible with oracleasmlib builds
|
|
|
7ec39c |
|
|
|
7ec39c |
* Thu Jan 24 2013 Jiri Benc <jbenc@redhat.com> 2.0.6.rh1 1
|
|
|
7ec39c |
- updated to a newer version with some fixes
|
|
|
7ec39c |
|
|
|
7ec39c |
* Fri Sep 2 2011 Jiri Olsa <jolsa@redhat.com> 2.0.6 5
|
|
|
7ec39c |
- kernel version fix
|
|
|
7ec39c |
|
|
|
7ec39c |
* Tue Aug 30 2011 Jiri Olsa <jolsa@redhat.com> 2.0.6 4
|
|
|
7ec39c |
- kernel version fix
|
|
|
7ec39c |
|
|
|
7ec39c |
* Tue Aug 30 2011 Jiri Olsa <jolsa@redhat.com> 2.0.6 3
|
|
|
7ec39c |
- kernel version fix
|
|
|
7ec39c |
|
|
|
7ec39c |
* Tue Aug 30 2011 Jiri Olsa <jolsa@redhat.com> 2.0.6 2
|
|
|
7ec39c |
- removed kmod- prefix
|
|
|
7ec39c |
|
|
|
7ec39c |
* Tue Jul 19 2011 Jiri Olsa <jolsa@redhat.com> 2.0.6 1
|
|
|
7ec39c |
- oracleasm DUP module
|