On Thu, Feb 04, 2021 at 11:13:43AM -0800, Greg Steuck wrote: > James Cook <falsif...@falsifian.org> writes: > > > I don't think that's an rsync problem. Unfortunately the > > git-annex-shell binary is missing, and that's pretty critical (needed > > to access the repository from other machines; sort of like git > > push/pull). > > This part is easy, patch attached.
Thanks, I can now access my git-annex repositories remotely without an awful kludge. > > Incidentally, the man pages also seem to be missing. > > Would you like to try your hand in extending post-install target with > some man formatting magic like we have in other ports? Done (commit a1c5aec8) in my "git-annex" branch: https://github.com/falsifian/ports/commits/git-annex It's not pretty. I replicated some logic from Build/Man.hs, which is called from Setup.hs. Normally cabal v2-install would do that work for us (putting the result in .cabal/store/ghc-XXX/git-annex-XXX) but I don't know if it's worth getting that working. Caveat: I took a shortcut when testing this: instead of re-running "make build" I just made the post-build target after adding this in. I'll try building from scratch later if you don't beat me to it. On that branch I also removed the runtime dep on devel/git-lfs (it's just one of a large number of optional backends). > > Alternatively, I think the cabal (v2-)install commands installs what's > > needed (at least, it gets git-annex-shell, which is the really > > important thing). Is there some way to take advantage of that in your > > cabal infrastrsucture? > > From what I gathered the v2-install target is largely unusable for > installing packages outside of .cabal tree. At least neither I nor > FreeBSD maintainer found a way to leverage that. Hence the manual > install flow. I probably don't know all the subtleties, but when I run "cabal v2-install", I get a nice set of files under ~/.cabal/ghc-XXX/git-annex-XXX, including the man pages and all three needed binaries. I would guess that just copying those files to the destination would do the trick for most cabal executable packages, but I haven't actually tried it. Maybe it's better to be cautious. -- James