Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

[gentoo-dev] [RFC] Saving package emerge output (einfo, el..

 
   Linux (Home) -> Development RSS
Next:  [gentoo-dev] Name change s/drac/ssuominen/ for pe..  
Author Message
Joe Peterson

External


Since: Jul 13, 2007
Posts: 27



(Msg. 1) Posted: Sun Nov 30, 2008 5:30 pm
Post subject: [gentoo-dev] [RFC] Saving package emerge output (einfo, elog, ewarn, etc.) somewhere official
Archived from groups: linux>gentoo>dev (more info?)

I recently had a user write to me after banging his head against the
wall for a while, trying to get a package working. By the time he wrote
me, he had already figured it out, but he wanted to convey to me that
what finally helped was actually the emerge output (which stated exactly
how to get things working - in this case, the need to run emerge
--config). He had not noticed this before and only saw it upon
re-installing, given the transient nature of the emerge messages.

Bottom line here is that there is extremely valuable and critical info
in our emerge output. In a way, these messages are like Gentoo-specific
READMEs (or release notes and/or install instructions). However, it is
not saved for a user to use as a resource later (well, except that it is
partially saved in the master emerge.log, but that's not quite useful
enough). There is no "official" place to go to look for Gentoo
instructions; /usr/share/doc is one logical place, but it only contains
files actually installed, not the notes output by emerge (and these are
usually upstream-supplied, not Gentoo).

I propose that, upon merging a package, we save the emerge messages in
either: 1) a package-specific file that resides somewhere "official" or
2) in the portage DB, so that the messages can be re-read via a portage
utility. In the latter case, either a new option to "equery" or a new
"q" command (e.g. "equery readme <pkg>" or "qreadme <pkg>" could
retrieve the text).

In either case, there would then be a place to go that is known and
consistent (and can be documented in the Gentoo doc). It could, in
essense, serve as a kind of "Gentoo package README" collection. I could
also imagine later expanding on this by letting a given package also
include more thorough README info from a file if the maintainer so desires.

-Joe
Back to top
Login to vote
Marius Mauch

External


Since: Nov 17, 2005
Posts: 33



(Msg. 2) Posted: Sun Nov 30, 2008 5:50 pm
Post subject: Re: [gentoo-dev] [RFC] Saving package emerge output (einfo, elog, ewarn, etc.) somewhere official [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Sun, 30 Nov 2008 09:25:51 -0700
Joe Peterson <lavajoe.TakeThisOut@gentoo.org> wrote:

> Bottom line here is that there is extremely valuable and critical info
> in our emerge output. In a way, these messages are like
> Gentoo-specific READMEs (or release notes and/or install
> instructions). However, it is not saved for a user to use as a
> resource later (well, except that it is partially saved in the master
> emerge.log, but that's not quite useful enough). There is no
> "official" place to go to look for Gentoo
> instructions; /usr/share/doc is one logical place, but it only
> contains files actually installed, not the notes output by emerge
> (and these are usually upstream-supplied, not Gentoo).
>
> I propose that, upon merging a package, we save the emerge messages in
> either: 1) a package-specific file that resides somewhere "official"
> or
> 2) in the portage DB, so that the messages can be re-read via a
> portage utility. In the latter case, either a new option to "equery"
> or a new "q" command (e.g. "equery readme <pkg>" or "qreadme <pkg>"
> could retrieve the text).

By default, messages generated by elog, ewarn and eerror are recorded
in /var/log/portage/elog/summary.log (emerge.log is just a
transaction log, so best to ignore it here). einfo isn't recorded on
purpose as it isn't intended for important information (that's the
purpose of elog). There are some tools available to simplify reading
these messages, and there several additional/alternative delivery
modules available (by mail, IM or in package specific files),
customizable via POTAGE_ELOG_* variables. Don't know if you just
haven't been aware of this, or if you're asking for something
completely different.

Marius
Back to top
Login to vote
Joe Peterson

External


Since: Jul 13, 2007
Posts: 27



