Fix /usr/share/gdb/auto-load/ (safely) dangling symlinks.
- Fix /usr/share/gdb/system-gdbinit/ timestamps causing non-matching *.py[oc].
This commit is contained in:
parent
7082135fc2
commit
fbd3253d15
13
gdb.spec
13
gdb.spec
@ -27,7 +27,7 @@ Version: 7.7.1
|
|||||||
|
|
||||||
# The release always contains a leading reserved number, start it at 1.
|
# The release always contains a leading reserved number, start it at 1.
|
||||||
# `upstream' is not a part of `name' to stay fully rpm dependencies compatible for the testing.
|
# `upstream' is not a part of `name' to stay fully rpm dependencies compatible for the testing.
|
||||||
Release: 18%{?dist}
|
Release: 19%{?dist}
|
||||||
|
|
||||||
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and BSD and Public Domain and GFDL
|
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and BSD and Public Domain and GFDL
|
||||||
Group: Development/Debuggers
|
Group: Development/Debuggers
|
||||||
@ -1154,16 +1154,17 @@ done
|
|||||||
test ! -e $RPM_BUILD_ROOT%{_datadir}/gdb/python/libstdcxx
|
test ! -e $RPM_BUILD_ROOT%{_datadir}/gdb/python/libstdcxx
|
||||||
cp -a $RPM_BUILD_DIR/%{gdb_src}/%{libstdcxxpython}/libstdcxx \
|
cp -a $RPM_BUILD_DIR/%{gdb_src}/%{libstdcxxpython}/libstdcxx \
|
||||||
$RPM_BUILD_ROOT%{_datadir}/gdb/python/libstdcxx
|
$RPM_BUILD_ROOT%{_datadir}/gdb/python/libstdcxx
|
||||||
for i in `find $RPM_BUILD_ROOT%{_datadir}/gdb/python -name "*.py"` \
|
for i in `find $RPM_BUILD_ROOT%{_datadir}/gdb -name "*.py"`; do
|
||||||
`find $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load%{_prefix} -name "*.py"` \
|
|
||||||
; do
|
|
||||||
# Files come from gdb-archer.patch and can be also further patched.
|
# Files come from gdb-archer.patch and can be also further patched.
|
||||||
|
# They are also installed by install(1) not preserving the timestamps.
|
||||||
touch -r $RPM_BUILD_DIR/%{gdb_src}/gdb/ChangeLog $i
|
touch -r $RPM_BUILD_DIR/%{gdb_src}/gdb/ChangeLog $i
|
||||||
done
|
done
|
||||||
%else # 0%{!?rhel:1} || 0%{?rhel} > 6
|
%else # 0%{!?rhel:1} || 0%{?rhel} > 6
|
||||||
# BZ 999645: /usr/share/gdb/auto-load/ needs filesystem symlinks
|
# BZ 999645: /usr/share/gdb/auto-load/ needs filesystem symlinks
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load
|
||||||
for i in $(echo bin lib $(basename %{_libdir}) sbin|tr ' ' '\n'|sort -u);do
|
for i in $(echo bin lib $(basename %{_libdir}) sbin|tr ' ' '\n'|sort -u);do
|
||||||
|
# mkdir to satisfy dangling symlinks build check.
|
||||||
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/gdb/auto-load/%{_root_prefix}/$i
|
||||||
ln -s $(echo %{_root_prefix}|sed 's#^/*##')/$i \
|
ln -s $(echo %{_root_prefix}|sed 's#^/*##')/$i \
|
||||||
$RPM_BUILD_ROOT%{_datadir}/gdb/auto-load/$i
|
$RPM_BUILD_ROOT%{_datadir}/gdb/auto-load/$i
|
||||||
done
|
done
|
||||||
@ -1309,6 +1310,10 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jun 3 2014 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.7.1-19.fc21
|
||||||
|
- Fix /usr/share/gdb/auto-load/ (safely) dangling symlinks.
|
||||||
|
- Fix /usr/share/gdb/system-gdbinit/ timestamps causing non-matching *.py[oc].
|
||||||
|
|
||||||
* Tue Jun 3 2014 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.7.1-18.fc21
|
* Tue Jun 3 2014 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.7.1-18.fc21
|
||||||
- [ppc64le testsuite] Add comments about prelink+valgrind not yet ported.
|
- [ppc64le testsuite] Add comments about prelink+valgrind not yet ported.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user