Re: rpmbuild: compiles without error but does not install
On Mon, 3 Oct 2016 20:24:05 +0200 Ahmad Samirwrote: > On 3 October 2016 at 15:38, 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? > > > > 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@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org
Re: rpmbuild: compiles without error but does not install
On 3 October 2016 at 15:38, Ranjan Maitrawrote: > 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 ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org
Re: rpmbuild: compiles without error but does not install
On 10/03/2016 10:04 AM, Ranjan Maitra wrote: > On Mon, 3 Oct 2016 09:34:39 -0700 stanwrote: > >> On Mon, 3 Oct 2016 08:38:01 -0500 >> 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? >> >> 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, AllDigitalri...@alldigital.com - - AIM/Skype: therps2ICQ: 226437340 Yahoo: origrps2 - -- -- ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org
Re: rpmbuild: compiles without error but does not install
On Mon, 3 Oct 2016 10:44:41 -0700 stanwrote: > On Mon, 3 Oct 2016 12:04:31 -0500 > Ranjan Maitra 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-le...@lists.fedoraproject.org -- Important Notice: This mailbox is ignored: e-mails are set to be deleted on receipt. Please respond to the mailing list if appropriate. For those needing to send personal or professional e-mail, please use appropriate addresses. ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org
Re: rpmbuild: compiles without error but does not install
On Mon, 3 Oct 2016 12:04:31 -0500 Ranjan Maitrawrote: > 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? ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org
Re: rpmbuild: compiles without error but does not install
On Mon, 3 Oct 2016 09:34:39 -0700 stanwrote: > On Mon, 3 Oct 2016 08:38:01 -0500 > 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? > > 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-le...@lists.fedoraproject.org -- Important Notice: This mailbox is ignored: e-mails are set to be deleted on receipt. Please respond to the mailing list if appropriate. For those needing to send personal or professional e-mail, please use appropriate addresses. ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org
Re: rpmbuild: compiles without error but does not install
On Mon, 3 Oct 2016 09:30:44 -0700 Rick Stevenswrote: > 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, AllDigitalri...@alldigital.com - > - AIM/Skype: therps2ICQ: 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-le...@lists.fedoraproject.org -- Important Notice: This mailbox is ignored: e-mails are set to be deleted on receipt. Please respond to the mailing list if appropriate. For those needing to send personal or professional e-mail, please use appropriate addresses. ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org
Re: rpmbuild: compiles without error but does not install
On Mon, 3 Oct 2016 09:34:39 -0700 stanwrote: > On Mon, 3 Oct 2016 08:38:01 -0500 > 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? > > 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-le...@lists.fedoraproject.org -- Important Notice: This mailbox is ignored: e-mails are set to be deleted on receipt. Please respond to the mailing list if appropriate. For those needing to send personal or professional e-mail, please use appropriate addresses. ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org
Re: rpmbuild: compiles without error but does not install
On Mon, 3 Oct 2016 08:38:01 -0500 Ranjan Maitrawrote: > 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} ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org
Re: rpmbuild: compiles without error but does not install
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, AllDigitalri...@alldigital.com - - AIM/Skype: therps2ICQ: 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-le...@lists.fedoraproject.org