Bug 1575354
Summary: | Vim's update fails on perl dependency | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | IVan <grimaldi.ivan> | ||||
Component: | vim | Assignee: | Karsten Hopp <karsten> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 28 | CC: | aim, alick9188, Anthony.Thyssen, antonin.vecera, balay, bodhi.zazen, carl, dadreggors, gchamoul, guus.leeuw, jan.public, jscalia, karsten, keramidasceid, leonid, lischak, lizhenbo, lsm5, marcvanwageningen, mathieu-acct, michael.scheiffler, mu, pgn674, ppywlkiqletw, redhat.425269, riemer, rlengland, ros, stepglenn, t0dd, thomas.tomdan, turchi, zdohnal | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | vim-8.0.1806-1.fc28 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2018-05-12 18:21:11 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Created attachment 1432347 [details]
Vim dependency issues when running dnf upgrade
Am also experiencing dependency issues when trying to upgrade vim even though I don't have vim-X11 installed.
Problem will be solved with perl-libs-5.26.2-410 available in updates-testing. Should vim really have a hard dependency on a specific version of perl? Besides: vim is looking for "libperl.so" using dlopen, and that file is only provided by perl-devel. E370: Could not load library libperl.so Sorry, this command is disabled: the Perl library could not be loaded. Encountered the same issue as the original poster...and I have the same question about the Perl dependency. *** Bug 1575647 has been marked as a duplicate of this bug. *** *** Bug 1575651 has been marked as a duplicate of this bug. *** Enabling the testing repository allowed me to get to the latest versions of vim and gvim in a consistent fashion: https://www.spinics.net/lists/fedora-devel/msg243925.html *** Bug 1576023 has been marked as a duplicate of this bug. *** *** Bug 1576247 has been marked as a duplicate of this bug. *** Anyone know why vim even wants to use libperl.so? Same here: $ sudo dnf update Last metadata expiration check: 2:30:57 ago on Wed 09 May 2018 07:45:38 PM EDT. Dependencies resolved. Problem 1: cannot install the best update candidate for package vim-enhanced-2:8.0.1704-1.fc28.x86_64 - nothing provides perl(:MODULE_COMPAT_5.26.2) needed by vim-enhanced-2:8.0.1788-1.fc28.x86_64 Problem 2: problem with installed package vim-enhanced-2:8.0.1704-1.fc28.x86_64 - package vim-enhanced-2:8.0.1704-1.fc28.x86_64 requires vim-common = 2:8.0.1704-1.fc28, but none of the providers can be installed - cannot install both vim-common-2:8.0.1788-1.fc28.x86_64 and vim-common-2:8.0.1704-1.fc28.x86_64 - cannot install both vim-common-2:8.0.1704-1.fc28.x86_64 and vim-common-2:8.0.1788-1.fc28.x86_64 - cannot install the best update candidate for package vim-common-2:8.0.1704-1.fc28.x86_64 - nothing provides perl(:MODULE_COMPAT_5.26.2) needed by vim-enhanced-2:8.0.1788-1.fc28.x86_64 ====================================================================================================================================================== Package Arch Version Repository Size ====================================================================================================================================================== Skipping packages with conflicts: (add '--best --allowerasing' to command line to force their upgrade): vim-common x86_64 2:8.0.1788-1.fc28 updates 6.4 M Skipping packages with broken dependencies: vim-enhanced x86_64 2:8.0.1788-1.fc28 updates 1.3 M Transaction Summary ====================================================================================================================================================== Skip 2 Packages Nothing to do. Complete! (In reply to antofthy from comment #10) > Anyone know why vim even wants to use libperl.so? It doesn't; not really. Not until you try to run perl from within vim (or gvim). In vim you can run the command: ":perl print 'Hello';". If you don't do that, vim will run perfectly fine even without perl available on your system. vim has similar feature for pyrhon, ruby, and lua. And yet vim does not declar a hard dependency on those. I suggest to just drop the hard dependency on perl, and leave it as a Suggestion. vim.spec already have this line Suggests: python2-libs python3-libs perl-libs lua-libs ruby-libs and that should be enough. (In reply to Villy Kruse from comment #2) > Problem will be solved with perl-libs-5.26.2-410 available in > updates-testing. > > Should vim really have a hard dependency on a specific version of perl? If you talk about perl(:MODULE_COMPAT_5.26.2) dependency, it is correct by FPG (https://fedoraproject.org/wiki/Packaging:Perl?rd=Packaging/Perl#Versioned_MODULE_COMPAT_Requires - Packages that links to libperl.so). (In reply to antofthy from comment #10) > Anyone know why vim even wants to use libperl.so? Perl upstream uses unversioned libperl.so as shared library, but several major OSs (like e.g. Fedora, Gentoo, Debian...) have unversioned libperl.so as symlink to libperl.so.5.26.2, which upstream doesn't use (versioned shared object is created by downstream patch). Vim wants to use the upstream way. Other interesting thing is that Vim got built with the newest perl, which isn't even in stable repos... maybe buildroot override for perl was active. (In reply to Villy Kruse from comment #12) > I suggest to just drop the hard dependency on perl, and leave it as a > Suggestion. vim.spec already have this line > > Suggests: python2-libs python3-libs perl-libs lua-libs ruby-libs > > and that should be enough. Hmm... but FPG doesn't say anything about which dependency should be used... so probably 'Suggests: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))' can be used and you're right. Let's go with that for now. vim-8.0.1789-2.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-aecd04d5ca (In reply to Zdenek Dohnal from comment #15) > (In reply to Villy Kruse from comment #12) > > I suggest to just drop the hard dependency on perl, and leave it as a > > Suggestion. vim.spec already have this line > > > > Suggests: python2-libs python3-libs perl-libs lua-libs ruby-libs > > > > and that should be enough. > > Hmm... but FPG doesn't say anything about which dependency should be used... > so probably 'Suggests: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; > echo $version))' can be used and you're right. Let's go with that for now. From FPG: "Some packages link to libperl.so, usually to provide embedded Perl functionality. All of these packages must also use the versioned MODULE_COMPAT dependency, because the automatically generated dependency on libperl.so does not include any interface version number." This kind of forgets that unversioned libperl.so is only provided by perl-devel -- at the moment. vim-8.0.1806-1.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-28d594077b vim-8.0.1806-1.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-28d594077b vim-8.0.1806-1.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report. |
The packages vim-X11 and vim-enhanced have broken dependencies, below the output of dnf command. >>>>>>>> LOG Dependencies resolved. Problem 1: cannot install the best update candidate for package vim-X11-2:8.0.1704-1.fc28.x86_64 - nothing provides perl(:MODULE_COMPAT_5.26.2) needed by vim-X11-2:8.0.1788-1.fc28.x86_64 Problem 2: cannot install the best update candidate for package vim-enhanced-2:8.0.1704-1.fc28.x86_64 - nothing provides perl(:MODULE_COMPAT_5.26.2) needed by vim-enhanced-2:8.0.1788-1.fc28.x86_64 Problem 3: problem with installed package vim-enhanced-2:8.0.1704-1.fc28.x86_64 - package vim-enhanced-2:8.0.1704-1.fc28.x86_64 requires vim-common = 2:8.0.1704-1.fc28, but none of the providers can be installed - cannot install both vim-common-2:8.0.1788-1.fc28.x86_64 and vim-common-2:8.0.1704-1.fc28.x86_64 - cannot install both vim-common-2:8.0.1704-1.fc28.x86_64 and vim-common-2:8.0.1788-1.fc28.x86_64 - cannot install the best update candidate for package vim-common-2:8.0.1704-1.fc28.x86_64 - nothing provides perl(:MODULE_COMPAT_5.26.2) needed by vim-enhanced-2:8.0.1788-1.fc28.x86_64 ================================================================================ Package Arch Version Repository Size ================================================================================ Skipping packages with conflicts: (add '--best --allowerasing' to command line to force their upgrade): vim-common x86_64 2:8.0.1788-1.fc28 updates 6.4 M Skipping packages with broken dependencies: vim-X11 x86_64 2:8.0.1788-1.fc28 updates 1.4 M vim-enhanced x86_64 2:8.0.1788-1.fc28 updates 1.3 M Transaction Summary ================================================================================ Skip 3 Packages