Ticket #2781 (closed bug: fixed)

Opened 5 years ago

Last modified 4 years ago

Install permissions broken

Reported by: guest Owned by:
Priority: normal Milestone: 6.12.1
Component: Build System Version: 6.10.1
Keywords: install permissions Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

-rwx------ 1 root root 103 2008-11-14 20:19 /usr/local/bin/ghc-6.10.1*

And similarly for all files that I checked, no matter what I set for umask, which should be overridden by software instlals in any case.

That has been a problem with other Haskell software install lately as well, but not othe non-Haskell software.

Change History

Changed 5 years ago by igloo

  • difficulty set to Unknown
  • component changed from Compiler to Build System
  • milestone set to 6.10.2

Can you give us more details on how to reproduce this, please?

If, on Debian Linux/amd64, I install from the ghc-6.10.1-x86_64-unknown-linux-libedit2.tar.bz2 bindist from the download page with a umask of 022 then I get

-rwxr-xr-x 1 ian ian 151 Nov 14 18:55 inst/bin/ghc-6.10.1

Changed 4 years ago by igloo

  • status changed from new to closed
  • resolution set to worksforme

No reply in 4 months, so closing.

Changed 4 years ago by Feuerbach

  • status changed from closed to reopened
  • resolution worksforme deleted

I confirm that, if using umask 022, everything is ok. However if you use umask 077 then you will get permissions that OP showed.

I guess OP was confused by the fact that, if you change umask to 022 and redo ./configure && make install, it doesn't help. To solve the problem you need to set umask 022 before you untar the archive, so that files get right permissions from the beginning.

I agree with OP that permissions should be set correctly during installation no matter which umask user prefers, so let me reopen this ticket. (Note: just setting desired umask in the install script doesn't help for the reasons described above. In other words, installation should not make any assumption about files permissions apart from being able to read them.)

Changed 4 years ago by Feuerbach

BTW, I tested this with ghc-6.10.2-i386-unknown-linux-libedit2.tar.bz2 on Debian Lenny.

Changed 4 years ago by igloo

  • milestone changed from 6.10.2 to 6.12.1

Let's look at this for 6.12.

Changed 4 years ago by ray

I use umask 077, and when I installed 6.10.3 from the .tar.bz2, all the permissions were set correctly, except on .hi files which were installed with mode 600.

Changed 4 years ago by igloo

  • status changed from reopened to closed
  • resolution set to fixed

Should all be fixed by:

Sun Aug  2 17:12:37 BST 2009  Ian Lynagh <igloo@earth.li>
  * Fix permissions when installing
Note: See TracTickets for help on using tickets.