Skip to content

Meson build system for distros#491

Open
mia-0 wants to merge 3 commits intoromkatv:masterfrom
mia-0:meson
Open

Meson build system for distros#491
mia-0 wants to merge 3 commits intoromkatv:masterfrom
mia-0:meson

Conversation

@mia-0
Copy link
Copy Markdown

@mia-0 mia-0 commented Apr 16, 2026

I got sidetracked and packaged gitstatus while setting up p10k because, to put it mildly, I really don’t like it when something downloads and runs random untrusted executables behind my back.

Anyway, this makes building gitstatusd in a way that works for e.g. Linux distributions very easy. Usually, the following is sufficient:

meson setup builddir
meson compile -C builddir
meson install -C builddir --skip-subprojects

Meson will automatically fetch the libgit2 fork (see subprojects/libgit2.wrap) and build it as internal dependency. It will try to use system libraries for the few dependencies that cannot be disabled.

Version info is read from build.info, but the Wrap file duplicates the Git ref for libgit2.

I did not attempt to replace the existing build scripts, but that should be trivial if desired.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant