Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package gn for openSUSE:Factory checked in at 2021-12-08 22:08:25 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gn (Old) and /work/SRC/openSUSE:Factory/.gn.new.31177 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gn" Wed Dec 8 22:08:25 2021 rev:13 rq:935807 version:0.20210811 Changes: -------- --- /work/SRC/openSUSE:Factory/gn/gn.changes 2021-09-13 16:25:08.786787390 +0200 +++ /work/SRC/openSUSE:Factory/.gn.new.31177/gn.changes 2021-12-08 22:08:31.534850468 +0100 @@ -1,0 +2,7 @@ +Sun Dec 5 15:41:02 UTC 2021 - Callum Farmer <gm...@opensuse.org> + +- Add deprecated_copy.patch: fix deprecated copy GCC warnings +- Go back to GCC +- Use newer libs and GCC on Leap 15.3 & 15.4 + +------------------------------------------------------------------- New: ---- deprecated_copy.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gn.spec ++++++ --- /var/tmp/diff_new_pack.i5UIF7/_old 2021-12-08 22:08:32.214850787 +0100 +++ /var/tmp/diff_new_pack.i5UIF7/_new 2021-12-08 22:08:32.218850789 +0100 @@ -15,9 +15,6 @@ # Please submit bugfixes or comments via https://bugs.opensuse.org/ # -%ifnarch riscv64 -%define with_lto 1 -%endif Name: gn Version: 0.20210811 Release: 0 @@ -25,12 +22,12 @@ License: BSD-3-Clause URL: https://gn.googlesource.com/ Source0: %{name}-%{version}.tar.xz -BuildRequires: clang -BuildRequires: libstdc++-devel -%ifnarch riscv64 -BuildRequires: lld +Patch0: deprecated_copy.patch +%if %{?suse_version} < 1550 +BuildRequires: gcc10-c++ +%else +BuildRequires: gcc-c++ %endif -BuildRequires: llvm BuildRequires: ninja BuildRequires: python3-base @@ -38,21 +35,22 @@ GN is a meta-build system that generates build files for Ninja. %prep -%autosetup +%autosetup -p1 %build -%define _lto_cflags %{nil} ARCH_FLAGS="`echo %{optflags} | sed -e 's/-O2//g'`" -export CXX=clang++ -export AR=llvm-ar -export CXXFLAGS="${ARCH_FLAGS} -fPIE" -export LDFLAGS="%{?with_lto:-fuse-ld=lld} -Wl,--build-id=sha1 -pie" +%if 0%{?suse_version} < 1550 +export CXX=g++-10 +%else +export CXX=g++ +%endif +export AR=ar +export CXXFLAGS="${ARCH_FLAGS}" # bootstrap python3 build/gen.py \ --no-strip \ --no-last-commit-position \ - --no-static-libstdc++ \ - %{?with_lto:--use-lto} + --no-static-libstdc++ PV=%{version} cat >out/last_commit_position.h <<-EOF #ifndef OUT_LAST_COMMIT_POSITION_H_ ++++++ deprecated_copy.patch ++++++ GCC: fix deprecated copy warnings As of C++11, implicit generation of the copy assignment operator is declared as deprecated. This creates a lot of warnings with GCC. Change-Id: I9ed294924bba697e85df334d93b534713fb61c4a Reviewed-on: https://gn-review.googlesource.com/c/gn/+/12360 Reviewed-by: Brett Wilson <bre...@chromium.org> Commit-Queue: Brett Wilson <bre...@chromium.org> diff --git a/AUTHORS b/AUTHORS index 2e9eb5a..755bfd4 100644 --- a/AUTHORS +++ b/AUTHORS @@ -40,6 +40,7 @@ Raphael Kubo da Costa <raphael.kubo.da.co...@intel.com> Riku Voipio <riku.voi...@linaro.org> Saikrishna Arcot <saiarcot...@gmail.com> +Stephan Hartmann <sth...@googlemail.com> Tim Niederhausen <t...@rnc-ag.de> Tomas Popela <tomas.pop...@gmail.com> Tripta Gupta <tript...@samsung.com> diff --git a/src/gn/err.h b/src/gn/err.h index 6bd2f02..f9a7d76 100644 --- a/src/gn/err.h +++ b/src/gn/err.h @@ -59,6 +59,8 @@ ~Err(); + Err& operator=(const Err&) = default; + bool has_error() const { return has_error_; } const Location& location() const { return location_; } const std::string& message() const { return message_; } diff --git a/src/gn/label_pattern.h b/src/gn/label_pattern.h index fbb11fa..7444ae2 100644 --- a/src/gn/label_pattern.h +++ b/src/gn/label_pattern.h @@ -35,6 +35,8 @@ LabelPattern(const LabelPattern& other); ~LabelPattern(); + LabelPattern& operator=(const LabelPattern&) = default; + // Converts the given input string to a pattern. This does special stuff // to treat the pattern as a label. Sets the error on failure. static LabelPattern GetPattern(const SourceDir& current_dir, diff --git a/src/gn/substitution_list.h b/src/gn/substitution_list.h index c1985bb..559b25d 100644 --- a/src/gn/substitution_list.h +++ b/src/gn/substitution_list.h @@ -17,6 +17,8 @@ SubstitutionList(const SubstitutionList& other); ~SubstitutionList(); + SubstitutionList& operator=(const SubstitutionList&) = default; + bool Parse(const Value& value, Err* err); bool Parse(const std::vector<std::string>& values, const ParseNode* origin, diff --git a/src/gn/substitution_pattern.h b/src/gn/substitution_pattern.h index f6ad22e..48f4eb7 100644 --- a/src/gn/substitution_pattern.h +++ b/src/gn/substitution_pattern.h @@ -37,6 +37,8 @@ SubstitutionPattern(const SubstitutionPattern& other); ~SubstitutionPattern(); + SubstitutionPattern& operator=(const SubstitutionPattern&) = default; + // Parses the given string and fills in the pattern. The pattern must only // be initialized once. On failure, returns false and sets the error. bool Parse(const Value& value, Err* err);