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: do not require rsync to build #102

Merged
merged 1 commit into from Sep 24, 2021
Merged

meson: do not require rsync to build #102

merged 1 commit into from Sep 24, 2021

Conversation

eli-schwartz
Copy link
Contributor

@eli-schwartz eli-schwartz commented Sep 24, 2021

Due to mesonbuild/meson#8641 the latest versions of meson now check that the first argument to run_target is a found executable.

This causes rsync to become explicitly required even though it is only used for maintainer targets... there are essentially 3 solutions:

  • explicit find_program and only define the target if rsync is found
  • explicit find_program with a disabler that auto-disables the target if
    not found
  • run the program "env rsync", since env is basically always available
    and will in turn run rsync -- but meson doesn't know that rsync is
    "needed"

Options 1 and 2 conveniently hide the maintainer target from people who do not care, and the disabler is slightly shorter.

Fixes #101

Due to mesonbuild/meson#8641 the latest
versions of meson now check that the first argument to run_target is a
found executable.

This causes rsync to become explicitly required even though it is only
used for maintainer targets... there are essentially 3 solutions:

- explicit find_program and only define the target if rsync is found

- explicit find_program with a disabler that auto-disables the target if
  not found

- run the program "env rsync", since env is basically always available
  and will in turn run rsync -- but meson doesn't know that rsync is
  "needed"

Options 1 and 2 conveniently hide the maintainer target from people who
do not care, and the disabler is slightly shorter.
@MaxKellermann MaxKellermann merged commit ae70599 into MusicPlayerDaemon:master Sep 24, 2021
@eli-schwartz eli-schwartz deleted the rsync-optional branch September 24, 2021 11:36
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.

None yet

2 participants