dependency problem with my (first) RPM

Mattia Verga mattia.verga at tiscali.it
Mon Apr 1 10:56:21 UTC 2013


Hi Dario,
In my opinion your first
'Requires: Perl'
is not needed, because you already applied the right way of require Perl 
with

Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))


You can take a look to specfiles of other Perl modules and take them as 
example (for example take a look to the source of Perl-Ace at 
http://koji.fedoraproject.org/koji/buildinfo?buildID=390648 )

See also https://fedoraproject.org/wiki/Packaging:Perl

Bye
Mattia

Il 01/04/2013 10:17, Dario Faggioli ha scritto:
> Hello Everyone,
>
> I created an (my first!) RPM of this software
> http://www.xen-tools.org/software/xen-tools/ but I'm having some issues
> when trying to install it.
>
> Before anyone ask, yes, the long term plan is to follow all the usual
> step to get the package officially accepted in Fedora, but I'd like to
> have it "working" before starting to do that. :-)
>
> So, xen-tools is just a collection of perl scripts, but having the
> package I'm making depend from perl is driving me nuts! :-O Spec file is
> attached (I've run it through rpmlint, and I know it have some issues,
> but still...) and here's what I get when I tr to install the result of
> `rpmbuild -ba xen-tools.spec':
>
> # yum install ../RPMS/noarch/xen-tools-4.3.1-1.fc18.noarch.rpm
> Loaded plugins: langpacks, presto, refresh-packagekit
> Examining ../RPMS/noarch/xen-tools-4.3.1-1.fc18.noarch.rpm: xen-tools-4.3.1-1.fc18.noarch
> Marking ../RPMS/noarch/xen-tools-4.3.1-1.fc18.noarch.rpm to be installed
> Resolving Dependencies
> --> Running transaction check
> ...
> ---> Package xen-tools.noarch 0:4.3.1-1.fc18 will be installed
> --> Processing Dependency: perl(any) for package: xen-tools-4.3.1-1.fc18.noarch
> --> Processing Dependency: perl(any) for package: xen-tools-4.3.1-1.fc18.noarch
> --> Finished Dependency Resolution
> Error: Package: xen-tools-4.3.1-1.fc18.noarch (/xen-tools-4.3.1-1.fc18.noarch)
>             Requires: perl(any)
>   You could try using --skip-broken to work around the problem
>   You could try running: rpm -Va --nofiles --nodigest
>
> I googled for this quite a bit, but I don't seem to be able to find
> anything explaining how to make that "Requires: perl(any)" go
> away... :-(
>
> Any ideas?
>
> Thanks a lot and Regards,
> Dario
>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/devel/attachments/20130401/8f4fb258/attachment.html>


More information about the devel mailing list