From: Denys Vlasenko <dvlas...@redhat.com> redhat/kernel.spec.template: update selftest data via "make dist-self-test-data"
Signed-off-by: Denys Vlasenko <dvlas...@redhat.com> diff --git a/redhat/self-test/data/centos-2585cf9dfaad.el7.spec b/redhat/self-test/data/centos-2585cf9dfaad.el7.spec index blahblah..blahblah 100755 --- a/redhat/self-test/data/centos-2585cf9dfaad.el7.spec +++ b/redhat/self-test/data/centos-2585cf9dfaad.el7.spec @@ -2649,6 +2649,10 @@ popd # a far more sophisticated hardlink implementation. # https://github.com/projectatomic/rpm-ostree/commit/58a79056a889be8814aa51f507b2c7a4dccee526 # +# The deletion of *.hardlink-temporary files is a temporary workaround +# for this bug in the hardlink binary (fixed in util-linux 2.38): +# https://github.com/util-linux/util-linux/issues/1602 +# %define kernel_devel_post() \ %{expand:%%post %{?1:%{1}-}devel}\ if [ -f /etc/sysconfig/kernel ]\ @@ -2660,7 +2664,9 @@ then\ (cd /usr/src/kernels/%{KVERREL}%{?1:+%{1}} &&\ /usr/bin/find . -type f | while read f; do\ hardlink -c /usr/src/kernels/*%{?dist}.*/$f $f > /dev/null\ - done)\ + done;\ + /usr/bin/find /usr/src/kernels -type f -name '*.hardlink-temporary' -delete\ + )\ fi\ %{nil} diff --git a/redhat/self-test/data/centos-2585cf9dfaad.fc25.spec b/redhat/self-test/data/centos-2585cf9dfaad.fc25.spec index blahblah..blahblah 100755 --- a/redhat/self-test/data/centos-2585cf9dfaad.fc25.spec +++ b/redhat/self-test/data/centos-2585cf9dfaad.fc25.spec @@ -2649,6 +2649,10 @@ popd # a far more sophisticated hardlink implementation. # https://github.com/projectatomic/rpm-ostree/commit/58a79056a889be8814aa51f507b2c7a4dccee526 # +# The deletion of *.hardlink-temporary files is a temporary workaround +# for this bug in the hardlink binary (fixed in util-linux 2.38): +# https://github.com/util-linux/util-linux/issues/1602 +# %define kernel_devel_post() \ %{expand:%%post %{?1:%{1}-}devel}\ if [ -f /etc/sysconfig/kernel ]\ @@ -2660,7 +2664,9 @@ then\ (cd /usr/src/kernels/%{KVERREL}%{?1:+%{1}} &&\ /usr/bin/find . -type f | while read f; do\ hardlink -c /usr/src/kernels/*%{?dist}.*/$f $f > /dev/null\ - done)\ + done;\ + /usr/bin/find /usr/src/kernels -type f -name '*.hardlink-temporary' -delete\ + )\ fi\ %{nil} diff --git a/redhat/self-test/data/centos-78e36f3b0dae.el7.spec b/redhat/self-test/data/centos-78e36f3b0dae.el7.spec index blahblah..blahblah 100755 --- a/redhat/self-test/data/centos-78e36f3b0dae.el7.spec +++ b/redhat/self-test/data/centos-78e36f3b0dae.el7.spec @@ -2649,6 +2649,10 @@ popd # a far more sophisticated hardlink implementation. # https://github.com/projectatomic/rpm-ostree/commit/58a79056a889be8814aa51f507b2c7a4dccee526 # +# The deletion of *.hardlink-temporary files is a temporary workaround +# for this bug in the hardlink binary (fixed in util-linux 2.38): +# https://github.com/util-linux/util-linux/issues/1602 +# %define kernel_devel_post() \ %{expand:%%post %{?1:%{1}-}devel}\ if [ -f /etc/sysconfig/kernel ]\ @@ -2660,7 +2664,9 @@ then\ (cd /usr/src/kernels/%{KVERREL}%{?1:+%{1}} &&\ /usr/bin/find . -type f | while read f; do\ hardlink -c /usr/src/kernels/*%{?dist}.*/$f $f > /dev/null\ - done)\ + done;\ + /usr/bin/find /usr/src/kernels -type f -name '*.hardlink-temporary' -delete\ + )\ fi\ %{nil} diff --git a/redhat/self-test/data/centos-78e36f3b0dae.fc25.spec b/redhat/self-test/data/centos-78e36f3b0dae.fc25.spec index blahblah..blahblah 100755 --- a/redhat/self-test/data/centos-78e36f3b0dae.fc25.spec +++ b/redhat/self-test/data/centos-78e36f3b0dae.fc25.spec @@ -2649,6 +2649,10 @@ popd # a far more sophisticated hardlink implementation. # https://github.com/projectatomic/rpm-ostree/commit/58a79056a889be8814aa51f507b2c7a4dccee526 # +# The deletion of *.hardlink-temporary files is a temporary workaround +# for this bug in the hardlink binary (fixed in util-linux 2.38): +# https://github.com/util-linux/util-linux/issues/1602 +# %define kernel_devel_post() \ %{expand:%%post %{?1:%{1}-}devel}\ if [ -f /etc/sysconfig/kernel ]\ @@ -2660,7 +2664,9 @@ then\ (cd /usr/src/kernels/%{KVERREL}%{?1:+%{1}} &&\ /usr/bin/find . -type f | while read f; do\ hardlink -c /usr/src/kernels/*%{?dist}.*/$f $f > /dev/null\ - done)\ + done;\ + /usr/bin/find /usr/src/kernels -type f -name '*.hardlink-temporary' -delete\ + )\ fi\ %{nil} diff --git a/redhat/self-test/data/centos-df0cc57e057f.el7.spec b/redhat/self-test/data/centos-df0cc57e057f.el7.spec index blahblah..blahblah 100755 --- a/redhat/self-test/data/centos-df0cc57e057f.el7.spec +++ b/redhat/self-test/data/centos-df0cc57e057f.el7.spec @@ -2649,6 +2649,10 @@ popd # a far more sophisticated hardlink implementation. # https://github.com/projectatomic/rpm-ostree/commit/58a79056a889be8814aa51f507b2c7a4dccee526 # +# The deletion of *.hardlink-temporary files is a temporary workaround +# for this bug in the hardlink binary (fixed in util-linux 2.38): +# https://github.com/util-linux/util-linux/issues/1602 +# %define kernel_devel_post() \ %{expand:%%post %{?1:%{1}-}devel}\ if [ -f /etc/sysconfig/kernel ]\ @@ -2660,7 +2664,9 @@ then\ (cd /usr/src/kernels/%{KVERREL}%{?1:+%{1}} &&\ /usr/bin/find . -type f | while read f; do\ hardlink -c /usr/src/kernels/*%{?dist}.*/$f $f > /dev/null\ - done)\ + done;\ + /usr/bin/find /usr/src/kernels -type f -name '*.hardlink-temporary' -delete\ + )\ fi\ %{nil} diff --git a/redhat/self-test/data/centos-df0cc57e057f.fc25.spec b/redhat/self-test/data/centos-df0cc57e057f.fc25.spec index blahblah..blahblah 100755 --- a/redhat/self-test/data/centos-df0cc57e057f.fc25.spec +++ b/redhat/self-test/data/centos-df0cc57e057f.fc25.spec @@ -2649,6 +2649,10 @@ popd # a far more sophisticated hardlink implementation. # https://github.com/projectatomic/rpm-ostree/commit/58a79056a889be8814aa51f507b2c7a4dccee526 # +# The deletion of *.hardlink-temporary files is a temporary workaround +# for this bug in the hardlink binary (fixed in util-linux 2.38): +# https://github.com/util-linux/util-linux/issues/1602 +# %define kernel_devel_post() \ %{expand:%%post %{?1:%{1}-}devel}\ if [ -f /etc/sysconfig/kernel ]\ @@ -2660,7 +2664,9 @@ then\ (cd /usr/src/kernels/%{KVERREL}%{?1:+%{1}} &&\ /usr/bin/find . -type f | while read f; do\ hardlink -c /usr/src/kernels/*%{?dist}.*/$f $f > /dev/null\ - done)\ + done;\ + /usr/bin/find /usr/src/kernels -type f -name '*.hardlink-temporary' -delete\ + )\ fi\ %{nil} diff --git a/redhat/self-test/data/centos-fce15c45d3fb.el7.spec b/redhat/self-test/data/centos-fce15c45d3fb.el7.spec index blahblah..blahblah 100755 --- a/redhat/self-test/data/centos-fce15c45d3fb.el7.spec +++ b/redhat/self-test/data/centos-fce15c45d3fb.el7.spec @@ -2649,6 +2649,10 @@ popd # a far more sophisticated hardlink implementation. # https://github.com/projectatomic/rpm-ostree/commit/58a79056a889be8814aa51f507b2c7a4dccee526 # +# The deletion of *.hardlink-temporary files is a temporary workaround +# for this bug in the hardlink binary (fixed in util-linux 2.38): +# https://github.com/util-linux/util-linux/issues/1602 +# %define kernel_devel_post() \ %{expand:%%post %{?1:%{1}-}devel}\ if [ -f /etc/sysconfig/kernel ]\ @@ -2660,7 +2664,9 @@ then\ (cd /usr/src/kernels/%{KVERREL}%{?1:+%{1}} &&\ /usr/bin/find . -type f | while read f; do\ hardlink -c /usr/src/kernels/*%{?dist}.*/$f $f > /dev/null\ - done)\ + done;\ + /usr/bin/find /usr/src/kernels -type f -name '*.hardlink-temporary' -delete\ + )\ fi\ %{nil} diff --git a/redhat/self-test/data/centos-fce15c45d3fb.fc25.spec b/redhat/self-test/data/centos-fce15c45d3fb.fc25.spec index blahblah..blahblah 100755 --- a/redhat/self-test/data/centos-fce15c45d3fb.fc25.spec +++ b/redhat/self-test/data/centos-fce15c45d3fb.fc25.spec @@ -2649,6 +2649,10 @@ popd # a far more sophisticated hardlink implementation. # https://github.com/projectatomic/rpm-ostree/commit/58a79056a889be8814aa51f507b2c7a4dccee526 # +# The deletion of *.hardlink-temporary files is a temporary workaround +# for this bug in the hardlink binary (fixed in util-linux 2.38): +# https://github.com/util-linux/util-linux/issues/1602 +# %define kernel_devel_post() \ %{expand:%%post %{?1:%{1}-}devel}\ if [ -f /etc/sysconfig/kernel ]\ @@ -2660,7 +2664,9 @@ then\ (cd /usr/src/kernels/%{KVERREL}%{?1:+%{1}} &&\ /usr/bin/find . -type f | while read f; do\ hardlink -c /usr/src/kernels/*%{?dist}.*/$f $f > /dev/null\ - done)\ + done;\ + /usr/bin/find /usr/src/kernels -type f -name '*.hardlink-temporary' -delete\ + )\ fi\ %{nil} diff --git a/redhat/self-test/data/fedora-2585cf9dfaad.el7.spec b/redhat/self-test/data/fedora-2585cf9dfaad.el7.spec index blahblah..blahblah 100755 --- a/redhat/self-test/data/fedora-2585cf9dfaad.el7.spec +++ b/redhat/self-test/data/fedora-2585cf9dfaad.el7.spec @@ -2649,6 +2649,10 @@ popd # a far more sophisticated hardlink implementation. # https://github.com/projectatomic/rpm-ostree/commit/58a79056a889be8814aa51f507b2c7a4dccee526 # +# The deletion of *.hardlink-temporary files is a temporary workaround +# for this bug in the hardlink binary (fixed in util-linux 2.38): +# https://github.com/util-linux/util-linux/issues/1602 +# %define kernel_devel_post() \ %{expand:%%post %{?1:%{1}-}devel}\ if [ -f /etc/sysconfig/kernel ]\ @@ -2660,7 +2664,9 @@ then\ (cd /usr/src/kernels/%{KVERREL}%{?1:+%{1}} &&\ /usr/bin/find . -type f | while read f; do\ hardlink -c /usr/src/kernels/*%{?dist}.*/$f $f > /dev/null\ - done)\ + done;\ + /usr/bin/find /usr/src/kernels -type f -name '*.hardlink-temporary' -delete\ + )\ fi\ %{nil} diff --git a/redhat/self-test/data/fedora-2585cf9dfaad.fc25.spec b/redhat/self-test/data/fedora-2585cf9dfaad.fc25.spec index blahblah..blahblah 100755 --- a/redhat/self-test/data/fedora-2585cf9dfaad.fc25.spec +++ b/redhat/self-test/data/fedora-2585cf9dfaad.fc25.spec @@ -2649,6 +2649,10 @@ popd # a far more sophisticated hardlink implementation. # https://github.com/projectatomic/rpm-ostree/commit/58a79056a889be8814aa51f507b2c7a4dccee526 # +# The deletion of *.hardlink-temporary files is a temporary workaround +# for this bug in the hardlink binary (fixed in util-linux 2.38): +# https://github.com/util-linux/util-linux/issues/1602 +# %define kernel_devel_post() \ %{expand:%%post %{?1:%{1}-}devel}\ if [ -f /etc/sysconfig/kernel ]\ @@ -2660,7 +2664,9 @@ then\ (cd /usr/src/kernels/%{KVERREL}%{?1:+%{1}} &&\ /usr/bin/find . -type f | while read f; do\ hardlink -c /usr/src/kernels/*%{?dist}.*/$f $f > /dev/null\ - done)\ + done;\ + /usr/bin/find /usr/src/kernels -type f -name '*.hardlink-temporary' -delete\ + )\ fi\ %{nil} diff --git a/redhat/self-test/data/fedora-78e36f3b0dae.el7.spec b/redhat/self-test/data/fedora-78e36f3b0dae.el7.spec index blahblah..blahblah 100755 --- a/redhat/self-test/data/fedora-78e36f3b0dae.el7.spec +++ b/redhat/self-test/data/fedora-78e36f3b0dae.el7.spec @@ -2649,6 +2649,10 @@ popd # a far more sophisticated hardlink implementation. # https://github.com/projectatomic/rpm-ostree/commit/58a79056a889be8814aa51f507b2c7a4dccee526 # +# The deletion of *.hardlink-temporary files is a temporary workaround +# for this bug in the hardlink binary (fixed in util-linux 2.38): +# https://github.com/util-linux/util-linux/issues/1602 +# %define kernel_devel_post() \ %{expand:%%post %{?1:%{1}-}devel}\ if [ -f /etc/sysconfig/kernel ]\ @@ -2660,7 +2664,9 @@ then\ (cd /usr/src/kernels/%{KVERREL}%{?1:+%{1}} &&\ /usr/bin/find . -type f | while read f; do\ hardlink -c /usr/src/kernels/*%{?dist}.*/$f $f > /dev/null\ - done)\ + done;\ + /usr/bin/find /usr/src/kernels -type f -name '*.hardlink-temporary' -delete\ + )\ fi\ %{nil} diff --git a/redhat/self-test/data/fedora-78e36f3b0dae.fc25.spec b/redhat/self-test/data/fedora-78e36f3b0dae.fc25.spec index blahblah..blahblah 100755 --- a/redhat/self-test/data/fedora-78e36f3b0dae.fc25.spec +++ b/redhat/self-test/data/fedora-78e36f3b0dae.fc25.spec @@ -2649,6 +2649,10 @@ popd # a far more sophisticated hardlink implementation. # https://github.com/projectatomic/rpm-ostree/commit/58a79056a889be8814aa51f507b2c7a4dccee526 # +# The deletion of *.hardlink-temporary files is a temporary workaround +# for this bug in the hardlink binary (fixed in util-linux 2.38): +# https://github.com/util-linux/util-linux/issues/1602 +# %define kernel_devel_post() \ %{expand:%%post %{?1:%{1}-}devel}\ if [ -f /etc/sysconfig/kernel ]\ @@ -2660,7 +2664,9 @@ then\ (cd /usr/src/kernels/%{KVERREL}%{?1:+%{1}} &&\ /usr/bin/find . -type f | while read f; do\ hardlink -c /usr/src/kernels/*%{?dist}.*/$f $f > /dev/null\ - done)\ + done;\ + /usr/bin/find /usr/src/kernels -type f -name '*.hardlink-temporary' -delete\ + )\ fi\ %{nil} diff --git a/redhat/self-test/data/fedora-df0cc57e057f.el7.spec b/redhat/self-test/data/fedora-df0cc57e057f.el7.spec index blahblah..blahblah 100755 --- a/redhat/self-test/data/fedora-df0cc57e057f.el7.spec +++ b/redhat/self-test/data/fedora-df0cc57e057f.el7.spec @@ -2649,6 +2649,10 @@ popd # a far more sophisticated hardlink implementation. # https://github.com/projectatomic/rpm-ostree/commit/58a79056a889be8814aa51f507b2c7a4dccee526 # +# The deletion of *.hardlink-temporary files is a temporary workaround +# for this bug in the hardlink binary (fixed in util-linux 2.38): +# https://github.com/util-linux/util-linux/issues/1602 +# %define kernel_devel_post() \ %{expand:%%post %{?1:%{1}-}devel}\ if [ -f /etc/sysconfig/kernel ]\ @@ -2660,7 +2664,9 @@ then\ (cd /usr/src/kernels/%{KVERREL}%{?1:+%{1}} &&\ /usr/bin/find . -type f | while read f; do\ hardlink -c /usr/src/kernels/*%{?dist}.*/$f $f > /dev/null\ - done)\ + done;\ + /usr/bin/find /usr/src/kernels -type f -name '*.hardlink-temporary' -delete\ + )\ fi\ %{nil} diff --git a/redhat/self-test/data/fedora-df0cc57e057f.fc25.spec b/redhat/self-test/data/fedora-df0cc57e057f.fc25.spec index blahblah..blahblah 100755 --- a/redhat/self-test/data/fedora-df0cc57e057f.fc25.spec +++ b/redhat/self-test/data/fedora-df0cc57e057f.fc25.spec @@ -2649,6 +2649,10 @@ popd # a far more sophisticated hardlink implementation. # https://github.com/projectatomic/rpm-ostree/commit/58a79056a889be8814aa51f507b2c7a4dccee526 # +# The deletion of *.hardlink-temporary files is a temporary workaround +# for this bug in the hardlink binary (fixed in util-linux 2.38): +# https://github.com/util-linux/util-linux/issues/1602 +# %define kernel_devel_post() \ %{expand:%%post %{?1:%{1}-}devel}\ if [ -f /etc/sysconfig/kernel ]\ @@ -2660,7 +2664,9 @@ then\ (cd /usr/src/kernels/%{KVERREL}%{?1:+%{1}} &&\ /usr/bin/find . -type f | while read f; do\ hardlink -c /usr/src/kernels/*%{?dist}.*/$f $f > /dev/null\ - done)\ + done;\ + /usr/bin/find /usr/src/kernels -type f -name '*.hardlink-temporary' -delete\ + )\ fi\ %{nil} diff --git a/redhat/self-test/data/fedora-fce15c45d3fb.el7.spec b/redhat/self-test/data/fedora-fce15c45d3fb.el7.spec index blahblah..blahblah 100755 --- a/redhat/self-test/data/fedora-fce15c45d3fb.el7.spec +++ b/redhat/self-test/data/fedora-fce15c45d3fb.el7.spec @@ -2649,6 +2649,10 @@ popd # a far more sophisticated hardlink implementation. # https://github.com/projectatomic/rpm-ostree/commit/58a79056a889be8814aa51f507b2c7a4dccee526 # +# The deletion of *.hardlink-temporary files is a temporary workaround +# for this bug in the hardlink binary (fixed in util-linux 2.38): +# https://github.com/util-linux/util-linux/issues/1602 +# %define kernel_devel_post() \ %{expand:%%post %{?1:%{1}-}devel}\ if [ -f /etc/sysconfig/kernel ]\ @@ -2660,7 +2664,9 @@ then\ (cd /usr/src/kernels/%{KVERREL}%{?1:+%{1}} &&\ /usr/bin/find . -type f | while read f; do\ hardlink -c /usr/src/kernels/*%{?dist}.*/$f $f > /dev/null\ - done)\ + done;\ + /usr/bin/find /usr/src/kernels -type f -name '*.hardlink-temporary' -delete\ + )\ fi\ %{nil} diff --git a/redhat/self-test/data/fedora-fce15c45d3fb.fc25.spec b/redhat/self-test/data/fedora-fce15c45d3fb.fc25.spec index blahblah..blahblah 100755 --- a/redhat/self-test/data/fedora-fce15c45d3fb.fc25.spec +++ b/redhat/self-test/data/fedora-fce15c45d3fb.fc25.spec @@ -2649,6 +2649,10 @@ popd # a far more sophisticated hardlink implementation. # https://github.com/projectatomic/rpm-ostree/commit/58a79056a889be8814aa51f507b2c7a4dccee526 # +# The deletion of *.hardlink-temporary files is a temporary workaround +# for this bug in the hardlink binary (fixed in util-linux 2.38): +# https://github.com/util-linux/util-linux/issues/1602 +# %define kernel_devel_post() \ %{expand:%%post %{?1:%{1}-}devel}\ if [ -f /etc/sysconfig/kernel ]\ @@ -2660,7 +2664,9 @@ then\ (cd /usr/src/kernels/%{KVERREL}%{?1:+%{1}} &&\ /usr/bin/find . -type f | while read f; do\ hardlink -c /usr/src/kernels/*%{?dist}.*/$f $f > /dev/null\ - done)\ + done;\ + /usr/bin/find /usr/src/kernels -type f -name '*.hardlink-temporary' -delete\ + )\ fi\ %{nil} diff --git a/redhat/self-test/data/rhel-2585cf9dfaad.el7.spec b/redhat/self-test/data/rhel-2585cf9dfaad.el7.spec index blahblah..blahblah 100755 --- a/redhat/self-test/data/rhel-2585cf9dfaad.el7.spec +++ b/redhat/self-test/data/rhel-2585cf9dfaad.el7.spec @@ -2649,6 +2649,10 @@ popd # a far more sophisticated hardlink implementation. # https://github.com/projectatomic/rpm-ostree/commit/58a79056a889be8814aa51f507b2c7a4dccee526 # +# The deletion of *.hardlink-temporary files is a temporary workaround +# for this bug in the hardlink binary (fixed in util-linux 2.38): +# https://github.com/util-linux/util-linux/issues/1602 +# %define kernel_devel_post() \ %{expand:%%post %{?1:%{1}-}devel}\ if [ -f /etc/sysconfig/kernel ]\ @@ -2660,7 +2664,9 @@ then\ (cd /usr/src/kernels/%{KVERREL}%{?1:+%{1}} &&\ /usr/bin/find . -type f | while read f; do\ hardlink -c /usr/src/kernels/*%{?dist}.*/$f $f > /dev/null\ - done)\ + done;\ + /usr/bin/find /usr/src/kernels -type f -name '*.hardlink-temporary' -delete\ + )\ fi\ %{nil} diff --git a/redhat/self-test/data/rhel-2585cf9dfaad.fc25.spec b/redhat/self-test/data/rhel-2585cf9dfaad.fc25.spec index blahblah..blahblah 100755 --- a/redhat/self-test/data/rhel-2585cf9dfaad.fc25.spec +++ b/redhat/self-test/data/rhel-2585cf9dfaad.fc25.spec @@ -2649,6 +2649,10 @@ popd # a far more sophisticated hardlink implementation. # https://github.com/projectatomic/rpm-ostree/commit/58a79056a889be8814aa51f507b2c7a4dccee526 # +# The deletion of *.hardlink-temporary files is a temporary workaround +# for this bug in the hardlink binary (fixed in util-linux 2.38): +# https://github.com/util-linux/util-linux/issues/1602 +# %define kernel_devel_post() \ %{expand:%%post %{?1:%{1}-}devel}\ if [ -f /etc/sysconfig/kernel ]\ @@ -2660,7 +2664,9 @@ then\ (cd /usr/src/kernels/%{KVERREL}%{?1:+%{1}} &&\ /usr/bin/find . -type f | while read f; do\ hardlink -c /usr/src/kernels/*%{?dist}.*/$f $f > /dev/null\ - done)\ + done;\ + /usr/bin/find /usr/src/kernels -type f -name '*.hardlink-temporary' -delete\ + )\ fi\ %{nil} diff --git a/redhat/self-test/data/rhel-78e36f3b0dae.el7.spec b/redhat/self-test/data/rhel-78e36f3b0dae.el7.spec index blahblah..blahblah 100755 --- a/redhat/self-test/data/rhel-78e36f3b0dae.el7.spec +++ b/redhat/self-test/data/rhel-78e36f3b0dae.el7.spec @@ -2649,6 +2649,10 @@ popd # a far more sophisticated hardlink implementation. # https://github.com/projectatomic/rpm-ostree/commit/58a79056a889be8814aa51f507b2c7a4dccee526 # +# The deletion of *.hardlink-temporary files is a temporary workaround +# for this bug in the hardlink binary (fixed in util-linux 2.38): +# https://github.com/util-linux/util-linux/issues/1602 +# %define kernel_devel_post() \ %{expand:%%post %{?1:%{1}-}devel}\ if [ -f /etc/sysconfig/kernel ]\ @@ -2660,7 +2664,9 @@ then\ (cd /usr/src/kernels/%{KVERREL}%{?1:+%{1}} &&\ /usr/bin/find . -type f | while read f; do\ hardlink -c /usr/src/kernels/*%{?dist}.*/$f $f > /dev/null\ - done)\ + done;\ + /usr/bin/find /usr/src/kernels -type f -name '*.hardlink-temporary' -delete\ + )\ fi\ %{nil} diff --git a/redhat/self-test/data/rhel-78e36f3b0dae.fc25.spec b/redhat/self-test/data/rhel-78e36f3b0dae.fc25.spec index blahblah..blahblah 100755 --- a/redhat/self-test/data/rhel-78e36f3b0dae.fc25.spec +++ b/redhat/self-test/data/rhel-78e36f3b0dae.fc25.spec @@ -2649,6 +2649,10 @@ popd # a far more sophisticated hardlink implementation. # https://github.com/projectatomic/rpm-ostree/commit/58a79056a889be8814aa51f507b2c7a4dccee526 # +# The deletion of *.hardlink-temporary files is a temporary workaround +# for this bug in the hardlink binary (fixed in util-linux 2.38): +# https://github.com/util-linux/util-linux/issues/1602 +# %define kernel_devel_post() \ %{expand:%%post %{?1:%{1}-}devel}\ if [ -f /etc/sysconfig/kernel ]\ @@ -2660,7 +2664,9 @@ then\ (cd /usr/src/kernels/%{KVERREL}%{?1:+%{1}} &&\ /usr/bin/find . -type f | while read f; do\ hardlink -c /usr/src/kernels/*%{?dist}.*/$f $f > /dev/null\ - done)\ + done;\ + /usr/bin/find /usr/src/kernels -type f -name '*.hardlink-temporary' -delete\ + )\ fi\ %{nil} -- https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1811 _______________________________________________ kernel mailing list -- kernel@lists.fedoraproject.org To unsubscribe send an email to kernel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/kernel@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure