Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 658060 - Install finds empty $EPREFIX/tmp/usr/lib/portage/pym/portage/__pycache__ at stage 1 (prefix-portage-2.3.40.1)
Summary: Install finds empty $EPREFIX/tmp/usr/lib/portage/pym/portage/__pycache__ at s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
: 658072 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-06-13 17:53 UTC by Michael 'veremitz' Everitt
Modified: 2021-01-10 19:56 UTC (History)
1 user (show)

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


Attachments
stage1.log - failure during boostrap @ /usr/bin/install: cannot stat './portage/proxy/__pycache__/*': No such file or directory (stage1.log,945.31 KB, text/x-log)
2018-06-13 21:37 UTC, kuzetsa CatSwarm (kuza for short)
Details
/usr/bin/install: cannot stat ‘./portage/__pycache__/*’: No such file or directory (stage1.log,806.68 KB, text/plain)
2018-06-14 11:08 UTC, ply_xyz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael 'veremitz' Everitt 2018-06-13 17:53:22 UTC
bootstrap-prefix dies emerging prefix-portage-2.3.40.1 with errors concerning empty $EPREFIX/tmp/usr/lib/portage/pym/portage/__pycache__ and children. Target makefile is either failing to byte-compile, or target incorrect.
Comment 1 kuzetsa CatSwarm (kuza for short) 2018-06-13 21:34:23 UTC
*** Bug 658072 has been marked as a duplicate of this bug. ***
Comment 2 kuzetsa CatSwarm (kuza for short) 2018-06-13 21:37:02 UTC
Created attachment 535830 [details]
stage1.log - failure during boostrap @ /usr/bin/install: cannot stat './portage/proxy/__pycache__/*': No such file or directory

failure (stage1.log) on latest ubuntu LTS (18.x series)
Comment 3 Benda Xu gentoo-dev 2018-06-14 00:34:07 UTC
It looks like that the bug is fixed by this patch:

  https://gitweb.gentoo.org/proj/portage.git/patch/?id=f6c347f5ac192715a666e14f617b61524f9445ac
Comment 4 kuzetsa CatSwarm (kuza for short) 2018-06-14 01:39:02 UTC
(In reply to Benda Xu from comment #3)
> It looks like that the bug is fixed by this patch:

... I was still having the pycach failure in the past 72 hours. is there any chance this patch is simply not live yet for use by the prefix bootstrap?
Comment 5 Benda Xu gentoo-dev 2018-06-14 04:30:36 UTC
(In reply to kuzetsa from comment #4)
> (In reply to Benda Xu from comment #3)
> > It looks like that the bug is fixed by this patch:
> 
> ... I was still having the pycach failure in the past 72 hours. is there any
> chance this patch is simply not live yet for use by the prefix bootstrap?

Fabian will need to pack a new prefix-portage tarball.

Before it happens I have committed a work around to bootstrap-prefix.sh.

https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=285454817f40abef3e124c31bb751755a0a4139e
Comment 6 Fabian Groffen gentoo-dev 2018-06-14 08:34:19 UTC
yes, sorry, the workaround should be fine, but we need a full new portage + snapshot bump stuff.
Comment 7 Fabian Groffen gentoo-dev 2018-06-14 08:35:55 UTC
(one of the things we also need to to shut up gemato/make portage not return failure when gemato isn't found because it currently makes the emerge --sync phase problematic and failing)
Comment 8 ply_xyz 2018-06-14 11:06:25 UTC
I got the same bug in both pure clear centos 7 and ubuntu 18.04.
I used to edit script change 2.3.40.1 to 2.3.18 to continue.
Comment 9 ply_xyz 2018-06-14 11:08:56 UTC
Created attachment 535858 [details]
/usr/bin/install: cannot stat ‘./portage/__pycache__/*’: No such file or directory
Comment 10 kuzetsa CatSwarm (kuza for short) 2018-06-14 19:27:54 UTC
(In reply to Benda Xu from comment #5)

[...]

> 
> Before it happens I have committed a work around to bootstrap-prefix.sh.
> 
> https://gitweb.gentoo.org/repo/proj/prefix.git/commit/
> ?id=285454817f40abef3e124c31bb751755a0a4139e

-------------
>>> kuzetsa@hostname ~ $ /opt/redacted/startprefix
>>> Entering Gentoo Prefix /opt/redacted
>>> kuzetsa@hostname ~ $ which emerge
>>> /opt/redacted/usr/bin/emerge

^ bootstrap-prefix.sh version with baked-in workaround works as-is, fully on-rails completes to stage3 with no manual editing or manipulation of filesystem, etc.

thanks, 285454817f40abef3e124c31bb751755a0a4139e confirmed working on:

Ubuntu 18.04 LTS (GNU/Linux 4.15.0-22-lowlatency x86_64)

as-of: [Thu, 14 Jun 2018 15:27:41 -0400]