From c131c0f0c5caeccc83173fe02e9174ba3dbaad9b Mon Sep 17 00:00:00 2001 From: "eschwartz@5abb721e66990e478c7d1caf96beb4f9794eb168" Date: Thu, 15 Aug 2019 22:46:53 +0000 Subject: [PATCH] --- ...mpletions_target_has_missing_dependency.mdwn | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 doc/bugs/install-completions_target_has_missing_dependency.mdwn diff --git a/doc/bugs/install-completions_target_has_missing_dependency.mdwn b/doc/bugs/install-completions_target_has_missing_dependency.mdwn new file mode 100644 index 0000000000..8a0b4835be --- /dev/null +++ b/doc/bugs/install-completions_target_has_missing_dependency.mdwn @@ -0,0 +1,17 @@ +### Please describe the problem. + +When running `make install-desktop install-completions`, the git-annex binary may not exist yet. Depending on the order in which Make runs the requested targets, the git-annex target (install-desktop -> build -> $(all) -> git-annex) may or may not have run, to a) check that dist/build/git-annex/git-annex is up to date, b) create the symlink in the root directory, by the time the install-completions target gets run. + +### What steps will reproduce the problem? + +`make install-completions` without the git-annex binary having been built already. + +### What version of git-annex are you using? On what operating system? + +Trying to package git-annex for Arch Linux, using the following build recipe: + +https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/git-annex#n34 + +reference downstream bug: https://bugs.archlinux.org/task/62775 + +(This is building the binary via runhaskell Setup configure/build instead of using the Makefile -- I don't know exactly why, but I suspect it was originally packaged that way due to needing custom options for Arch's ghc.)