Skip to content

Sanity checks break when package installs lib64 instead of lib #326

@olesenm

Description

@olesenm

Just building the foss-2016a toolchain failed since the sanity checks for lib/ fail (it can also be lib64/).

I experimented with easybuild a few months back, but gave up several times in total frustration. But now decided to give it another attempt. OS: opensuse-42.2 x86_64

Here there are a snippets, since I don't know the better way of doing it, and it probably hits elsewhere too, so a better overall solution is likely needed anyhow. I'll see if I hit more along the way.

--- a/easybuild/easyblocks/b/binutils.py
+++ b/easybuild/easyblocks/b/binutils.py
@@ -159,7 +159,8 @@ class EB_binutils(ConfigureMake):

         custom_paths = {
             'files': [os.path.join('bin', b) for b in binaries] +
-                     [os.path.join('lib', 'lib%s.%s' % (l, ext)) for l in libs for ext in lib_exts] +
+#                     [os.path.join('lib', 'lib%s.%s' % (l, ext)) for l in libs for ext in lib_exts] +
+                     [os.path.join('lib64', 'lib%s.%s' % (l, ext)) for l in libs for ext in lib_exts] +
                      [os.path.join('include', h) for h in headers],
             'dirs': [],
         }
--- a/easybuild/easyconfigs/b/Bison/Bison-3.0.4.eb
+++ b/easybuild/easyconfigs/b/Bison/Bison-3.0.4.eb
@@ -15,7 +15,8 @@ source_urls = [GNU_SOURCE]
 builddependencies = [('M4', '1.4.17')]

 sanity_check_paths = {
-    'files': ["bin/%s" % x for x in ["bison", "yacc"]] + ["lib/liby.a"],
+#    'files': ["bin/%s" % x for x in ["bison", "yacc"]] + ["lib/liby.a"],
+    'files': ["bin/%s" % x for x in ["bison", "yacc"]] + ["lib64/liby.a"],
     'dirs': [],
 }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions