Skip to content
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: Fix operation of D-Bus path macros #1182

Merged
1 commit merged into from
Jul 1, 2024
Merged

meson: Fix operation of D-Bus path macros #1182

1 commit merged into from
Jul 1, 2024

Conversation

ghost
Copy link

@ghost ghost commented Jun 30, 2024

This commit fixes errors in setting the correct dbus-daemon and dbus-sysconf path variables. The variables now match those set by autotools.

@ghost ghost self-assigned this Jun 30, 2024
@ghost ghost linked an issue Jun 30, 2024 that may be closed by this pull request
@ghost ghost changed the title meson: Fix setting of D-Bus path variables meson: Fix operation of D-Bus path macros Jun 30, 2024
@ghost ghost marked this pull request as ready for review June 30, 2024 13:30
@ghost ghost requested a review from rdmark as a code owner June 30, 2024 13:30
Comment on lines 201 to 207
value: '/bin/dbus-daemon',
value: '',
description: 'Set path to D-Bus daemon',
)
option(
'with-dbus-sysconf-path',
type: 'string',
value: '/etc/dbus-1/system.d',
value: '',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a bit unfortunate that the default value isn't defined here anymore, since we lose the transparency to users. I assume you did this because you want a fallback for macOS?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The value: argument in meson_options.txt may only be a string, int, bool, or array of those. The default dbus sysconf path is a concatenation of the prefix variable and 'etc/dbus-1/system.d' so we have to leave it as an empty string. We can keep the default bus-daemon path though as it is just a pure string.

@ghost ghost force-pushed the dgsga-sysconf-v3 branch from 9e051df to 0e24f4e Compare July 1, 2024 07:25
@ghost ghost force-pushed the dgsga-sysconf-v3 branch from dc97884 to 56d5bf5 Compare July 1, 2024 07:31
@ghost ghost merged commit 4707c60 into main Jul 1, 2024
14 checks passed
@ghost ghost deleted the dgsga-sysconf-v3 branch July 1, 2024 07:32
Copy link

sonarqubecloud bot commented Jul 1, 2024

rdmark pushed a commit that referenced this pull request Jul 20, 2024
rdmark pushed a commit that referenced this pull request Jul 21, 2024
This pull request was closed.
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.

meson: default dbus sysconf path is incorrect
1 participant