Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package mold for openSUSE:Factory checked in at 2022-02-24 18:21:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mold (Old) and /work/SRC/openSUSE:Factory/.mold.new.1958 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mold" Thu Feb 24 18:21:07 2022 rev:7 rq:957354 version:1.1 Changes: -------- --- /work/SRC/openSUSE:Factory/mold/mold.changes 2022-02-21 17:48:39.691630842 +0100 +++ /work/SRC/openSUSE:Factory/.mold.new.1958/mold.changes 2022-02-24 18:24:33.426641234 +0100 @@ -1,0 +2,5 @@ +Wed Feb 23 23:29:01 UTC 2022 - Christoph G <f...@grueninger.de> + +- Fix building for openSUSE Leap 15.3 and 15.4. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mold.spec ++++++ --- /var/tmp/diff_new_pack.ivAlLf/_old 2022-02-24 18:24:33.878641116 +0100 +++ /var/tmp/diff_new_pack.ivAlLf/_new 2022-02-24 18:24:33.882641115 +0100 @@ -24,16 +24,24 @@ URL: https://github.com/rui314/mold Source: https://github.com/rui314/mold/archive/v%{version}/mold-%{version}.tar.gz BuildRequires: cmake +%if %{suse_version} < 1550 +BuildRequires: gcc10-c++ +%else +# These libraries are not present for openSUSE Leap BuildRequires: gcc-c++ BuildRequires: mimalloc-devel -BuildRequires: openssl-devel -BuildRequires: tbb-devel BuildRequires: tbb-devel +%endif +BuildRequires: openssl-devel BuildRequires: xxhash-devel BuildRequires: zlib-devel PreReq: update-alternatives +%if %{suse_version} < 1550 +%define build_args SYSTEM_XXHASH=1 +%else %define build_args SYSTEM_TBB=1 SYSTEM_XXHASH=1 SYSTEM_MIMALLOC=1 +%endif %description mold is a faster drop-in replacement for existing Unix linkers. @@ -46,8 +54,13 @@ %autosetup -p1 %build +%if %{suse_version} < 1550 +export CC=gcc-10 +export CXX=g++-10 +%else export CC=gcc export CXX=g++ +%endif export CFLAGS="%{optflags} -Wno-sign-compare" export CXXFLAGS="${CFLAGS}" export MANDIR=%{_mandir} @@ -78,8 +91,14 @@ %{_bindir}/ld.mold %{_bindir}/ld64.mold %dir %{_libdir}/mold +%{_prefix}/libexec/mold/ld +%if %{suse_version} < 1550 +%dir %{_prefix}/libexec +%dir %{_prefix}/libexec/mold +%else %{_libexecdir}/mold/ld %dir %{_libexecdir}/mold +%endif %{_libdir}/mold/mold-wrapper.so %{_mandir}/man1/mold.1.gz