Re: rpmbuild: compiles without error but does not install

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 3 Oct 2016 20:24:05 +0200 Ahmad Samir <ahmadsamir3891@xxxxxxxxx> wrote:

> On 3 October 2016 at 15:38, Ranjan Maitra <maitra@xxxxxxxxx> wrote:
> > Hi,
> >
> > I have had issues with batti for quite a while, and I came across battray as a replacement (and it works). So, I was trying to put it together as a rpm and perhaps and get it approved for Fedora.
> >
> > I have created the following spec file available here:
> >
> > https://paste.fedoraproject.org/442597/50173214
> >
> > It compiles without error. However, when I try to install the rpm using
> >
> > $sudo dnf install ../RPMS/noarch/battray-2.2-1.fc24.noarch.rpm
> >
> > I get:
> >
> > Last metadata expiration check: 0:15:05 ago on Mon Oct  3 08:21:04 2016.
> > Error: nothing provides /bin/python3 needed by battray-2.2-1.fc24.noarch
> > (try to add '--allowerasing' to command line to replace conflicting packages)
> >
> > The addition of '--allowerasing' does not change anything other than to remove the suggestion.
> >
> > Any suggestions as to what is wrong with my spec file?
> >
> 
> Try:
> %install
> %{_python3} setup.py install --prefix=%{_prefix} --root=%{buildroot}
> 
> %{_python3} expands to /usr/bin/python3; I think on your system
> python3 in "python3 setup.py...." resolves to /bin/python3 which
> explains the wrong requires added to the package.
> 
> Try examining your $PATH env var, maybe /bin/ is precedes /usr/bin/ on
> your system?

Ahmad,

Thank you for this. This was it.

best wishes,
Ranjan
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux