Changes between Initial Version and Version 1 of Ticket #62228, comment 8


Ignore:
Timestamp:
Feb 6, 2021, 4:42:28 PM (3 years ago)
Author:
Ionic (Mihai Moldovan)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #62228, comment 8

    initial v1  
    66It's almost certainly a combination of using a build user and then running destroot as root. The weird part is that we are supplying `--allow-different-user`, which should enable sharing. `${workpath}/.stack` is created as the `macports` user, so it does (initially) have write permissions there.
    77
    8 The weirdest part is that it's ignoring `STACK_ROOT=${workpath}.stack` when running as **root** in the destroot phase (and falling back to `${HOME}/.stack`, a.k.a. `${workpath}/.home/.stack` instead), which... just doesn't make sense to me.
     8The weirdest part is that it's ignoring `STACK_ROOT=${workpath}/.stack` when running as **root** in the destroot phase (and falling back to `${HOME}/.stack`, a.k.a. `${workpath}/.home/.stack` instead), which... just doesn't make sense to me.
    99
    1010You've put me on the right track, though, I think, since most files in `${workpath}/.stack` seem to be owned by root instead of macports. They also are newer than the ones in `${workpath}/.home/.stack`, which are owned by macports only, so maybe I just confused the two directories.