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

XZ 5.2.2 breaks rpm command on CentOS 7.3 #4036

Closed
boegel opened this issue Jan 17, 2017 · 6 comments
Closed

XZ 5.2.2 breaks rpm command on CentOS 7.3 #4036

boegel opened this issue Jan 17, 2017 · 6 comments
Milestone

Comments

@boegel
Copy link
Member

boegel commented Jan 17, 2017

The build of Python fails because the openssl-devel OS dep is not found, even though it's installed, due to:

rpm: /apps/gent/CO7/sandybridge/software/XZ/5.2.2-intel-2016b/lib/liblzma.so.5: version `XZ_5.1.2alpha' not found (required by /lib64/librpmio.so.3)

There's a patch available for XZ 5.2.2 that fixes this issue (it was applied to the xz shipped with RHEL7.3):

We provided two 5.1.2alpha symbols (lzma_stream_encoder_mt and
lzma_stream_encoder_mt_memusage) before we updated to xz-5.2.2-1 in RHEL7.3.

Those symbols did not change ABI in 5.2.2 so it should be safe to provide
(except for 5.0 and 5.2 symbols) also the two 5.1.2alpha symbols and
use 5.1.2alpha symbol version as parent for 5.2.

For better reasoning look at container.h in 5.1.2alpha -- those two symbols
were for testing purposes only, and thus not considered to be API/ABI.

diff --git a/src/liblzma/liblzma.map b/src/liblzma/liblzma.map
index f53a4ea..9c3002a 100644
--- a/src/liblzma/liblzma.map
+++ b/src/liblzma/liblzma.map
@@ -95,7 +95,13 @@ global:
 	lzma_vli_size;
 };
 
-XZ_5.2 {
+XZ_5.1.2alpha {
+global:
+	lzma_stream_encoder_mt;
+	lzma_stream_encoder_mt_memusage;
+} XZ_5.0;
+
+XZ_5.2.2 {
 global:
 	lzma_block_uncomp_encode;
 	lzma_cputhreads;
@@ -105,4 +111,4 @@ global:
 
 local:
 	*;
-} XZ_5.0;
+} XZ_5.1.2alpha;
@boegel
Copy link
Member Author

boegel commented Feb 22, 2017

fixed in #4179, let's follow-up there

@boegel boegel closed this as completed Feb 22, 2017
@boegel boegel modified the milestones: 3.2.0, 3.1.1 Feb 28, 2017
@Jadamso
Copy link

Jadamso commented Jun 9, 2017

I am having this issue with XZ 5.2.3 on Scientific Linux 7.3

any help would be appreciated

@boegel
Copy link
Member Author

boegel commented Jun 12, 2017

@Jadamso You should reinstall XZ 5.2.3 with EasyBuild v3.1.1 or more recent, we included a patch for XZ to fix this problem.

@Jadamso
Copy link

Jadamso commented Aug 18, 2017

How do I do that?

I have installed easybuild
pip install --install-option "--prefix=$HOME/EasyBuild" easybuild

But this installation for vers=5.2.3 ...
wget "http://tukaani.org/xz/xz-$vers.tar.gz"
tar xzvf xz-$vers.tar.gz && rm xz-$vers.tar.gz
cd ~/xz-$vers
./configure --prefix=$HOME
make
sudo make install

Has broken yum

@boegel
Copy link
Member Author

boegel commented Aug 18, 2017

@Jadamso If you are not using EasyBuild to install XZ, you can apply the patch you can find in https://github.com/easybuilders/easybuild-easyconfigs/pull/4179/files#diff-252ec2c8e1bfeed0c2cbc6ea7f538a6c

@Pratheesh99
Copy link

how to update this patch on linux server using putty ?

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

No branches or pull requests

3 participants