X-Git-Url: https://git.pld-linux.org/?p=packages%2Fkernel.git;a=blobdiff_plain;f=kernel.spec;h=54fa489d15918f8723254b4c3b2458eb57410167;hp=8f3861a6414397ff43cc1af750e73542ef49c9c7;hb=e78d046b8c444ee94e3cb461ebd6540fdc7a8d12;hpb=df1396c22bdef26d1809a30cf0056db2f1c3e3b0 diff --git a/kernel.spec b/kernel.spec index 8f3861a6..54fa489d 100644 --- a/kernel.spec +++ b/kernel.spec @@ -16,8 +16,9 @@ # # Conditional build: %bcond_without source # don't build kernel-source package -%bcond_without doc # don't build kernel-doc package +%bcond_without doc # don't build kernel-doc package %bcond_without pcmcia # don't build pcmcia +%bcond_without debuginfo # debug info files %bcond_with verbose # verbose build (V=1) @@ -69,10 +70,10 @@ %define rel 1 %define basever 4.19 -%define postver .13 +%define postver .60 # define this to '-%{basever}' for longterm branch -%define versuffix %{nil} +%define versuffix -%{basever} # __alt_kernel is list of features, empty string if none set # _alt kernel is defined as: %{nil}%{?alt_kernel:-%{?alt_kernel}} (defined in rpm.macros) @@ -106,6 +107,8 @@ %define localversion %{rel} %define kernel_release %{version}%{?alt_kernel:.%{alt_kernel}}-%{localversion} +%define kmod_ver 26-2 + Summary: The Linux kernel (the core of the Linux operating system) Summary(de.UTF-8): Der Linux-Kernel (Kern des Linux-Betriebssystems) Summary(et.UTF-8): Linuxi kernel (ehk operatsioonisüsteemi tuum) @@ -121,7 +124,7 @@ Source0: https://www.kernel.org/pub/linux/kernel/v4.x/linux-%{basever}.tar.xz # Source0-md5: 740a90cf810c2105df8ee12e5d0bb900 %if "%{postver}" != ".0" Patch0: https://www.kernel.org/pub/linux/kernel/v4.x/patch-%{version}.xz -# Patch0-md5: b5f166c561bcfde69ff7ede0862745e2 +# Patch0-md5: 6dbc47932370f7f02173e15f2759208d %endif Source1: kernel.sysconfig @@ -195,7 +198,7 @@ Patch101: kernel-vserver-fixes.patch # Patch creation: # git clone git://github.com/sfjro/aufs4-standalone.git # cd aufs4-standalone -# git checkout -b aufs4.17 origin/aufs4.17 +# git checkout -b aufs4.19 origin/aufs4.19 # cat aufs4-kbuild.patch aufs4-base.patch aufs4-mmap.patch aufs4-standalone.patch > ~/rpm/packages/kernel/kernel-aufs4.patch # rm -rf linux && mkdir linux; cp -a Documentation fs include linux # diff -urN /usr/share/empty linux | filterdiff -x linux/include/uapi/linux/Kbuild >> ~/rpm/packages/kernel/kernel-aufs4.patch @@ -213,6 +216,7 @@ Patch500: kernel-rt.patch Patch2000: kernel-small_fixes.patch Patch2001: kernel-pwc-uncompress.patch +Patch2002: xfs-reclaim-hack.patch Patch2003: kernel-regressions.patch # for rescuecd @@ -228,14 +232,18 @@ AutoReqProv: no BuildRequires: /sbin/depmod BuildRequires: bc BuildRequires: binutils >= 3:2.18 +BuildRequires: bison %ifarch sparc sparc64 BuildRequires: elftoaout %endif BuildRequires: elfutils-devel +BuildRequires: flex BuildRequires: gcc >= 6:7.2.0-6 +BuildRequires: gcc-c++ BuildRequires: gcc-plugin-devel BuildRequires: hostname -BuildRequires: kmod >= 12-2 +BuildRequires: kmod >= %{kmod_ver} +BuildRequires: libstdc++-devel BuildRequires: openssl-devel BuildRequires: perl-base BuildRequires: rpm-build >= 4.5-24 @@ -246,11 +254,11 @@ BuildRequires: uboot-mkimage BuildRequires: xz >= 1:4.999.7 Requires(post): coreutils Requires(post): geninitrd >= 12757-8 -Requires(post): kmod >= 12-2 +Requires(post): kmod >= %{kmod_ver} Requires: /sbin/depmod Requires: coreutils Requires: geninitrd >= 12757-8 -Requires: kmod >= 12-2 +Requires: kmod >= %{kmod_ver} %if %{with pae} %ifarch i686 athlon pentium3 pentium4 Requires: cpuinfo(pae) @@ -684,6 +692,7 @@ rm -f localversion-rt # Small fixes: %patch2000 -p1 %patch2001 -p1 +%patch2002 -p1 #%patch2003 -p1 # Do not remove this, please! @@ -836,6 +845,7 @@ BuildConfig() { CONFIG_HIGHMEM64G=y CONFIG_X86_PAE=y CONFIG_NUMA=n + CONFIG_PAGE_TABLE_ISOLATION=y %endif %endif @@ -889,7 +899,7 @@ EOCONFIG cd %{objdir} install -d arch/%{target_arch_dir} -BuildConfig > %{defconfig} +BuildConfig %{!?with_debuginfo:| %{__sed} -e 's/CONFIG_DEBUG_INFO=y/# CONFIG_DEBUG_INFO is not set/'} > %{defconfig} ln -sf %{defconfig} .config cd - @@ -979,8 +989,8 @@ touch $RPM_BUILD_ROOT%{initrd_dir}/initramfs-%{kernel_release}.img touch $RPM_BUILD_ROOT/lib/modules/%{kernel_release}/modules.dep %endif -# /etc/modrobe.d -install -d $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d/%{kernel_release} +# /etc/depmod.d /etc/modrobe.d +install -d $RPM_BUILD_ROOT%{_sysconfdir}/{depmod.d,modprobe.d}/%{kernel_release} install -d $RPM_BUILD_ROOT/etc/sysconfig install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/kernel @@ -995,6 +1005,7 @@ if cp -al %{srcdir}/COPYING $RPM_BUILD_ROOT/COPYING 2>/dev/null; then fi cp -a$l %{srcdir}/* $RPM_BUILD_ROOT%{_kernelsrcdir} +%{__rm} -r $RPM_BUILD_ROOT%{_kernelsrcdir}/scripts/kconfig/tests cp -a %{objdir}/Module.symvers $RPM_BUILD_ROOT%{_kernelsrcdir} cp -aL %{objdir}/.config $RPM_BUILD_ROOT%{_kernelsrcdir} cp -a %{objdir}/include $RPM_BUILD_ROOT%{_kernelsrcdir} @@ -1039,7 +1050,7 @@ done %if %{with doc} # move to %{_docdir} so we wouldn't depend on any kernel package for dirs install -d $RPM_BUILD_ROOT%{_docdir} -mv $RPM_BUILD_ROOT{%{_kernelsrcdir}/Documentation,%{_docdir}/%{name}-%{version}} +%{__mv} $RPM_BUILD_ROOT{%{_kernelsrcdir}/Documentation,%{_docdir}/%{name}-%{version}} %{__rm} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/dontdiff %{__rm} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/Makefile @@ -1271,6 +1282,7 @@ fi /lib/modules/%{kernel_release}/kernel/security /lib/modules/%{kernel_release}/kernel/virt +%dir %{_sysconfdir}/depmod.d/%{kernel_release} %dir %{_sysconfdir}/modprobe.d/%{kernel_release} # provided by build