Subject: | install_share as two different users, where the second user is not root fails |
This fails with install_share; in Makefile.PL:
$ perl Makefile.PL
$ make
$ sudo -u otheruser make install
Reason for this is that
\t\$(NOECHO) \$(CHMOD) $perm_dir "$root${S}$path"
cannot be run as non-root user on a directory owned by another user.
Questions:
1) Why is this chmod command required to be run at all?
2) Can it be a postamble to the default "make" action instead?
My solution now is that I've created a install_share_without_root;
action which is identical to Module::Install::Share, but simply skips
the "chmod" step - seems to work nicely.