Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48274 - File adds/removes aren't logged
Summary: File adds/removes aren't logged
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 44998 124817 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-04-18 15:59 UTC by Johannes Segitz
Modified: 2013-02-15 20:31 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 Johannes Segitz 2004-04-18 15:59:49 UTC
emerge depclean doesn't log most of its output to /var/log/portage

ls -l /var/log/portage
-rw-rw-r--    1 root     portage       293 Apr 19 00:17 1840-PyOpenGL-2.0.0.44.log
-rw-rw-r--    1 root     portage       293 Apr 19 00:17 1840-PyXML-0.8.1.log
-rw-rw-r--    1 root     portage        13 Apr 19 00:16 1840-aspell-en-0.51.0.log
-rw-rw-r--    1 root     portage        13 Apr 19 00:18 1840-cabextract-0.6.log
-rw-rw-r--    1 root     portage        13 Apr 19 00:17 1840-faad2-2.0_rc3.log
-rw-rw-r--    1 root     portage        13 Apr 19 00:17 1840-fltk-1.1.4.log
-rw-rw-r--    1 root     portage        13 Apr 19 00:17 1840-glut-3.7.1.log
-rw-rw-r--    1 root     portage        13 Apr 19 00:17 1840-gtkglarea-1.99.0.log
-rw-rw-r--    1 root     portage        13 Apr 19 00:17 1840-libsdl-1.2.6-r3.log
-rw-rw-r--    1 root     portage       259 Apr 18 23:42 1840-wine-20040121.log

Normal output to console. The small files look like this:

cat 1840-glut-3.7.1.log
prerm
postrm

Reproducible: Always
Steps to Reproduce:
1. Do a emerge depclean

Actual Results:  
emerge depclean removed everything it should

Expected Results:  
log its output to /var/log/portage

Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5)
=================================================================
System uname: 2.6.5 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.4.9
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config 
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache distcc sandbox sfperms userpriv 
usersandbox"
GENTOO_MIRRORS="ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.
oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="alsa apm berkdb cdr crypt cups encode esd foomaticdb gif imlib libwww mmx 
ncurses pam pdflib perl png python readline slang spell ssl tcltk tcpd x86 xml2 
zlib"
Comment 1 SpanKY gentoo-dev 2004-04-18 19:56:17 UTC
i dont know what you expected to be in those logs but what you got is what should have been in there ... those log files are meant to track portage output, not files removed or everything you would see on the console
Comment 2 Johannes Segitz 2004-04-19 00:01:54 UTC
This can't be generally true because i have some logfiles with the complete output of emerge && configure && make && ...

/var/log/portage# wc -l * | sort -n | tail -n 6
    5344 1796-gnome-icon-theme-1.0.9.log
    5746 1806-gnumeric-1.2.6.log
    5867 1800-gnome-themes-2.4.1.log
    8646 1839-wine-20040121.log
   18385 1776-mozilla-firefox-0.8-r2.log
   88296 total

These all originate from merging operations. I want to have the ouput of all commands get logged this way (so i can run emerge depclean and grep for files not deleted afterwards)
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2005-12-04 09:42:42 UTC
Can someone else comment on the validity here so this can be closed one way or
the other?
Comment 4 Jason Stubbs (RETIRED) gentoo-dev 2005-12-05 05:47:46 UTC
I'd agree that logging of the '--- !empty dir /usr/bin' messages would be 
useful. There's pretty much no point in them at the moment other than showing 
that portage is actually doing something. 
 
Comment 5 Marius Mauch (RETIRED) gentoo-dev 2006-02-16 18:11:55 UTC
It's kind of a dupe of 44998, but they are still a bit different. However, if any of these bugs is fixed the other can also be closed. So it's a question which one  to fix (if any) and this seems to be the more likely candidate (less work ;).
Comment 6 Marius Mauch (RETIRED) gentoo-dev 2006-02-16 18:12:27 UTC
*** Bug 44998 has been marked as a duplicate of this bug. ***
Comment 7 Simon Stelling (RETIRED) gentoo-dev 2006-04-16 14:48:30 UTC
*** Bug 124817 has been marked as a duplicate of this bug. ***
Comment 8 Zac Medico gentoo-dev 2013-02-15 20:31:26 UTC
This should have been fixed for a long time now, though you need to enable --verbose since this change from bug 186842:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=507bcbec012f81d79f8b5131a72c1e3f05edf4f1