Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 877215 - sys-apps/portage: silences compressor stderr making debugging much harder
Summary: sys-apps/portage: silences compressor stderr making debugging much harder
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Binary packages support (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on: 873757
Blocks:
  Show dependency tree
 
Reported: 2022-10-15 16:03 UTC by Michał Górny
Modified: 2022-11-20 03:06 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-10-15 16:03:55 UTC
The gpkg support code puts all stderr into a pipe and doesn't really read from it under all circumstances.  As a result, when compressor fails it is really hard to figure out what happened because the error it printed is lost.
Comment 1 Larry the Git Cow gentoo-dev 2022-11-02 22:58:53 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=b9e30bb50996c11f2b046a9c6eb47ba8dc6331e6

commit b9e30bb50996c11f2b046a9c6eb47ba8dc6331e6
Author:     Sheng Yu <syu.os@protonmail.com>
AuthorDate: 2022-11-02 17:52:18 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-11-02 22:58:49 +0000

    Do not redirect stderr from gpkg subprocess
    
    Closes: https://bugs.gentoo.org/877215
    Signed-off-by: Sheng Yu <syu.os@protonmail.com>
    Closes: https://github.com/gentoo/portage/pull/927
    Signed-off-by: Sam James <sam@gentoo.org>

 lib/portage/gpkg.py | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)
Comment 2 Larry the Git Cow gentoo-dev 2022-11-20 03:06:02 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=203e0d0083b5e7d8098785ec8862c02f6baf5534

commit 203e0d0083b5e7d8098785ec8862c02f6baf5534
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-11-20 03:04:40 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-11-20 03:05:40 +0000

    sys-apps/portage: add 3.0.39
    
    Closes: https://bugs.gentoo.org/365655
    Closes: https://bugs.gentoo.org/757525
    Closes: https://bugs.gentoo.org/871573
    Closes: https://bugs.gentoo.org/875812
    Closes: https://bugs.gentoo.org/875860
    Closes: https://bugs.gentoo.org/877215
    Closes: https://bugs.gentoo.org/877271
    Closes: https://bugs.gentoo.org/877357
    Closes: https://bugs.gentoo.org/877419
    Closes: https://bugs.gentoo.org/873757
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-apps/portage/Manifest              |   1 +
 sys-apps/portage/portage-3.0.39.ebuild | 273 +++++++++++++++++++++++++++++++++
 2 files changed, 274 insertions(+)