-
Notifications
You must be signed in to change notification settings - Fork 153
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
Fix: add LIBDIR to SYSTEMD_SERVICE_DIR config #2304
base: main
Are you sure you want to change the base?
Conversation
Conventional Commits Report
🚀 Conventional commits found. |
This comment was marked as spam.
This comment was marked as spam.
Only a remark that it AFAICT was the purpose to always place the file to |
@cfi-gb I see. That explains why my cmake command has built up so many flags over the years. This seems wrong to me because:
|
Just to note that i'm not against this change, just wanted to mention why this might have been done like that in the past Especially as e.g. |
OK, maybe needs a broader approach, I'll look again next week. |
What may play a role for hardcoding I also noticed that the same happens for another package, but I only opened it for this package to see what happens. If the reaction was positive a follow up issue would have been made. But that seems obsolete now? |
Hey, my intentions with #1662 were to use sane defaults that work out of the box without adjusting any paths even when using the default prefix |
Thanks for the context @bjoernricks and @Narrat. From what I can see, the standard settings just work, but only if you install as root, and only if you install to one place. It's great that the standard settings are sane. Can we also have sane behaviour when I install to my home dir? For example, when INSTALL_PREFIX is Maybe there's some conflict of requirements here because when installing to |
And the difference between
So it isn't necessary to hardcode |
What
Prefix the
SYSTEMD_SERVICE_DIR
config path withLIBDIR
.Why
The default install was always putting the systemd files in
/lib
.For one this can cause permission problems, for example if you're installing to your home dir.
Note that it's still possible to specify an exact location by passing -DSYSTEMD_SERVICE_DIR to cmake.
Verify
On main, before the PR:
With the PR:
References
Closes #2296.