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

doc: make upload target dependency on rsync optional #76

Merged
merged 1 commit into from
Nov 30, 2021
Merged

doc: make upload target dependency on rsync optional #76

merged 1 commit into from
Nov 30, 2021

Conversation

nmeum
Copy link
Contributor

@nmeum nmeum commented Nov 30, 2021

Currently, rsync is an unconditional dependency and checked during
meson configure. As such, the build will fail if rsync is not installed
which is probably not what was intended here.

From the meson documentation:

Meson will automatically insert the appropriate dependencies on
targets and files listed in this keyword [the command] argument.

This commit fixes the unconditional dependency on rsync with an explicit
find_program invocation with required: false. Also wrap the
custom_target in an if statement since it is not allowed to use
non-found external programs in command.

Currently, rsync is an unconditional dependency and checked during
`meson configure`. As such, the build will fail if rsync is not
installed which is probably not what was intended here.

From the meson documentation:

	Meson will automatically insert the appropriate dependencies on
	targets and files listed in this keyword [the command] argument.

This commit fixes the unconditional dependency on rsync with an explicit
find_program invocation with `required: false`. Also wrap the
custom_target in an if statement since it is not allowed to use
non-found external programs in `command`.
@MaxKellermann MaxKellermann merged commit b656ca4 into MusicPlayerDaemon:master Nov 30, 2021
ncfavier added a commit to ncfavier/nixpkgs that referenced this pull request Jan 22, 2022
Adds upstream patch from MusicPlayerDaemon/mpc#76
to make the dependency on rsync optional.
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.

2 participants