Summary: | Document metadata/layout.conf in detail (was: Devmanual should document the metadata/layout.conf file format in detail) | ||
---|---|---|---|
Product: | Documentation | Reporter: | Kent Fredric (IRC: kent\n) (RETIRED) <kentnl> |
Component: | [OLD] Portage Documentation | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED FIXED | ||
Severity: | normal | Keywords: | InVCS |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 484436 |
Description
Kent Fredric (IRC: kent\n) (RETIRED)
![]() Care to submit a patch? :) (In reply to comment #1) > Care to submit a patch? :) Well, for me to do that, I'd have to first know a) a valid list of settings for layout.conf ( Which, as I stated earlier, I can't divine ) b) what the valid values are for each of those settings ( Which is the same problem "I don't know" ) I can draw assumptions from the information in man 5 portage, but those are likely wrong assumptions, and I can't *know* without reading the source to portage itself ( Which I'm not about to do ) 'man 5 portage' doesn't even document these values really, it just has an "example" , which I can only /assume/ contains all the valid values, and ONLY valid values. Essentially, for me to provide a patch, I would literally be transcribing the contents of man 5 portage, which as I stated earlier, are inadequate. Either that, or I would have to read the source of portage itself ( which, I am not about to do ). To exacerbate issues, isn't "layout.conf" a PMS agnostic file, and "repos.conf" a PMS specific file? And if "layout.conf" is an Inter-PMS configuration format, why is it completely undocumented, bar scant information in only *one* package manager? I think the simplest I can put it: You're suggesting I, who can't find documentation about X , and has no idea how X works, document X, despite not having any clue about X . Forgive me if I find that a bit of a tall order =) I am not sure about the layout.conf format myself either. CC'ing portage in case they are interested to submit a patch for that. we document all related files in the portage(5) man page > I can draw assumptions from the information in man 5 portage, but those are > likely wrong assumptions, and I can't *know* without reading the source to > portage itself ( Which I'm not about to do ) > > 'man 5 portage' doesn't even document these values really, it just has an > "example" , which I can only /assume/ contains all the valid values, and > ONLY valid values. Granted, in the 3 years passed since I opened this bug, the listing has become more detailed, but its still with questions. For instance: > # indicate that this repo requires manifests for each package, and is > # considered a failure if a manifest file is missing/incorrect > use-manifests = strict What are the valid values for this field? "strict" seems to be one, but its arbitrariness suggest there are others. > # customize the set of hashes generated for Manifest entries > manifest-hashes = SHA256 SHA512 WHIRLPOOL This too is obviously a subset of options, where do I look to find the complete list ( ie: is it something that is a function of some libraries feature set, or is it some python-specific thing, etc ) > # indicate that this repo contains both md5-dict and pms cache formats, > # which may be generated by egencache(1) > cache-formats = md5-dict pms Is this a complete list of formats? I look at egencache and it lists only those two, so I assume so, but I also notice `pms` is considered obsolete, so should be removed from the example. Perhaps information to what the default behaviour is when a field is not explicitly stated would be helpful. If anywhere else, layout.conf should be documented in PMS, otherwise it's just a duplicate that inevitably runs out of sync. You're raising valid points what concerns the man page in comment 6. (In reply to Sebastian Luther (few) from comment #7) erm, no, layout.conf has nothing to do with PMS. there is no duplicate information here as only portage utilizes it. (In reply to SpanKY from comment #8) > (In reply to Sebastian Luther (few) from comment #7) > > erm, no, layout.conf has nothing to do with PMS. there is no duplicate > information here as only portage utilizes it. That's not correct. Both other PMs use it [1] [2]. A PM cannot really go without layout.conf these days. [1] search for layout.conf in https://code.google.com/p/pkgcore/source/browse/NEWS [2] search for layout.conf in http://paludis.exherbo.org/configuration/repositories/e.html and here it meantions the masters key: http://paludis.exherbo.org/configuration/repositories/repository.html (In reply to Kent Fredric from comment #6) i've cleaned up the existing documentation in git now http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commitdiff;h=77c4a5b31fb5b42e1e4969bf1747cc5e416eca2f (In reply to Sebastian Luther (few) from comment #9) its adoption by other PM's is irrelevant as long as it's not in the PMS. file another bug if you want PMS to pick up the layout.conf format. (In reply to SpanKY from comment #10) > (In reply to Kent Fredric from comment #6) > > i've cleaned up the existing documentation in git now > > http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commitdiff; > h=77c4a5b31fb5b42e1e4969bf1747cc5e416eca2f > > (In reply to Sebastian Luther (few) from comment #9) > > its adoption by other PM's is irrelevant as long as it's not in the PMS. > file another bug if you want PMS to pick up the layout.conf format. Thanks. Having said that, I am not sure if layout.conf needs to be in the devmanual. It's not a file needed specifically for ebuild or eclass development which the devmanual mainly deals with. Users and/or developers who maintain the overlay can get the information from the portage man pages. I am inclined to close this as WONTFIX from the devmanual's point of view. (In reply to SpanKY from comment #10) > (In reply to Sebastian Luther (few) from comment #9) > > its adoption by other PM's is irrelevant as long as it's not in the PMS. > file another bug if you want PMS to pick up the layout.conf format. Well, the adoption in the repositories is relevant, because some of the keys render the repo useless if the PM doesn't understand them. I didn't mean to make this part of this bug, though. (In reply to Markos Chandras from comment #11) > [...] > I am inclined to close this as WONTFIX from the devmanual's point of view. This is now dev-portage's bug. (In reply to Sebastian Luther (few) from comment #12) > > (In reply to Markos Chandras from comment #11) > > [...] > > I am inclined to close this as WONTFIX from the devmanual's point of view. > > This is now dev-portage's bug. OK fine by me. So there is nothing left for us to do here. Portage documentation does not belong to devmanual but rather in manpages Released in sys-apps/portage-2.2.8. |