Ticket #752 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

sdist not setting the executable bit on the configure script when Build-Type is Configure

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

Description

I have a project with Build-Type of Configure.

I have a Makefile and configure script set in the Extra-File-Sources portion of the cabal file. The script has its executable bits set.

However, when I do a 'runghc Setup.hs sdist', the executable bits from the configure script are lost.

This is keeping folks from being able to do the normal 'tar zxvf project.gz ; ./configure ; make'. steps when building from the sdist.

The attached file is a patch to SrcDist?.hs where prepareTree checks the extra source files for the configure script, and either copies it as an executable or complains about it not being present if the package build type is Configure.

I apologize in advance for what is surely horrible noobie code

Attachments

SrcDist-Configure-Patch.diff Download (1.4 KB) - added by pwan 3 years ago.
SrcDist?.hs changes for special configure script handling

Change History

Changed 3 years ago by pwan

SrcDist?.hs changes for special configure script handling

Changed 2 years ago by duncan

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to Cabal-1.10

Fixed by

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

Will be included in next Cabal-1.10.x release.

Note: See TracTickets for help on using tickets.