1
0

Accepting request 841342 from Kernel:HEAD

- Use fdupes -s (bsc#1177428);
  this seems fixing the mess up of hard-linked files by the package
  update (forwarded request 841341 from tiwai)

OBS-URL: https://build.opensuse.org/request/show/841342
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/kernel-firmware?expand=0&rev=152
This commit is contained in:
Dominique Leuenberger 2020-10-14 13:38:27 +00:00 committed by Git OBS Bridge
commit 8e958662dd
3 changed files with 19 additions and 30 deletions

View File

@ -102,28 +102,6 @@ while read l; do
copy_file "$f"
fi
;;
esac
done
sub="xxx"
while read l; do
test -z "$l" && continue
case "$l" in
----*)
sub=""
topic=""
;;
Driver:*)
test -n "$sub" && continue
sub=$(echo "$l" | sed -e's/Driver: *//' -e's/[ :].*$//')
m=$(grep -m1 "^$sub": "$topics" | sed -e's/^.*:[[:space:]]*//')
test -z "$m" && continue
set -- $m
topic="$1"
if [ "$topic" = "SKIP" ]; then
continue
fi
;;
Link:*)
test "$topic" = "SKIP" && continue
if [ -z "$topic" ]; then
@ -131,12 +109,10 @@ while read l; do
exit 1
fi
echo "$l" | sed -e's/^Link: *//g' -e's/-> //g' | while read f d; do
if test -L "$f"; then
copy_link "$f"
else
copy_link "$f" "$d"
fi
copy_link "$f" "$d"
done
;;
esac
done
exit 0

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Mon Oct 12 10:09:10 CEST 2020 - tiwai@suse.de
- Use fdupes -s (bsc#1177428);
this seems fixing the mess up of hard-linked files by the package
update
-------------------------------------------------------------------
Sun Oct 11 22:01:34 CEST 2020 - tiwai@suse.de
- Fix symlink creations for split packages (bsc#1177554);
also show the copy/link status verbosely at packge build
-------------------------------------------------------------------
Mon Oct 5 19:34:51 CEST 2020 - tiwai@suse.de

View File

@ -123,8 +123,8 @@ Conflicts: kernel < 5.3
Provides: compat-wireless-firmware = 4.4
Obsoletes: compat-wireless-firmware < 4.4
Requires: %{name}-amdgpu = %{version}
Requires: %{name}-atheros = %{version}
Requires: %{name}-ath10k = %{version}
Requires: %{name}-atheros = %{version}
Requires: %{name}-bluetooth = %{version}
Requires: %{name}-bnx2 = %{version}
Requires: %{name}-brcm = %{version}
@ -5689,10 +5689,10 @@ mkdir -p %{buildroot}/lib/firmware
%if "%flavor" != "compressed"
sh ./copy-firmware.sh %{buildroot}/lib/firmware
%else
sh %{_sourcedir}/install-split.sh %{_sourcedir}/topics.list %{buildroot} < WHENCE
sh %{_sourcedir}/install-split.sh -v %{_sourcedir}/topics.list %{buildroot} < WHENCE
sh %{_sourcedir}/list-license.sh < %{_sourcedir}/licenses.list
%endif
%fdupes %{buildroot}
%fdupes -s %{buildroot}
%if "%flavor" != "compressed"
%post