Linux with zig?

|
emmett1 2022-08-17 15:08:45
Because new mount implement in latest glibc, conflict with the one in linux-api-headers
emmett1 2022-08-17 15:10:02
You gotta looks for fix patch, on git commit and etc
emmett1 2022-08-17 15:10:24
# description : Tools and library to manipulate EFI variables
# depends : popt

name=efivar
version=38
release=1
source=”https://github.com/rhboot/efivar/releases/download/$version/$name-$version.tar.bz2
$name-$version-glibc2.36-fix.patch::https://github.com/rhboot/efivar/commit/bc65d63ebf8fe6ac8a099ff15ca200986dba1565.patch”

build() {
cd $name-$version

patch -p1 < $SRC/$name-$version-glibc2.36-fix.patch

# faking mandoc
mkdir bin
ln -s /bin/true bin/mandoc
export PATH=$PWD/bin:$PATH

make -j1
make libdir=/usr/lib DESTDIR=$PKG install
}

emmett1 2022-08-17 15:11:25
emmett1 2022-08-17 15:10:24
# description : Tools and library to manipulate EFI variables
# depends : popt

name=efivar
version=38
release=1
source=”https://github.com/rhboot/efivar/releases/download/$version/$name-$version.tar.bz2
$name-$version-glibc2.36-fix.patch::https://github.com/rhboot/efivar/commit/bc65d63ebf8fe6ac8a099ff15ca200986dba1565.patch”

build() {
cd $name-$version

patch -p1 < $SRC/$name-$version-glibc2.36-fix.patch

# faking mandoc
mkdir bin
ln -s /bin/true bin/mandoc
export PATH=$PWD/bin:$PATH

make -j1
make libdir=/usr/lib DESTDIR=$PKG install
}

use this for efivar

Flomb 2022-08-17 16:53:36
Oh yes
Flomb 2022-08-17 16:53:45
Glibc I think broke some stuff
emmett1 2022-08-17 17:01:31
Not some, but a lottt of stuffs
Flomb 2022-08-17 17:01:58
Well yes
Flomb 2022-08-17 17:02:36
Wish I could make a venom like linux with zig, since we can crosscompile between glibc
emmett1 2022-08-17 17:06:07
linux with zig?
Flomb 2022-08-17 17:07:19
emmett1 2022-08-17 17:06:07
linux with zig?

A distro

Flomb 2022-08-17 17:07:37
But I am waiting for zig not to take 8gb to compile lol
emmett1 2022-08-17 17:08:32
Is zig a programming language?
Flomb 2022-08-17 17:08:41
emmett1 2022-08-17 17:08:32
Is zig a programming language?

both a programming language and a toolchain

emmett1 2022-08-17 17:09:01
Flomb 2022-08-17 17:07:37
But I am waiting for zig not to take 8gb to compile lol

Well, rust take 30gb to compile

Flomb 2022-08-17 17:09:08
emmett1 2022-08-17 17:09:01
Well, rust take 30gb to compile

Ram?

emmett1 2022-08-17 17:09:14
Space i mean
Flomb 2022-08-17 17:09:17
ah no
Flomb 2022-08-17 17:09:28
space it takes llvm, clang and lld
Flomb 2022-08-17 17:10:04
and it is like 28mb if dynamic linking
like 50mb if static
Flomb 2022-08-17 17:10:28
But takes 8gb of ram
Visone_Selektah 2022-08-17 17:10:33
emmett1 2022-08-17 17:09:01
Well, rust take 30gb to compile

The last release were 50G xxdddd

Flomb 2022-08-17 17:12:27
good thing: it can crosscompile, it ships with the headers for multiple glibc and other stuff
emmett1 2022-08-17 17:13:09
Flomb 2022-08-17 17:12:27
good thing: it can crosscompile, it ships with the headers for multiple glibc and other stuff

Cool, i should play with it sometimes. If i have time๐Ÿ˜…

Flomb 2022-08-17 17:15:23
emmett1 2022-08-17 17:13:09
Cool, i should play with it sometimes. If i have time๐Ÿ˜…

This reminds me I need to update my zig version in my personal repo

Flomb 2022-08-17 17:26:16
tbh, I think I can add it and provide the binaries and the main thing compiled
Flomb 2022-08-17 17:26:49
and leave a warining on the description
Flomb 2022-08-17 17:27:00
(Takes around 8gb of ram to compile) or something
Visone_Selektah 2022-08-17 17:28:18
Flomb 2022-08-17 17:26:16
tbh, I think I can add it and provide the binaries and the main thing compiled

can you share the port?

Flomb 2022-08-17 17:28:37
Ah yes
Visone_Selektah 2022-08-17 17:29:00
thanks!!
Flomb 2022-08-17 17:29:03
Disclaimer: I am cleaning my personal ports repo
emmett1 2022-08-17 17:29:04
Flomb 2022-08-17 17:15:23
This reminds me I need to update my zig version in my personal repo

You should add to venom repo

Flomb 2022-08-17 17:30:13
let me finish compiling today build
Luis 2022-08-17 17:43:28
Yep, for build rust, compile from sdd/hd with 50G free xDD
|