[Haskell-cafe] GHC bindist permissions (Was: [ANNOUNCE] GHC 9.4.1-rc1 is now available)

Ben Gamari ben at smart-cactus.org
Mon Aug 8 13:50:10 UTC 2022


Henning Thielemann <lemming at henning-thielemann.de> writes:

> On Fri, 5 Aug 2022, Ben Gamari wrote:
>
>> What is the umask in your environment (e.g. just running the `umask`
>> command on the shell will print it).
>
> The now released GHC-9.4.1-deb11-amd64 bindist correctly generates files 
> for user 'root' and with global read permissions. Except:
>
> $ ll /usr/local/ghc-9.4.1/lib/ghc-9.4.1/lib/package.conf.d
> drwxr-xr-x 1 root root   3356  8. Aug 11:15 .
> drwxr-xr-x 1 root root    240  8. Aug 11:15 ..
> -rw------- 1 root root   1666  8. Aug 11:15 array-0.5.4.0.conf
> -rw------- 1 root root   1666  8. Aug 11:15 array-0.5.4.0.conf.copy
> -rw------- 1 root root   6344  8. Aug 11:15 base-4.17.0.0.conf
> -rw------- 1 root root   6344  8. Aug 11:15 base-4.17.0.0.conf.copy
> -rw------- 1 root root   1897  8. Aug 11:15 binary-0.8.9.1.conf
> -rw------- 1 root root   1897  8. Aug 11:15 binary-0.8.9.1.conf.copy
> ...
>
> The global read permissions for the *.conf files are missing.

Hmm, yes, this is a trickier case.
The problem appears to be the fact that the Makefile's
`patchpackageconf` helper `mv`'s over the .conf file installed via
`install` with a file create by the shell. I'll reopen #21965 and post a
fix shortly.

Out of curiosity, have you set umask to 077 intentionally or is this
somehow accidental? This does seem like a very strange configuration
(although GHC should work nevertheless).

Cheers,

- Ben


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 487 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20220808/4de4a8c1/attachment.sig>


More information about the Haskell-Cafe mailing list