# from Thomas Klausner
# on Wednesday 17 October 2007 01:10:
>If I want to install the libs, I have to be root (or do sudo ./Build
>istall). But if I do this, all the extra stuff installed into the app
>dir also belongs to root.
This implies that it shouldn't be part of ACTION_install. Are they user
or shared files? How does it work with multiple users? Do the files
go in $HOME or what? This might be something that you want to address
in the application (e.g. the typical config scheme with defaults
in /etc/foo over-written by ~/.foo) rather than the install.
>Is there an easy way around this? I would like to avoid to have to set
>all files to a different owner after installation (from within
>Build.PL).
I would avoid doing any sort of chown in or around the build.
>Can I somehow add Build actions? If yes, I could define a new action
>'app_install', and call that with correct user.
Yes. Just create an ACTION_app_install() method in your M::B subclass.
--Eric
--
"Everything should be made as simple as possible, but no simpler."
--Albert Einstein
---------------------------------------------------
http://scratchcomputing.com
---------------------------------------------------