!40 Remove boost.thread linking script and clean up dependencies
From: @sdlzx Reviewed-by: @liqingqing_1229 Signed-off-by: @liqingqing_1229
This commit is contained in:
commit
61a7253e25
17
boost.spec
17
boost.spec
@ -18,13 +18,12 @@
|
|||||||
|
|
||||||
Name: boost
|
Name: boost
|
||||||
Version: 1.77.0
|
Version: 1.77.0
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: The free peer-reviewed portable C++ source libraries
|
Summary: The free peer-reviewed portable C++ source libraries
|
||||||
License: Boost Software License 1.0
|
License: Boost Software License 1.0
|
||||||
URL: http://www.boost.org
|
URL: http://www.boost.org
|
||||||
Source0: https://boostorg.jfrog.io/ui/native/main/release/1.77.0/source/%{name}_%{version_enc}.tar.gz
|
Source0: https://boostorg.jfrog.io/ui/native/main/release/1.77.0/source/%{name}_%{version_enc}.tar.gz
|
||||||
Source1: libboost_thread.so
|
Source1: bjam
|
||||||
Source2: bjam
|
|
||||||
|
|
||||||
# https://bugzilla.redhat.com/show_bug.cgi?id=828856
|
# https://bugzilla.redhat.com/show_bug.cgi?id=828856
|
||||||
# https://bugzilla.redhat.com/show_bug.cgi?id=828857
|
# https://bugzilla.redhat.com/show_bug.cgi?id=828857
|
||||||
@ -66,8 +65,8 @@ Requires: %{name}-type_erasure%{?_isa} = %{version}-%{release}
|
|||||||
Requires: %{name}-wave%{?_isa} = %{version}-%{release}
|
Requires: %{name}-wave%{?_isa} = %{version}-%{release}
|
||||||
Requires: %{name}-contract%{?_isa} = %{version}-%{release}
|
Requires: %{name}-contract%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
BuildRequires: gcc-c++ m4
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: libstdc++-devel bzip2-devel zlib-devel libicu-devel
|
BuildRequires: bzip2-devel zlib-devel libicu-devel
|
||||||
%if %{with python3}
|
%if %{with python3}
|
||||||
BuildRequires: python3-devel python3-numpy
|
BuildRequires: python3-devel python3-numpy
|
||||||
%endif
|
%endif
|
||||||
@ -629,8 +628,6 @@ else
|
|||||||
DEF=U
|
DEF=U
|
||||||
fi
|
fi
|
||||||
|
|
||||||
m4 -${DEF}HAS_ATOMIC_FLAG_LOCKFREE -DVERSION=%{version} %{SOURCE1} > $(basename %{SOURCE1})
|
|
||||||
|
|
||||||
%if %{with openmpi} || %{with mpich}
|
%if %{with openmpi} || %{with mpich}
|
||||||
module purge ||:
|
module purge ||:
|
||||||
%endif
|
%endif
|
||||||
@ -745,7 +742,6 @@ echo ============================= install serial ==================
|
|||||||
|
|
||||||
[ -f $RPM_BUILD_ROOT%{_libdir}/libboost_thread.so ]
|
[ -f $RPM_BUILD_ROOT%{_libdir}/libboost_thread.so ]
|
||||||
rm -f $RPM_BUILD_ROOT%{_libdir}/libboost_thread.so
|
rm -f $RPM_BUILD_ROOT%{_libdir}/libboost_thread.so
|
||||||
install -p -m 644 $(basename %{SOURCE1}) $RPM_BUILD_ROOT%{_libdir}/
|
|
||||||
|
|
||||||
rm -r $RPM_BUILD_ROOT/%{_libdir}/cmake
|
rm -r $RPM_BUILD_ROOT/%{_libdir}/cmake
|
||||||
|
|
||||||
@ -761,7 +757,7 @@ echo ============================= install Boost.Build ==================
|
|||||||
rm -f $RPM_BUILD_ROOT%{_bindir}/b2
|
rm -f $RPM_BUILD_ROOT%{_bindir}/b2
|
||||||
|
|
||||||
install -m 755 %{_builddir}/%{name}_%{version_enc}/tools/build/b2 $RPM_BUILD_ROOT%{_bindir}/bjam
|
install -m 755 %{_builddir}/%{name}_%{version_enc}/tools/build/b2 $RPM_BUILD_ROOT%{_bindir}/bjam
|
||||||
%{__install} -p -m 644 %{SOURCE2} -D $RPM_BUILD_ROOT%{_mandir}/man1/bjam.1
|
%{__install} -p -m 644 %{SOURCE1} -D $RPM_BUILD_ROOT%{_mandir}/man1/bjam.1
|
||||||
)
|
)
|
||||||
|
|
||||||
echo ============================= install Boost.QuickBook ==================
|
echo ============================= install Boost.QuickBook ==================
|
||||||
@ -1079,6 +1075,9 @@ fi
|
|||||||
%{_mandir}/man1/bjam.1*
|
%{_mandir}/man1/bjam.1*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Sep 26 2021 Liu Zixian <liuzixian4@huawei.com> - 1.77.0-3
|
||||||
|
- Remove linking script which is fixed in upstream PR266
|
||||||
|
|
||||||
* Wed Sep 22 2021 Liu Zixian <liuzixian4@huawei.com> - 1.77.0-2
|
* Wed Sep 22 2021 Liu Zixian <liuzixian4@huawei.com> - 1.77.0-2
|
||||||
- Correct license name for ci.
|
- Correct license name for ci.
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +0,0 @@
|
|||||||
changequote(`[', `]')dnl
|
|
||||||
/* GNU ld script
|
|
||||||
|
|
||||||
Boost.Thread header files pull in enough of Boost.System that
|
|
||||||
symbols from the latter library are referenced by a compiled object
|
|
||||||
that includes Boost.Thread headers. libboost_system-mt.so is among
|
|
||||||
libboost_thread-mt.so's DT_NEEDED, but program linker requires that
|
|
||||||
missing symbols are satisfied by direct dependency, not by a
|
|
||||||
transitive one. Hence this linker script, which brings in the
|
|
||||||
Boost.System DSO. */
|
|
||||||
|
|
||||||
INPUT(libboost_thread.so.VERSION)
|
|
||||||
INPUT(libboost_system.so.VERSION)
|
|
||||||
ifdef([HAS_ATOMIC_FLAG_LOCKFREE],[],
|
|
||||||
[
|
|
||||||
/* If the given architecture doesn't have lock-free implementation of
|
|
||||||
boost::atomic_flag, the dependency on Boost.Atomic may leak from
|
|
||||||
the header files to client binaries. */
|
|
||||||
|
|
||||||
INPUT(libboost_atomic.so.VERSION)
|
|
||||||
])dnl
|
|
||||||
Loading…
x
Reference in New Issue
Block a user