(Msg. 3) Posted: Sun Nov 30, 2008 6:00 pm
Post subject: Re: [gentoo-dev] [RFC] Saving package emerge output (einfo, elog, ewarn, etc.) somewhere official [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Marius Mauch wrote:
> By default, messages generated by elog, ewarn and eerror are recorded
> in /var/log/portage/elog/summary.log (emerge.log is just a
> transaction log, so best to ignore it here). einfo isn't recorded on
> purpose as it isn't intended for important information (that's the
> purpose of elog). There are some tools available to simplify reading
> these messages, and there several additional/alternative delivery
> modules available (by mail, IM or in package specific files),
> customizable via POTAGE_ELOG_* variables. Don't know if you just
> haven't been aware of this, or if you're asking for something
> completely different.

I'm really proposing something different - in essence, the above is to
obscure to really serve as a good official kind of readme source for
users. There needs to be something simple and straightforward (and
well-documented) as the official thing to look at if one is having
trouble with a package. In the case I mentioned all it took was for
that user to see the messages, but it did not occur to him that the info
would be there. I could even imagine that einfo should be included in
what I am suggesting, since it may not be important for logging, but
might be nice to have, nonetheless.

-Joe
Back to top
Login to vote
Peter Volkov

External


Since: Jun 11, 2008
Posts: 9



(Msg. 4) Posted: Sun Nov 30, 2008 6:10 pm
Post subject: Re: [gentoo-dev] [RFC] Saving package emerge output (einfo, elog, ewarn, etc.) somewhere official [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Seems that we already have everything you dreamed about:

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3&chap=1#doc_chap4

Take a look at PORTAGE_ELOG_SYSTEM. It even can send that messages by
mail Smile

HTH,
--
Peter.

В Вск, 30/11/2008 в 09:25 -0700, Joe Peterson пишет:
> Bottom line here is that there is extremely valuable and critical info
> in our emerge output. In a way, these messages are like Gentoo-specific
> READMEs (or release notes and/or install instructions). However, it is
> not saved for a user to use as a resource later (well, except that it is
> partially saved in the master emerge.log, but that's not quite useful
> enough). There is no "official" place to go to look for Gentoo
> instructions; /usr/share/doc is one logical place, but it only contains
> files actually installed, not the notes output by emerge (and these are
> usually upstream-supplied, not Gentoo).
>
> I propose that, upon merging a package, we save the emerge messages in
> either: 1) a package-specific file that resides somewhere "official" or
> 2) in the portage DB, so that the messages can be re-read via a portage
> utility. In the latter case, either a new option to "equery" or a new
> "q" command (e.g. "equery readme <pkg>" or "qreadme <pkg>" could
> retrieve the text).
>
> In either case, there would then be a place to go that is known and
> consistent (and can be documented in the Gentoo doc). It could, in
> essense, serve as a kind of "Gentoo package README" collection. I could
> also imagine later expanding on this by letting a given package also
> include more thorough README info from a file if the maintainer so desires.
Back to top
Login to vote
Joe Peterson

External


Since: Jul 13, 2007
Posts: 27



