%define have_pcmcia 0
%endif
-%define rel 2
-%define basever 5.3
-%define postver .0
+%define rel 1
+%define basever 5.4
+%define postver .80
# 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)
License: GPL v2
Group: Base/Kernel
Source0: https://www.kernel.org/pub/linux/kernel/v5.x/linux-%{basever}.tar.xz
-# Source0-md5: c99feaade8047339528fb066ec5f8a49
+# Source0-md5: ce9b2d974d27408a61c53a30d3f98fb9
%if "%{postver}" != ".0"
Patch0: https://www.kernel.org/pub/linux/kernel/v5.x/patch-%{version}.xz
-# Patch0-md5: cdaffbebb53e51b862ba1b959a0da859
+# Patch0-md5: ee164a6b827f77028e9956925360ddff
%endif
Source1: kernel.sysconfig
# Patch creation:
# git clone git://github.com/sfjro/aufs5-standalone.git
# cd aufs5-standalone
-# git checkout -b aufs5.2 origin/aufs5.2
+# git checkout -b aufs5.4 origin/aufs5.4
# cat aufs5-kbuild.patch aufs5-base.patch aufs5-mmap.patch aufs5-standalone.patch > ~/rpm/packages/kernel/kernel-aufs5.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-aufs5.patch
Patch2001: kernel-pwc-uncompress.patch
Patch2003: kernel-regressions.patch
Patch2004: xfs-reclaim-hack.patch
-Patch2005: bz204119.patch
# for rescuecd
# based on ftp://ftp.leg.uct.ac.za/pub/linux/rip/tmpfs_root-2.6.30.diff.gz
%endif
BuildRequires: xz >= 1:4.999.7
Requires(post): coreutils
-Requires(post): geninitrd >= 12757-8
+Requires(post): geninitrd >= 12787-6
Requires(post): kmod >= %{kmod_ver}
Requires: /sbin/depmod
Requires: coreutils
-Requires: geninitrd >= 12757-8
+Requires: geninitrd >= 12787-6
Requires: kmod >= %{kmod_ver}
%if %{with pae}
%ifarch i686 athlon pentium3 pentium4
%endif # vanilla
# Small fixes:
-#%patch2000 -p1
+%patch2000 -p1
%patch2001 -p1
#%patch2003 -p1
%patch2004 -p1
-%patch2005 -p1
# Do not remove this, please!
#%%patch50000 -p1
# cleanup backups after patching
find '(' -name '*~' -o -name '*.orig' -o -name '.gitignore' ')' -print0 | xargs -0 -r -l512 rm -f
+find -name '*.py' -print0 | \
+ xargs -0 %{__sed} -i -e '1s,/usr/bin/python,%{__python},' \
+ -e '1s,/usr/bin/env python,%{__python},' \
+ -e '1s,/usr/bin/env python3,%{__python3},'
+
+%{__sed} -i -e '1s,/usr/bin/python,%{__python},' \
+ -e '1s,/usr/bin/env python,%{__python},' \
+ -e '1s,/usr/bin/env python3,%{__python3},' \
+ drivers/staging/greybus/tools/lbtest \
+ scripts/bloat-o-meter \
+ scripts/diffconfig \
+ scripts/show_delta \
+ tools/kvm/kvm_stat/kvm_stat
+
+find -name '*.pl' -print0 | \
+ xargs -0 %{__sed} -i -e '1s,/usr/bin/env perl,%{__perl},' \
+
+%{__sed} -i -e '1s,/usr/bin/env perl,%{__perl},' \
+ scripts/dtc/dt_to_config \
+ scripts/cleanfile \
+ scripts/cleanpatch \
+ scripts/documentation-file-ref-check \
+ scripts/get_dvb_firmware \
+ scripts/kernel-doc \
+ scripts/stackdelta
+
%build
install -d %{objdir}
cat > %{targetobj}.mk <<'EOF'