You are not logged in.

#1 2015-12-09 06:39:07

Alexandre Magno
Member
Registered: 2014-07-17
Posts: 4

Reduce tree of dependencies from a packages list

I have made a program named "pkgfindflags" that searches candidates for PKGBUILD's makedepends in a Makefile. It is part of my packing utilities and runs like this:

$ pkgfindflags  # within the PKGBUILD directory...
libdbus
atk
cairo
dbus-glib
freetype2
gconf
gdk-pixbuf2
gnome-vfs
gtk2
harfbuzz
harfbuzz-icu
libart-lgpl
libbonobo
libbonoboui
libdrm
libglade
libgnome
libgnomecanvas
libgnome-keyring
libgnomeui
libpng
libxml2
orbit2
pango
pixman
python-dbus-common

Is possible to reduce the tree of dependencies from this list and so get a smaller list? How?

Note: I already know that my program have a algorithm much inefficient.

Last edited by Alexandre Magno (2015-12-09 06:40:55)

Offline

#2 2015-12-09 09:40:15

Alexandre Magno
Member
Registered: 2014-07-17
Posts: 4

Re: Reduce tree of dependencies from a packages list

I think that achieved what I would want: see the commit in my utility

The make's procedure suggests the packages bellow:

libdbus
atk
cairo
dbus-glib
freetype2
gconf
gdk-pixbuf2
gnome-vfs
gtk2
harfbuzz
harfbuzz-icu
libart-lgpl
libbonobo
libbonoboui
libdrm
libglade
libgnome
libgnomecanvas
libgnome-keyring
libgnomeui
libpng
libxml2
orbit2
pango
pixman
python-dbus-common
perl-xml-parser

In my program "pkgreduce" this results in:

harfbuzz-icu
libgnomeui

Is it right initially I doing only makedepends=('harfbuzz-icu' 'libgnomeui') in the PKGBUILD?

Same question here?

Last edited by Alexandre Magno (2015-12-09 10:58:09)

Offline

Board footer

Powered by FluxBB