Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 18249 - some tweaks with portage docs
Summary: some tweaks with portage docs
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2003-03-26 16:39 UTC by Gregorio Guidi (RETIRED)
Modified: 2011-10-30 22:19 UTC (History)
0 users

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


Attachments
the diff (emerge.1.diff,7.06 KB, patch)
2003-03-26 16:40 UTC, Gregorio Guidi (RETIRED)
Details | Diff
the diff (ebuild.5.diff,1.35 KB, text/plain)
2003-03-26 16:41 UTC, Gregorio Guidi (RETIRED)
Details
the last diff (make.conf.5.diff,591 bytes, text/plain)
2003-03-26 16:42 UTC, Gregorio Guidi (RETIRED)
Details
patch for portage documentation (portage-2.0.47-r12-doc.diff,39.10 KB, text/plain)
2003-03-30 19:23 UTC, Gregorio Guidi (RETIRED)
Details
revisited portage user guide (portage-user.xml,11.25 KB, text/plain)
2003-03-30 19:24 UTC, Gregorio Guidi (RETIRED)
Details
patch for bin/ebuild.sh (portage-2.0.48-ebuild.sh.diff,1.27 KB, patch)
2003-05-25 11:57 UTC, Gregorio Guidi (RETIRED)
Details | Diff
patch for bin/emergehelp.py (portage-2.0.48-emergehelp.py.diff,7.04 KB, patch)
2003-05-25 12:01 UTC, Gregorio Guidi (RETIRED)
Details | Diff
patch for man/emerge.1 (portage-2.0.48-emerge.1.diff,16.41 KB, patch)
2003-05-25 12:05 UTC, Gregorio Guidi (RETIRED)
Details | Diff
patch for man/emerge.1 (rediffed) (portage-2.0.48-emerge.1.diff,16.62 KB, patch)
2003-05-26 06:17 UTC, Gregorio Guidi (RETIRED)
Details | Diff
patch for bin/ebuild.sh (rediffed) (portage-2.0.48-ebuild.sh.diff,1.27 KB, patch)
2003-05-26 06:20 UTC, Gregorio Guidi (RETIRED)
Details | Diff
patch for man/emerge.1 (diff,2.05 KB, patch)
2003-09-13 02:04 UTC, Gregorio Guidi (RETIRED)
Details | Diff
ebuild.sh.patch (ebuild.diff,1.85 KB, patch)
2004-04-13 08:05 UTC, Gregorio Guidi (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gregorio Guidi (RETIRED) gentoo-dev 2003-03-26 16:39:25 UTC
I suggest here some updates to some man-pages (as found in portage-2.0.47-r10). 
 
Apart from some cosmetic changes, the important issues were: 
emerge.1: - say what "-u" and "-v" _really_ do 
		 - add an exmple of a pretended install where a newer version is 
			present but not downgraded due to SLOTS 
		 - remove two old warnings 
		 - clarify meaning of use.defaults 
ebuild.5:   - correct wrong FILESDIR definition 
		 - add an explanation for PDEPEND 
make.conf.5: - correct FEATURES 
 
These are leaved to your judgement... 
by the way... is a revisitation of portage manual and guide planned in some way? 
those documents are really outdated (eg. code sections)! need help?
Comment 1 Gregorio Guidi (RETIRED) gentoo-dev 2003-03-26 16:40:52 UTC
Created attachment 9856 [details, diff]
the diff
Comment 2 Gregorio Guidi (RETIRED) gentoo-dev 2003-03-26 16:41:51 UTC
Created attachment 9857 [details]
the diff
Comment 3 Gregorio Guidi (RETIRED) gentoo-dev 2003-03-26 16:42:20 UTC
Created attachment 9858 [details]
the last diff
Comment 4 Gregorio Guidi (RETIRED) gentoo-dev 2003-03-26 19:14:10 UTC
And yes... if you consider that is more valuable a big single effort to resync manpages with 
current portage status and features, opposed to small corrections, let us now! :-) 
 
Comment 5 Nicholas Jones (RETIRED) gentoo-dev 2003-03-27 11:40:28 UTC
By all means, if you would like to do more updates or larger ones,
feel free. It saves me a lot of time, and it's appreciated by a
lot of people.

