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?
Best wishes, Ranjan
On 10/03/2016 06:38 AM, Ranjan Maitra 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?
It looks like you have an install dependency on /bin/python3 but it's not installed (check "ls /bin/python3"). That file is provided by the python3-3.5.1-17.fc24.x86_64 RPM (on my updated machine).
---------------------------------------------------------------------- - Rick Stevens, Systems Engineer, AllDigital ricks@alldigital.com - - AIM/Skype: therps2 ICQ: 226437340 Yahoo: origrps2 - - - - Diplomacy: The art of saying "Nice doggy!" until you can find a - - big enough rock. - ----------------------------------------------------------------------
On Mon, 3 Oct 2016 08:38:01 -0500 Ranjan Maitra maitra@email.com 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}
On Mon, 3 Oct 2016 09:34:39 -0700 stan stanl-fedorauser@vfemail.net wrote:
On Mon, 3 Oct 2016 08:38:01 -0500 Ranjan Maitra maitra@email.com 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, this is an error which I found after I posted (and still went on looking).
But it does not resolve the problem. I still get the same error.
Here is the modified specfile:
$ fpaste battray.spec Uploading (1.6KiB)... http://paste.fedoraproject.org/442681/51382314/ -> https://paste.fedoraproject.org/442681/51382314
Thanks! Ranjan
users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org
On Mon, 3 Oct 2016 09:30:44 -0700 Rick Stevens ricks@alldigital.com wrote:
On 10/03/2016 06:38 AM, Ranjan Maitra 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?
It looks like you have an install dependency on /bin/python3 but it's not installed (check "ls /bin/python3"). That file is provided by the python3-3.5.1-17.fc24.x86_64 RPM (on my updated machine).
Rick,
Thanks! But I have a
Requires: python3
Is that not enough?
Besides, python3 and python3-devel is also installed and updated on my machine.
Ranjan
- Rick Stevens, Systems Engineer, AllDigital ricks@alldigital.com -
- AIM/Skype: therps2 ICQ: 226437340 Yahoo: origrps2 -
-- Diplomacy: The art of saying "Nice doggy!" until you can find a -
big enough rock. -
users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org
On Mon, 3 Oct 2016 09:34:39 -0700 stan stanl-fedorauser@vfemail.net wrote:
On Mon, 3 Oct 2016 08:38:01 -0500 Ranjan Maitra maitra@email.com 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
users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org
On Mon, 3 Oct 2016 12:04:31 -0500 Ranjan Maitra maitra@email.com wrote:
Sorry, here is the corrected
$ fpaste battray.spec Uploading (1.6KiB)... http://paste.fedoraproject.org/442684/51425714/ -> https://paste.fedoraproject.org/442684/51425714
I think this is still wrong. It might not be the problem, but I doubt it is the right formula. Provides: %{_bindir}/bin/%{version}-%{release}
I think it should be Provides: %{_bindir}/%{name}.%{version}-%{release}
I have no more ideas as to the cause. Maybe you should ask on devel? Or check bugzilla to see if there is a known bug doing this?
On 10/03/2016 10:04 AM, Ranjan Maitra wrote:
On Mon, 3 Oct 2016 09:34:39 -0700 stan stanl-fedorauser@vfemail.net wrote:
On Mon, 3 Oct 2016 08:38:01 -0500 Ranjan Maitra maitra@email.com 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@alldigital.com - - AIM/Skype: therps2 ICQ: 226437340 Yahoo: origrps2 - - - ----------------------------------------------------------------------
On Mon, 3 Oct 2016 10:44:41 -0700 stan stanl-fedorauser@vfemail.net wrote:
On Mon, 3 Oct 2016 12:04:31 -0500 Ranjan Maitra maitra@email.com wrote:
Sorry, here is the corrected
$ fpaste battray.spec Uploading (1.6KiB)... http://paste.fedoraproject.org/442684/51425714/ -> https://paste.fedoraproject.org/442684/51425714
I think this is still wrong. It might not be the problem, but I doubt it is the right formula. Provides: %{_bindir}/bin/%{version}-%{release}
I think it should be Provides: %{_bindir}/%{name}.%{version}-%{release}
Yes, you are right, sorry.
I have no more ideas as to the cause. Maybe you should ask on devel?
Yes, I guess I should ask there, though I was not sure that this qualified as a devel question so I thought that I would ask here. Maybe someone may still have ideas so I will post the corrected spec here:
$ fpaste battray.specUploading (1.6KiB)... http://paste.fedoraproject.org/442704/55183281/ -> https://paste.fedoraproject.org/442704/55183281
Thanks, Ranjan
users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org
On 3 October 2016 at 15:38, Ranjan Maitra maitra@email.com 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 Samir
On Mon, 3 Oct 2016 11:06:46 -0700 Rick Stevens ricks@alldigital.com wrote:
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.
You are correct -- the right way of putting this in should have been:
%{__python3} setup.py install --prefix=%{_prefix} --root=%{buildroot}
Here is the current (corrected) version of battray.spec for the records, where the rpm installs.
$ fpaste battray.spec Uploading (1.6KiB)... http://paste.fedoraproject.org/442710/55191481/ -> https://paste.fedoraproject.org/442710/55191481
The tar.gz does not come with an explicit license file. I have asked upstream to put this in, and after that, I will submit to Fedora.
Thanks again to you and to Stan for all your help!! It is much appreciated.
Best wishes, Ranjan
On Mon, 3 Oct 2016 20:24:05 +0200 Ahmad Samir ahmadsamir3891@gmail.com wrote:
On 3 October 2016 at 15:38, Ranjan Maitra maitra@email.com 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