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

Installation/update of 0.27.2 fails on CentOS7 #7421

Closed
lebogan opened this issue Feb 12, 2019 · 4 comments
Closed

Installation/update of 0.27.2 fails on CentOS7 #7421

lebogan opened this issue Feb 12, 2019 · 4 comments

Comments

@lebogan
Copy link

lebogan commented Feb 12, 2019

Installing .27.0 from a local .rpm works. Fresh install or upgrade of .27.1 and .27.2 fails with the following:
...
Marking ./crystal-0.27.2-1.x86_64.rpm to be installed
Resolving Dependencies
Dependencies Resolved
Installing:
crystal x86_64 0.27.2-1 /crystal-0.27.2-1.x86_64 175 M
...
Transaction Summary
...
Running transaction
Installing : crystal-0.27.2-1.x86_64 1/1
error: unpacking of archive failed on file /usr/share/crystal/src/lib_c/amd64-unknown-openbsd: cpio: rename
...
Failed:
crystal.x86_64 0:0.27.2-1

Platform:
CentOS Linux release 7.6.1810 (core)
LLVM 4.0.0

@forksaber
Copy link

I also encountered this issue. The reason why upgrade fails is that uninstalling crystal-0.27.* rpm doesn't clean up a lot of directories in /usr/share/crystal/src.
A temporary workaround is to manually remove /usr/share/crystal/src dir after uninstalling crystal.

@lebogan
Copy link
Author

lebogan commented Feb 13, 2019

Thanks @forksaber .

@lebogan lebogan closed this as completed Feb 13, 2019
@cvoltz
Copy link

cvoltz commented Apr 23, 2019

The issue is marked closed but the issue still occurs with 0.28.0-1 so I think it should be reopened. I don't see the .spec file in the repository so I can't provide a patch but, as with any RPM, any files installed by the RPM should be removed when it is removed.

@bcardiff
Copy link
Member

Tracked in crystal-lang/distribution-scripts#34 if someone can double check if the options mentioned there solves the issue it would be great.

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

4 participants