Stats

3
Projects
15
Devlogs
121
Votes
3
Ships

Coding Time

All Time: 83h 46m
Today: 0h 0m

Member Since

July 22, 2025

Badges

2
🚢
Maiden Voyage
you shipped your first project! the journey begins...
Ballot Stuffer
vote 100 times.

Projects

3
Java/Kotlin Wiki Bot Framework
4 devlogs • about 1 year ago
immich AUR packages
8 devlogs • about 1 year ago
larksuite-bin AUR package
3 devlogs • over 1 year ago

Activity

Aris
Aris Shipwright gave you feedback
408d ago

immich AUR packages

Cool project! but the immich server package doesn't install properly

from Aris
Aris
Aris Shipwright gave you feedback
409d ago

larksuite-bin AUR package

Cool project! But the build fails because the LICENSE file's checksum doesn't match, please update the PKGBUILD.

from Aris
Elliott-entity
Elliott-entity Shipwright gave you feedback
410d ago

Java/Kotlin Wiki Bot Framework

Please link the demo to jwbf.sourceforge.net/ and make the download at least go to a WIP page.

from Elliott-entity

Abandoned: Sparse checkout!

so sparse all my handiwork just fell through the cracks

It turns out Arch makepkg just doesn't support my attempted sparsery. It performs a lot of extra steps on git sources, which is really nice in most cases preventing unnecessary downloading, but in THIS CASE it just plain does its stubborn steps of a full clone over my DLAGENTS flag, the will of the sparse!

So anyways, we now download the same release tarball that the unified immich pkgbase downloads. I hope AUR helpers are smart enough to reuse this file from cache. Though it adds a ton of build time to machines that just want to host the ML service...

In theory, I should be able to get around this by specifying the source git repo with the https:// protocol instead and pacman won't override the DLAGENT I set for THIS protocol, will ya????

I guess I'll actually have to put in the work! Watch out, Pacman. Your days of chomping over sparse yellow pellets and driving innocent civilians through mazes are numbered.

Update attachment

In this edition of the devlog, we proudly present a marvelous guest speaker: MYSELLLF!!!! through the commit message!!! which doubles as part of this devlog y'know why write twice when you can write thrice and invest meaningless time writing devlogs about writing devlogs hey hello how are you doing

With that, all of the tests now succeed.

Four skip, though.

Next up is fixing what was broken by https://www.mediawiki.org/wiki/MediaWiki_1.37/Deprecation_of_legacy_API_token_parameters . That should make me our final Java (euuuugh) release, after which I'll port this to glorious Kotlin.

Onwards!

Update attachment

It looks like the project's previous archaic version of Apache HttpClient simply did not realize this is an invalid hostname. The test silently failed to seem like a success.

This is a genius idea I'll be sure to remember in my future days as a wage slave!

Update attachment
Earned sticker

The answer was stupidly simple: the parallel testing another PR recommended caused it! Who knew monothreaded listeners would fail when you run multiple of them at once??

That cleared up a ton of errors, especially after I discovered and fixed the jackson.databind.PropertyNamingStrategy import being pluralized on the way.

Now, I'm discovering a something seemingly utterly insane: a built-in test (triggerable outside the test suite through a simple constructor parameter) passing an invalid parameter value! What could've wrought this monstrosity‽

Update attachment

