• Sergei Trofimovich's avatar
    Use 'install' command for 'inplace/' install as we do in 'make install' · 637978fa
    Sergei Trofimovich authored
    On hardened gentoo ghc-stage2 does not work as-is,
    as it uses runtime code generation/loading, thus
    ghc0stage2 needs to be marked in a special way
    (via POSIX extened attributes).
    Before the patch we used 'cp -p' command, which
    does not preserve that marking. It leads to buid
    failure on hardened. Hardened's 'install' does
    preserve POSIX xattrs, thus patch uses it instead.
    'inplace/' directory can be seen the same way as target
    for 'make install', thus using the same facilities
    to install files to 'inplace/' sounds more consistent.
    Reported-by: Jay Yang
    Gentoo-bug: https://bugs.gentoo.org/518734
    Signed-off-by: default avatarSergei Trofimovich <slyfox@gentoo.org>
    Test Plan: tested ghc installation on vanilla and hardened distributions
    Reviewers: austin
    Reviewed By: austin
    Subscribers: phaskell, simonmar, relrod, ezyang, carter
    Differential Revision: https://phabricator.haskell.org/D108
build-prog.mk 11 KB