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:
parent
a8c036fdd6
commit
9e485e04df
2
_service
2
_service
@ -3,7 +3,7 @@
|
|||||||
<param name="url">https://github.com/WebAssembly/wasi-libc</param>
|
<param name="url">https://github.com/WebAssembly/wasi-libc</param>
|
||||||
<param name="scm">git</param>
|
<param name="scm">git</param>
|
||||||
<param name="versionprefix">0.1</param>
|
<param name="versionprefix">0.1</param>
|
||||||
<param name="revision">main</param>
|
<param name="revision">9886d3d6200fcc3726329966860fc058707406cd</param>
|
||||||
</service>
|
</service>
|
||||||
<service name="tar" mode="buildtime" />
|
<service name="tar" mode="buildtime" />
|
||||||
<service name="recompress" mode="buildtime">
|
<service name="recompress" mode="buildtime">
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:bb501337d1e48e9ac12550479ada8e49edb370abf99da76cacdbbd06a13d0cf9
|
|
||||||
size 5880845
|
|
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:ab97985e6320761b3c2001d7af00e4193fa8ae2cd3c450ac60aabde83e3c2f47
|
||||||
|
size 5555725
|
@ -1,4 +1,4 @@
|
|||||||
name: wasi-libc
|
name: wasi-libc
|
||||||
version: 0.1.1649882024.05cd0af
|
version: 0.1.1652147647.9886d3d
|
||||||
mtime: 1649882024
|
mtime: 1652147647
|
||||||
commit: 05cd0af0af4b5a191117d47a182adff1d6546b87
|
commit: 9886d3d6200fcc3726329966860fc058707406cd
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:8fbdcb828773e62894155c6656c629f6f0a1d85772a7441168dc32338aa98d8e
|
|
||||||
size 5880845
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:cc2653e05f020c6851237ddb77ec23850819253ae2c40239be2407538de458d0
|
|
||||||
size 1086636
|
|
3
wasi-libc-0.1.1652147647.9886d3d.obscpio
Normal file
3
wasi-libc-0.1.1652147647.9886d3d.obscpio
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:711cc039b0f8f238a7fc2981c470369d1671c48e7b2bf14175f0c42074b09656
|
||||||
|
size 5555725
|
3
wasi-libc-0.1.1652147647.9886d3d.tar.xz
Normal file
3
wasi-libc-0.1.1652147647.9886d3d.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:2213d324a38dd2e899e834e6263671b99912e50b61e651020e698da717098654
|
||||||
|
size 931424
|
4
wasi-libc.obsinfo
Normal file
4
wasi-libc.obsinfo
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
name: wasi-libc
|
||||||
|
version: 0.1.1652147647.9886d3d
|
||||||
|
mtime: 1652147647
|
||||||
|
commit: 9886d3d6200fcc3726329966860fc058707406cd
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: wasi-libc
|
Name: wasi-libc
|
||||||
Version: 0.1.1649882024.05cd0af
|
Version: 0.1.1652147647.9886d3d
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: WASI libc implementation for WebAssembly
|
Summary: WASI libc implementation for WebAssembly
|
||||||
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
|
# 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
|
Source: %{name}-%{version}.tar.xz
|
||||||
Source1: wasi-libc-rpmlintrc
|
Source1: wasi-libc-rpmlintrc
|
||||||
Patch1: workaround-broken-makefile.patch
|
Patch1: workaround-broken-makefile.patch
|
||||||
BuildRequires: clang > 8
|
BuildRequires: clang > 10
|
||||||
BuildRequires: llvm > 8
|
BuildRequires: llvm > 10
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
|
||||||
@ -37,13 +37,20 @@ BuildRequires: llvm > 8
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
export CC=clang
|
export CC=clang
|
||||||
|
export AR=llvm-ar
|
||||||
|
export NM=llvm-nm
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
export CC=clang
|
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
|
# The makefile is stupid and compiles everything again if we do `make install`, so we
|
||||||
# do it only once
|
# do it only once
|
||||||
%make_install INSTALL_DIR="%{buildroot}/%{_datadir}/wasi-sysroot"
|
%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
|
%files
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
Loading…
Reference in New Issue
Block a user