Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package zig0.15 for openSUSE:Factory checked 
in at 2026-03-03 15:32:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/zig0.15 (Old)
 and      /work/SRC/openSUSE:Factory/.zig0.15.new.29461 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "zig0.15"

Tue Mar  3 15:32:16 2026 rev:2 rq:1336007 version:0.15.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/zig0.15/zig0.15.changes  2026-01-19 
18:42:05.399951300 +0100
+++ /work/SRC/openSUSE:Factory/.zig0.15.new.29461/zig0.15.changes       
2026-03-03 15:33:09.114549417 +0100
@@ -1,0 +2,28 @@
+Wed Jan 28 03:29:54 UTC 2026 - Mihai Petracovici <[email protected]>
+
+- Remove reproducible.patch as it breaks system library lookups 
+
+-------------------------------------------------------------------
+Wed Jan 28 01:03:06 UTC 2026 - Marcus Rueckert <[email protected]>
+
+- Add bump_max_rss.patch to allow more memory while building later
+  stages
+
+-------------------------------------------------------------------
+Tue Jan 27 21:42:46 UTC 2026 - Marcus Rueckert <[email protected]>
+
+- unify spec files more among branches
+
+-------------------------------------------------------------------
+Tue Jan 27 21:15:59 UTC 2026 - Marcus Rueckert <[email protected]>
+
+- only use mold on platforms where we have mold
+- stream line clang version handling
+- only %if the parts of the %cmake call that actually differ
+
+-------------------------------------------------------------------
+Tue Jan 27 04:50:01 UTC 2026 - Mihai Petracovici <[email protected]>
+
+- Update reproducible.patch to not break system library lookup
+
+-------------------------------------------------------------------

Old:
----
  reproducible.patch

New:
----
  bump_max_rss.patch

----------(Old B)----------
  Old:
- Remove reproducible.patch as it breaks system library lookups 
----------(Old E)----------

----------(New B)----------
  New:
- Add bump_max_rss.patch to allow more memory while building later
  stages
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ zig0.15.spec ++++++
--- /var/tmp/diff_new_pack.K62f4F/_old  2026-03-03 15:33:09.842579574 +0100
+++ /var/tmp/diff_new_pack.K62f4F/_new  2026-03-03 15:33:09.842579574 +0100
@@ -20,16 +20,28 @@
 %global version_current 0.15.2
 %global version_previous 0.14.1
 
-%define obsolete_zig_versioned() \
-Obsoletes:      %{1}0.14%{?2:-%{2}} \
-Obsoletes:      %{1}0.13%{?2:-%{2}} \
-Obsoletes:      %{1}0.12%{?2:-%{2}}
-
 %global _lto_cflags %{nil}
 %global __builder   ninja
 %bcond_without  macro
 %bcond_without  test
 
+# LLVM 20 is a hard requirement
+%define clang_ver 20
+
+%if 0%{?suse_version} >= 1600
+%ifnarch aarch64
+%bcond_without mold
+%else
+%bcond_with    mold
+%endif
+%endif
+
+%if 0%{?suse_version} >= 1699
+%bcond_without has_linker_type
+%else
+%bcond_with    has_linker_type
+%endif
+
 Name:           zig%{version_suffix}
 Version:        %{version_current}
 Release:        0
@@ -45,10 +57,10 @@
 Patch2:         0002-no-lld-libs-and-includes.patch
 # Just copying from Archlinux. Thanks
 Patch3:         
https://gitlab.archlinux.org/archlinux/packaging/packages/zig/-/raw/main/skip-localhost-test.patch
-# to improve reproducible-builds -- https://github.com/ziglang/zig/pull/22673
-Patch4:         reproducible.patch
-BuildRequires:  clang20
-BuildRequires:  clang20-devel
+# https://github.com/ziglang/zig/issues/23347 
https://github.com/ziglang/zig/pull/23254
+Patch4:         bump_max_rss.patch
+BuildRequires:  clang%{?clang_ver}
+BuildRequires:  clang%{?clang_ver}-devel
 BuildRequires:  cmake
 BuildRequires:  elfutils
 BuildRequires:  gcc-c++
@@ -58,16 +70,18 @@
 BuildRequires:  help2man
 BuildRequires:  libelf-devel
 BuildRequires:  liburing-devel
-BuildRequires:  lld20
-BuildRequires:  llvm20-devel
+BuildRequires:  lld%{?clang_ver}
+BuildRequires:  llvm%{?clang_ver}-devel
+%if %{with mold}
 BuildRequires:  mold
+%endif
 BuildRequires:  ninja
 BuildRequires:  zlib-devel
 BuildRequires:  zstd
 BuildRequires:  (gcc13-c++ if gcc13)
 BuildRequires:  (gcc14-c++ if gcc14)
 BuildRequires:  (gcc15-c++ if gcc15)
-Requires:       lld20
+Requires:       lld%{?clang_ver}
 
 
 Provides:        zig = %{version}
@@ -120,44 +134,29 @@
 %autosetup -n zig-%{version} -p1
 
 %build
-# CMAKE on Tumbleweed has the CMAKE_LINKER_TYPE option
-%if 0%{?suse_version} > 1600
-
+# TODO: why do we have this differentation for for CMAKE_BUILD_TYPE
 %cmake \
-%ifarch aarch64 s390x
-  -DCMAKE_BUILD_TYPE=Release \
-%endif
-  -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-  -DCMAKE_C_COMPILER="clang-20" \
-  -DCMAKE_CXX_COMPILER="clang++-20" \
+  -DCMAKE_C_COMPILER="clang-%{clang_ver}" \
+  -DCMAKE_CXX_COMPILER="clang++-%{clang_ver}" \
+%if %{with has_linker_type}
+%if %{with mold}
   -DCMAKE_LINKER_TYPE=MOLD \
-  -DZIG_SHARED_LLVM=On \
-  -DZIG_USE_LLVM_CONFIG=ON \
-  -DZIG_TARGET_MCPU="baseline" \
-  -DZIG_VERSION:STRING="%{version}"
-
 %else
-
-%cmake \
-%ifarch aarch64 s390x
-  -DCMAKE_BUILD_TYPE=Release \
+  -DCMAKE_LINKER_TYPE=LLD \
+%endif
 %endif
-  -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-  -DCMAKE_C_COMPILER="clang-20" \
-  -DCMAKE_CXX_COMPILER="clang++-20" \
   -DZIG_SHARED_LLVM=On \
   -DZIG_USE_LLVM_CONFIG=ON \
+  -DZIG_PIE:BOOL=true \
   -DZIG_TARGET_MCPU="baseline" \
   -DZIG_VERSION:STRING="%{version}"
 
-%endif
-
 # Workaround since CMAKE on Leap does not have
 # the CMAKE_LINKER_TYPE option
-%if 0%{?suse_version} > 1600
-%cmake_build
-%else
+%if %{without has_linker_type} && %{with mold}
 mold -run %cmake_build
+%else
+%cmake_build
 %endif
 
 %install

++++++ bump_max_rss.patch ++++++
Index: zig-0.15.2/build.zig
===================================================================
--- zig-0.15.2.orig/build.zig
+++ zig-0.15.2/build.zig
@@ -738,7 +738,7 @@ fn addCompilerMod(b: *std.Build, options
 fn addCompilerStep(b: *std.Build, options: AddCompilerModOptions) 
*std.Build.Step.Compile {
     const exe = b.addExecutable(.{
         .name = "zig",
-        .max_rss = 7_800_000_000,
+        .max_rss = 10_800_000_000,
         .root_module = addCompilerMod(b, options),
     });
     exe.stack_size = stack_size;

Reply via email to