-
Notifications
You must be signed in to change notification settings - Fork 355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Meson based build creates invalid systemd unit file #1462
Comments
I think the first ExecStart line should have been removed. Sorry to have missed that |
Seems like that. Building via the old way creates the same wrong unit file |
@Narrat I commited the line removal. |
Can confirm f6ba641 fixes the invalid unit file error (appearing with Makefile and meson built dunst) But I did notice something additional. So there is an additional issue only happening with meson. The systemd service won't be properly named on install. I assume I'm sorry for this mess of an issue :D |
Looking at the files in |
mmh I didn't notice that. probably we should just do as you say and put the fix on meson. |
Hmm... not respecting Using a patch to match the name of the systemd unit file and running dunst still fails:
Looking at both, the dbus and systemd file, shows the binary path with Edit: Just to confirm: The paths are fine for both files if build with the Makefile |
Log:
User defined options are recognized, the files end up with a default value? |
It currently seems options from the command line (User defined options) are only available later on? The binaries get installed in the right place, so it seems to be considered. But setting up the build dir uses the default.
And as can be seen it defaults to bin. Whereas later it is correct. But at that stage the template files already had their variables replaced. Sidenote: Project version in |
Decided to build a new package with the new build system in place.
And after a restart I noticed that
dunst
won't display anymore.Looking at the user unit file it contains two exec lines (and both of them are wrong for the generated package):
So
twoone issues:I suppose it is due to keep supporting both build systems? But doesn't help if the unit file gets invalidated
2) If--bindir
is unset it should respect the value of--prefix
as a fallback (like it is done in the Makefile. Could be circumvented with explicitly settingbindir
, but shouldn't be necessary. (And not that much of a problem, as /bin symlinks to /usr/bin, but still?)Edit: I must have mixed up the files. Looking at the installed user unit file contains the right path to the command
How was it built?
With a
PKGBUILD
to create a package for an Arch distribution. Essential commands used in said PKGBUILD:arch-meson ${_pkgname} build meson compile -C build
arch-meson
being a wrapper and setting the following options:The text was updated successfully, but these errors were encountered: