Merge pull request 'feat: upgrade semi-libc to v1.2.6.4' (#63) from sisungo/ports:semi-libc-v1.2.6.4 into main
Reviewed-on: #63
This commit was merged in pull request #63.
This commit is contained in:
commit
b8371c7041
1 file changed
+3
-5
@@ -1,10 +1,11 @@
|
||||
from lib import arch, cpp
|
||||
from lib.make import *
|
||||
|
||||
version("1.2.6.3")
|
||||
|
||||
version("1.2.6.4")
|
||||
description("the SemiOS fork of musl-libc, providing POSIX C standard library and system runtime")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("gitea://gitea.semilabs.org/semios/semi-libc#v1.2.6.3")
|
||||
source_managed("gitea://gitea.semilabs.org/semios/semi-libc#v1.2.6.4")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
@@ -12,21 +13,18 @@ builddep("bash")
|
||||
|
||||
|
||||
def build():
|
||||
# FIXME: Building the package requires `/bin/sh` to be bash.
|
||||
if in_atomic():
|
||||
os.system("ln -sf /bin/bash /bin/sh")
|
||||
cpp.configure(["--prefix=/"])
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
def musl_target():
|
||||
return arch.get_target().split("-")[0]
|
||||
|
||||
|
||||
package("semi-libc")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
link("lib/libc.so", f"/lib/ld-musl-{musl_target()}.so.1")
|
||||
|
||||
Reference in new issue
Block a user