Ticket #627 (closed defect: fixed)

Opened 3 years ago

Last modified 17 months ago

sdist drops executable permissions for files in the tarball

Reported by: draconx Owned by:
Priority: normal Milestone: Cabal-1.10
Component: Cabal library Version:
Severity: normal Keywords:
Cc: Difficulty: unknown
GHC Version: Platform: Linux

Description

After upgrading to Cabal 1.8, running './Setup.lhs sdist' in any package is generating tarballs with bizarre permissions:

  • Every directory has mode 0755.
  • Every file has mode 0600.

In particular, the executable bits from files are lost, and files should be group/world readable. Cabal 1.6 generates correct permissions.

Change History

Changed 3 years ago by duncan

As an temporary workaround use cabal sdist rather than runghc Setup sdist.

Changed 3 years ago by draconx

'cabal sdist' solves the group/world readability problem, but executable bits are still lost.

Changed 3 years ago by duncan

  • summary changed from Nonsense tarball permissions with sdist in Cabal 1.8.0.2 to sdist drops executable permissions for files in the tarball

Note also that cabal unpack does not preserve any executable permissions.

Changed 2 years ago by duncan

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to Cabal-1.10
Mon Dec 20 18:13:08 GMT 2010  ramsdell@mitre.org
  * sdist perms fix

on Jan 17 14:42:43 GMT 2011  Duncan Coutts <duncan@community.haskell.org>
  * Preserve executable bit during in sdist for extra-source-files

Mon Jan 17 14:49:00 GMT 2011  Duncan Coutts <duncan@community.haskell.org>
  * Preserve executable permissions on unpack

Will be included in next Cabal-1.10.x release, and next cabal-install-0.10 release.

The new behaviour is as follows:

  • every directory has mode 0755
  • files in extra-source-files that have the user executable bit set get mode 0755
  • all other files get mode 0644

Changed 17 months ago by elga

Changed 17 months ago by edouard

Vous pourrez vous procurer son numero rio Orange, son code rio SFR ou encore son code rio Bouygues en un clin d'oeil !  rio bouygues

Note: See TracTickets for help on using tickets.