Differences between current version and previous revision of GentooNotes.
Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 17 | Last edited on Tuesday, June 21, 2005 4:36:22 pm | by DanielLawson | |
Older page: | version 16 | Last edited on Tuesday, June 21, 2005 4:30:45 pm | by DanielLawson | Revert |
@@ -62,11 +62,15 @@
This will only rebuild packages whose <tt>USE</tt> flags would change
!!! An <tt>emerge</tt> clobbered something vital, but I didn't see what!
-This happens a lot. If you run <tt>emerge -Du world</tt>, and don't have a tediously slow machine, chances are pretty good that at some point you'll emerge a package which will "automatically" overwrite some config option. It'll tell you about it, but you probably won't be watching. There is a [bug filed against portage | http:
//bugs.gentoo.org/show_bug.cgi?id=11359]
for this
, but it's been about two years
and a half and nothing has actually happened. It's possible this will be included in
the 'next version of portage', whenever that comes out
.
+This happens a lot. If you run <tt>emerge -Du world</tt>, and don't have a tediously slow machine, chances are pretty good that at some point you'll emerge a package which will "automatically" overwrite some config option. It'll tell you about it, but you probably won't be watching. The <tt>shadow<
/tt> package was doing this
for a while
, and was overwriting
the [PAM] configuration -- screwing anyone who used any non-standard [PAM] options
.
-By far
the best recommendation is to grab
the very excellend
[enotice
| http://dev
.gentoo.org
/~eldad
/] script
. This modifies
portage slightly
, and saves any ewarn or einfo output to
a specific logdir
. You can then run <tt>enotice<
/tt> to browse them
.
+* Don't emerge lots of packages at once. And make sure you read
the output. This isn't overly useful advice.
+* Set
the <tt>PORT_LOGDIR</tt> variable in <tt>/etc/make.conf</tt>, and read over the log files generated by each <tt>emerge</tt> process. Or better yet, grab
[portlog-info
|http://tdegreni
.free.fr/
gentoo/portlog-info] to parse the output and give you the bits you want
.
+* Grab [ehush | http://abeni.sf.net
/ebuilds
/ehush
] and use it to emerge instead -- it suppresses the noise and only shows useful information / warning content
.
+
+The last two options are ok, however this should be part of
portage, not an external script. There is
a [bug filed against portage | http://bugs
.gentoo.org
/show_bug.cgi?id=11359] for this, but it's been about two years and nothing has actually happened. It's possible this will be included in the 'next version of portage', whenever that comes out
.
!!! <tt>USE</tt> flags for specific packages
You can set specific <tt>USE</tt> flags for a given package in the package attribute <tt>/etc/portage/package.use</tt>. Those flags will then be applied to that package as though they were specified on the CommandLine. Eg., to build BitTorrent without [X11] support:
@@ -92,5 +96,6 @@
!!! Useful utilities
* revdep-rebuild - checks for broken library dependancies and rebuilds
* equery - various queries you can do against the portage system, such as checking <tt>USE</tt> flag settings, dependancies and so on.
-* enotice - this little tool keeps track of important information and notices (einfo / ewarn) from ebuilds, and logs them away for you to inspect. Very useful for boxes that have a large number of updates, where important bits (like, "we're overwriting your PAM config, fix it up afterwards" might get lost). http://dev
.gentoo
.org
/~eldad
/
+* [
enotice|http://dev.gentoo.org/~eldad/]
- this little tool keeps track of important information and notices (einfo / ewarn) from ebuilds, and logs them away for you to inspect. Very useful for boxes that have a large number of updates, where important bits (like, "we're overwriting your PAM config, fix it up afterwards" might get lost).
+* [distclean|
http://www
.stacken
.kth.se
/~foo
/gentoo/]- removes old source files from /usr/portage/distfiles - ie, ones that aren't associated with currently installed packages.