[opensuse-factory] Re: [opensuse-packaging] Strange issue in python package: CUPS-Cloud-Print

Le 09/10/2014 12:09, Todd Rme a écrit :
On Thu, Oct 9, 2014 at 12:05 AM, Greg Freemyer <greg.freemyer@gmail.com> wrote:
All,
I'm trying to package the Google Cups Cloud Proxy Printer
https://build.opensuse.org/package/show/home:gregfreemyer:branches:home:sbra...
It is building on my 64-bit laptop via "osc build" so in theory it should be fine for factory builds.
On OBS, both factory 32 and 64-bit builds are failing. On the other hand, they are both working for 13.1 builds.
The failed builds report:
[ 147s] error: Installed (but unpackaged) file(s) found: [ 147s] /usr/share/cloudprint-cups/auth.pyc [ 147s] /usr/share/cloudprint-cups/ccputils.pyc [ 147s] /usr/share/cloudprint-cups/cloudprintrequestor.pyc [ 147s] /usr/share/cloudprint-cups/oauth2client/__init__.pyc [ 147s] /usr/share/cloudprint-cups/oauth2client/anyjson.pyc [ 147s] /usr/share/cloudprint-cups/oauth2client/client.pyc [ 147s] /usr/share/cloudprint-cups/oauth2client/clientsecrets.pyc [ 147s] /usr/share/cloudprint-cups/oauth2client/crypt.pyc [ 147s] /usr/share/cloudprint-cups/oauth2client/locked_file.pyc [ 147s] /usr/share/cloudprint-cups/oauth2client/multistore_file.pyc [ 147s] /usr/share/cloudprint-cups/printer.pyc [ 147s] /usr/share/cloudprint-cups/printermanager.pyc
But in my %files section I have:
%dir %{_datadir}/cloudprint-cups %{_datadir}/cloudprint-cups/.coveragerc %{_datadir}/cloudprint-cups/*
I previously just had:
%{_datadir}/cloudprint-cups
But I had the same complaint, so I made it more explicit. Maybe I need to list every file?
Part of the strangeness is the exact release / arch that is failing seems to change each time I do a commit. It feels almost like it is a random issue that I am assigning meaning to.
Any ideas?
Thanks Greg You could try manually creating the .pyc files in the %install section so they will always be there. You should be able to use "python -m compileall %{buildroot}%{_datadir}/cloudprint-cups/" to generate the .pyc files. Your python libraries don't have to be installed in %{_datadir}. You should move them in %{python_sitelib} before anything.
Regards. Benjamin. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

Q On October 9, 2014 10:22:27 AM EDT, denisart benjamin2 <p.drouand@gmail.com> wrote:
On Thu, Oct 9, 2014 at 12:05 AM, Greg Freemyer <greg.freemyer@gmail.com> wrote:
All,
I'm trying to package the Google Cups Cloud Proxy Printer
https://build.opensuse.org/package/show/home:gregfreemyer:branches:home:sbra...
It is building on my 64-bit laptop via "osc build" so in theory it should be fine for factory builds.
On OBS, both factory 32 and 64-bit builds are failing. On the other hand, they are both working for 13.1 builds.
The failed builds report:
[ 147s] error: Installed (but unpackaged) file(s) found: [ 147s] /usr/share/cloudprint-cups/auth.pyc [ 147s] /usr/share/cloudprint-cups/ccputils.pyc [ 147s] /usr/share/cloudprint-cups/cloudprintrequestor.pyc [ 147s] /usr/share/cloudprint-cups/oauth2client/__init__.pyc [ 147s] /usr/share/cloudprint-cups/oauth2client/anyjson.pyc [ 147s] /usr/share/cloudprint-cups/oauth2client/client.pyc [ 147s]
/usr/share/cloudprint-cups/oauth2client/clientsecrets.pyc
[ 147s] /usr/share/cloudprint-cups/oauth2client/crypt.pyc [ 147s] /usr/share/cloudprint-cups/oauth2client/locked_file.pyc [ 147s] /usr/share/cloudprint-cups/oauth2client/multistore_file.pyc [ 147s] /usr/share/cloudprint-cups/printer.pyc [ 147s] /usr/share/cloudprint-cups/printermanager.pyc
But in my %files section I have:
%dir %{_datadir}/cloudprint-cups %{_datadir}/cloudprint-cups/.coveragerc %{_datadir}/cloudprint-cups/*
I previously just had:
%{_datadir}/cloudprint-cups
But I had the same complaint, so I made it more explicit. Maybe I need to list every file?
Part of the strangeness is the exact release / arch that is failing seems to change each time I do a commit. It feels almost like it is a random issue that I am assigning meaning to.
Any ideas?
Thanks Greg You could try manually creating the .pyc files in the %install
Le 09/10/2014 12:09, Todd Rme a écrit : section
so they will always be there. You should be able to use "python -m compileall %{buildroot}%{_datadir}/cloudprint-cups/" to generate the .pyc files. Your python libraries don't have to be installed in %{_datadir}. You should move them in %{python_sitelib} before anything.
Regards. Benjamin.
Thanks, corrected in the package in my home project. Greg -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (2)
-
denisart benjamin2
-
Greg Freemyer