Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 727522

Summary: sys-apps/portage: =dev-libs/boost-1.72.0-r1 USE=doc: /usr/lib/portage3.7/ecompress: line 43: /bin/sed: Argument list too long
Product: Portage Development Reporter: Bernd <waebbl-gentoo>
Component: Core - Ebuild SupportAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: benjamin.reveille, eugene.shalygin, jstein, soap, vmatare+gbug, zeekec
Priority: Normal Keywords: InVCS, REGRESSION
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 721152    
Attachments: boost-1.72.0-r1:20200608-103647.log.bz2
emerge-info-boost-1.72.0-r1.txt
portage-2.3.102-ecompress-sed-limit-fix.patch

Description Bernd 2020-06-08 11:49:37 UTC
When re-emerging boost-1.72.0-r1 with USE=doc, I get an error in post_inst phase:

 * Verifying compiled files in /usr/lib64/python2.7/site-packages
 * Verifying compiled files in /usr/lib64/python3.6/site-packages
 * Verifying compiled files in /usr/lib/python3.7/site-packages
 * Verifying compiled files in /usr/lib/python3.8/site-packages

 * QA Notice: Package triggers severe warnings which indicate that it
 *            may exhibit random runtime failures.
 * /usr/include/python2.7/object.h:115:35: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]

 * Please do not file a Gentoo bug and instead report the above QA
 * issues directly to the upstream developers of this software.
 * Homepage: https://www.boost.org/
/usr/lib/portage/python3.7/ecompress: line 43: /bin/sed: Argument list too long
 * ERROR: dev-libs/boost-1.72.0-r1::gentoo failed:
 *   (no error message)

Building without doc USE flag succeeds.

Reproducible: Always




build log and emerge --info output as attachments
Comment 1 Bernd 2020-06-08 11:50:57 UTC
Created attachment 643934 [details]
boost-1.72.0-r1:20200608-103647.log.bz2

build log, compressed due to size
Comment 2 Bernd 2020-06-08 11:51:45 UTC
Created attachment 643936 [details]
emerge-info-boost-1.72.0-r1.txt

output of emerge --info boost after installing it without doc USE flag.
Comment 3 Benjamin Réveillé 2020-06-17 19:16:39 UTC
Seeing the exact same behavior on dev-libs/boost-1.73.0 when emerging with USE=doc

Last time I successfully compiled boost-1.73.0 with USE=doc it was with sys-apps/portage-2.3.99-r2... Am now on sys-apps/portage-2.3.101-r2
Comment 4 Zac Medico gentoo-dev 2020-06-24 00:08:39 UTC
This is a regression triggered bug the change from bug 721516.
Comment 5 Patrick McLean gentoo-dev 2020-06-24 00:25:22 UTC
Created attachment 645968 [details, diff]
portage-2.3.102-ecompress-sed-limit-fix.patch

Here is a patch for portage that should fix the problem
Comment 7 Larry the Git Cow gentoo-dev 2020-06-24 03:01:00 UTC
The bug has been referenced in the following commit(s):

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

commit 2f21153a85d43ea466a3289a833f35f1049314cf
Author:     Patrick McLean <chutzpah@gentoo.org>
AuthorDate: 2020-06-24 00:25:07 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2020-06-24 00:33:00 +0000

    ecompress: fix "Argument list too long" for sed (bug 727522)
    
    Use sed -f to feed commands to sed via stdin, in order to avoid
    the "Argument list too long" error reported in bug 727522.
    
    Fixes: 5508bf7a6db5 ("ecompress: ignore docompress -x files in precompressed QA check (bug 721516)")
    Bug: https://bugs.gentoo.org/727522
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 bin/ecompress | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Comment 8 Larry the Git Cow gentoo-dev 2020-06-24 05:57:01 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f495669aa852966ea87fd3ad2c72ede102ce86a

commit 6f495669aa852966ea87fd3ad2c72ede102ce86a
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2020-06-24 03:24:22 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2020-06-24 05:56:54 +0000

    sys-apps/portage: Bump to version 2.3.103
    
     #709746 set non-blocking for build_logger stdin in EbuildPhase
             _elog method
     #727522 ecompress: fix "Argument list too long" for sed
    
    Bug: https://bugs.gentoo.org/721152
    Bug: https://bugs.gentoo.org/709746
    Bug: https://bugs.gentoo.org/727522
    Package-Manager: Portage-2.3.103, Repoman-2.3.23
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 sys-apps/portage/Manifest               |   2 +-
 sys-apps/portage/portage-2.3.103.ebuild | 263 ++++++++++++++++++++++++++++++++
 2 files changed, 264 insertions(+), 1 deletion(-)