Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 751412 - bootstrap-prefix.sh: sed: can't read "${PORTDIR}"/profiles/prefix/make.conf: No such file or directory
Summary: bootstrap-prefix.sh: sed: can't read "${PORTDIR}"/profiles/prefix/make.conf: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 OS X
: Low trivial (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: 755644
  Show dependency tree
 
Reported: 2020-10-26 23:15 UTC by Alexander Bezrukov
Modified: 2020-11-20 01:32 UTC (History)
1 user (show)

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


Attachments
Fix for profile's default make.conf file name. (portage_targets.patch,642 bytes, patch)
2020-10-26 23:15 UTC, Alexander Bezrukov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Bezrukov 2020-10-26 23:15:52 UTC
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.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-10-26 23:45:45 UTC
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.
Comment 2 Alexander Bezrukov 2020-10-26 23:55:44 UTC
(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.
Comment 3 Fabian Groffen gentoo-dev 2020-10-27 07:14:39 UTC
(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.
Comment 4 Fabian Groffen gentoo-dev 2020-10-27 07:16:37 UTC
(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!
Comment 5 Larry the Git Cow gentoo-dev 2020-10-27 07:18:09 UTC
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(-)