Hi,
Situation I have is this:
(a) I have a bunch of perl scripts that use a perl module (say Foo) that is not installed on the "package build machine"
(b) On the target machine, the FOO module was "hand installed" in antiquity in /opt/foo
In the perl scripts, I have:
Use lib qw{/opt/foo/lib};
Use Foo::Bar;
SO - I can build the package fine but when I try to install it, I get the messages:
error: Failed dependencies:
perl(Foo::Bar) is needed by some-package-1.1.1-1.noarch
Any ideas, please, how I can "teach" the spec file that the required perl module lives in a certain place on the target machine?
Thanks!
Richard.
richard.hellier@stfc.ac.uk wrote:
Hi,
Situation I have is this:
(a) I have a bunch of perl scripts that use a perl module (say Foo) that is not installed on the “package build machine”
(b) On the target machine, the FOO module was “hand installed” in antiquity in /opt/foo
In the perl scripts, I have:
Use lib qw{/opt/foo/lib};
Use Foo::Bar;
SO – I can build the package fine but when I try to install it, I get the messages:
error: Failed dependencies:
perl(Foo::Bar) is needed by some-package-1.1.1-1.noarch
Any ideas, please, how I can “teach” the spec file that the required perl module lives in a certain place on the target machine?
Thanks!
Richard.
-- Scanned by iCritical.
-- Fedora-packaging mailing list Fedora-packaging@redhat.com https://www.redhat.com/mailman/listinfo/fedora-packaging
Um. . .don't? Put the module in a package. Or, use a file Requires, but I think it'll still look for it in the system Perl places.
On 27/10/09 16:16, richard.hellier@stfc.ac.uk wrote:
Hi,
Situation I have is this:
(a) I have a bunch of perl scripts that use a perl module (say Foo) that is not installed on the “package build machine”
(b) On the target machine, the FOO module was “hand installed” in antiquity in /opt/foo
In the perl scripts, I have:
Use lib qw{/opt/foo/lib};
Use Foo::Bar;
SO – I can build the package fine but when I try to install it, I get the messages:
error: Failed dependencies:
perl(Foo::Bar) is needed by some-package-1.1.1-1.noarch
Any ideas, please, how I can “teach” the spec file that the required perl module lives in a certain place on the target machine?
Thanks!
Richard.
Why don't you just create a perl-Foo package to properly package the module?
If there's some really really good reason why you can't do that, you can fix the requires: https://fedoraproject.org/wiki/Packaging/Perl#Filtering_Requires:_and_Provid...
On recent Fedoras you can also use this scheme: http://fedoraproject.org/wiki/PackagingDrafts/AutoProvidesAndRequiresFilteri...
Paul.
packaging@lists.fedoraproject.org