configure's `mandir` has unusual behaviour
Nick and I already discussed this a bit but filing a bug so I don't have to juggle so much in my head.
With the usual mandir (the base of the man directory, not a specific category), we end up with dtrace.8 being installed into mandir, not the correct category subdir.
I had to adjust the ebuild like:
- --mandir="${EPREFIX}"/usr/share/man
+ --mandir="${EPREFIX}"/usr/share/man/man8
See https://bugs.gentoo.org/938209 and 850a084b7f9ba426afb1febec97c613c90498484 in gentoo.git.
This is already fixed in the relocatable dtrace patch series
Can someone add a ref to the commit that fixes it. As far as I know that should already be on devel.
I must have hallucinated fixing it. Fix on the internal gentoo bugfixing branch now.
Thanks!
Unfortunately, the fix isn't quite right for DESTDIR:
install -m 644 $(dtrace_DIR)/dtrace.8 $(INSTMANDIR)/man8
We end up with:
* CMP: =dev-debug/dtrace-9999 with dev-debug/dtrace-9999/image
* FILES:-usr/share/man/man8/dtrace.8.xz
* FILES:+usr/share/man/man8.xz
* ------> FILES(+1,-1)
Ugh. I tested this, dammit. Fixing.
(And yes, the lack of a mkdir is problematical!)
Posted fix for review -- actually two bugs with the same effect, one mkdir of the wrong directory and one total failure to mkdir at all (in dtprobed/, unsurprisingly, since that didn't even have a manpage until recently).
Ah, and that explains why I only saw the one file being added too (which I didn't clock until you said this...), as one clobbers the other with the bad name.
Looking good now, thanks!