From a8be4a89b4355405e15dff306d31c3acb42f8df9 Mon Sep 17 00:00:00 2001 From: diviocity Date: Mon, 30 Nov 2026 03:51:01 +0100 Subject: [PATCH] Restore the release gmake command and rebuild zlib for ARM64 Vinix pages --- make/PKGBUILD.vile | 12 ++++++++++-- zlib/PKGBUILD.vile | 6 ++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/make/PKGBUILD.vile b/make/PKGBUILD.vile index ae0a6bf..1e650bf 100644 --- a/make/PKGBUILD.vile +++ b/make/PKGBUILD.vile @@ -1,12 +1,17 @@ +selected := get-environment-variable("VPAC_TARGET_ARCH") +arch := if string?(selected) { selected } else if memq(string->symbol("aarch64"), features()) { "aarch64" } else { "x86_64" } +arm := string=?(arch, "aarch64") +musl := if arm { "musl>=1.2.6-4" } else { "musl" } + defpkgbuild(make, #:pkgname, "make", #:pkgver, "4.4.1", - #:pkgrel, 2, + #:pkgrel, 3, #:pkgdesc, "GNU Make for Vinix", #:arch, [#:x86-64, #:aarch64], #:url, "https://www.gnu.org/software/make/", #:license, "GPL-3.0-or-later", - #:depends, ["musl"], + #:depends, [musl], #:source, ["https://distfiles.alpinelinux.org/distfiles/v3.21/make-4.4.1.tar.gz"], #:sha256sums, ["dd16fb1d67bfab79a72f5e8390735c49e3e8e70b4945a15ab1f81ddb78658fb3"], #:build, fn() { @@ -18,6 +23,9 @@ defpkgbuild(make, }, #:package, fn() { run("make", string-append("DESTDIR=", pkgdir()), "install") + run("ln", "-s", "make", string-append(pkgdir(), "/usr/bin/gmake")) + run("vinix-run", string-append(pkgdir(), "/usr/bin/gmake"), "-f", "/dev/null", + "--eval=all: ; @echo Vinix gmake works", "all") run("rm", "-f", string-append(pkgdir(), "/usr/share/info/dir")) run("install", "-Dm644", "make-4.4.1/COPYING", string-append(pkgdir(), "/usr/share/licenses/make/COPYING")) }) diff --git a/zlib/PKGBUILD.vile b/zlib/PKGBUILD.vile index 5a8fec2..d7e2afb 100644 --- a/zlib/PKGBUILD.vile +++ b/zlib/PKGBUILD.vile @@ -1,17 +1,19 @@ selected := get-environment-variable("VPAC_TARGET_ARCH") arch := if string?(selected) { selected } else if memq(string->symbol("aarch64"), features()) { "aarch64" } else { "x86_64" } +arm := string=?(arch, "aarch64") +musl := if arm { "musl>=1.2.6-4" } else { "musl" } cross := get-environment-variable("CROSS_COMPILE") prefix := if string?(cross) { cross } else { "" } defpkgbuild(zlib, #:pkgname, "zlib", #:pkgver, "1.4", - #:pkgrel, 2, + #:pkgrel, if arm { 3 } else { 2 }, #:pkgdesc, "DEFLATE compression library and development headers", #:arch, [#:x86-64, #:aarch64], #:license, "Zlib", #:url, "https://zlib.net/", - #:depends, ["musl"], + #:depends, [musl], #:source, ["https://zlib.net/fossils/zlib-1.4.tar.gz"], #:sha256sums, ["02dd159783677a749c04adbdd02b55b8a2bcc7e054f51b76b549199a916ad584"], -- 2.56.1