(Msg. 5) Posted: Sun Nov 30, 2008 6:20 pm
Post subject: Re: [gentoo-dev] [RFC] Saving package emerge output (einfo, elog, ewarn, etc.) somewhere official [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Peter Volkov wrote:
> Seems that we already have everything you dreamed about:
>
> http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3&chap=1#doc_chap4
>
> Take a look at PORTAGE_ELOG_SYSTEM. It even can send that messages by
> mail Smile

This is all cool, indeed! Smile

I suspect, however, that most users have never played with these
variables. I think that saving this info in the portage db or making it
more default/official in some way could be a great help. The core
problem is, I think, that many users do not know where to look when
having trouble, so they may not even realize that what they need is in
the log info.

The reason I was phrasing it more in "readme" terms is that most people
can identify with that concept, and it could be made clear that there
exists Gentoo-specific readme info that is always available (regardless
of whether a user sets up the portage logging stuff). The bare log
messages could exist as a minimal default for packages that do nothing
special to provide more readme info.

-Joe
Back to top
Login to vote
Alec Warner

External


Since: Mar 26, 2007
Posts: 20



(Msg. 6) Posted: Sun Nov 30, 2008 10:10 pm
Post subject: Re: [gentoo-dev] [RFC] Saving package emerge output (einfo, elog, ewarn, etc.) somewhere official [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Sun, Nov 30, 2008 at 9:11 AM, Joe Peterson <lavajoe.TakeThisOut@gentoo.org> wrote:
> Peter Volkov wrote:
>> Seems that we already have everything you dreamed about:
>>
>> http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3&chap=1#doc_chap4
>>
>> Take a look at PORTAGE_ELOG_SYSTEM. It even can send that messages by
>> mail Smile
>
> This is all cool, indeed! Smile
>
> I suspect, however, that most users have never played with these
> variables. I think that saving this info in the portage db or making it
> more default/official in some way could be a great help. The core
> problem is, I think, that many users do not know where to look when
> having trouble, so they may not even realize that what they need is in
> the log info.

I suspect that no one really disagrees with more communication; but I
imagine many are not willing to put time into it.

So I suggest you come up with better ideas to communicate to users
about the existing logging solutions and then
implement them Wink

The gentoo homepage is one way, the GMN is another, Forums is a third.
Just write one article about it and publish it everywhere.
Also Gentoo-Wiki Wink

-Alec

>
> The reason I was phrasing it more in "readme" terms is that most people
> can identify with that concept, and it could be made clear that there
> exists Gentoo-specific readme info that is always available (regardless
> of whether a user sets up the portage logging stuff). The bare log
> messages could exist as a minimal default for packages that do nothing
> special to provide more readme info.
>
> -Joe
>
>
Back to top
Login to vote
Duncan

External


Since: Jul 19, 2005
Posts: 49



(Msg. 7) Posted: Mon Dec 01, 2008 8:30 am
Post subject: [gentoo-dev] Re: [RFC] Saving package emerge output (einfo, elog, ewarn, etc.) somewhere official [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Ben de Groot <yngwin.TakeThisOut@gentoo.org> posted 493355A7.90503.TakeThisOut@gentoo.org,
excerpted below, on Mon, 01 Dec 2008 04:10:31 +0100:

> The info is there, but most users never read more than part 1 of the
> Handbook (that is, the installation part). We could, and should in my
> opinion, add a big fat warning towards the end of the installation part,
> that there is extremely useful information to be found in the other
> parts of the Handbook. Maybe we could especially mention some of the
> more useful topics, and the elog system would be one of them.

Well, at the end of the Handbook, Pt 1, Installation, in Chapter 12,
Where to go from here, it already mentions Pt 2, Working with Gentoo. It
really should mention Pts 3 & 4, Working with Portage and Gentoo Network
Configuration, as well, the chapter of interest here of course being in
Working with Portage.

So yes, we really could improve the end of the Handbook, pt 1, Where to
go from here, having it mention Pt 3 & 4 as well as Pt 2. That's
something we can and should do, absolutely.

Beyond that, however, Gentoo has never been about hand-holding. It
expects you to be big enough to cross the street on your own without
further hand-holding if it provides the stop light telling you when it's
safe to do so; to be able to find and read the documentation, which
Gentoo does have a generally excellent reputation in the community for
providing, on your own. There are plenty of other distributions out
there for those who prefer to let the distribution make the decisions and
take the responsibility. Gentoo has always been about giving the user
the ability to decide and configure that for himself, after reading the
documentation where necessary. If the user can't do that after we've
gone to all the work of providing both the means and the documentation on
configuring, right there in the official handbook even, with links and
references to the handbook quite well distributed already, well, maybe
that user really /should/ be looking at a different distribution.

--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
Back to top
Login to vote
Joe Peterson

External


Since: Jul 13, 2007
Posts: 27



(Msg. 8) Posted: Mon Dec 01, 2008 11:40 pm
Post subject: Re: [gentoo-dev] [RFC] Saving package emerge output (einfo, elog, ewarn, etc.) somewhere official [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Gilles Dartiguelongue wrote:
> As others have said, there are already proper systems, documentation and
> linking through other docs. Not finding this is what I'd call lazyness
> or lack of google foo. Don't misunderstand me, some stuff can get ouf of
> the radar of everyone, it's ok, real people are still here to point you
> in the right direction.

I think that I probably did not express my idea as well as I could have, since
most of the responses I have gotten have echoed your thoughts that Gentoo
does, indeed, have the facilities to achieve flexibility in logging, etc.

I totally agree. Gentoo's capabilities, although not perfect, of course, are
superlative and are a complement to its superb online doc. I think that's a
big reason why we're all here - we see this and appreciate this. In fact,
even when I do not include the word "gentoo" in a Google search, I more often
than not end up at a Gentoo doc page - this is impressive.

However, what I see as perhaps a missing "piece" is more conceptual: the
important connection between the valuable info in the emerge logs (and their
somewhat transient default nature) and what a user looks for when he/she has a
problem with a package. Yes, users will realize this as they use Gentoo (and
will start paying more attention to logs as a result), so I don't think it's a
huge problem, but what this particular user said to me made me think that
there is, perhaps, an opportunity to improve the situation.

There is no Gentoo-specific "readme" facility, which could be the obvious and
de facto place to go when trouble is had. I can imagine that a fairly simple
and low-effort way of starting such a resource would be to simple echo the log
output into a package-specific file in a known place (or put it in the portage
db). The logging facilities allow similar things if configured to do it, but
it is not on by default. Once users know where to go to see the
"instructions" or "notes" on getting a package up and running after
installation, this would become a good place to have such info or to expand on
how the facility works. Starting with just the plain emerge log output would
be an easy way to get benefit of such a concept has merit. And by no means
would such a thing be an attempt to replace the excellent on-line docs or
wiki, either - I see both as having unique strengths. For example, for
detailed info on packages, the wiki/web stuff is the better resource. For a
quick check of whether a revdep-rebuild might have been necessary after
installing a new package would typically be in the log/notes. The notes also
have the key advantage that they would *always* contain what the log output
was, whereas whether a wiki or web page exists on a particular package depends
on whether someone spent the time to author one.

My intention with the RFC was to see if the concept has any worth and to kick
it around a bit. I do not really see this as a deficiency in Gentoo's
technology (which I have a feeling is how many here have interpreted it), but
simply something that, if done correctly, could be useful.

-Joe
Back to top
Login to vote
Marius Mauch

External


Since: Nov 17, 2005
Posts: 33



(Msg. 9) Posted: Tue Dec 02, 2008 12:40 am
Post subject: Re: [gentoo-dev] [RFC] Saving package emerge output (einfo, elog, ewarn, etc.) somewhere official [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Mon, 01 Dec 2008 15:35:32 -0700
Joe Peterson <lavajoe DeleteThis @gentoo.org> wrote:

> My intention with the RFC was to see if the concept has any worth and
> to kick it around a bit. I do not really see this as a deficiency in
> Gentoo's technology (which I have a feeling is how many here have
> interpreted it), but simply something that, if done correctly, could
> be useful.

Maybe provide a real example to demonstrate the difference between the
current solutions and what you're looking for, because I still don't
understand what you're after (using all the different terms, logs,
notes, docs, "plain emerge log", ... without further explanation doesn't
help much to clear things up).

Marius
Back to top
Login to vote
Joe Peterson

External


Since: Jul 13, 2007
Posts: 27



(Msg. 10) Posted: Mon Dec 15, 2008 11:50 pm
Post subject: Re: [gentoo-dev] [RFC] Saving package emerge output (einfo, elog, ewarn, etc.) somewhere official [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Donnie Berkholz wrote:
> On 15:35 Mon 01 Dec , Joe Peterson wrote:
>> However, what I see as perhaps a missing "piece" is more conceptual: the
>> important connection between the valuable info in the emerge logs (and their
>> somewhat transient default nature) and what a user looks for when he/she has a
>> problem with a package. Yes, users will realize this as they use Gentoo (and
>> will start paying more attention to logs as a result), so I don't think it's a
>> huge problem, but what this particular user said to me made me think that
>> there is, perhaps, an opportunity to improve the situation.
>
> Based on the rarity of me seeing this reported as a problem, I'm
> inclined to think it says more about this user than about our system.

This could very-well be. However:

> I don't think it's our responsibility to put documentation everywhere
> someone might conceivably look for information.

I agree with this statement, but I wasn't implying we should duplicate
information everywhere. I wanted to explore this as an opportunity to
re-think if having an official "de facto" spot for "gentoo readmes"
would make sense, thereby saving log output in a useful place where
users would learn to look regularly. I agree this would only be
reasonable if it were the right thing, architecturally, for Gentoo, not
just for this one user's issue.

-Joe
Back to top
Login to vote
Duncan

External


Since: Jul 19, 2005
Posts: 49



(Msg. 11) Posted: Tue Dec 16, 2008 12:50 am
Post subject: [gentoo-dev] Re: [RFC] Saving package emerge output (einfo, elog, ewarn, etc.) somewhere official [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Joe Peterson <lavajoe.TakeThisOut@gentoo.org> posted 4946DD7F.80408.TakeThisOut@gentoo.org,
excerpted below, on Mon, 15 Dec 2008 15:43:11 -0700:

>> I don't think it's our responsibility to put documentation everywhere
>> someone might conceivably look for information.
>
> I agree with this statement, but I wasn't implying we should duplicate
> information everywhere. I wanted to explore this as an opportunity to
> re-think if having an official "de facto" spot for "gentoo readmes"
> would make sense, thereby saving log output in a useful place where
> users would learn to look regularly. I agree this would only be
> reasonable if it were the right thing, architecturally, for Gentoo, not
> just for this one user's issue.

That suggests an interesting possibility to me. Let's see if anyone else
likes it.

What about some place on the web, maybe on packages, having a single
location with all the standard messages, listed by package and version.
I'm picturing a single reference location where someone can look up the
package and see all the routine postinst messages, etc, that it spits
out. Perhaps treat metapackages such that they group together all the
messages from the collected sub-packages.

Then when we (as users) think about a big upgrade, we can go and research
just what sort of thing the package maintainers already anticipate, and
can thus better prepare ourselves.

--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
Back to top
Login to vote
Display posts from previous:   
Related Topics:
[gentoo-dev] Interactive emerge - Hi, I would just like some clarification if at all possible. Recently, while testing bugzilla-2.18.4 for x86 (bug # 107796) I ran into some interactivity. I was under the impression that emerge was supposed to be completely autonomous, and any user..

[gentoo-dev] ACCESS DENIED during emerge - In writing and testing a new ebuild, I ran emerge as root and got ACCESS DENIED errors when it tried writing two config files into /etc. Do I need to do something special for config files in an ebuild? -- Aj -- gentoo-dev@gentoo.org mailing list

[gentoo-dev] emerge feature suggestions - Hello! I've got a couple of suggestions for emerge: 1.) I apparently cannot exclude one or two packages from a large emerge action. For example if I say 'emerge -upv world' or 'emerge -Dupv xorg-x11' it may pull in some large updates I do not want to..

[gentoo-dev] package naming - Hi list. I've been working on getting a Gentoo version of Debians resolvconf package into portage. It's basically a re-write of the internals (which I don't like) but the command line, setup and plugin system are 100% compatible (except for the..

[gentoo-dev] Need Help: Creating a new third party package - Hi, I am trying to create a gentoo package for some internal software. I followed several Howtos online and created the ebuild file for my package. But somehow ebuild always return me the same error over and over again: $ ebuild..
       Linux (Home) -> Development All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows Forums
 Game Forums
  Linux Forums
 Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact