diff options
author | Anton Tikhomirov <anton.tikhomirov@cdnetworks.com> | 2016-10-25 18:00:44 +0900 |
---|---|---|
committer | Michal Marek <mmarek@suse.com> | 2016-12-11 12:07:00 +0100 |
commit | 51a5f81079bfbd146b7162580c2170289c7cb413 (patch) | |
tree | 5a22a77cb0066f9d759c11d1aa99f393b9e4e9a8 /scripts | |
parent | 75238b9e6aadca6d9255d4b385e026385e78bb15 (diff) | |
download | op-kernel-dev-51a5f81079bfbd146b7162580c2170289c7cb413.zip op-kernel-dev-51a5f81079bfbd146b7162580c2170289c7cb413.tar.gz |
kbuild/mkspec: avoid using brace expansion
Brace expansion might not work properly if _buildshell RPM macro
points to a shell other than bash. Particularly, with _bulidshell
defined to /bin/dash it leads to broken build and source symlinks.
Signed-off-by: Anton Tikhomirov <anton.tikhomirov@cdnetworks.com>
Signed-off-by: Michal Marek <mmarek@suse.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/package/mkspec | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/package/mkspec b/scripts/package/mkspec index 57673ba..bb43f15 100755 --- a/scripts/package/mkspec +++ b/scripts/package/mkspec @@ -116,7 +116,8 @@ echo 'mv vmlinux.bz2 $RPM_BUILD_ROOT'"/boot/vmlinux-$KERNELRELEASE.bz2" echo "%endif" if ! $PREBUILT; then -echo 'rm -f $RPM_BUILD_ROOT'"/lib/modules/$KERNELRELEASE/{build,source}" +echo 'rm -f $RPM_BUILD_ROOT'"/lib/modules/$KERNELRELEASE/build" +echo 'rm -f $RPM_BUILD_ROOT'"/lib/modules/$KERNELRELEASE/source" echo "mkdir -p "'$RPM_BUILD_ROOT'"/usr/src/kernels/$KERNELRELEASE" echo "EXCLUDES=\"$RCS_TAR_IGNORE --exclude .tmp_versions --exclude=*vmlinux* --exclude=*.o --exclude=*.ko --exclude=*.cmd --exclude=Documentation --exclude=firmware --exclude .config.old --exclude .missing-syscalls.d\"" echo "tar "'$EXCLUDES'" -cf- . | (cd "'$RPM_BUILD_ROOT'"/usr/src/kernels/$KERNELRELEASE;tar xvf -)" |