Accepting request 990984 from home:MSirringhaus:branches:devel:languages:rust

Use same commit as used by Rust upstream, to make rustc produce usable wasm-files.

OBS-URL: https://build.opensuse.org/request/show/990984
OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/wasi-libc?expand=0&rev=2
This commit is contained in:
William Brown 2022-07-26 01:10:12 +00:00 committed by Git OBS Bridge
parent a8c036fdd6
commit 9e485e04df
10 changed files with 27 additions and 16 deletions

View File

@ -3,7 +3,7 @@
<param name="url">https://github.com/WebAssembly/wasi-libc</param>
<param name="scm">git</param>
<param name="versionprefix">0.1</param>
<param name="revision">main</param>
<param name="revision">9886d3d6200fcc3726329966860fc058707406cd</param>
</service>
<service name="tar" mode="buildtime" />
<service name="recompress" mode="buildtime">

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bb501337d1e48e9ac12550479ada8e49edb370abf99da76cacdbbd06a13d0cf9
size 5880845

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ab97985e6320761b3c2001d7af00e4193fa8ae2cd3c450ac60aabde83e3c2f47
size 5555725

View File

@ -1,4 +1,4 @@
name: wasi-libc
version: 0.1.1649882024.05cd0af
mtime: 1649882024
commit: 05cd0af0af4b5a191117d47a182adff1d6546b87
version: 0.1.1652147647.9886d3d
mtime: 1652147647
commit: 9886d3d6200fcc3726329966860fc058707406cd

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8fbdcb828773e62894155c6656c629f6f0a1d85772a7441168dc32338aa98d8e
size 5880845

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cc2653e05f020c6851237ddb77ec23850819253ae2c40239be2407538de458d0
size 1086636

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:711cc039b0f8f238a7fc2981c470369d1671c48e7b2bf14175f0c42074b09656
size 5555725

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2213d324a38dd2e899e834e6263671b99912e50b61e651020e698da717098654
size 931424

4
wasi-libc.obsinfo Normal file
View File

@ -0,0 +1,4 @@
name: wasi-libc
version: 0.1.1652147647.9886d3d
mtime: 1652147647
commit: 9886d3d6200fcc3726329966860fc058707406cd

View File

@ -17,7 +17,7 @@
Name: wasi-libc
Version: 0.1.1649882024.05cd0af
Version: 0.1.1652147647.9886d3d
Release: 0
Summary: WASI libc implementation for WebAssembly
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
@ -26,8 +26,8 @@ URL: https://github.com/WebAssembly/wasi-libc
Source: %{name}-%{version}.tar.xz
Source1: wasi-libc-rpmlintrc
Patch1: workaround-broken-makefile.patch
BuildRequires: clang > 8
BuildRequires: llvm > 8
BuildRequires: clang > 10
BuildRequires: llvm > 10
%description
@ -37,13 +37,20 @@ BuildRequires: llvm > 8
%build
export CC=clang
export AR=llvm-ar
export NM=llvm-nm
%make_build
%install
export CC=clang
export AR=llvm-ar
export NM=llvm-nm
# The makefile is stupid and compiles everything again if we do `make install`, so we
# do it only once
%make_install INSTALL_DIR="%{buildroot}/%{_datadir}/wasi-sysroot"
# brp-15-strip-debug and -ar call system-strip and ar, which are not wasm-aware, so they will break wasm-files
export NO_BRP_AR=true
export NO_BRP_STRIP_DEBUG=true
%files
%license LICENSE