commit gn for openSUSE:Factory

2020-11-06 Thread root
Hello community,

here is the log from the commit of package gn for openSUSE:Factory checked in 
at 2020-11-06 23:43:26

Comparing /work/SRC/openSUSE:Factory/gn (Old)
 and  /work/SRC/openSUSE:Factory/.gn.new.11331 (New)


Package is "gn"

Fri Nov  6 23:43:26 2020 rev:10 rq:845208 version:0.1807

Changes:

--- /work/SRC/openSUSE:Factory/gn/gn.changes2020-10-12 13:46:53.853911161 
+0200
+++ /work/SRC/openSUSE:Factory/.gn.new.11331/gn.changes 2020-11-06 
23:43:32.539443192 +0100
@@ -1,0 +2,5 @@
+Sat Oct 31 13:43:03 UTC 2020 - Callum Farmer 
+
+- Add riscv.patch to add support for RISCV
+
+---

New:

  riscv.patch



Other differences:
--
++ gn.spec ++
--- /var/tmp/diff_new_pack.YUOR4C/_old  2020-11-06 23:43:33.315441700 +0100
+++ /var/tmp/diff_new_pack.YUOR4C/_new  2020-11-06 23:43:33.319441692 +0100
@@ -25,6 +25,7 @@
 Source: https://dev.gentoo.org/~floppym/dist/%{name}-%{version}.tar.xz
 Patch0: gn-flags.patch
 Patch1: gn-always-python3.patch
+Patch2: riscv.patch
 BuildRequires:  gcc-c++
 BuildRequires:  ninja
 BuildRequires:  python3-base
@@ -39,6 +40,7 @@
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 export CC=gcc

++ riscv.patch ++
Index: gn-0.1726/src/util/build_config.h
===
--- gn-0.1726.orig/src/util/build_config.h
+++ gn-0.1726/src/util/build_config.h
@@ -161,6 +161,16 @@
 #define ARCH_CPU_32_BITS 1
 #define ARCH_CPU_BIG_ENDIAN 1
 #endif
+#elif defined(__riscv)
+#define ARCH_CPU_RISCV_FAMILY 1
+#if __riscv_xlen == 64
+#define ARCH_CPU_RISCV64 1
+#define ARCH_CPU_64_BITS 1
+#else
+#define ARCH_CPU_RISCV32 1
+#define ARCH_CPU_32_BITS 1
+#endif
+#define ARCH_CPU_LITTLE_ENDIAN 1
 #else
 #error Please add support for your architecture in build_config.h
 #endif



commit gn for openSUSE:Factory

2020-10-12 Thread root
Hello community,

here is the log from the commit of package gn for openSUSE:Factory checked in 
at 2020-10-12 13:46:43

Comparing /work/SRC/openSUSE:Factory/gn (Old)
 and  /work/SRC/openSUSE:Factory/.gn.new.3486 (New)


Package is "gn"

Mon Oct 12 13:46:43 2020 rev:9 rq:840875 version:0.1807

Changes:

--- /work/SRC/openSUSE:Factory/gn/gn.changes2020-04-07 10:23:53.518000625 
+0200
+++ /work/SRC/openSUSE:Factory/.gn.new.3486/gn.changes  2020-10-12 
13:46:53.853911161 +0200
@@ -1,0 +2,6 @@
+Sat Oct 10 13:13:24 UTC 2020 - Andreas Stieger 
+
+- Update to 0.1807:
+  * no upstream changelog
+
+---

Old:

  gn-0.1726.tar.xz

New:

  gn-0.1807.tar.xz



Other differences:
--
++ gn.spec ++
--- /var/tmp/diff_new_pack.Mt9Go0/_old  2020-10-12 13:46:54.569911450 +0200
+++ /var/tmp/diff_new_pack.Mt9Go0/_new  2020-10-12 13:46:54.573911452 +0200
@@ -17,7 +17,7 @@
 
 
 Name:   gn
-Version:0.1726
+Version:0.1807
 Release:0
 Summary:A meta-build system that generates build files for Ninja
 License:BSD-3-Clause

++ gn-0.1726.tar.xz -> gn-0.1807.tar.xz ++
 12149 lines of diff (skipped)




commit gn for openSUSE:Factory

