[Bug 871092] Review Request: updf - Application to write to PDF

bugzilla at redhat.com bugzilla at redhat.com
Fri Dec 14 13:50:10 UTC 2012


Product: Fedora
https://bugzilla.redhat.com/show_bug.cgi?id=871092

--- Comment #32 from Antonio Trande <trpost at katamail.com> ---
(In reply to comment #31)
> > How can I know all the right dependencies ?
> 
> Only by becoming intimately familiar with the software you want to package,
> by examining its Python source code, and by using Yum or repoquery to locate
> needed packages.
> 
> For example, you can use your favourite search tool to locate "import"
> statements. Then find out what packages include the needed Python modules.

I thought that it was a task of upstream what of listing all right dependencies
...  

> The primary task would be to get the BuildRequires right, so the build
> doesn't fail and no features, which could be enabled, get disabled. The
> secondary (and somewhat less important) task would be to complete the
> run-time dependencies. To mark your package as depending on other packages.
> 
> > gir1.2-gdkpixbuf-2.0: GDK Pixbuf libraries - introspection GObject -->
> > gdk-pixbuf2 on Fedora ? 
> 
> Reviewing Debian packages is outside the scope of this package review
> request. You would need to be familiar with the contents of those packages
> to tell whether they include Python stuff. What does "gdk-pixbuf2" include
> that would be needed?
> 

Every 'import' statements indicate a python module (I think) so for example
(related package names enclosed in parenthesis):

distutils (python-distutils-extra) - cmd.py (pypy-libs, python-libs)
                                        - os.py (python-libs)
                                        - glob.py (python-libs)
                                        - shlex.py (python-libs)
                                        - subprocess.py (python-libs)
                                        - shutil.py (python-libs)
                                        - polib.py (python-polib)
                                        - ConfigParser.py (python-libs)
                                        - codecs.py (python-libs)  
                                        - msgfmt -->

msgfmt.py -- sys.py (shedskin)
          - os.py (python-libs)
          - getopt (shedskin)
          - struct (shedskin, python-libs)
          - array (shedskin)

comun.py  -- os.py (python-libs)
          - locale.py (pypy-libs, python-libs)
          - gettext.py (python-libs)


and so on.
However, if it is a right procedure, the same '.py' file is provided as a part
of more rpm packages and it is difficult to know which is the right one.  

> $ rpm -qf /usr/lib64/girepository-1.0/GdkPixbuf-2.0.typelib 
> gdk-pixbuf2-2.26.5-1.fc18.x86_64
> 
> Ah!
> 
> > gir1.2-poppler-0.18: rendering library for PDF based on Xpdf -->
> > pypoppler on Fedora ?
> 
> pypoppler on Fedora only provides a Python module "poppler" (lower-case
> first letter!), but nothing to satisfy:
> 
>   updf.py:from gi.repository import Poppler, Gtk, Gdk, GObject, GdkPixbuf
> 
> $ rpm -qf /usr/lib64/girepository-1.0/Poppler-0.18.typelib 
> poppler-glib-0.20.2-9.fc18.x86_64
> 
> Ah!
> 

:|


> > BuildRequires: pycairo-devel
> > BuildRequires: pygobject3-devel
> > BuildRequires: gdk-pixbuf2-devel
> 
> Have you added these BuildRequires because building updf failed without
> them? Do these packages contain Python stuff needed to build updf? If in
> doubt, examine what's included in those packages.

Maybe they are useless.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=m9np4Md9oL&a=cc_unsubscribe



More information about the package-review mailing list