Re: rpmbuild: compiles without error but does not install

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

 



On 10/03/2016 10:04 AM, Ranjan Maitra wrote:
> On Mon, 3 Oct 2016 09:34:39 -0700 stan <stanl-fedorauser@xxxxxxxxxxx> wrote:
> 
>> On Mon, 3 Oct 2016 08:38:01 -0500
>> 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?
>>
>> Can this be correct?
>> Provides:       python3-staplelib = %{version}-%{release}
> 
> Sorry, here is the corrected 
> 
> $ fpaste battray.spec
> Uploading (1.6KiB)...
> http://paste.fedoraproject.org/442684/51425714/ -> https://paste.fedoraproject.org/442684/51425714

Looking at that, I'm wondering if your line 31 in the "%install"
section should read:

	/bin/python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}

As it is now, it's depending on a relative path that gets expanded to
/bin/python3, but if it's in a chroot (and I can't recall if rpm does
a chroot to a working directory) then the chroot probably WON'T have
a /bin/python3 in it. A literal leading slash overrides that, I think.

Try the install again using "rpm -i --test -vv" (NOT dnf) and look at
the output. You might see something.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital    ricks@xxxxxxxxxxxxxx -
- AIM/Skype: therps2        ICQ: 226437340           Yahoo: origrps2 -
-                                                                    -
----------------------------------------------------------------------
_______________________________________________
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