2020-04-07 Thread root
Hello community,

here is the log from the commit of package gn for openSUSE:Factory checked in 
at 2020-04-07 10:23:45

Comparing /work/SRC/openSUSE:Factory/gn (Old)
 and  /work/SRC/openSUSE:Factory/.gn.new.3248 (New)


Package is "gn"

Tue Apr  7 10:23:45 2020 rev:8 rq:790859 version:0.1726

Changes:

--- /work/SRC/openSUSE:Factory/gn/gn.changes2019-10-23 15:54:27.294928387 
+0200
+++ /work/SRC/openSUSE:Factory/.gn.new.3248/gn.changes  2020-04-07 
10:23:53.518000625 +0200
@@ -1,0 +2,9 @@
+Thu Apr  2 11:11:45 UTC 2020 - Tomáš Chvátal 
+
+- Update to 0.1726:
+  * no upstream changelog
+- Rebase patches:
+  * gn-always-python3.patch
+  * gn-flags.patch
+
+---

Old:

  gn-0.1616.tar.gz

New:

  gn-0.1726.tar.xz



Other differences:
--
++ gn.spec ++
--- /var/tmp/diff_new_pack.HeCyL0/_old  2020-04-07 10:23:54.822002075 +0200
+++ /var/tmp/diff_new_pack.HeCyL0/_new  2020-04-07 10:23:54.826002079 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package gn
 #
-# Copyright (c) 2019 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
@@ -17,12 +17,12 @@
 
 
 Name:   gn
-Version:0.1616
+Version:0.1726
 Release:0
 Summary:A meta-build system that generates build files for Ninja
 License:BSD-3-Clause
 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++
@@ -50,10 +50,15 @@
 %endif
 export CXXFLAGS="%{optflags}"
 # bootstrap
-python3 build/gen.py --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 ++
--- /var/tmp/diff_new_pack.HeCyL0/_old  2020-04-07 10:23:54.846002102 +0200
+++ /var/tmp/diff_new_pack.HeCyL0/_new  2020-04-07 10:23:54.846002102 +0200
@@ -1,7 +1,7 @@
-Index: gn-0.1616/tools/gn/exec_process_unittest.cc
+Index: gn-0.1616/src/gn/exec_process_unittest.cc
 ===
 gn-0.1616.orig/tools/gn/exec_process_unittest.cc
-+++ gn-0.1616/tools/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));

++ gn-flags.patch ++
--- /var/tmp/diff_new_pack.HeCyL0/_old  2020-04-07 10:23:54.854002111 +0200
+++ /var/tmp/diff_new_pack.HeCyL0/_new  2020-04-07 10:23:54.854002111 +0200
@@ -7,11 +7,11 @@
  build/gen.py | 9 -
  1 file changed, 9 deletions(-)
 
-diff --git a/build/gen.py b/build/gen.py
-index a7142fab..06d5e2b3 100755
 a/build/gen.py
