Opened 3 years ago

Closed 3 years ago

#5311 closed bug (fixed)

No read permission for installed global package.cache

Reported by: Lemming Owned by: igloo
Priority: highest Milestone: 7.2.1
Component: None Version: 7.0.4
Keywords: Cc:
Operating System: Linux Architecture: x86
Type of failure: Installing GHC failed Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

I have installed GHC-7.0.4 from
http://www.haskell.org/ghc/dist/7.0.4/ghc-7.0.4-i386-unknown-linux.tar.bz2
and the following file has no read permission for users:
/usr/local/lib/ghc-7.0.4/package.conf.d/package.cache

Change History (9)

comment:1 Changed 3 years ago by igloo

  • Milestone set to 7.2.1
  • Owner set to igloo
  • Priority changed from normal to highest

Thanks for the report.

comment:2 Changed 3 years ago by igloo

Hmm. We aren't actually installing package.cache as such. We're (indirectly) running ghc-pkg, which creates it, and obeys the umask when doing so.

I'm not sure what the right thing to do is.

comment:3 Changed 3 years ago by igloo@…

commit c21e57b2877669e107e44503496ec1a5a412a4a1
Author: Ian Lynagh <igloo@earth.li>
Date:   Sun Jul 17 19:58:37 2011 +0100

    Fix permissions of package.cache when installing; fixes trac #5311
    
    When we install the packages, ghc-pkg obeys umask when creating
    package.cache, but for everything else we specify the permissions. We
    therefore fix the permissions of package.cache afterwards.

comment:4 Changed 3 years ago by igloo

  • Resolution set to fixed
  • Status changed from new to closed

Fixed

comment:5 Changed 3 years ago by Lemming

What about the permissions of the individual conf files of the packages?

comment:6 Changed 3 years ago by igloo

  • Owner igloo deleted
  • Resolution fixed deleted
  • Status changed from closed to new

Ah, hmm. I hadn't noticed those also had the same problem. Hmm.

comment:7 Changed 3 years ago by simonmar

  • Owner set to igloo

comment:8 Changed 3 years ago by igloo@…

commit d8d4c2a5f96059f4cd0880ac2ad87e663105640c

Author: Ian Lynagh <igloo@earth.li>
Date:   Thu Jul 28 16:03:13 2011 +0100

    Fix the permissions of all the package.conf.d files when installing
    
    Fixes trac #5311.

 ghc.mk |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

comment:9 Changed 3 years ago by igloo

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in HEAD and 7.2.

Note: See TracTickets for help on using tickets.