Le sam. 13 févr. 2021 à 11:28, Thomas Perret <thomas.per...@phyx.fr> a
écrit :

> Hi Jérémy,
>
> >
> > However, i don't quite understand the usefulness of these packages:
> > - openpaperwork-core
> > - openpaperwork-core-doc
> > - openpaperwork-gtk
> > - openpaperwork-gtk-doc
> >
> > I've installed openpaperwork-gtk and it seems it doesn't depend on
> > paperwork-gtk,
> > but maybe i'm missing some documentation, and the long package
> description
> > of
> > openpaperwork-gtk
> > doesn't help either.
>
> In fact, paperwork-gtk depends on openpaperwork-gtk.
>
> I agree that openpaperwork-* packages descriptions are not really helpful.
> The basic idea is that openpaperwork-* is the core of the concept
> implementation of paperwork and paperwork-* are the user interface
> implementations. The upstream idea behind that is to allow different
> implementations of user interfaces (e.g.: web interface, mobile
> interface,…).
>
> With paperwork 2.* there is a full support for plugins. You can check
> which plugins are enabled with command lines:
> $ paperwork-cli plugins list
> $ paperwork-gtk plugins list
> You can check the documentation on openpaperwork-core-doc or online[1]
> which explains the core & plugins aspects.




> >
> > Manually i had to do
> > dpkg -i paperwork-gtk_2.0.2-1_all.deb paperwork-backend_2.0.2-1_all.deb
> >   openpaperwork-core_2.0.2-1_all.deb
> > to get it, and that somehow looks wrong.
> >
> > On the other hand, once installed, it seems to be working all right. I'll
> > try to do actual scanning with it later.
>
> My guess is you will have some issues because paperwork-gtk needs
> plugins provided by openpaperwork-gtk (check the previous command).
>

Indeed openpaperwork-gtk should "Suggests: paperwork-gtk"
(at least).
Also the long description of the packages could be improved to avoid
users confusion.


Maybe the split of package is something that could be discussed,
> especially the openpaperwork-gtk one which doesn't make a lot of sense
> in retrospective.
>

I think splitting is all right as long as it's explained in the long
description,
so that a quick inspection of the package makes it obvious which does what.



> Note that the best way to install paperwork in to select the l10n
> package that correspond to your language, e.g.: paperwork-gtk-l10n-*
> because it depends on all localized dependencies and provides the
> localization translations. I don't like that but I couldn't find a
> correct way to depends on current user's localization.
>

That's nice.
Again, the "paperwork-gtk" package could tell that fact in its long
description.

> i really think it would be a bonus to Bullseye to have paperwork 2.
> > Maybe debian-release will allow it if we ensure the debian packaging is
> all
> > right very quickly.
> >
>
> I (obviously) agree with that ;-)
>

Well bullseye is in soft freeze.  Let's try to upload it asap to unstable,
(along with fixing the packages long descriptions and Suggests: as
described above).

Also i noticed autopkgtests are failing with lots of these (see below).
This needs to be fixed.

Jérémy


autopkgtest [22:23:03]: test paperwork: /usr/bin/paperwork-gtk --help
autopkgtest [22:23:03]: test paperwork: [-----------------------
Gio.GError
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/openpaperwork_gtk/fs/gio.py", line
543, in fs_mkdir_p
    f.make_directory_with_parents()
gi.repository.GLib.GError: g-io-error-quark: Error creating directory
/home/dev: Permission denied (14)
Callback '<bound method Plugin.paths_get_config_dir of
<openpaperwork_core.paths.xdg.Plugin object at 0x7f7d776d5040>>' failed
Failed to initialized plugin '<class
'openpaperwork_core.config.backend.configparser.Plugin'>'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/openpaperwork_gtk/fs/gio.py", line
543, in fs_mkdir_p
    f.make_directory_with_parents()
gi.repository.GLib.GError: g-io-error-quark: Error creating directory
/home/dev: Permission denied (14)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/openpaperwork_core/__init__.py",
line 284, in _init
    plugin.init(self)
  File
"/usr/lib/python3/dist-packages/openpaperwork_core/config/backend/configparser.py",
line 201, in init
    self.base_path = self.core.call_success("paths_get_config_dir")
  File "/usr/lib/python3/dist-packages/openpaperwork_core/__init__.py",
line 509, in call_success
    r = callback(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/openpaperwork_core/paths/xdg.py",
line 27, in paths_get_config_dir
    self.core.call_all("fs_mkdir_p", config_dir)
  File "/usr/lib/python3/dist-packages/openpaperwork_core/__init__.py",
line 410, in call_all
    callback(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/openpaperwork_gtk/fs/gio.py", line
546, in fs_mkdir_p
    raise IOError("fs_mkdir_p({}): {}".format(url, str(exc)))
OSError: fs_mkdir_p(file:///home/dev/.config): g-io-error-quark: Error
creating directory /home/dev: Permission denied (14)
Gio.GError
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/openpaperwork_gtk/fs/gio.py", line
543, in fs_mkdir_p
    f.make_directory_with_parents()
gi.repository.GLib.GError: g-io-error-quark: Error creating directory
/home/dev: Permission denied (14)
Callback '<bound method Plugin.paths_get_data_dir of
<openpaperwork_core.paths.xdg.Plugin object at 0x7f7d776d5040>>' failed
Failed to initialized plugin '<class 'openpaperwork_core.archives.Plugin'>'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/openpaperwork_gtk/fs/gio.py", line
543, in fs_mkdir_p
    f.make_directory_with_parents()
gi.repository.GLib.GError: g-io-error-quark: Error creating directory
/home/dev: Permission denied (14)

During handling of the above exception, another exception occurred:

Reply via email to