I wanted to make a bot to perform a very specific task on the English Wikipedia. Because Kotlin is THE GlanguageOAT, I browsed https://www.mediawiki.org/wiki/Manual:Creating_a_bot#Java , concluding that only JWBF had a sane (read object-oriented) API. Look, why'd you make something for Java if it isn't object-fracking-oreinted? What in the name of God and all that is holy is bot.edit("Attempted assassination of Gerald Ford in San Francisco", "A very long string representing the changed full text of the article about how Oliver Sipple saved the President's life by tackling assassin Sara Jane Moore's gun and was promptly outed as gay\n==Biography==\n==History==\n==Background==\n==Legacy==\n==Reception==\n{{citation...", "my awesome, correct edit message");" instead ofarticle = bot.getArticle(Attempted assassination of Gerald Ford in San Francisco); article.setText(blabhlabhalbjkdflhabljugetthepoint); /* which becomes just article.text = something in Kotlin! */ article.setEditSummary(my awesome, correct edit summary); article.save();`? You're editing the article, not the bot! Witness the unlimited power of the greatest sexual orientation ever!

    ContentAccessable ca =
        new ContentAccessable() {

          @Override
          public boolean isMinorEdit() {
            return Math.random() > 0.5 ? true : false;
          }

          @Override
          public String getText() {
            return "test";
          }

          @Override
          public String getTitle() {
            return "MyTest";
          }

          @Override
          public String getEditor() {
            return OtherClass.getLocalizedProfileName();
          }

          @Override
          public String getEditSummary() {
            return null;
          }
        };

    SimpleArticle sa = new SimpleArticle(ca);
    Article article = new Article(bot, sa);
    sa.save();

🥹 the possibilities are limitless

it's just that the language is convenienceless.

and my problems will prove to not just stop at the language...

So, let's look at the state of the project: holy heck look at all those depbump PRs

naturally, I gravitated to overexerting myself trying to do all t hem myself, but there's all kinds of incompatibilities even after openrewrite and 2.5h of shuffling around maven dependency hell!

at least all i have to fix are test mockito listeners now...

conclusion:

🫠 the hassle is limitless

Update attachment

