Libressl post upgrade, some packages need to be rebuilt.
- pipewire
- eudev
- cmake
- git
- libarchive
- libevent
- libsrt
- libssh2
Libressl post upgrade, some packages need to be rebuilt.
| #!/bin/bash | |
| position=$(xdotool getwindowfocus getwindowgeometry | grep Posit | awk '{print $2}') | |
| ffmpeg -f x11grab \ | |
| -framerate 30 \ | |
| -video_size $1 \ | |
| -i ${DISPLAY}+$position \ | |
| -c:v libx264 \ | |
| -pix_fmt yuv420p \ |
| bwrap --bind /home/lfs/browser / \ | |
| --dev /dev \ | |
| --proc /proc \ | |
| --bind /sys /sys \ | |
| --bind /run /run \ | |
| --bind /home/lfs/.mozilla /home/lfs/.mozilla \ | |
| --bind /home/lfs/Downloads /home/lfs/Downloads \ | |
| --ro-bind /etc/resolv.conf /etc/resolv.conf \ | |
| --ro-bind /etc/passwd /etc/passwd \ | |
| --ro-bind /etc/group /etc/group \ |
I'm using dnscrypt-proxy on main machine and also using firefox inside chroot. I get network working but some site are blocked inside chroot unlike my host.
To unblock them I just figured out a simple trick. Turns out I just need to make the resolv.conf from inside chroot using same nameserver like my host (which is 127.0.0.1).
$ cat /etc/resolv.conf
nameserver 127.0.0.1
After set it up, exit the chroot and reenter.
I've tried some packaging tools / builder on some distros (debian and its based, archlinux, alpine, slackware, crux and dragora). I want to write my own package builder using bash and stow as its manager. It's inspired by slackbuild and qi recipe but I really want to make it really understandable.
These are my static-linked executables I'm building, which I think are interesting.
They consist of tools I use daily. As the name suggest, the static-linked executables don't rely on libraries (CMIIW), so you can just run it (tested in glibc and musl environment).
Some days ago, I found an interesting repository about android tools which can be built without GO compiler (check it here). If you're familiar with adb, fastboot, etc, you know what I'm talking about. It suits me because I have no GO compiler or won't bother to download one because I already have GCC. After firts successful build which result on dynamic linked binaries, I'm curious on building the static linked one. Here is how I did it !
Before we go deep into building stuffs, we need to prepare some stuffs.
Since I moved to source-based linux distro with musl (Dragora GNU/Linux & LFS Musl), I always wondering about how to run android platform tools on musl. Android platform tools seems built againts glibc so running it on musl is almost impossible. Not until I discovered about patchelf. Turns out, we can use patchelf to make android platform tools binary tool (adb, fastboot, etc) to run on musl, with a bit of trick of course.
| --- plugins/thunar-wallpaper/twp-provider.c 2025-05-30 15:44:12.534952614 +0700 | |
| +++ plugins/thunar-wallpaper/twp-provider.c.new 2025-05-30 16:00:50.899096470 +0700 | |
| @@ -145,17 +145,6 @@ | |
| /* get the mime type of the file */ | |
| mime_type = thunarx_file_info_get_mime_type (files->data); | |
| - if (g_str_has_prefix (mime_type, "image/") | |
| - && (thunarx_file_info_has_mime_type (files->data, "image/jpeg") | |
| - || thunarx_file_info_has_mime_type (files->data, "image/png") | |
| - || thunarx_file_info_has_mime_type (files->data, "image/svg+xml") |