Skip to content

Commit

Permalink
build: Don't install daemon files when building libs only
Browse files Browse the repository at this point in the history
Those files are only required when the daemon is in use, and because of
their hard-coded paths when libsystemd isn't available, it fails to
build in Flatpak.
  • Loading branch information
hadess authored and jrybar-rh committed Sep 26, 2024
1 parent 1d4f7f4 commit b91ba84
Showing 1 changed file with 24 additions and 22 deletions.
46 changes: 24 additions & 22 deletions data/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -30,28 +30,30 @@ if enable_pam
)
endif

configure_file(
input: 'polkit.service.in',
output: '@BASENAME@',
configuration: service_conf,
install: true,
install_dir: systemdsystemunitdir,
)
if not get_option('libs-only')
configure_file(
input: 'polkit.service.in',
output: '@BASENAME@',
configuration: service_conf,
install: true,
install_dir: systemdsystemunitdir,
)

configure_file(
input: 'polkit.conf.in',
output: '@BASENAME@',
configuration: service_conf,
install: true,
install_dir: sysusers_dir,
)
configure_file(
input: 'polkit.conf.in',
output: '@BASENAME@',
configuration: service_conf,
install: true,
install_dir: sysusers_dir,
)

install_data(
'policyconfig-1.dtd',
install_dir: pk_datadir / 'polkit-1'
)
install_data(
'policyconfig-1.dtd',
install_dir: pk_datadir / 'polkit-1'
)

install_data(
'polkit-tmpfiles.conf',
install_dir: tmpfiles_dir
)
install_data(
'polkit-tmpfiles.conf',
install_dir: tmpfiles_dir
)
endif

0 comments on commit b91ba84

Please sign in to comment.