zc.recipe.cmmi fails with zip files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Buildout |
New
|
Undecided
|
Unassigned |
Bug Description
When zc.recipe.cmmi is run with a .zip file (instead of a .tgz file), the following
line successfully unpacks the zipfile:
Unfortunately however this doesn't seem to leave the file executable bit intact. './configure'
can therefore not be called and the recipe fails with a permission error.
When I manually doctor the configure to add the +x attribute before buildout continues, it succeeds. When I unpack the zipfile manually using Linux 'unzip' the unpacking does result in a 'configure' script that has the executable bit set.
One hackish implementation option would be to add a os.system('chmod +x configure') just before executing the configure script.
I'm affected by a similar problem, not because of zip files, but because the 'configure' script is not executable in the first place. 'configure' , 0755)" before execution.
So maybe it would not be so hacky to "os.chmod(
My stack trace : to-build.
Installing my-package-
my-package- to-build: Searching cache at /home/my- package/ buildout/ downloads/ cmmi
my-package- to-build: Using cache file /home/my- package/ buildout/ downloads/ cmmi/12f8444898 d43efac471d261d 938d52ee31b7ee5
my-package- to-build: Unpacking and configuring
sh: ./configure: Permission denied
While:
Installing my-package- to-build.
An internal error occured due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
File "/home/ my-package/ buildout/ eggs/zc. buildout- 1.1.1-py2. 4.egg/zc/ buildout/ buildout. py", line 1477, in main
getattr( buildout, command)(args)
File "/home/ my-package/ buildout/ eggs/zc. buildout- 1.1.1-py2. 4.egg/zc/ buildout/ buildout. py", line 462, in install
installed_files = self[part] ._call( recipe. install)
File "/home/ my-package/ buildout/ eggs/zc. buildout- 1.1.1-py2. 4.egg/zc/ buildout/ buildout. py", line 1060, in _call
return f()
File "build/ bdist.linux- i686/egg/ zc/recipe/ cmmi/__ init__. py", line 111, in install
File "build/ bdist.linux- i686/egg/ zc/recipe/ cmmi/__ init__. py", line 24, in system
SystemError: ('Failed', './configure --prefix= /home/my- package/ buildout/ parts/my- package- to-build ')