77 Followers
429 Following
458 Posts

Interested in FOSS, cyber security and ecofriendly technology.

Hacking on #alpinelinux in my free time.

pronounshe/him or anything else
TIL renaming a repository on github changes the directory name in source tarballs (and therefor the hash) even when using the old url
fchdir might prevent the usage of symlink and it's race conditions. But is not thread safe
@ska Is that too hacky for skalibs or will we see IPCPATH_MAX increase in the future?

Not quiet what I asked for but a way to bypass the limitations of sun_path may be sufficient for my case.

A mix of a symlink (for long dirname) and rename (for long basename) seems to work. To be portable (eg. not relying on unprivileged user namespaces) it requires a temp directory with a short name to be accessible.

proof of concept: https://paste.sr.ht/~sertonix/174ff4632315aeae300752c8b27e18ddc847e86e

Collected a few tricks I tend to use when writing shell scripts but that I couldn't find anywhere else: https://codeberg.org/sertonix/alpine-scripts/src/branch/main/shell-notes
alpine-scripts/shell-notes at main

alpine-scripts - Various scripts for Alpine Linux including package/system maintenance and more

Codeberg.org

Is there any way to pass an open file descriptor to another process that does not require an unix doman sockets or being a child process?

Edit: and not /proc due to not being portable.

reading linux discourse is such a mental drain

have some of y'all considered not overconfidently spewing stuff that you in practice don't really have any idea about

it's *super* tiring as well as demotivating to have preliminary takes about what's going to be thrown at you on top of all the shit that is already happening to be dealt with

be a bit considerate

Anyways, there is now an APKBUILD to build intellij-idea for alpine: https://codeberg.org/sertonix/rports/src/branch/main/random/intellij-idea/APKBUILD

Compiling it only involves 3 different OpenJDK forks 🙃

rports/random/intellij-idea/APKBUILD at main

rports - Random APKBUILDs that are not (yet) in aports

Codeberg.org
Huh, gentoo and openbsd don't build intellij-idea from source?!

principles of software distillation:

Old software is usually small and new software is usually large. A distilled program can be old or new, but is always small, and is powerful by its choice of ideas, not its implementation size.

A distilled program has the conciseness of an initial version and the refinement of a final version.

A distilled program is a finished work, but remains hackable due to its small size, allowing it to serve as the starting point for new works.

Many people write programs, but few stick with a program long enough to distill it.