-+++ b/build/gen.py
-@@ -278,11 +278,6 @@ def WriteGNNinja(path, platform, host, options):
+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:
@@ -23,7 +23,7 @@
# 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.
-@@ -311,7 +306,6 @@ def WriteGNNinja(path, platform, host, options):
+@@ -325,7 +320,6 @@ def WriteGNNinja(path, platform, host, o
  '-D_FILE_OFFSET_BITS=64',
  '-D__STDC_CONSTANT_MACROS', '-D__STDC_FORMAT_MACROS',
  '-pthread',
@@ -31,18 +31,13 @@
  '-fno-exceptions',
  '-fno-rtti',
  '-fdiagnostics-color',
-@@ -320,11 +314,8 @@ def WriteGNNinja(path, platform, host, options):
+@@ -341,9 +335,6 @@ def WriteGNNinja(path, platform, host, o
+   if not options.no_static_libstdcpp:
+ ldflags.append('-static-libstdc++')
  
- if platform.is_linux():
-   ldflags.extend([
--  '-static-libstdc++',
-   '-Wl,--as-needed',
-   ])
 -  # This is needed by libc++.
--  

commit gn for openSUSE:Factory

2019-10-23 Thread root
Hello community,

here is the log from the commit of package gn for openSUSE:Factory checked in 
at 2019-10-23 15:54:24

Comparing /work/SRC/openSUSE:Factory/gn (Old)
 and  /work/SRC/openSUSE:Factory/.gn.new.2352 (New)


Package is "gn"

Wed Oct 23 15:54:24 2019 rev:7 rq:742110 version:0.1616

Changes:

--- /work/SRC/openSUSE:Factory/gn/gn.changes2019-05-07 23:19:46.597026277 
+0200
+++ /work/SRC/openSUSE:Factory/.gn.new.2352/gn.changes  2019-10-23 
15:54:27.294928387 +0200
@@ -1,0 +2,9 @@
+Wed Oct 23 10:40:06 UTC 2019 - Tomáš Chvátal 
+
+- 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
+
+---

Old:

  gn-0.1544.tar.gz
  gn-add_missing_arm_files.patch

New:

  gn-0.1616.tar.gz
  gn-always-python3.patch



Other differences:
--
++ gn.spec ++
--- /var/tmp/diff_new_pack.IIS1vZ/_old  2019-10-23 15:54:28.954930181 +0200
+++ /var/tmp/diff_new_pack.IIS1vZ/_new  2019-10-23 15:54:28.958930186 +0200
@@ -17,22 +17,20 @@
 
 
 Name:   gn
-Version:0.1544
+Version:0.1616
 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
 Patch0: gn-flags.patch
-# PATCH-FIX-UPSTREAM: https://bugs.chromium.org/p/gn/issues/detail?id=6
-Patch1: gn-add_missing_arm_files.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.
@@ -46,13 +44,13 @@
 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-last-commit-position
+python3 build/gen.py --no-last-commit-position
 cat >out/last_commit_position.h <<-EOF
#ifndef OUT_LAST_COMMIT_POSITION_H_
#define OUT_LAST_COMMIT_POSITION_H_

++ gn-0.1544.tar.gz -> gn-0.1616.tar.gz ++
 19459 lines of diff (skipped)

++ gn-always-python3.patch ++
Index: gn-0.1616/tools/gn/exec_process_unittest.cc
===
--- gn-0.1616.orig/tools/gn/exec_process_unittest.cc
+++ gn-0.1616/tools/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



commit gn for openSUSE:Factory

2019-05-07 Thread root
Hello community,

here is the log from the commit of package gn for openSUSE:Factory checked in 
at 2019-05-07 23:19:44

Comparing /work/SRC/openSUSE:Factory/gn (Old)
 and  /work/SRC/openSUSE:Factory/.gn.new.5148 (New)


Package is "gn"

Tue May  7 23:19:44 2019 rev:6 rq:701245 version:0.1544

Changes:

--- /work/SRC/openSUSE:Factory/gn/gn.changes2018-11-12 09:42:22.153107615 
+0100
+++ /work/SRC/openSUSE:Factory/.gn.new.5148/gn.changes  2019-05-07 
23:19:46.597026277 +0200
@@ -1,0 +2,7 @@
+Tue May  7 08:26:48 UTC 2019 - Tomáš Chvátal 
+
+- Update to 0.1544:
+  * No upstream changelog
+- Rebase patch gn-flags.patch
+
+---

Old:

  gn-0.1479.tar.gz

New:

  gn-0.1544.tar.gz



Other differences:
--
++ gn.spec ++
--- /var/tmp/diff_new_pack.tMQ35k/_old  2019-05-07 23:19:47.169027583 +0200
+++ /var/tmp/diff_new_pack.tMQ35k/_new  2019-05-07 23:19:47.169027583 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package gn
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
 
 
 Name:   gn
-Version:0.1479
+Version:0.1544
 Release:0
 Summary:A meta-build system that generates build files for Ninja
 License:BSD-3-Clause
@@ -52,7 +52,7 @@
 %endif
 export CXXFLAGS="%{optflags}"
 # bootstrap
-python2 build/gen.py --no-sysroot --no-last-commit-position
+python2 build/gen.py --no-last-commit-position
 cat >out/last_commit_position.h <<-EOF
#ifndef OUT_LAST_COMMIT_POSITION_H_
#define OUT_LAST_COMMIT_POSITION_H_

++ gn-0.1479.tar.gz -> gn-0.1544.tar.gz ++
 13384 lines of diff (skipped)

++ gn-flags.patch ++
--- /var/tmp/diff_new_pack.tMQ35k/_old  2019-05-07 23:19:47.369028039 +0200
+++ /var/tmp/diff_new_pack.tMQ35k/_new  2019-05-07 23:19:47.369028039 +0200
@@ -1,33 +1,29 @@
-Index: gn-0.1479/build/gen.py
-===
 gn-0.1479.orig/build/gen.py
-+++ gn-0.1479/build/gen.py
-@@ -326,9 +326,6 @@ def WriteGNNinja(path, platform, host, o
+From bedf2161dea8cf4813fd14891feee2e8e8d5bf28 Mon Sep 17 00:00:00 2001
+From: Mike Gilbert 
+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(-)
+
+diff --git a/build/gen.py b/build/gen.py
+index a7142fab..06d5e2b3 100755
+--- a/build/gen.py
 b/build/gen.py
+@@ -278,11 +278,6 @@ def WriteGNNinja(path, platform, host, options):
  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, o
- # 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,27 +345,18 @@ def WriteGNNinja(path, platform, host, o
+@@ -311,7 +306,6 @@ def WriteGNNinja(path, platform, host, options):
  '-D_FILE_OFFSET_BITS=64',
  '-D__STDC_CONSTANT_MACROS', '-D__STDC_FORMAT_MACROS',
  '-pthread',
@@ -35,24 +31,18 @@
  '-fno-exceptions',
  '-fno-rtti',
  '-fdiagnostics-color',
- ])
- cflags_cc.extend(['-std=c++14', '-Wno-c++11-narrowing'])
-+ldflags.append('-pthread')
+@@ -320,11 +314,8 @@ def WriteGNNinja(path, platform, host, options):
  
  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([
+   ldflags.extend([
 -  '-static-libstdc++',
--  '-Wl,--as-needed',
--  ])
--  libs.extend([
--  # These are needed by libc++.
--  '-ldl',
--  '-lpthread',
--  ])
+   

commit gn for openSUSE:Factory

2018-11-12 Thread root
Hello community,

here is the log from the commit of package gn for openSUSE:Factory checked in 
at 2018-11-12 09:42:20

Comparing /work/SRC/openSUSE:Factory/gn (Old)
 and  /work/SRC/openSUSE:Factory/.gn.new (New)


Package is "gn"

Mon Nov 12 09:42:20 2018 rev:5 rq:647641 version:0.1479

Changes:

--- /work/SRC/openSUSE:Factory/gn/gn.changes2018-10-31 13:21:56.687029140 
+0100
+++ /work/SRC/openSUSE:Factory/.gn.new/gn.changes   2018-11-12 
09:42:22.153107615 +0100
@@ -1,0 +2,6 @@
+Fri Nov  9 08:44:22 UTC 2018 - Guillaume GARDET 
+
+- Add patch to add missing files to fix armv7 build:
+  * gn-add_missing_arm_files.patch
+
+---

New:

  gn-add_missing_arm_files.patch



Other differences:
--
++ gn.spec ++
--- /var/tmp/diff_new_pack.6KpbEp/_old  2018-11-12 09:42:23.993104795 +0100
+++ /var/tmp/diff_new_pack.6KpbEp/_new  2018-11-12 09:42:23.993104795 +0100
@@ -25,6 +25,8 @@
 URL:https://gn.googlesource.com/
 Source: https://dev.gentoo.org/~floppym/dist/%{name}-%{version}.tar.gz
 Patch0: gn-flags.patch
+# PATCH-FIX-UPSTREAM: https://bugs.chromium.org/p/gn/issues/detail?id=6
+Patch1: gn-add_missing_arm_files.patch
 BuildRequires:  gcc-c++
 %if 0%{suse_version} < 1500
 BuildRequires:  gcc7-c++
@@ -38,6 +40,7 @@
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 export CC=gcc

++ gn-add_missing_arm_files.patch ++
diff -purN gn-0.1479.orig/base/numerics/safe_conversions_arm_impl.h 
gn-0.1479/base/numerics/safe_conversions_arm_impl.h
--- gn-0.1479.orig/base/numerics/safe_conversions_arm_impl.h1970-01-01 
01:00:00.0 +0100
+++ gn-0.1479/base/numerics/safe_conversions_arm_impl.h 2018-11-09 
09:41:59.0 +0100
@@ -0,0 +1,51 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef BASE_NUMERICS_SAFE_CONVERSIONS_ARM_IMPL_H_
+#define BASE_NUMERICS_SAFE_CONVERSIONS_ARM_IMPL_H_
+
+#include 
+#include 
+#include 
+
+#include "base/numerics/safe_conversions_impl.h"
+
+namespace base {
+namespace internal {
+
+// Fast saturation to a destination type.
+template 
+struct SaturateFastAsmOp {
+  static const bool is_supported =
+  std::is_signed::value && std::is_integral::value &&
+  std::is_integral::value &&
+  IntegerBitsPlusSign::value <= IntegerBitsPlusSign::value &&
+  IntegerBitsPlusSign::value <= IntegerBitsPlusSign::value &&
+  !IsTypeInRangeForNumericType::value;
+
+  __attribute__((always_inline)) static Dst Do(Src value) {
+int32_t src = value;
+typename std::conditional::value, int32_t,
+  uint32_t>::type result;
+if (std::is_signed::value) {
+  asm("ssat %[dst], %[shift], %[src]"
+  : [dst] "=r"(result)
+  : [src] "r"(src), [shift] "n"(IntegerBitsPlusSign::value <= 32
+? IntegerBitsPlusSign::value
+: 32));
+} else {
+  asm("usat %[dst], %[shift], %[src]"
+  : [dst] "=r"(result)
+  : [src] "r"(src), [shift] "n"(IntegerBitsPlusSign::value < 32
+? IntegerBitsPlusSign::value
+: 31));
+}
+return static_cast(result);
+  }
+};
+
+}  // namespace internal
+}  // namespace base
+
+#endif  // BASE_NUMERICS_SAFE_CONVERSIONS_ARM_IMPL_H_
diff -purN gn-0.1479.orig/base/numerics/safe_math_arm_impl.h 
gn-0.1479/base/numerics/safe_math_arm_impl.h
--- gn-0.1479.orig/base/numerics/safe_math_arm_impl.h   1970-01-01 
01:00:00.0 +0100
+++ gn-0.1479/base/numerics/safe_math_arm_impl.h2018-11-09 
09:41:59.0 +0100
@@ -0,0 +1,122 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef BASE_NUMERICS_SAFE_MATH_ARM_IMPL_H_
+#define BASE_NUMERICS_SAFE_MATH_ARM_IMPL_H_
+
+#include 
+#include 
+#include 
+
+#include "base/numerics/safe_conversions.h"
+
+namespace base {
+namespace internal {
+
+template 
+struct CheckedMulFastAsmOp {
+  static const bool is_supported =
+  FastIntegerArithmeticPromotion::is_contained;
+
+  // The following is much more efficient than the Clang and GCC builtins for
+  // performing overflow-checked multiplication when a twice wider type is
+  // available. The below compiles down to 2-3 instructions, depending on the
+  // width of the types in use.
+  // As an example, an int32_t multiply compiles to:
+  //smull   r0, r1, r0, r1
+  //cmp r1, r1, asr #31
+  // 

commit gn for openSUSE:Factory

2018-10-31 Thread root
Hello community,

here is the log from the commit of package gn for openSUSE:Factory checked in 
at 2018-10-31 13:20:53

Comparing /work/SRC/openSUSE:Factory/gn (Old)
 and  /work/SRC/openSUSE:Factory/.gn.new (New)


Package is "gn"

Wed Oct 31 13:20:53 2018 rev:4 rq:645552 version:0.1479

Changes:

--- /work/SRC/openSUSE:Factory/gn/gn.changes2018-08-29 12:26:38.803586478 
+0200
+++ /work/SRC/openSUSE:Factory/.gn.new/gn.changes   2018-10-31 
13:21:56.687029140 +0100
@@ -1,0 +2,7 @@
+Tue Oct 30 14:50:22 UTC 2018 - Tomáš Chvátal 
+
+- Version update to 0.1479:
+  * No upstream changelog
+- Rebase patch gn-flags.patch
+
+---

Old:

  gn-0.1463.tar.gz

New:

  gn-0.1479.tar.gz



Other differences:
--
++ gn.spec ++
--- /var/tmp/diff_new_pack.03TtMg/_old  2018-10-31 13:21:57.539028346 +0100
+++ /var/tmp/diff_new_pack.03TtMg/_new  2018-10-31 13:21:57.539028346 +0100
@@ -12,12 +12,12 @@
 # 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.1479
 Release:0
 Summary:A meta-build system that generates build files for Ninja
 License:BSD-3-Clause

++ gn-0.1463.tar.gz -> gn-0.1479.tar.gz ++
 4321 lines of diff (skipped)

++ gn-flags.patch ++
--- /var/tmp/diff_new_pack.03TtMg/_old  2018-10-31 13:21:57.727028171 +0100
+++ /var/tmp/diff_new_pack.03TtMg/_new  2018-10-31 13:21:57.727028171 +0100
@@ -1,8 +1,8 @@
-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):
+Index: gn-0.1479/build/gen.py
+===
+--- gn-0.1479.orig/build/gen.py
 gn-0.1479/build/gen.py
+@@ -326,9 +326,6 @@ def WriteGNNinja(path, platform, host, o
  if options.debug:
cflags.extend(['-O0', '-g'])
  else:
@@ -12,7 +12,7 @@
# 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):
+@@ -340,14 +337,6 @@ def WriteGNNinja(path, platform, host, o
  # Garbage collection is done by default on aix.
  ldflags.append('-Wl,--gc-sections')
  
@@ -27,13 +27,14 @@
# 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):
+@@ -356,27 +345,18 @@ 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',
+ '-fdiagnostics-color',
  ])
  cflags_cc.extend(['-std=c++14', '-Wno-c++11-narrowing'])
 +ldflags.append('-pthread')




commit gn for openSUSE:Factory

2018-08-29 Thread root
Hello community,

here is the log from the commit of package gn for openSUSE:Factory checked in 
at 2018-08-29 12:26:37

Comparing /work/SRC/openSUSE:Factory/gn (Old)
 and  /work/SRC/openSUSE:Factory/.gn.new (New)


Package is "gn"

Wed Aug 29 12:26:37 2018 rev:3 rq:631962 version:0.1463

Changes:

--- /work/SRC/openSUSE:Factory/gn/gn.changes2018-08-07 09:43:03.189307416 
+0200
+++ /work/SRC/openSUSE:Factory/.gn.new/gn.changes   2018-08-29 
12:26:38.803586478 +0200
@@ -1,0 +2,7 @@
+Tue Aug 28 11:06:58 UTC 2018 - tchva...@suse.com
+
+- Update to 0.1463:
+  * No upstream changelog
+- Rebase patch gn-flags.patch
+
+---

Old:

  gn-0.1445.tar.gz

New:

  gn-0.1463.tar.gz



Other differences:
--
++ gn.spec ++
--- /var/tmp/diff_new_pack.p5Jy2D/_old  2018-08-29 12:26:39.239587434 +0200
+++ /var/tmp/diff_new_pack.p5Jy2D/_new  2018-08-29 12:26:39.239587434 +0200
@@ -17,7 +17,7 @@
 
 
 Name:   gn
-Version:0.1445
+Version:0.1463
 Release:0
 Summary:A meta-build system that generates build files for Ninja
 License:BSD-3-Clause
@@ -47,6 +47,7 @@
 export CC=gcc-7
 export CXX=g++-7
 %endif
+export CXXFLAGS="%{optflags}"
 # bootstrap
 python2 build/gen.py --no-sysroot --no-last-commit-position
 cat >out/last_commit_position.h <<-EOF

++ gn-0.1445.tar.gz -> gn-0.1463.tar.gz ++
 12841 lines of diff (skipped)

++ gn-flags.patch ++
--- /var/tmp/diff_new_pack.p5Jy2D/_old  2018-08-29 12:26:39.467587935 +0200
+++ /var/tmp/diff_new_pack.p5Jy2D/_new  2018-08-29 12:26:39.467587935 +0200
@@ -1,8 +1,8 @@
 diff --git a/build/gen.py b/build/gen.py
-index fce8fb18..2927da5f 100755
+index 76f88e84..5e088b2a 100755
 --- a/build/gen.py
 +++ b/build/gen.py
-@@ -260,17 +260,12 @@ def WriteGNNinja(path, options, linux_sysroot):
+@@ -326,9 +326,6 @@ def WriteGNNinja(path, platform, host, options, 
linux_sysroot):
  if options.debug:
cflags.extend(['-O0', '-g'])
  else:
@@ -12,15 +12,22 @@
# 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.
-   cflags.extend(['-fdata-sections', '-ffunction-sections'])
-   ldflags.extend(['-fdata-sections', '-ffunction-sections'])
-   ldflags.append('-Wl,-dead_strip' if is_mac else '-Wl,--gc-sections')
+@@ -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.
--  ldflags.append('-Wl,-S' if is_mac else '-Wl,-strip-all')
+-  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')
-@@ -279,11 +274,11 @@ def WriteGNNinja(path, options, linux_sysroot):
+@@ -356,26 +345,17 @@ def WriteGNNinja(path, platform, host, options, 
linux_sysroot):
  '-D_FILE_OFFSET_BITS=64',
  '-D__STDC_CONSTANT_MACROS', '-D__STDC_FORMAT_MACROS',
  '-pthread',
@@ -31,21 +38,20 @@
  cflags_cc.extend(['-std=c++14', '-Wno-c++11-narrowing'])
 +ldflags.append('-pthread')
  
- if is_linux:
+ if platform.is_linux():
if linux_sysroot:
-@@ -293,15 +288,6 @@ def WriteGNNinja(path, options, linux_sysroot):
- # probably resolve this and (re-)add a way to build against libc++.
+ # Use the sid sysroot that UpdateLinuxSysroot() downloads.
  cflags.append('--sysroot=' + linux_sysroot)
  ldflags.append('--sysroot=' + linux_sysroot)
--  cflags.append('-stdlib=libstdc++')
--  ldflags.extend(['-static-libstdc++',
--  '-stdlib=libstdc++',
--  '-Wl,--as-needed',
-- ])
+-  ldflags.extend([
+-  '-static-libstdc++',
+-  '-Wl,--as-needed',
+-  ])
 -  libs.extend([
--  '-lgcc_s',
+-  # These are needed by libc++.
+-  '-ldl',
 -  '-lpthread',
 -  ])
- elif is_mac:
+ elif platform.is_darwin():
min_mac_version_flag = '-mmacosx-version-min=10.9'
cflags.append(min_mac_version_flag)




commit gn for openSUSE:Factory

2018-08-07 Thread root
Hello community,

here is the log from the commit of package gn for openSUSE:Factory checked in 
at 2018-08-07 09:43:03

Comparing /work/SRC/openSUSE:Factory/gn (Old)
 and  /work/SRC/openSUSE:Factory/.gn.new (New)


Package is "gn"

Tue Aug  7 09:43:03 2018 rev:2 rq:627652 version:0.1445

Changes:

--- /work/SRC/openSUSE:Factory/gn/gn.changes2018-07-28 12:42:38.424683938 
+0200
+++ /work/SRC/openSUSE:Factory/.gn.new/gn.changes   2018-08-07 
09:43:03.189307416 +0200
@@ -1,0 +2,5 @@
+Mon Aug  6 11:33:49 UTC 2018 - tchva...@suse.com
+
+- Fix building on openSUSE Leap 42.3
+
+---



Other differences:
--
++ gn.spec ++
--- /var/tmp/diff_new_pack.IrhLyO/_old  2018-08-07 09:43:03.733308362 +0200
+++ /var/tmp/diff_new_pack.IrhLyO/_new  2018-08-07 09:43:03.737308369 +0200
@@ -26,6 +26,9 @@
 Source: https://dev.gentoo.org/~floppym/dist/%{name}-%{version}.tar.gz
 Patch0: gn-flags.patch
 BuildRequires:  gcc-c++
+%if 0%{suse_version} < 1500
+BuildRequires:  gcc7-c++
+%endif
 BuildRequires:  ninja
 BuildRequires:  python2-base
 
@@ -40,6 +43,10 @@
 export CC=gcc
 export CXX=g++
 export AR=ar
+%if 0%{suse_version} < 1500
+export CC=gcc-7
+export CXX=g++-7
+%endif
 # bootstrap
 python2 build/gen.py --no-sysroot --no-last-commit-position
 cat >out/last_commit_position.h <<-EOF