By popular demand (a user's confusion), and because it has very separate build steps as a python package anyways (which includes the time to build python 3.12 from source!), I'm turning that part of the package into its own package.

I've written a basic PKGBUILD. What's left to do is to 1. implement a partial clone through git sparse checkout of just the ml source directory 2. adequately test the package in what we SuperiorArchBTW-ians call a clean chroot, which simulates a clean install, since I'm unsure if I included the right dependencies.

Also, I've now bumped the package to 1.144.1. 1.144.0 doesn't exist! And you know why v1.144.0 has been made a sacrificial object to the Release God, in upstream's words? Yours truly!

I tried making a contribution to immich when I was doing the machine-learning split: upstream bump workflow hadn't been updating the pyproject.toml's version ever since they migrated their toolchain to uv! So I fixed that in https://github.com/immich-app/immich/pull/22372, but I didn't actually fix it because I used the wrong GitHub Actions variable name. Darn. This is why you do adequate testing, people. Now will you finally salute me for using Arch?

Dedicate yourself to a cause and they shall make offerings for you... Such is the divine wisdom and gospel of the makers!

Update attachment

While updating to 7.50.13, I discovered the license had updated as well. Since the license is currently fetched from their TOS webpage, overcomplicated so as to wrap static HTML as one double-quoted string filled with \n-s in minified JS as a Hera app, I would need to take some time to see what changed in the license. Out of Curiosity, I Endeavor-ed.

Discoveries:
1. There's actually an official version number‽ Who would have thought!
2. The page duplicates its content, which is why it's 1.7kb.

There's data stored as JS vars of two version of the HTML body: the only difference (besides recompiled classnames) is that hereData is the March TOS, while the heraMobileData var stores the latest TOS. With this information, I may finally start my plans for world domination stripping the LICENSE down to just the static portion...

I believe the main problem with corporate culture right now is the lack of MOBILEity and am soooooo glad to see Lark follow that goal with this stupidity!

To be continued with investigations, soon™...

Update attachment
aaronliu
aaronliu created a project
421d ago

Java/Kotlin Wiki Bot Framework

An actually object-oriented Java API for interacting with MediaWiki! ... last updated in 2019. I forked it, and will try to get it back up and running and then port it to Kotlin. test it out with `mvn test`!! (AI used for banner image, that doesn't mean AI helped code/dependency manage right?)

Java/Kotlin Wiki Bot Framework
4 devlogs 0 followers Shipped

In the latest update, upstream bumped sharp again. Normally a libvips version requirement update is all that's needed, but for some reason sharp refuses to run with the previous version of OpenEXR now? Let's see if we can find this documented anywhere...

Update attachment

Some people like to run the server on a canned potato and separate out the machine learning on their beefy Alanware 2000 PC, using their router to bridge them. Sure! immich-machine-learning is now packaged separately.

I'd have to notify the users that I had just separated out popular functionality including smart search, duplicate detection, and facial recognition; the obvious solution is to add a post-upgrade message Along the way, I discovered that a version-check gate wasn't working...

     if [ "$(printf '%s\n' "$1" "1.142.0" | sort -V | tail -n1)" = "1.142.0" ]; then
        echo -e "\033[1;33mIMPORTANT\033[0m\033[1m: immich-machine-learning is now packaged separately. It is required for features such as smart search, duplicate detection, and facial recognition."
        echo -e "\tInstall and enable immich-machine-learning to continue using these features."
    fi

... because I was comparing 1.142.0 to the version upgraded to ($1), instead of from ($2). Oh well. Good thing ArchBTW™'s peak Pacman system automatically prints out new optional dependencies anyways.

Also, immich updated their sharp to 0.34.3 a while ago. That nearly always means the transitive libvips version requirement is bumped, too... Luckily we can easily find the version required from https://github.com/lovell/sharp/blob/v0.34.4/package.json#L196 .

Meanwhile, the immich maintainers responded to my --type-check is required comment bedfuddled:

[9:06 PM]Min: also: 
> > nest build --type-check
>
> Info  "typeCheck" will not have any effect when "builder" is not "swc".
[9:13 PM]ey, ey,: yeah the builder is in fact swc
[9:13 PM]ey, ey,: at least on my machine
[9:14 PM]Min: it shoudn't be
[9:14 PM]ey, ey,: did you run pnpm fetch first as the dockerfile specifies
[9:14 PM]Min: you don't need to do pnpm fetch
[9:14 PM]Min: thats just to precache the deps in the docker image
[9:15 PM]Min: will try, just b/c curious
[9:16 PM]Min: oh, heh - you are correct.... fetch seems to bust it, weirdly
[10:05 PM]Min: [...] SWC in server is unlikely to happen for a while. I had an experimental PR for that (still open maybe) the problem is that SWC does now allow nest/swagger to generate the .json that is used by open-api-gen to create the dart/typrscript sdks

As of 18 April 2077, analysts have still yet to migrate immich off of or onto SWC. More news at 11.

Update attachment
Earned sticker

The problem was simple:

index 3d28e96..c8da1cc 100644
--- a/backup.service.ts.patch
+++ b/backup.service.ts.patch
@@ -4,7 +4,7 @@
      try {
        await new Promise<void>((resolve, reject) => {
          const pgdump = this.processRepository.spawn(
--            `/usr/lib/postgresql/${databaseMajorVersion}/bin/pg_dumpall`,
+-          `/usr/lib/postgresql/${databaseMajorVersion}/bin/pg_dumpall`,

Backup works now!

Update attachment

Somebody commented on my AUR package saying that the database backup didn't work. They're right!

They were so nice to even make the patch themselves! They found that the problem was immich hardcoding the path to a postgres binary on Debian, but this is Arch.

Problem is, the patch currently is not applying...

Update attachment

v1.139.0 and v1.139.1 have made the ultimate sacrifice for switching from npm to pnpm in our release pipeline

holy chungus did they switch.

rewriting the entire PKGBUILD to use sleeky-pnpm-jibbs instead of filthy-slow-npm-frank

The AUR package's installation instructions have always been based on the upstream Dockerfile-s; mainly, https://github.com/immich-app/immich/blob/main/server/Dockerfile.

With my awesome eyesight, I immediately found the MR that introduced the changes, and copied them (and some ensuing fix commits) into my build() function. That should work!

It didn't. Luckily, makepkg automatically creates its working directory under that of the PKGBUILD file, so I went into the depths of the giant monorepo to investigate why I kept getting the error The@nestjs/swaggerplugin is not compatible with Nest CLI. Neitherafter()norbefore()norafterDeclarations()function have been provided. from nest CLI. What NOBODY ever told me was how ChatGPT is actually useful. It instantly hallucinated the correct answer: to patch the plugin name as @nestjs/swagger/plugin instead.

Angel: But that doesn't make any sense! The official docs say to use @nestjs/swagger! They say you need to write and debug a correct-config generator! This is evil! This is wrong!
Devil: It works.

All's well, time to verify the package build and commit. The package doesn't build. You see a message indicating the absence of a node_modules folder.
You gasp in horror. You use ChatGPT again. ChatGPT hates you. Its instructions don't work and ask you to take matters into your own hands. You destroy your computer. The solid-state drive lies mysteriously undisturbed. With a robe and wizard hat, you transform it into a magical shelf of printed Linux manuals. You can't find the entry for pnpm.1. Laughing manically, you execute your plan all along: you beg a bewildered Uncle Frank to buy your loathsome sheathes of paper out of pity. He does. With your newfound wealth, you buy a new Framework Desktop. Resurrecting your data by inserting your solid-state drive, you correctly invoke pnpm install --help to realize how an pnpm install --offline can link its store to the current folder. You do it, and you did it.

And this concludes our melodrama. Thank you, everyone. Enjoy your new computer.

interlude: split packaging

The PKGBUILD has always provided build instructions for two packages at once: the slow-to-build immich server itself and the official, lightweight CLI. It does this by always building both and then choosing one out of two split package() functions for how to turn the built files into a package. With the massive rewriting that the new build method requires, this is the perfect time to include a split build() function in the rewrite!

—an idiot, half an hour before realizing split packages cannot split the build() function. oh well. Users who install immich-cli would probably want to install immich-server too in any case, since immich-cli requires a server. Those with unorthodox installations who don't want a server are probably skilled enough to comment out the immich-server steps anyways.

Chaeyoung's favorite random folder

Yeah, for some reason I wanted to do more.

For the longest time, the Python machine-learning package was installed under /opt, despite only being half-a-gigabyte. That folder is for Large self-contained packages; modular binaries should go under /usr/lib, and move the things to /usr/lib I did. Please kindly ignore my hiccup in forgetting to push my changes to the accompanying systemd service file.

Perhaps we need to invent some drinking game to get me off my meandering productivity. Jack fo all trades, master of none. Not even typing.

the devil that you know

is LYING. Today while writing this I finally re-read the docs links and realized that I wasn't looking at a monorepo. Yes, immich itself is a monorepo, but the server folder is not! So for all intents and purposes related to nest.js, it is not a monorepo, and the non-monorepo suggestion to just add an argument work!

    cd server
    SHARP_IGNORE_GLOBAL_LIBVIPS=true pnpm exec nest build --type-check

Conclusion? Blind faith in anyone named Angel.

Update attachment

So it turned out I was supposed to make devlogs as I go.

Woah. Huh.

Hopefully a masterdoc recap is fine... yea? ?? ????????

I'll omit the version bumps, of course.

⁂

I utilized the little-known feature of including a changelog! Since the vectorchord migration, another breaking change popped up, so I decided it was best to centralize everything in a small markdown file people will surely read between updates.

right, AUR helpers? right?

Anyways, this feature is accessible through pacman -Qc {package name}, where all available changelogs will be listed if you don't specify a package name. I don't think any other package managers have this feature!

Honestly, the only other packages I have that use this are GloriousEggroll's ProtonGE distribution and stfl, so I have quite low confidence... but whatever RTFM ya snooze ya looze

Besides enabling an option to strip symbols from binaries... which only stripped 1.4MB... I also fixed back a missing file. I don't know how it was appearing before, but now makepkg complained about the absence of build-lock.json. Thus, examining the wisdom of the ancient, I borrowed code from the immich server's container edition's dockerfile, and the package now ships.

Kind of like the work on larksuite-bin, I had to make a licensing info update here, too. The project had changed its license to AGPL 3.0 in 2024, and in any case, the claimed MIT license would have required custom packaging code, whose absence drew my attention.

⁂

With August, I decided to clean up some cruft within the package. I removed some old patches to Python dependency versions. A link to the origin of a nginx config file had stopped working. RFC 0052 had passed, encouraging package maintainers to add REUSE licensing info to their packages, and so I did. I even made a merge request to the Arch REUSE tool adding .gitignore files by default, which has its own story. And even though I manually type the names of the files I want git to commit, I added makepkg excrement to the .gitignore. Insurance can't be cheaper than typing a few lines ah taxt liek taht nowadays.

While working on this, immich made a new hotfix release! Sneaky.

⁂

A mysterious bug appeared! Randomly, some users find all your Cee-S-S disappear!! 👻😨 (COPS CALLED)

A commenter finds that copying over old files from before the cleanup but pasting in the PKGBUILD (the actual build instructions) fixes everything! Yet, the warrior maintainer is unable to diagnose it because they cannot reproduce the issue... until it creeps up after a routine version bump WEEKS later at the WORST time...

Being I go on a trip to Miami and forget everything. In the blazing summer. Why

After I get back, I finally remember I have work to do and start comparing files that work and files that don't. Meld luckily has a folder comparison feature, with which I isolate the issue to... the lines I added to the .gitignore‽

diff --git a/.gitignore b/.gitignore
index f66fce115885..dcec8d84cd74 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,7 @@ admin1CodesASCII.txt
 admin2Codes.txt
 cities500.zip
 base-images/
+src/
+pkg/
+*.pkg.tar.zst
+LICENSES/

Another user independently diagnoses this as well. We patch the .gitignore and everything goes back to normal.

Conclusion? Insurance is not cheap.

⁂

Speaking of health, in the next update I also move the official script immich-healthcheck to the usual executable location /usr/bin.

It's pretty useless. It just pings an API endpoint.

For free. Life is nice.

Update attachment
aaronliu
aaronliu created a project
451d ago

immich AUR packages

so, immich is this magnificent backup service you can host on ye compoote. Because of its great amount of dependencies, upstream recommends sealing it off in a docker glasshouse. But that's preposterous! For at least on my Arch BTW installation, running docker breaks my Waydroid Internet! Thus for this and other reasons to dislike the proprietary blåhaj, we AUR idiots pulled it out of container safehaven to run on bare metal—interfacing with our actual machine's libraries! Such is an existing package I adopted to keep up with new updates. Before I joined Summer of Making, I had in June updated the package from 1.133 to 1.135 and introduced a migration off-ramp from a deprecated library for users to run immich with: pgvecto.rs with vectorchord.

immich AUR packages
8 devlogs 0 followers Shipped

I got to work. It shouldn't be too hard to reverse-engineer how the Lark site served the downloads. Everything you see in the browser is source-available since HTML, CSS, and JS are pretty much interpreted—except for the backend, the logic for how the server decides to send you things. But either way, to download something, the browser needs a link, and there should be either an endpoint or relevant JavaScript function where one can reliably fetch the download link.

Soon enough, I found that the website fetches the latest download link from the JSON returned by a call to https://www.larksuite.com/api/package_info?platform=10 . Replacing the version doesn't allow you to download an older version of a deb, but at least we have a procedure to get the version now. All I need is to extract the link from the API URL. Due to the semantic logic of Arch package files, I opted to do this through a custom DLAGENTS. To avoid requiring an additional dependency—the overqualified jq—I wrote a very simple grep chain, with %u in place of the download link—that I put down as the API endpoint.

/usr/bin/curl -LO $(curl '%u' | grep -oP '(?<="download_link":")[^"]*' --)

However, the DLAGENTS option does not allow piping! It only allows single commands... which means you can just pass the command to sh -c.

That plus the option being enclosed in (either single or double) quotes itself made for a lot of quote-escaping shenanigans that I couldn't figure out until Shuck suggested using printf %q, which escaped everything without using quotes at all. The hassle was finally over!

DLAGENTS=("https::/usr/bin/sh -c curl\ -LO\ \"\$\(curl\ \'%u\'\ \|\ grep\ -oP\ \'\(\?\<=\"download_link\":\"\)\[\^\"\]\*\'\ --\)\"")

...except there was more I had to do. curl gave me a URL with literally \u0026x—the shell-unrecognized UTF-8 escape code for the ampersand &, a special character essential to chaining URL query syntax—which attached all the URL parameter values and names to the first one instead of properly pushing all the buttons on communism's defenses.

The obvious solution would be to fill in the ampersands through sed.

DLAGENTS=("https::/usr/bin/sh -c curl\ -LO\ \"\$\(curl\ \'%u\'\ \|\ grep\ -oP\ \'\(\?\<=\"download_link\":\"\)\[\^\"\]\*\'\ --\ \|\ sed\ \'s/\\\\u0026/\\\&/g\'\ --\)\"")

This finally worked when ran in the shell. Yet makepkg still gave the error screen!

A week of stasis later, a comment on the broken state of the package awoke me from my slumber. I started debugging by having curl give verbose output through... the -v flag.

GET /obj/lark-artifact-storage/3d9dcd0b/Lark-linux_x64-7.46.12.deb?lk3s=fb957577&x-expires=1756144875&x-signature=TmCvXiGbtnGW1HlkB%2Bolz%2FYzjuU%3D HTTP/2

Interestingly, the command had replaced \u0026 with & instead of &, and only when run with makepkg or the related utility updpkgsums. Adding another literal slash fixed the issue. I still have no idea why.

Well, the download works now! From that day on, communism was defeated, and the proletariat lived happily ever after without killing health insurance executives.

⁂

Here's what else you need to know today: The cd to $pkgdir was utilized in its full potential: ${pkgdir}/ prefixes have been stripped from directory names that can now be referenced relatively, such as with usr/share/hello instead of ${pkgdir}/usr/share/hello. Experts estimate future savings of ⏣10 billion in multiple carpal sclerosis.

As the package was a portable directory a little over one gigabyte large, it was moved to the /Usr/Lib Folder for Normal People to Live, away from the /opt space exclusive for the special treatment of FTB App my beloved.

Proper licensing info was added to both the package metadata and files, the latter through downloading the website's term of service. The download would hold an evanescent ad tracking token, which destablized the checksum until the maintainer sadly incurred sed to transform it into 418. It was smooth-sailing reproducible yeet for another two weeks until upstream done rekt us by tralalunging away a space. I think it's fixed now.

The maintainer left the debugging verbosity argument in the package by accident. In the two minutes it took for them to correct this, the AUR had already seen a malware enterprise springamoleover amount of 0.

That's it for today's Unfunny Rambling. Come back next year, whence yoush finally grok what I'm yapping.

Update attachment

When the communist upstream starts practicing anti-consumerism

My company uses Lark for its collaboration platform—offering messaging, calendars, meetings, docs, and tasks. Don't ask me why. Sure, it's got all the features, but surely they would want to use something more supported in the US (like Notion), especially when Lark is made by the increasingly-persecuted ByteDance?

Well, I use Arch. With no other takers, it fell upon me to maintain the AUR package. Fortunately, there was an existing package to build on, and all I had to do was bump the version number since last December. I also corrected the homepage and dependencies, and all was happily ever after.

⁂

Early July, I wake up with this email (excerpted and pictured) in my inbox.

Lark's only download sources had gated the links behind a hashed timestamp.

Update attachment
aaronliu
aaronliu created a project
482d ago

larksuite-bin AUR package

An existing user-generated installation script for Lark, an office collaboration suite that thinks it competes with notion. I maintain this package and make sure it installs and works.

larksuite-bin AUR package
3 devlogs 0 followers Shipped
aaronliu
aaronliu joined Summer of Making
485d ago

This was widely regarded as a great move by everyone.