Subject: More than 580 packages use man/ instead of ${PKGMANDIR}
To: None <>
From: Aleksey Cheusov <>
List: pkgsrc-users
Date: 04/20/2006 03:13:33
Hi all.
I've found that more than 580 pkgsrc/ and wip/ packages
use man/ instead of ${PKGMANDIR} in ${INSTALL_MAN}
command inside Makefile's, therefore man packages will be installed
to incorrect directory.
By default (in NetBSD) ${PKGMANDIR} is equal to 'man'
and there is no problem.
But on other platforms they may be different, also sysadmins may change
this variable manually in ${pkgsrc}/mk/default/mk.conf.
As far as I understand all these packages must be fixed
and 'pkglint' package should be updated to find this sort of bugs.

I used the following command to find all buggy packages.
Run it from /usr/pkgsrc.

find . -name Makefile -maxdepth 3 -mindepth 3 |
xargs grep 'INSTALL_MAN.*man/[^[:space:]]*[[:space:]]*$'

Best regards, Aleksey Cheusov.