Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

relocate FDTD RPM to fix installation on SL6 #538

Merged
merged 4 commits into from
Jan 16, 2015

Conversation

boegel
Copy link
Member

@boegel boegel commented Jan 16, 2015

@hpcugentbot
Copy link
Contributor

Test PASSed.

@@ -40,7 +44,23 @@ def configure_step(self):

def build_step(self):
"""No build step for FDTD Solutions."""
pass
# locate RPM and rebuild it to make it relocatable
rpms = glob.glob(os.path.join(self.cfg['start_dir'], 'rpm_install_files', 'FDTD-%s*.rpm' % self.version))
Copy link
Member

Choose a reason for hiding this comment

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

any particular reason why you need glob here? There is a 'random' part in the filename?

Copy link
Member Author

Choose a reason for hiding this comment

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

I just don't want to make any assumptions here. In the versions I've tested have 'el5' in them, but I don't think that's a safe assumption to make for future versions.

@JensTimmerman
Copy link
Contributor

ok

self.log.error("Incorrect number of rebuilt RPMs found, was expecting exactly one: %s" % rebuilt_rpms)

try:
os.rename(rpms[0], '%s.bk' % rpms[0])
Copy link
Member

Choose a reason for hiding this comment

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

why renamed? We're not going to use the original one anymore?

Copy link
Member Author

Choose a reason for hiding this comment

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

mostly for debugging purposes, this will be cleaned up once the installation succeeds anyway

@hpcugentbot
Copy link
Contributor

Test PASSed.

@boegel
Copy link
Member Author

boegel commented Jan 16, 2015

fixes the FDTD build, see easybuilders/easybuild-easyconfigs#1307

also verified that this doesn't break the installation of QLogicMPI, which relies on the Rpm easyblock

so, going in, thanks for the thorough review @wpoely86!

boegel added a commit that referenced this pull request Jan 16, 2015
relocate FDTD RPM to fix installation on SL6
@boegel boegel merged commit 5986380 into easybuilders:develop Jan 16, 2015
@boegel boegel deleted the FDTD_relocate_rpm branch January 16, 2015 16:38
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.

4 participants