Closed ferdnyc closed 3 years ago
Interesting. :/ This can indeed be done, but just out of curiosity, I wonder why you opened a PR to remove it entirely rather than an issue to have it made optional? :p If it's intended to be there, then moving it to some external process would probably be a loss of functionality.
With ncmpc documentation on https://ncmpc.readthedocs.io/en/latest/ automatically built from git, we don't need that rsync target anymore, so I'll eventually remove this as you suggested - but the proper fix for this initial problem is #102 indeed, so I merged that one for now.
Aha, not needing the rsync target anymore does seem convenient, indeed.
but just out of curiosity, I wonder why you opened a PR to remove it entirely rather than an issue to have it made optional?
A fair question. The basic reason being, I was lazy. The PR is the exact patch that I added to the Fedora packaging, applied prior to building. I had faith that the devs wouldn't apply the PR if they solved this in some other way.
(There's sort of a disconnect between issues and PRs in Github. They share a common numbering but any request can only be one or the other, when often...)
Ha, I suppose we could always go back to attaching patch files to bugtrackers.
Is it possible to handle the
upload
target indoc/meson.build
in some other fashion, a way that's external to the build process?The reason being, having that rule there creates a build-time dependency on
rsync
, and the build will fail if it's not installed — meson won't even generate the build system, it just errors out.I just finished adding a patch to the Fedora package spec for ncmpc that will remove the
upload
target before generating, since it was preventing us from building ncmpc for Fedora 35. rsync isn't a dependency of ncmpc, so requiring it for the build to run (when it's not even going to be used) seems less than ideal.