| Summary: | app-portage/eix - eix-sync -q isn't quiet enough | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Clemente Aguiar <clemente.aguiar> |
| Component: | New packages | Assignee: | Jeremy Olexa (darkside) (RETIRED) <darkside> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | CC: | bangert, martin |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Clemente Aguiar
2008-11-04 08:58:01 UTC
I would say the problem should be put firmly to the app-portage/eix developers - it is their -q option that promises quietness. The "culprit" so to speak is very likely /etc/portage/postsync.d/q-reinitialize from the app-portage/portage-utils package, and eix-sync should probably redirect the output appropriately to make true its promise of quietness. From the output of app-portage/portage-utils: * //etc/portage/postsync.d/q-reinitialize has been installed for convenience * If you wish for it to be automatically run at the end of every --sync simply chmod +x //etc/portage/postsync.d/q-reinitialize * Normally this should only take a few seconds to run but file systems such as ext3 can take a lot longer. * If ever you find this to be an inconvenience simply chmod -x //etc/portage/postsync.d/q-reinitialize To wit: elmer ~ # /etc/portage/postsync.d/q-reinitialize q: Updating ebuild cache ... q: Finished 25556 entries in 16.955048 seconds You are right, there are actually two "culprits". On the amd64 bit there is "problem" with emerge, or maybe more specifically as you mentioned with /etc/portage/postsync.d/q-reinitialize: $ emerge --sync -q q: Updating ebuild cache ... q: Finished 25555 entries in 0.290815 seconds On the x86 and amd64 there is a problem with eix-sync: $ eix-sync -q real 1.32 user 0.46 sys 0.06 Looks like two bugs to me. Could you focus on one issue here ("app-portage/eix - eix-sync -q isn't quiet enough") and open a new bug for the other ("app-portage/portage-utils - /etc/portage/postsync.d/q-reinitialize isn't quiet enough"), please?
Done. Bug opened n. 245739. Nothing to do with emerge - something out there is running `time emerge --sync`. The POSIX time command output to stdout, we can't fix that. *** This bug has been marked as a duplicate of bug 235269 *** (In reply to comment #6) > The POSIX time command output to stdout, we can't fix that. > typo: s/stdout/stderr/ (In reply to comment #8) > (In reply to comment #6) > > The POSIX time command output to stdout, we can't fix that. > > > > typo: s/stdout/stderr/ > but can you do something like 'time foo &> /dev/null || echo fail'? (In reply to comment #9) > but can you do something like 'time foo &> /dev/null || echo fail'? It should not be the purpose of -q to suppress clear error messages. Anyway, the whole bug should no longer be an issue (it is almost 2 years old): Current versions of eix-sync measure time using date and calculate the difference manually. |