[Hackage] #886: when installing globally, cabal shouldn't use umask, should set mods to 755 or 644

#886: when installing globally, cabal shouldn't use umask, should set mods to 755 or 644 ----------------------------+----------------------------------------------- Reporter: alistra | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.8.0.6 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: Platform: | ----------------------------+----------------------------------------------- I have an umask 077 on my root user, but when i type: cabal install --global pkg or I have a global setting in my configuration file, cabal installs the package globally, but with root's umask. cabal is a package manager and if I install a package globally, I expect it to be accessible globally. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/886 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#886: when installing globally, cabal shouldn't use umask, should set mods to 755 or 644 ----------------------------+----------------------------------------------- Reporter: alistra | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.8.0.6 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: Platform: | ----------------------------+----------------------------------------------- Comment(by duncan): I believe this is fixed in Cabal-1.10. Could you please try that version and confirm? Otherwise we'll have to take a look at what's going on. For reference for anyone looking into this. see Distribution.Simple.Utils: {{{ -- * installing files installOrdinaryFile, installExecutableFile, installOrdinaryFiles, installDirectoryContents, -- * File permissions setFileOrdinary, setFileExecutable, }}} -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/886#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#886: when installing globally, cabal shouldn't use umask, should set mods to 755 or 644 ----------------------------+----------------------------------------------- Reporter: alistra | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.8.0.6 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: Platform: | ----------------------------+----------------------------------------------- Comment(by alistra): After reinstalling any package with umask 077 this happens at first at user trying to invoke ghci with cabal 0.10.2-r1 {{{ GHCi, version 7.0.4: http://www.haskell.org/ghc/ :? for help /usr/lib/ghc-7.0.4/package.conf.d/package.cache: openBinaryFile: permission denied (Permission denied) }}} -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/886#comment:2 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#886: when installing globally, cabal shouldn't use umask, should set mods to 755 or 644 ----------------------------+----------------------------------------------- Reporter: alistra | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.8.0.6 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: Platform: | ----------------------------+----------------------------------------------- Comment(by elga): * [http://www.releve-identite-operateur.fr/rio-bouygues.html rio bouygues] -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/886#comment:3 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#886: when installing globally, cabal shouldn't use umask, should set mods to 755 or 644 ----------------------------+----------------------------------------------- Reporter: alistra | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.8.0.6 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: Platform: | ----------------------------+----------------------------------------------- Comment(by edouard): le code Rio, ou code de Releve d'Identite Operateur, est un code a 12 caracteres fourni par votre operateur de telephonie mobile vous permettant de conserver son numero de telephone lorsque vous changez d'operateur. [http://www.releve-identite-operateur.fr/numbero-de-virgin-mobile.html virgin mobile] -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/886#comment:4 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage