Skip to content
Open
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions easybuild/easyblocks/generic/configuremake.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ def configure_step(self, cmd_prefix=''):
for (key, val) in tar_vars.items():
self.cfg.update('preconfigopts', "%s='%s'" % (key, val))

# Ensure that configure has the excutable bit set, needed if a patch created configure itself
import os
os.chmod('./configure', 0755)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use the adjust_permissions function available from easybuild.tools.filetools for this, something like:

adjust_permissions('configure', stat.S_IXUSR, add=True)

and only import additional stuff at the top of the easyblock, where the other imports are; you'll need to add:

import stat
...
from easybuild.tools.filetools import adjust_permissions

cmd = "%(preconfigopts)s %(cmd_prefix)s./configure %(prefix_opt)s%(installdir)s %(configopts)s" % {
'preconfigopts': self.cfg['preconfigopts'],
'cmd_prefix': cmd_prefix,
Expand Down