Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 727522 - 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
Summary: sys-apps/portage: =dev-libs/boost-1.72.0-r1 USE=doc: /usr/lib/portage3.7/ecom...
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Portage team
Depends on:
Blocks: 721152
  Show dependency tree
Reported: 2020-06-08 11:49 UTC by Bernd
Modified: 2020-06-24 06:03 UTC (History)
6 users (show)

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

boost-1.72.0-r1:20200608-103647.log.bz2 (boost-1.72.0-r1:20200608-103647.log.bz2,208.65 KB, application/octet-stream)
2020-06-08 11:50 UTC, Bernd
emerge-info-boost-1.72.0-r1.txt (emerge-info-boost-1.72.0-r1.txt,14.38 KB, text/plain)
2020-06-08 11:51 UTC, Bernd
portage-2.3.102-ecompress-sed-limit-fix.patch (portage-2.3.102-ecompress-sed-limit-fix.patch,786 bytes, patch)
2020-06-24 00:25 UTC, Patrick McLean
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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:
/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]

build log, compressed due to size
Comment 2 Bernd 2020-06-08 11:51:45 UTC
Created attachment 643936 [details]

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]

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):

commit 2f21153a85d43ea466a3289a833f35f1049314cf
Author:     Patrick McLean <>
AuthorDate: 2020-06-24 00:25:07 +0000
Commit:     Zac Medico <>
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)")
    Signed-off-by: Zac Medico <>

 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):

commit 6f495669aa852966ea87fd3ad2c72ede102ce86a
Author:     Zac Medico <>
AuthorDate: 2020-06-24 03:24:22 +0000
Commit:     Zac Medico <>
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
    Package-Manager: Portage-2.3.103, Repoman-2.3.23
    Signed-off-by: Zac Medico <>

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