Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 267033 - dev-util/meld ebuild has too much dependencies
Summary: dev-util/meld ebuild has too much dependencies
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-21 22:50 UTC by Robert
Modified: 2009-04-29 21:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert 2009-04-21 22:50:24 UTC
Meld is being proposed for environments with limited resources but emerging it pulls in lots of gnome dependencies. A stripped down build produces a fully working (file diff, directory diff,...) application without these dependencies.


RDEPEND=">=dev-lang/python-2.4
        >=gnome-base/libglade-2
        >=dev-python/pyorbit-2.8"

DEPEND="${RDEPEND}
        dev-util/intltool
        app-text/scrollkeeper"

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] dev-python/pyorbit-2.24.0  USE="-debug" 
[ebuild  N    ] dev-util/meld-1.3.0-r99  USE="-debug -doc" 

compiles and runs perfectly. At least here.

Reproducible: Always

Steps to Reproduce:
1. On a gnome free machine do:
emerge -a dev-util/meld

2.
3.

Actual Results:  
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] dev-python/gnome-python-base-2.22.3  USE="-debug" 
[ebuild  N    ] gnome-base/libbonobo-2.24.1  USE="-debug -doc" 
[ebuild  N    ] dev-python/pyorbit-2.24.0  USE="-debug" 
[ebuild  N    ] gnome-base/gnome-keyring-2.22.3-r1  USE="hal pam -debug -doc -test" 
[ebuild  N    ] gnome-base/gvfs-1.0.3-r2  USE="bash-completion hal samba -archive -avahi -bluetooth -cdda -debug -doc -fuse -gnome -gnome-keyring -gphoto2" 
[ebuild  N    ] gnome-base/gnome-common-2.24.0  USE="-debug" 
[ebuild  N    ] gnome-base/gnome-mime-data-2.18.0  USE="-debug" 
[ebuild  N    ] dev-python/libgnomecanvas-python-2.22.3  USE="-debug -examples" 
[ebuild  N    ] dev-python/gconf-python-2.22.3  USE="-debug -examples" 
[ebuild  N    ] gnome-base/gnome-mount-0.8-r1  USE="libnotify -debug -nautilus" 
[ebuild  N    ] gnome-base/gnome-vfs-2.24.1  USE="acl fam gnutls hal ipv6 samba ssl -avahi -debug -doc -kerberos" 
[ebuild  N    ] gnome-base/libgnome-2.24.1  USE="-debug -doc -esd" 
[ebuild  N    ] dev-python/gnome-vfs-python-2.22.3  USE="-debug -doc -examples" 
[ebuild  N    ] gnome-base/libbonoboui-2.24.1  USE="X -doc" 
[ebuild  N    ] gnome-base/libgnomeui-2.24.1  USE="-doc" 
[ebuild  N    ] dev-python/libbonobo-python-2.22.3  USE="-debug -examples" 
[ebuild  N    ] dev-python/libgnome-python-2.22.3  USE="-debug -examples" 
[ebuild  N    ] dev-util/meld-1.3.0  USE="-debug -doc" 


Expected Results:  
Maybe a small handful of dependencies.

I stripped down the current meld-1.3.0.ebuild:

RDEPEND=">=dev-lang/python-2.4
        >=gnome-base/libglade-2
        >=dev-python/pyorbit-2.8"

DEPEND="${RDEPEND}
        dev-util/intltool
        app-text/scrollkeeper"

and it worked. Not sure about the dev-python/pyorbit dependency...



emerge --info
Portage 2.1.6.7 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.27-gentoo-r7 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r7-x86_64-AMD_Athlon-tm-_64_Processor_3200+-with-glibc2.2.5
Timestamp of tree: Tue, 21 Apr 2009 18:45:02 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2
dev-util/cmake:      2.4.8
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.tu-ilmenau.de/Mirrors/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de en"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/byhand"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip X a52 aac acl acpi alsa amd64 audiofile bash-completion berkdb bzip2 cairo cddb cdr cli cracklib crypt cups dbus dga dillo dirac disk-partition dri dts dv dvd dvdr dvdread dvi eds encode exif fam ffmpeg fftw firefox flac fortran ftp gdbm ghostscript gif gimp gnuplot gnutls gpm gs gtk hal iconv icq id3 imap ipv6 isdnlog jabber java jpeg jpeg2k kpathsea lame libcaca libnotify libsamplerate lm_sensors loop-aes lyrics lzma lzo mad matroska midi mikmod mime mmx mmxext mng mp2 mp3 mpeg mplayer mudflap multilib musepack ncurses nls nntp nptl nptlonly nvidia offensive ogg openal openexr opengl openmp pam pcre pdf perl plotutils png postscript pppd python quicktime rar rdesktop readline reflection rle samba scanner schroedinger sdl session shorten smime speex spell spl sse sse2 ssl startup-notification subversion svg sysfs taglib tcpd theora tiff timidity tk truetype unicode usb v4l v4l2 vcd vnc vorbis wavepack wma wmf x264 xcomposite xface xine xml xorg xpm xscreensaver xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="vesa vga nv nvidia v4l"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-04-22 13:38:53 UTC
current dependencies reflect what has been found by scanning through the python files for imports.
Comment 2 Robert 2009-04-22 21:49:17 UTC
(In reply to comment #1)
> current dependencies reflect what has been found by scanning through the python
> files for imports.

You are right that there are imports of gnome. I'm not familiar with python so I have no idea what happens if an import fails. Could it be that it's possible that if it fails a fallback to a less desktop environment integrated function is used? E.g. if no gnome file open dialog is available then the one from gtk2 is used?

On the meld homepage only pygtk is named as dependency which is not listed in the meld ebuild. gtksourceview (for syntax highlighting) and intltool (for translations) are optional.

So either this list from the project is very incomplete or the ebuild has too many dependencies that might be used but are not necessary. Or there are useless imports in melds python scripts.
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-04-27 10:29:26 UTC
ok I've checked that all extra dependencies are in fact wrapped in try/except structures or similar so we'll add a useflag to make that optional. (Did I say I hate conditional imports in python ?)
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-04-27 20:03:15 UTC
ok, fixed without a bump, pyorbit was something I forgot to replace by pygobject. thanks for reporting.
Comment 5 Robert 2009-04-29 21:19:44 UTC
Thanks for fixing this so fast.