Hello community, here is the log from the commit of package gn for openSUSE:Leap:15.2 checked in at 2020-04-12 15:39:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2/gn (Old) and /work/SRC/openSUSE:Leap:15.2/.gn.new.3248 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gn" Sun Apr 12 15:39:43 2020 rev:3 rq:793361 version:0.1726 Changes: -------- --- /work/SRC/openSUSE:Leap:15.2/gn/gn.changes 2020-01-15 15:04:21.901870818 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.gn.new.3248/gn.changes 2020-04-12 15:39:44.114073171 +0200 @@ -1,0 +2,38 @@ +Thu Apr 2 11:11:45 UTC 2020 - Tomáš Chvátal <[email protected]> + +- Update to 0.1726: + * no upstream changelog +- Rebase patches: + * gn-always-python3.patch + * gn-flags.patch + +------------------------------------------------------------------- +Wed Oct 23 10:40:06 UTC 2019 - Tomáš Chvátal <[email protected]> + +- Update to 0.1616: + * no upstream changelog +- Remove merged patch gn-add_missing_arm_files.patch +- Add patch to always use python3 in tests: + * gn-always-python3.patch + +------------------------------------------------------------------- +Tue May 7 08:26:48 UTC 2019 - Tomáš Chvátal <[email protected]> + +- Update to 0.1544: + * No upstream changelog +- Rebase patch gn-flags.patch + +------------------------------------------------------------------- +Fri Nov 9 08:44:22 UTC 2018 - Guillaume GARDET <[email protected]> + +- Add patch to add missing files to fix armv7 build: + * gn-add_missing_arm_files.patch + +------------------------------------------------------------------- +Tue Oct 30 14:50:22 UTC 2018 - Tomáš Chvátal <[email protected]> + +- Version update to 0.1479: + * No upstream changelog +- Rebase patch gn-flags.patch + +------------------------------------------------------------------- Old: ---- gn-0.1463.tar.gz New: ---- gn-0.1726.tar.xz gn-always-python3.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gn.spec ++++++ --- /var/tmp/diff_new_pack.R4Poxu/_old 2020-04-12 15:39:44.682073601 +0200 +++ /var/tmp/diff_new_pack.R4Poxu/_new 2020-04-12 15:39:44.682073601 +0200 @@ -1,7 +1,7 @@ # # spec file for package gn # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,25 +12,25 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: gn -Version: 0.1463 +Version: 0.1726 Release: 0 Summary: A meta-build system that generates build files for Ninja License: BSD-3-Clause -Group: Development/Tools/Building URL: https://gn.googlesource.com/ -Source: https://dev.gentoo.org/~floppym/dist/%{name}-%{version}.tar.gz +Source: https://dev.gentoo.org/~floppym/dist/%{name}-%{version}.tar.xz Patch0: gn-flags.patch +Patch1: gn-always-python3.patch BuildRequires: gcc-c++ -%if 0%{suse_version} < 1500 +BuildRequires: ninja +BuildRequires: python3-base +%if 0%{?suse_version} < 1500 BuildRequires: gcc7-c++ %endif -BuildRequires: ninja -BuildRequires: python2-base %description GN is a meta-build system that generates build files for Ninja. @@ -38,21 +38,27 @@ %prep %setup -q %patch0 -p1 +%patch1 -p1 %build export CC=gcc export CXX=g++ export AR=ar -%if 0%{suse_version} < 1500 +%if 0%{?suse_version} < 1500 export CC=gcc-7 export CXX=g++-7 %endif export CXXFLAGS="%{optflags}" # bootstrap -python2 build/gen.py --no-sysroot --no-last-commit-position +python3 build/gen.py \ + --no-strip \ + --no-last-commit-position \ + --no-static-libstdc++ +PV=%{version} cat >out/last_commit_position.h <<-EOF #ifndef OUT_LAST_COMMIT_POSITION_H_ #define OUT_LAST_COMMIT_POSITION_H_ + #define LAST_COMMIT_POSITION_NUM ${PV##0.} #define LAST_COMMIT_POSITION "${PV}" #endif // OUT_LAST_COMMIT_POSITION_H_ EOF ++++++ gn-always-python3.patch ++++++ Index: gn-0.1616/src/gn/exec_process_unittest.cc =================================================================== --- gn-0.1616.orig/src/gn/exec_process_unittest.cc +++ gn-0.1616/src/gn/exec_process_unittest.cc @@ -33,7 +33,7 @@ bool ExecPython(const std::string& comma args.push_back(L"-c"); args.push_back(base::UTF8ToUTF16(command)); #else - args.push_back("python"); + args.push_back("python3"); args.push_back("-c"); args.push_back(command); #endif ++++++ gn-flags.patch ++++++ --- /var/tmp/diff_new_pack.R4Poxu/_old 2020-04-12 15:39:44.710073622 +0200 +++ /var/tmp/diff_new_pack.R4Poxu/_new 2020-04-12 15:39:44.710073622 +0200 @@ -1,57 +1,43 @@ -diff --git a/build/gen.py b/build/gen.py -index 76f88e84..5e088b2a 100755 ---- a/build/gen.py -+++ b/build/gen.py -@@ -326,9 +326,6 @@ def WriteGNNinja(path, platform, host, options, linux_sysroot): +From bedf2161dea8cf4813fd14891feee2e8e8d5bf28 Mon Sep 17 00:00:00 2001 +From: Mike Gilbert <[email protected]> +Date: Sun, 14 Oct 2018 20:34:07 -0400 +Subject: [PATCH] Remove unwanted cflags/ldflags parameters + +--- + build/gen.py | 9 --------- + 1 file changed, 9 deletions(-) + +Index: gn-0.1726/build/gen.py +=================================================================== +--- gn-0.1726.orig/build/gen.py ++++ gn-0.1726/build/gen.py +@@ -288,11 +288,6 @@ def WriteGNNinja(path, platform, host, o if options.debug: cflags.extend(['-O0', '-g']) else: - cflags.append('-DNDEBUG') - cflags.append('-O3') +- if options.no_strip: +- cflags.append('-g') - ldflags.append('-O3') # Use -fdata-sections and -ffunction-sections to place each function # or data item into its own section so --gc-sections can eliminate any # unused functions and data items. -@@ -340,14 +337,6 @@ def WriteGNNinja(path, platform, host, options, linux_sysroot): - # Garbage collection is done by default on aix. - ldflags.append('-Wl,--gc-sections') - -- # Omit all symbol information from the output file. -- if platform.is_darwin(): -- ldflags.append('-Wl,-S') -- elif platform.is_aix(): -- ldflags.append('-Wl,-s') -- else: -- ldflags.append('-Wl,-strip-all') -- - # Enable identical code-folding. - if options.use_icf: - ldflags.append('-Wl,--icf=all') -@@ -356,26 +345,17 @@ def WriteGNNinja(path, platform, host, options, linux_sysroot): +@@ -325,7 +320,6 @@ def WriteGNNinja(path, platform, host, o '-D_FILE_OFFSET_BITS=64', '-D__STDC_CONSTANT_MACROS', '-D__STDC_FORMAT_MACROS', '-pthread', - '-pipe', '-fno-exceptions', '-fno-rtti', - ]) - cflags_cc.extend(['-std=c++14', '-Wno-c++11-narrowing']) -+ ldflags.append('-pthread') + '-fdiagnostics-color', +@@ -341,9 +335,6 @@ def WriteGNNinja(path, platform, host, o + if not options.no_static_libstdcpp: + ldflags.append('-static-libstdc++') - if platform.is_linux(): - if linux_sysroot: - # Use the sid sysroot that UpdateLinuxSysroot() downloads. - cflags.append('--sysroot=' + linux_sysroot) - ldflags.append('--sysroot=' + linux_sysroot) -- ldflags.extend([ -- '-static-libstdc++', -- '-Wl,--as-needed', -- ]) -- libs.extend([ -- # These are needed by libc++. -- '-ldl', -- '-lpthread', -- ]) +- # This is needed by libc++. +- if not platform.is_mingw(): +- libs.append('-ldl') elif platform.is_darwin(): min_mac_version_flag = '-mmacosx-version-min=10.9' cflags.append(min_mac_version_flag)
