Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 667072 - net-misc/zerotier-1.2.8 : * ecompress-file failed
Summary: net-misc/zerotier-1.2.8 : * ecompress-file failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: REGRESSION
Depends on:
Blocks: 666956
  Show dependency tree
 
Reported: 2018-09-25 18:05 UTC by Toralf Förster
Modified: 2018-12-11 20:34 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.08 KB, text/plain)
2018-09-25 18:05 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,91.40 KB, text/plain)
2018-09-25 18:05 UTC, Toralf Förster
Details
environment (environment,93.62 KB, text/plain)
2018-09-25 18:05 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,22.83 KB, application/x-bzip)
2018-09-25 18:05 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,968 bytes, application/x-bzip)
2018-09-25 18:05 UTC, Toralf Förster
Details
net-misc:zerotier-1.2.8:20180925-175843.log (net-misc:zerotier-1.2.8:20180925-175843.log,234.82 KB, text/plain)
2018-09-25 18:05 UTC, Toralf Förster
Details
emerge-info.txt (emerge-info.txt,15.39 KB, text/plain)
2018-09-26 19:21 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,135.80 KB, text/plain)
2018-09-26 19:21 UTC, Toralf Förster
Details
environment (environment,92.93 KB, text/plain)
2018-09-26 19:21 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,23.31 KB, application/x-bzip)
2018-09-26 19:21 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,970 bytes, application/x-bzip)
2018-09-26 19:21 UTC, Toralf Förster
Details
net-misc:zerotier-1.2.8:20180926-191014.log (net-misc:zerotier-1.2.8:20180926-191014.log,234.82 KB, text/plain)
2018-09-26 19:21 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-09-25 18:05:10 UTC
bzip2: Can't open input file /var/tmp/portage/net-misc/zerotier-1.2.8/image/usr/share/man/man8/zerotier-one.8: No such file or directory.
 * ERROR: net-misc/zerotier-1.2.8::gentoo failed:
 *   ecompress-file failed
 * 
 * If you need support, post the output of `emerge --info '=net-misc/zerotier-1.2.8::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-misc/zerotier-1.2.8::gentoo'`.

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-no-multilib_libressl_20180923-190711

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-8.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.6
  [3]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby23 (with Rubygems) *



