Skip to content

enhance Qt easyblock to support Qt3#944

Merged
boegel merged 1 commit intoeasybuilders:developfrom
boegel:Qt3
May 31, 2016
Merged

enhance Qt easyblock to support Qt3#944
boegel merged 1 commit intoeasybuilders:developfrom
boegel:Qt3

Conversation

@boegel
Copy link
Copy Markdown
Member

@boegel boegel commented May 31, 2016

No description provided.

platform = 'linux-icc'
# fix -fPIC flag (-KPIC is not correct for recent Intel compilers)
qmake_conf = os.path.join('mkspecs', platform, 'qmake.conf')
apply_regex_substitutions(qmake_conf, [('-KPIC', '-fPIC')])
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

does this have a clean error is the file does not exist?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@wpoely86

>>> from easybuild.tools.filetools import apply_regex_substitutions
>>> apply_regex_substitutions('/tmp/sadfghmythergsdfdadgh', [])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "easybuild/tools/filetools.py", line 747, in apply_regex_substitutions
    for line in fileinput.input(path, inplace=1, backup='.orig.eb'):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/fileinput.py", line 254, in next
    line = self.readline()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/fileinput.py", line 325, in readline
    os.rename(self._filename, self._backupfilename)
OSError: [Errno 2] No such file or directory

If you want to change that, it should be tackled in apply_regex_substitutions itself imho, not in this easyblock.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

true, open a PR for it 😁
The error should tell which file it's not finding.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@boegel
Copy link
Copy Markdown
Member Author

boegel commented May 31, 2016

Thanks for the review @wpoely86!

@boegel boegel merged commit 9062b5a into easybuilders:develop May 31, 2016
@boegel boegel deleted the Qt3 branch May 31, 2016 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants