Skip to content
Open
Changes from 5 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
4 changes: 4 additions & 0 deletions easybuild/easyblocks/generic/configuremake.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@
@author: Toon Willems (Ghent University)
"""

import stat
from easybuild.framework.easyblock import EasyBlock
from easybuild.framework.easyconfig import CUSTOM
from easybuild.tools.run import run_cmd
from easybuild.tools.filetools import adjust_permissions


class ConfigureMake(EasyBlock):
Expand Down Expand Up @@ -79,6 +81,8 @@ 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
adjust_permissions('configure', stat.S_IXUSR, add=True)
Copy link
Member

Choose a reason for hiding this comment

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

this needs a check like:

if os.path.exists('configure'):

it's possible that the configure script is not present yet, and gets generated 'on-the-fly' by using

preconfigopts = './autogen.sh && '

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