emerge -qpv net-misc/zerotier
[ebuild  N    ] net-misc/zerotier-1.2.8
Comment 1 Toralf Förster gentoo-dev 2018-09-25 18:05:14 UTC
Created attachment 547922 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-09-25 18:05:17 UTC
Created attachment 547924 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2018-09-25 18:05:20 UTC
Created attachment 547926 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2018-09-25 18:05:23 UTC
Created attachment 547928 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2018-09-25 18:05:26 UTC
Created attachment 547930 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-09-25 18:05:29 UTC
Created attachment 547932 [details]
net-misc:zerotier-1.2.8:20180925-175843.log
Comment 7 Toralf Förster gentoo-dev 2018-09-25 18:17:14 UTC
and: ramage.lucas@openmailbox.org is not known
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-09-25 18:25:16 UTC
This actually looks like a Portage problem.  Let me grep for duplicates, then investigate.
Comment 9 Toralf Förster gentoo-dev 2018-09-25 18:27:07 UTC
(In reply to Michał Górny from comment #8)
especially as I do miss a pattern like 
   \* ERROR:.* failed (.* phase):
do get which phase failed
Comment 10 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-09-25 18:51:02 UTC
Oh my.  So the ebuild apparently installs both compressed and uncompressed manpages, and this trips the logic in ecompress:

│       └── man
│           ├── man1
│           │   ├── zerotier-cli.1
│           │   ├── zerotier-cli.1.gz
│           │   ├── zerotier-idtool.1
│           │   └── zerotier-idtool.1.gz
│           └── man8
│               ├── zerotier-one.8
│               └── zerotier-one.8.gz
Comment 11 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-09-25 19:04:46 UTC
...and the problems occurs because of race conditions due to the parallel processing.
Comment 12 Larry the Git Cow gentoo-dev 2018-09-25 21:04:45 UTC
The bug has been referenced in the following commit(s):

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

commit 8a1d36088aa54ecb087e76fef166d51a6d5383f7
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2018-09-25 20:58:40 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2018-09-25 21:01:15 +0000

    Revert "ecompress: Run compression in parallel" (bug 667072)
    
    This reverts commit 289d9a17dc9d9287e5dcb75f84b38ad0388e5fde.
    The parallel ecompress-file calls can interfere with eachoter
    if a file is installed with both compressed and uncompressed
    forms. Since compressed files are typically very small,
    parallel compression is typically not very helpful anyway.
    
    Bug: https://bugs.gentoo.org/667072
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 bin/ecompress | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 13 Larry the Git Cow gentoo-dev 2018-09-25 21:56:57 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c9785170a03e3b1fe0600cf27d0c55e133d5776

commit 3c9785170a03e3b1fe0600cf27d0c55e133d5776
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2018-09-25 21:50:09 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2018-09-25 21:56:48 +0000

    sys-apps/portage: 2.3.50-r2 revbump for bug 667072
    
    Closes: https://bugs.gentoo.org/667072
    Package-Manager: Portage-2.3.50, Repoman-2.3.10
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 .../portage/{portage-2.3.50-r1.ebuild => portage-2.3.50-r2.ebuild}   | 5 +++++
 1 file changed, 5 insertions(+)
Comment 14 Toralf Förster gentoo-dev 2018-09-26 19:16:34 UTC
happenes still with -r2:


bzip2: Can't open input file /var/tmp/portage/net-misc/zerotier-1.2.8/image/usr/share/man/man8/zerotier-one.8: No such file or directory.
 * ERROR: net-misc/zerotier-1.2.8::gentoo failed:
 *   ecompress-file failed
Comment 15 Toralf Förster gentoo-dev 2018-09-26 19:21:01 UTC
got at the unstable amd64 chroot image 17.0-hardened_20180923-170657 this :  * ecompress-file failed
Comment 16 Toralf Förster gentoo-dev 2018-09-26 19:21:04 UTC
Created attachment 547988 [details]
emerge-info.txt
Comment 17 Toralf Förster gentoo-dev 2018-09-26 19:21:07 UTC
Created attachment 547990 [details]
emerge-history.txt
Comment 18 Toralf Förster gentoo-dev 2018-09-26 19:21:11 UTC
Created attachment 547992 [details]
environment
Comment 19 Toralf Förster gentoo-dev 2018-09-26 19:21:14 UTC
Created attachment 547994 [details]
etc.portage.tbz2
Comment 20 Toralf Förster gentoo-dev 2018-09-26 19:21:17 UTC
Created attachment 547996 [details]
logs.tbz2
Comment 21 Toralf Förster gentoo-dev 2018-09-26 19:21:20 UTC
Created attachment 547998 [details]
net-misc:zerotier-1.2.8:20180926-191014.log
Comment 22 Zac Medico gentoo-dev 2018-09-26 19:56:46 UTC
The issue is that it is that ecompress-file is attempting to process the uncompressed file after the precompressed version has already been decompressed and recompressed. The uncompressed file is overwritten during decompression, and then it no longer exists after recompression.
Comment 23 Larry the Git Cow gentoo-dev 2018-09-26 22:53:58 UTC
The bug has been referenced in the following commit(s):

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

commit 1fc311ce0afeef9f982213e43220d079a4ffec26
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2018-09-26 22:29:30 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2018-09-26 22:39:31 +0000

    ecompress-file: de-duplicate filtered_args (bug 667072)
    
    Use an associated array to de-duplicate filtered_args, in order to
    ensure that compressor arguments are unique when a file is installed
    in both compressed and uncompressed forms.
    
    Bug: https://bugs.gentoo.org/667072
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 bin/ecompress-file | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Comment 24 Larry the Git Cow gentoo-dev 2018-09-26 22:56:17 UTC
The bug has been closed via the following commit(s):

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

commit b1f8c00d2c154d4c8bdd4e5176196b3f9dbfb457
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2018-09-26 22:37:19 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2018-09-26 22:56:08 +0000

    sys-apps/portage: 2.3.50-r3 revbump for bug 667072
    
    Closes: https://bugs.gentoo.org/667072
    Package-Manager: Portage-2.3.50, Repoman-2.3.10
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 .../portage/{portage-2.3.50-r2.ebuild => portage-2.3.50-r3.ebuild}  | 6 ++++++
 1 file changed, 6 insertions(+)
Comment 25 Zac Medico gentoo-dev 2018-09-28 19:07:13 UTC
There's a proposal to make the duplicate compressed + uncompressed man pages into a fatal error:

https://archives.gentoo.org/gentoo-portage-dev/message/4037d50ac0d46370110adf52aa452fa0

However, I'd prefer to make it a QA warning for now, and make it die in a later EAPI, since making it die can potentially introduce a burden on users if the ebuilds that they rely on will no longer build. It's much easier for users if the ebuild maintainers have an opportunity to fix issues before the ebuilds begin to die.
Comment 26 Larry the Git Cow gentoo-dev 2018-09-28 20:33:06 UTC
The bug has been referenced in the following commit(s):

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

commit 78c036c507ec8c87bf5dd7cc388cbf7e038a51ed
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2018-09-25 19:12:20 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2018-09-28 20:32:40 +0000

    ecompress: Detect and report colliding (un)compressed files
    
    Whenever the install directory contains files that would collide upon
    (re)compressing, report them explicitly and skip decompressing.
    
    To reduce performance impact, the check is only done whenever compressed
    files are found.  This is sufficient since for issue to occur there must
    be at least one compressed variant.
    
    Bug: https://bugs.gentoo.org/667072
    Signed-off-by: Michał Górny <mgorny@gentoo.org>
    Reviewed-by: Zac Medico <zmedico@gentoo.org>

 bin/ecompress | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)