Skip to content

Don't use prefix.lib in tcl/tk/glib/etc#19761

Merged
alalazo merged 9 commits intospack:developfrom
adamjstewart:packages/prefix-lib
Nov 14, 2020
Merged

Don't use prefix.lib in tcl/tk/glib/etc#19761
alalazo merged 9 commits intospack:developfrom
adamjstewart:packages/prefix-lib

Conversation

@adamjstewart
Copy link
Copy Markdown
Member

@adamjstewart adamjstewart commented Nov 5, 2020

Fixes #19546

Packages I would like to have tested before merging:

@andymwood can you help test this on your system?

Comment on lines +112 to +115
# Tcl libraries may be installed in lib or lib64, see #19546
for lib in ['lib', 'lib64']:
tcl_paths.append(join_path(
d.prefix, lib, 'tcl{0}'.format(self.version.up_to(2))))
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.

This is the same fixed we used in #18523

@adamjstewart adamjstewart marked this pull request as ready for review November 5, 2020 22:12
@adamjstewart
Copy link
Copy Markdown
Member Author

I believe the remaining build failures were present before this PR, they aren't introduced by this PR. So I think this is ready for review.

Another question worth asking is if we should remove all uses of prefix.lib in all packages (there are 667 left). I don't have the bandwidth to do this myself, and each package needs to be tested as the default libs handler may be incorrect for a package. For now, I think this PR should stick to tcl/tk and glib. I can split the glib change into a separate PR if you want me to, but the tcl/tk changes are pretty entwined.

@andymwood

This comment has been minimized.

@adamjstewart adamjstewart marked this pull request as draft November 6, 2020 16:13
@adamjstewart adamjstewart marked this pull request as ready for review November 6, 2020 16:53
@adamjstewart

This comment has been minimized.

@adamjstewart adamjstewart requested a review from alalazo November 6, 2020 17:01
@andymwood
Copy link
Copy Markdown
Contributor

It seems to work now. Thanks.

@alalazo alalazo merged commit 168dd6d into spack:develop Nov 14, 2020
@adamjstewart adamjstewart deleted the packages/prefix-lib branch November 14, 2020 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Installation issue: tcl

3 participants