Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package wasi-libc for openSUSE:Factory checked in at 2023-03-28 17:48:48 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/wasi-libc (Old) and /work/SRC/openSUSE:Factory/.wasi-libc.new.31432 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "wasi-libc" Tue Mar 28 17:48:48 2023 rev:2 rq:1074704 version:19 Changes: -------- --- /work/SRC/openSUSE:Factory/wasi-libc/wasi-libc.changes 2022-07-29 16:48:14.466709813 +0200 +++ /work/SRC/openSUSE:Factory/.wasi-libc.new.31432/wasi-libc.changes 2023-03-28 17:48:56.678853072 +0200 @@ -1,0 +2,10 @@ +Wed Mar 22 22:23:36 UTC 2023 - Aaron Puchert <aaronpuch...@alice-dsl.net> + +- Update to version (wasi-sdk-)19. +- Rebase workaround-broken-makefile.patch. +- Add undefine-gcc-macros.patch: ignore new macros for now to fix + build with Clang 16. +- Declare the package as noarch: the binaries are for WebAssembly, + not the host architecture. + +------------------------------------------------------------------- Old: ---- _service wasi-libc-0.1.1652147647.9886d3d.obscpio wasi-libc-0.1.1652147647.9886d3d.tar.xz wasi-libc.obsinfo New: ---- undefine-gcc-macros.patch wasi-libc-19.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ wasi-libc.spec ++++++ --- /var/tmp/diff_new_pack.kyF1SM/_old 2023-03-28 17:48:57.514857105 +0200 +++ /var/tmp/diff_new_pack.kyF1SM/_new 2023-03-28 17:48:57.522857144 +0200 @@ -1,7 +1,7 @@ # # spec file for package wasi-libc # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,24 +17,27 @@ Name: wasi-libc -Version: 0.1.1652147647.9886d3d +Version: 19 Release: 0 Summary: WASI libc implementation for WebAssembly # FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses License: MIT URL: https://github.com/WebAssembly/wasi-libc -Source: %{name}-%{version}.tar.xz +Source: https://github.com/WebAssembly/wasi-libc/archive/refs/tags/wasi-sdk-%{version}.tar.gz#/%{name}-%{version}.tar.gz Source1: wasi-libc-rpmlintrc Patch1: workaround-broken-makefile.patch +Patch2: undefine-gcc-macros.patch BuildRequires: clang > 10 BuildRequires: llvm > 10 +BuildArch: noarch %description WASI libc allows cross platform binaries to be created and executed on a variety of platforms %prep -%setup -q +%setup -q -n wasi-libc-wasi-sdk-%{version} %patch1 -p1 +%patch2 -p1 %build export CC=clang ++++++ undefine-gcc-macros.patch ++++++ Undefine some macros because the build isn't happy about them. diff --git a/Makefile b/Makefile index 563f59f..6d478e9 100644 --- a/Makefile +++ b/Makefile @@ -688,6 +688,10 @@ check-symbols: startup_files libc -U__clang_wide_literal_encoding__ \ -U__wasm_mutable_globals__ \ -U__wasm_sign_ext__ \ + -U__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 \ + -U__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 \ + -U__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 \ + -U__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 \ -U__GNUC__ \ -U__GNUC_MINOR__ \ -U__GNUC_PATCHLEVEL__ \ ++++++ wasi-libc-rpmlintrc ++++++ --- /var/tmp/diff_new_pack.kyF1SM/_old 2023-03-28 17:48:57.578857414 +0200 +++ /var/tmp/diff_new_pack.kyF1SM/_new 2023-03-28 17:48:57.586857453 +0200 @@ -5,6 +5,7 @@ addFilter("readelf-failed .*") addFilter("zero-length .*") addFilter("arch-dependent-file-in-usr-share .*") +addFilter("arch-independent-package-contains-binary-or-object .*") # There are empty dummy-files in the sysroot addFilter('lto-no-text-in-archive .*') addFilter('devel-file-in-non-devel-package .*') ++++++ workaround-broken-makefile.patch ++++++ --- /var/tmp/diff_new_pack.kyF1SM/_old 2023-03-28 17:48:57.602857530 +0200 +++ /var/tmp/diff_new_pack.kyF1SM/_new 2023-03-28 17:48:57.606857549 +0200 @@ -1,14 +1,14 @@ # Workaround as per https://github.com/WebAssembly/wasi-libc/issues/156 diff --git a/Makefile b/Makefile -index b9f3c00..cd044b0 100644 +index 46229f9..563f59f 100644 --- a/Makefile +++ b/Makefile -@@ -565,7 +565,7 @@ check-symbols: startup_files libc +@@ -706,7 +706,7 @@ check-symbols: startup_files libc # This ignores whitespace because on Windows the output has CRLF line endings. - diff -wur "$(CURDIR)/expected/$(MULTIARCH_TRIPLE)" "$(SYSROOT_SHARE)" + diff -wur "$(CURDIR)/expected/$(TARGET_TRIPLE)" "$(SYSROOT_SHARE)" -install: finish -+install: ++install: mkdir -p "$(INSTALL_DIR)" cp -r "$(SYSROOT)/lib" "$(SYSROOT)/share" "$(SYSROOT)/include" "$(INSTALL_DIR)"