Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 171482 - emerge --tree --pretend shows things once for nomerge and once for ebuild unneedlesly
Summary: emerge --tree --pretend shows things once for nomerge and once for ebuild unn...
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: High normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 174371 212627 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-03-19 21:16 UTC by Petteri Räty (RETIRED)
Modified: 2008-03-07 21:38 UTC (History)
2 users (show)

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 Petteri Räty (RETIRED) gentoo-dev 2007-03-19 21:16:07 UTC
pena xo # emerge -pvt gst-plugins-dvdread

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

Calculating dependencies... done!
[nomerge      ] media-plugins/gst-plugins-dvdread-0.10.4
[nomerge      ]  media-libs/gst-plugins-base-0.10.12  USE="alsa esd xv -X -debug -oss"
[ebuild  N    ]   media-plugins/gst-plugins-esd-0.10.5  0 kB
[ebuild  N    ]   media-plugins/gst-plugins-xvideo-0.10.11  0 kB
[ebuild  N    ]   media-plugins/gst-plugins-alsa-0.10.12  0 kB
[ebuild  N    ] media-plugins/gst-plugins-dvdread-0.10.4  0 kB
[ebuild  N    ]  media-libs/gst-plugins-base-0.10.12  USE="alsa esd xv -X -debug -oss" 0 kB

As we see in this case it would be correct to just replace nomerge with the two last ones.

pena xo # emerge --info
Portage 2.1.2.2 (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.5-r1, 2.6.20-gentoo-r2 i686)
=================================================================
System uname: 2.6.20-gentoo-r2 i686 Intel(R) Core(TM)2 CPU          6600  @ 2.40GHz
Gentoo Base System version 1.13.0_alpha12
Timestamp of tree: Unknown
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.4.4, 2.5-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=nocona -pipe -fomit-frame-pointer"
DISTDIR="/var/distfiles"
FEATURES="autoaddcvs autoconfig ccache collision-protect cvs distlocks fixpackages java-strict parallel-fetch sandbox sfperms sign strict userpriv usersandbox verify-rdepend"
GENTOO_MIRRORS=" http://trumpetti.atm.tut.fi/gentoo"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="fi"
MAKEOPTS="-j2"
PKGDIR="/home/pkg/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/mnt/checkouts/overlays/betelgeuse"
SYNC="rsync://192.168.150.1:/portage"
USE="a52 aac acl acpi alsa audiofile bash-completion berkdb bitmap-fonts bluetooth bzip2 cairo cdb cddb cdparanoia cdr cli cracklib crypt cups dbus dri dts dvd dvdr dvdread emboss esd fam ffmpeg firefox gif gstreamer hal iconv isdnlog java jpeg kde kdeenablefinal kdehiddenvisibility libg++ libnotify logitech-mouse mad mikmod mjpeg mmx mp3 mpeg ncurses network nptl nptlonly nsplugin nvidia offensive ogg opengl pam pcre png ppds pppd qt3 quicktime readline real reflection rtc samba session spell spl sse sse2 ssl startup-notification subversion svg symlink theora threads truetype truetype-fonts type1-fonts udev unicode usb userlocales vim-syntax vorbis x86 xcb xcomposite xinerama xml xorg xv xvid xvmc zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="mouse keyboard evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fi" USERLAND="GNU" VIDEO_CARDS="none nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Zac Medico gentoo-dev 2007-03-19 21:30:33 UTC
(In reply to comment #0)
> As we see in this case it would be correct to just replace nomerge with the two
> last ones.

Then merge list wouldn't be telling you the exact merge order, though (bug 158100).
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2007-03-19 22:05:39 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > As we see in this case it would be correct to just replace nomerge with the two
> > last ones.
> 
> Then merge list wouldn't be telling you the exact merge order, though (bug
> 158100).
> 

Well then I have one bug for you:

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

They are in order aren't they?
Comment 3 Zac Medico gentoo-dev 2007-03-19 22:22:31 UTC
(In reply to comment #2)
> Well then I have one bug for you:
> 
> These are the packages that would be merged, in reverse order:
> 
> They are in order aren't they?

Hmm?  Given the output shown in comment #0, the merge order would be the order show for "[ebuild  N    ]" packages, read from bottom to top (it's reversed because without --tree the order reads from top to bottom).
Comment 4 Zac Medico gentoo-dev 2007-03-19 23:53:20 UTC
If you're saying that the "[nomerge      ]" nodes shouldn't be shown, then I'm not sure how we can do that and still meet the main goal of --tree which is to show dependency relationships.  I'm open to suggestions if you can think of a better way to display a PDEPEND relationship while still displaying the actual merge order.  It's unfortunate that packages are displayed more than once in cases like this, but given the way that the --tree display works, how else can dependency relationships and merge order be displayed simultaneously?
Comment 5 Petteri Räty (RETIRED) gentoo-dev 2007-03-20 10:14:28 UTC
(In reply to comment #4)
> If you're saying that the "[nomerge      ]" nodes shouldn't be shown, then I'm
> not sure how we can do that and still meet the main goal of --tree which is to
> show dependency relationships.  I'm open to suggestions if you can think of a
> better way to display a PDEPEND relationship while still displaying the actual
> merge order.  It's unfortunate that packages are displayed more than once in
> cases like this, but given the way that the --tree display works, how else can
> dependency relationships and merge order be displayed simultaneously?
> 

The current behavior is just fine. 
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-04-13 07:09:32 UTC
*** Bug 174371 has been marked as a duplicate of this bug. ***
Comment 7 Zac Medico gentoo-dev 2008-03-07 21:38:46 UTC
*** Bug 212627 has been marked as a duplicate of this bug. ***