Created attachment 668747 [details, diff] Fix for profile's default make.conf file name. I am trying to bootstrap prefix on MacOS 10.14 and 10.15. The script produces a series of errors and I am trying to fix these errors one by one. This bug report deals with the error in the summary. The previous bug reports in the series are these: bug 751037, bug 751067, bug 751406. This error comes from from the function bootstrap_setup() when it creates ${ROOT}/etc/portage/make.conf. The code tries to determine the PYTHON_TARGETS from the leaf 'prefix' profile in the profile tree but consults non-existent make.conf instead of make.defaults (probably, this is a remnant from the older profile tree structure). I am attaching a patch which fixes the file name.
I'm following these with some interest (thx for CC) because you're hitting the various hurdles I did but actually providing a useful patch rather than hacking around it. I haven't yet got to the point where I hit the lack-of-blocks-support problem yet which Fabian described though.
(In reply to Alexander Bezrukov from comment #0) > PYTHON_TARGETS from the leaf 'prefix' profile in the profile tree but I meant, the root 'prefix' profile, not leaf.
(In reply to Sam James from comment #1) > I'm following these with some interest (thx for CC) because you're hitting > the various hurdles I did but actually providing a useful patch rather than > hacking around it. > > I haven't yet got to the point where I hit the lack-of-blocks-support > problem yet which Fabian described though. If you can find a way to configure clang/llvm to "see" $EPREFIX/usr as primary source of include and lib, then there is a way to move forward with clang. Because I couldn't find this, I tried to go with GCC, which works fine, and I even had a very nice and clean path, but I'm still stuck with getting blocks support working. I'll probably commit my pending blocks work someday soon, and try and see if I can get help from GCC community, for I don't really get the errors/problems I have with it, and need help should I want to finish this path.
(In reply to Alexander Bezrukov from comment #2) > (In reply to Alexander Bezrukov from comment #0) > > > PYTHON_TARGETS from the leaf 'prefix' profile in the profile tree but > > I meant, the root 'prefix' profile, not leaf. appreciated, however, the oldest clang in the tree is 9, and it doesn't support python2 at all any more, so the whole fugly block can go, yay!
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=4af2e4cc26e0076bbec9eb48ff8f70519e297583 commit 4af2e4cc26e0076bbec9eb48ff8f70519e297583 Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2020-10-27 07:17:48 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2020-10-27 07:17:48 +0000 scripts/bootstrap-prefix: don't pull in python2 for clang any more, bug #751412 Closes: https://bugs.gentoo.org/751412 Signed-off-by: Fabian Groffen <grobian@gentoo.org> scripts/bootstrap-prefix.sh | 7 ------- 1 file changed, 7 deletions(-)