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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悶 Bug Reinstalling packages from source that require build dependencies generates an error #9820

Open
uberhacker opened this issue May 17, 2024 · 0 comments

Comments

@uberhacker
Copy link
Collaborator

uberhacker commented May 17, 2024

$ crew reinstall sommelier -s
sommelier: Sommelier works by redirecting X11 programs to the built-in ChromeOS Exo Wayland server.
Performing pre-flight checks...
The following packages also need to be installed: 
llvm18_dev
Do you agree? [Y/n] 
Proceeding...
llvm18_dev: LLVM: Everything except libLLVM & llvm-strip
Precompiled binary available, downloading...
Performing pre-install...
Performing install...
/usr/local/lib64/ruby/3.3.0/fileutils.rb:1169:in `rename': No such file or directory @ rb_file_s_rename - (dlist, /usr/local/etc/crew/meta/llvm18_dev.directorylist) (Errno::ENOENT)
        from /usr/local/lib64/ruby/3.3.0/fileutils.rb:1169:in `block in mv'
        from /usr/local/lib64/ruby/3.3.0/fileutils.rb:2469:in `block in fu_each_src_dest'
        from /usr/local/lib64/ruby/3.3.0/fileutils.rb:2485:in `fu_each_src_dest0'
        from /usr/local/lib64/ruby/3.3.0/fileutils.rb:2467:in `fu_each_src_dest'
        from /usr/local/lib64/ruby/3.3.0/fileutils.rb:1160:in `mv'
        from /usr/local/bin/crew:1079:in `block in install_package'
        from /usr/local/bin/crew:1075:in `chdir'
        from /usr/local/bin/crew:1075:in `install_package'
        from /usr/local/bin/crew:1304:in `install'
        from /usr/local/bin/crew:1240:in `block in resolve_dependencies'
        from /usr/local/bin/crew:1237:in `each'
        from /usr/local/bin/crew:1237:in `resolve_dependencies'
        from /usr/local/bin/crew:1120:in `resolve_dependencies_and_install'
        from /usr/local/bin/crew:1829:in `block in reinstall_command'
        from /usr/local/bin/crew:1819:in `each'
        from /usr/local/bin/crew:1819:in `reinstall_command'
        from /usr/local/bin/crew:1916:in `<main>'

Reinstalling the same package without -s works fine. Also, installing the dependency separately works fine.

$ crew install llvm18_dev
llvm18_dev: LLVM: Everything except libLLVM & llvm-strip
http://llvm.org/
Version: 18.1.5
License: Apache-2.0-with-LLVM-exceptions, UoI-NCSA, BSD, public-domain, rc, Apache-2.0 and MIT
Performing pre-flight checks...
Precompiled binary available, downloading...
Llvm18_dev archive downloaded.
Unpacking archive using 'tar', this may take a while...
Performing pre-install...
Performing install...
Using rdfind to convert duplicate files to hard links.
Now scanning ".", found 4602 files.
Now have 4602 files in total.
Removed 0 files due to nonunique device and inode.
Total size is 1818913491 bytes or 2 GiB
Removed 3213 files due to unique sizes from list. 1389 files left.
Now eliminating candidates based on first bytes: removed 1329 files from list. 60 files left.
Now eliminating candidates based on last bytes: removed 6 files from list. 54 files left.
Now eliminating candidates based on sha1 checksum: removed 0 files from list. 54 files left.
It seems like you have 54 files that are not unique
Totally, 395 MiB can be reduced.
Now making hard links.
Making 34 links.
Llvm18_dev installed!
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

1 participant