Friedrich Delgado Friedrichs <friedel@nomaden.org> writes:
[...]
> Is it that much work to separate the two steps? Ok, I'll try to
> explain it a little better:
For me it would be very little work. But it would mean that all
package authors would need to make the distinction between
"compilation" and "installation". That's one more thing they have to
worry about, and unless it's really justified, I don't want to make it
harder to write packages than it already is. (I'm already annoyed by
some options I added very early, like --dry-run, which maybe cause too
much trouble compared to what they bring).
[...]
> Doing a preliminary install as non-root and then copying the files
> over as root is just a workaround for the missing separate build
> phase.
I can only see advantages to this solution. First of all, since both
compilation and installation are performed by a non-privileged user,
it's more secure than what you propose, without any makefile-reading
burden. This alone should convince you :-). Then, it works now, with
all existing packages. Finally, it doesn't require any change to the
library.
And it's really easy to do, too...
scsh-install-pkg --prefix /usr/local/ --dest-dir /tmp/scsh-tmp
tar -cf - -C /tmp/scsh-tmp . | sudo tar -xf - -C / --no-same-owner
The only program to trust here is "tar".
Michel, not convinced yet.
|