Bug 241749 - Missing run-time requires on perl modules
Missing run-time requires on perl modules
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: Zim (Show other bugs)
rawhide
All Linux
medium Severity high
: ---
: ---
Assigned To: Chris Weyl
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-05-30 02:53 EDT by Rick L Vinyard Jr
Modified: 2008-03-17 23:03 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-03-17 23:03:19 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Rick L Vinyard Jr 2007-05-30 02:53:10 EDT
Description of problem:
It seems several run-time perl module requires are missing. These are the ones I
had to manually install:
     perl-File-BaseDir
     perl-File-MimeInfo

Without these starting Zim fails with an error such as:

Can't locate File/MimeInfo/Magic.pm in @INC (@INC contains: /usr/bin/../lib
/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.8
/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi
/usr/lib64/perl5/site_perl/5.8.7/x86_64-linux-thread-multi
/usr/lib64/perl5/site_perl/5.8.6/x86_64-linux-thread-multi
/usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7
/usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5
/usr/lib/perl5/site_perl
/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi
/usr/lib64/perl5/vendor_perl/5.8.7/x86_64-linux-thread-multi
/usr/lib64/perl5/vendor_perl/5.8.6/x86_64-linux-thread-multi
/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7
/usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5
/usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi
/usr/lib/perl5/5.8.8 .) at /usr/lib/perl5/vendor_perl/5.8.8/Zim/GUI.pm line 10.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.8/Zim/GUI.pm
line 10.
Compilation failed in require at (eval 11) line 3.
BEGIN failed--compilation aborted at (eval 11) line 3.
Comment 1 Rick L Vinyard Jr 2007-05-30 03:05:36 EDT
Just noticed two more for the built-in plugins:

perl-Gtk2-Spell
perl-Gtk2-TrayIcon
Comment 2 Chris Weyl 2007-05-30 11:23:58 EDT
That's odd -- what's the version, release, etc of Zim you're using?  I just
checked against FC-6 & devel; the package itself is definitely requiring:

perl(File::BaseDir)  
perl(File::MimeInfo)  
perl(File::MimeInfo::Magic)  
perl(Gtk2::Spell)

Which is the perlish way of specifying the packages you mentioned earlier.  It
doesn't appear to be picking up the dep on Gtk2::TrayIcon, so I'll add that
manually to the package.
Comment 3 Rick L Vinyard Jr 2007-05-30 12:39:41 EDT
Zim-0.19-1.fc7

Fedora: devel
Arch: x86_64 (but that shouldn't matter)

I thought those had to be Requires and not just BuildRequires to get run-time
support.
Comment 4 Chris Weyl 2007-05-30 12:43:09 EDT
They do, but they are automatically picked up by rpm during the build and added
as requirements, so they don't need to be listed.

What does "rpmquery --requires Zim" show on your system?
Comment 5 Rick L Vinyard Jr 2007-05-30 14:05:29 EDT
Hmmm... they're in there... 
I have no clue why 'yum install Zim' didn't pick them up last night...

Perhaps a bug in yum?

One more plugin that might cause problems is the SVN plugin.

Here's my yum logs from last night:

Transaction 1:
May 30 00:36:09 Installed: pth.x86_64 2.0.7-1.fc7
May 30 00:36:18 Installed: gnupg2.x86_64 2.0.3-1.fc7
May 30 00:37:56 Installed: gpgme.x86_64 1.1.4-1.fc7
May 30 00:38:01 Updated: wsdl4j.noarch 1.6.2-1jpp
May 30 00:38:41 Installed: basket.x86_64 1.0.2-1.fc7
May 30 00:38:46 Installed: notecase.x86_64 1.5.6-1.fc7
May 30 00:38:47 Installed: hnb.x86_64 1.9.18-3.fc6
May 30 00:38:52 Installed: gjots2.noarch 2.3.4-7.fc7
May 30 00:39:01 Installed: Zim.noarch 0.19-1.fc7
May 30 00:41:21 Installed: kdeutils.x86_64 6:3.5.6-3.fc7

Transaction 2: (zim wasn't working, complained about File::BaseDir)
May 30 00:45:53 Installed: perl-File-BaseDir.noarch 0.02-1.fc6

Transaction 3: (now it needed File::MimeInfo)
May 30 00:51:04 Installed: perl-File-MimeInfo.noarch 0.13-3.fc7

Transaction 4: (playing with Zim, enabled plugins, complained about
Gtk2::TrayIcon and Gtk2::Spell)
May 30 01:06:40 Installed: perl-Gtk2-TrayIcon.x86_64 0.03-3.fc6
May 30 01:06:41 Installed: perl-Gtk2-Spell.x86_64 1.03-5.fc6


rpmquery results:

/usr/bin/perl  
perl(:MODULE_COMPAT_5.8.8)  
perl(Carp)  
perl(Cwd)  
perl(Encode)  
perl(File::BaseDir)  
perl(File::Copy)  
perl(File::Glob)  
perl(File::MimeInfo)  
perl(File::MimeInfo::Applications)  
perl(File::MimeInfo::Magic)  
perl(File::Spec)  
perl(Gtk2)  
perl(Gtk2::Ex::HyperTextBuffer)  
perl(Gtk2::Ex::HyperTextView)  
perl(Gtk2::Ex::PathBar)  
perl(Gtk2::Gdk::Keysyms)  
perl(Gtk2::Pango)  
perl(Gtk2::SimpleList)  
perl(Gtk2::Spell)  
perl(IO::File)  
perl(POSIX)  
perl(UNIVERSAL)  
perl(Zim)  
perl(Zim::Events)  
perl(Zim::File)  
perl(Zim::Formats)  
perl(Zim::GUI)  
perl(Zim::GUI::Component)  
perl(Zim::GUI::PageView)  
perl(Zim::GUI::PathBar)  
perl(Zim::History)  
perl(Zim::Page)  
perl(Zim::Repository)  
perl(Zim::Selection)  
perl(Zim::Template)  
perl(constant)  
perl(strict)  
perl(vars)  
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(VersionedDependencies) <= 3.0.3-1
Comment 6 Chris Weyl 2008-03-17 23:03:19 EDT
Ok, cool.  So bad me for the *ahem* long pause here, but from the output of
rpmquery above this looks to have been... well, something's fault other than the
Zim rpm (note the perl(File::BaseDir) and perl(File::MimeInfo) requires above...
these would pull in the needed rpms).

I suspect your system was slightly broken, and some dependencies were missing. 
(E.g. Zim installed with --nodeps)

In any case, closing out, please feel free to reopen if you experience this
again.  :)

Note You need to log in before you can comment on or make changes to this bug.