Thanks.
Comment 6 Gregorio Guidi (RETIRED) gentoo-dev 2003-03-30 19:22:13 UTC
Ok, i'm posting a more coherent effort to "refresh" portage documentation. 
Portage-2.0.47-r12-doc.diff is a patch against portage tree that provides: 
 
- switch to the new syntax (is this a bad thing?) 
- some minor updates to emergehelp.py 
- "help" update in ebuild.sh 
- a complete resync of the emerge.1 manpage with emergehelp.py 
- little changes in ebuild.1, ebuild.5, make.conf.5 manpages 
 
In addition, I post an update of the portage-user.xml guide which hopefully reflect latest portage 
developments. (Refresh is also needed for portage-manual.xml, e.g. epm and etc-update are no 
longer in gentoolkit, feature list needs update...). I'm dropping a note on gentoo-doc if someone 
wants to review these changes... 
Clearly these changes are intended as "how I think the doc should be" and you're free to take 
just the bits you consider appropriate. 
 
Comment 7 Gregorio Guidi (RETIRED) gentoo-dev 2003-03-30 19:23:18 UTC
Created attachment 10047 [details]
patch for portage documentation
Comment 8 Gregorio Guidi (RETIRED) gentoo-dev 2003-03-30 19:24:15 UTC
Created attachment 10048 [details]
revisited portage user guide
Comment 10 SpanKY gentoo-dev 2003-04-10 06:53:51 UTC
updated ebuild.1 ... i did not remove the definition of the 'unmerge' command ...
it really makes no sense to do so ... i also re-worded the config step ...

http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-src/portage/man/ebuild.1.diff?r1=1.11&r2=1.12
Comment 11 SpanKY gentoo-dev 2003-04-10 06:55:28 UTC
nick: you'll have to merge the changes to the .py files (for obvious reasons) ...
you'll also have to do emerge.1 and make.conf.5 because i'm not up-to-date with
the current feature set of portage
Comment 12 Gregorio Guidi (RETIRED) gentoo-dev 2003-04-10 12:32:10 UTC
Thanks for the commit. 
The reason for removing "unmerge" is that it's no more available (in portage 2.0.48_pre2, see 
lines 1401-1402), but maybe it was unintended (bug?). 
 
Bye. 
 
Comment 13 Gregorio Guidi (RETIRED) gentoo-dev 2003-05-25 11:57:34 UTC
Created attachment 12390 [details, diff]
patch for bin/ebuild.sh

This patch is just an update of the "help" section of bin/ebuild.sh
Comment 14 Gregorio Guidi (RETIRED) gentoo-dev 2003-05-25 12:01:37 UTC
Created attachment 12391 [details, diff]
patch for bin/emergehelp.py

This patch contains few changes, mainly some extra lines taken from emerge
man page, plus some clarifications
Comment 15 Gregorio Guidi (RETIRED) gentoo-dev 2003-05-25 12:05:17 UTC
Created attachment 12392 [details, diff]
patch for man/emerge.1

This patch is quite huge, but it's no more than a complete resync with emerge
--help,
plus some trivials and a correction of "use.defaults" in the FILES section.
Comment 16 Gregorio Guidi (RETIRED) gentoo-dev 2003-05-25 12:10:13 UTC
I posted some updated patches against portage-2.0.48, for the internal documentation and for 
the emerge man page. This changes should also take care of bugs: 
bug #17977 (first part) 
bug #19239 
bug #19371 
bug #19401 
bug #21316 
bug #21379 
bug #21510 
 
Bye. 
Comment 17 Gregorio Guidi (RETIRED) gentoo-dev 2003-05-26 06:17:00 UTC
Created attachment 12409 [details, diff]
patch for man/emerge.1 (rediffed)

Small improvements, corrected error in --resume
Comment 18 Gregorio Guidi (RETIRED) gentoo-dev 2003-05-26 06:20:47 UTC
Created attachment 12410 [details, diff]
patch for bin/ebuild.sh (rediffed)

corrected missing "unmerge"
Comment 19 Gregorio Guidi (RETIRED) gentoo-dev 2003-06-15 08:58:17 UTC
after vapier's update for portage-2.0.48-r1, emerge.1 is quite good. 
Still remaining issues: 
- listing `help' among actions is misleading (`emerge help' does nothing) 
 
