]> Git Repo - linux.git/commitdiff
kbuild: rpm-pkg: Support GNU tar >= 1.29
authorJason Gunthorpe <[email protected]>
Fri, 23 Mar 2018 17:59:36 +0000 (11:59 -0600)
committerMasahiro Yamada <[email protected]>
Tue, 27 Mar 2018 16:42:17 +0000 (01:42 +0900)
There is a change in how command line parsing is done in this version.
Excludes and includes are now ordered with the file list. Since
the spec file puts the file list before the exclude list it means newer
tar ignores the excludes and packs all the build output into the
kernel-devel RPM resulting in a huge package.

Simple argument re-ordering fixes the problem.

Signed-off-by: Jason Gunthorpe <[email protected]>
Signed-off-by: Masahiro Yamada <[email protected]>
scripts/package/mkspec

index 280027fad991c1beeacc64fcc460eb6f6986d849..61427c6f220922542c661b844553ed6857993a09 100755 (executable)
@@ -98,7 +98,7 @@ $M    make %{?_smp_mflags} INSTALL_MOD_PATH=%{buildroot} KBUILD_SRC= modules_instal
 $S$M   rm -f %{buildroot}/lib/modules/$KERNELRELEASE/build
 $S$M   rm -f %{buildroot}/lib/modules/$KERNELRELEASE/source
 $S$M   mkdir -p %{buildroot}/usr/src/kernels/$KERNELRELEASE
-$S$M   tar cf - . $EXCLUDES | tar xf - -C %{buildroot}/usr/src/kernels/$KERNELRELEASE
+$S$M   tar cf - $EXCLUDES . | tar xf - -C %{buildroot}/usr/src/kernels/$KERNELRELEASE
 $S$M   cd %{buildroot}/lib/modules/$KERNELRELEASE
 $S$M   ln -sf /usr/src/kernels/$KERNELRELEASE build
 $S$M   ln -sf /usr/src/kernels/$KERNELRELEASE source
This page took 0.055573 seconds and 4 git commands to generate.