- --version lacks the short option (-V) 
 
- in FILES: description of /etc/make.profile/use.defaults is wrong 
  (or at least misleading). 
 
Comment 20 Gregorio Guidi (RETIRED) gentoo-dev 2003-09-13 02:03:52 UTC
Just to summarize: I'll post a patch for man/emerge.1 that just modify three 
small thigs: trim 'help' from actions (emerge help does nothing), add short 
option to --verbose (-V), correct description of use.defaults. 
 
Please consider also the patches for emergehelp.py and for ebuild.sh. 
Thanks. 
 
Comment 21 Gregorio Guidi (RETIRED) gentoo-dev 2003-09-13 02:04:31 UTC
Created attachment 17630 [details, diff]
patch for man/emerge.1
Comment 22 SpanKY gentoo-dev 2003-09-13 11:51:35 UTC
i added the 2nd and 3rd hunk of the emerge.1 patch ...

however, the fact that `emerge help` and `emerge help clean` does not work is more of a bug ...
i believe we should get rid of `emerge help` and turn it into `emerge --help` ONLY ... that means that it would work like this: `emerge --help config` and `emerge --help clean`, etc...
also, if someone runs `emerge help` right now it just says this:
root@rux0r 2 man # emerge help
emerge: please tell me what to do.
Comment 23 Gregorio Guidi (RETIRED) gentoo-dev 2003-09-13 13:23:40 UTC
Ok, in fact the 'emerge help' thing is bug #21379. 
Substituting 'help' with '--help' is what i tried to do, in emerge.1 and in 
the first hunk of the emergehelp.py patch. 
BTW, thanks for the fast commit! 
 
Comment 24 Marius Mauch (RETIRED) gentoo-dev 2004-03-01 06:56:11 UTC
I fixed the help vs. --help issue in CVS, anyone want to summarize what's left to close this bug?
Comment 25 Gregorio Guidi (RETIRED) gentoo-dev 2004-03-01 16:46:37 UTC
The part of this bug that still makes sense is the patch for ebuild.sh.

I was writing an updated patch for 2.0.50-r1, but in doing so I encountered three problems. I was making the output of "ebuild ... help" something like

  help        : show this help screen
  setup       : execute package specific setup actions
  fetch       : download source archive(s) and patches
  digest      : creates a digest and a manifest file for the package
  manifest    : creates a manifest file for the package
  unpack      : unpack/patch sources (auto-fetch if needed)
  compile     : compile sources (auto-fetch/unpack if needed)
  preinst     : execute pre-install instructions
  postinst    : execute post-install instructions
  install     : installs the package to the temporary install directory
  qmerge      : merge image into live filesystem, recording files in db
  merge       : does fetch, unpack, compile, install and qmerge
  prerm       : execute pre-removal instructions
  postrm      : execute post-removal instructions
  unmerge     : remove package from live filesystem
  config      : execute package specific configuration actions
  package     : create tarball package of type
                (will be stored in /usr/portage/packages/All)
  rpm         : builds a RedHat RPM package
  clean       : clean up all source and temporary files

problems:
- the line that describes "package" prints the empty variable ${PACKAGE}
  after "type", what does it mean? should I reword that description?
- I take the list of possible actions from portage.py, but there I see 
  the action "depend", which always produce a traceback, and
- the action "touch", which always produce an error message.
  Should I just ignore those two?

BTW, the ebuild(1) man page could also be updated with "manifest", but apart from that is quite good. Should I provide an update for that, too?
Comment 26 Gregorio Guidi (RETIRED) gentoo-dev 2004-04-13 08:04:13 UTC
Ok, this is another opportunity to close this bug.

I guess "depend" action is used internally for creation of the cache in 
/var/cache/edb, so I ignored it, even if it is broken. "touch" should not
exist on line 2077 or portage.py, that's a trivial issue.

So the following patch for ebuild.sh should be fine.
Comment 27 Gregorio Guidi (RETIRED) gentoo-dev 2004-04-13 08:05:11 UTC
Created attachment 29203 [details, diff]
ebuild.sh.patch
Comment 28 Gregorio Guidi (RETIRED) gentoo-dev 2004-07-11 02:39:43 UTC
I see it's applied. Closing.