Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 920437 - arm profile determined by bootstrap-prefix.sh does not exist
Summary: arm profile determined by bootstrap-prefix.sh does not exist
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2023-12-21 00:22 UTC by fosslinux
Modified: 2023-12-29 09:46 UTC (History)
0 users

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


Attachments
Fix ARM RAP profile (0001-Fix-arm-RAP-profile-again.patch,776 bytes, patch)
2023-12-28 02:04 UTC, fosslinux
Details | Diff
Remove i386 MacOS (0001-Remove-i386-MacOS.patch,863 bytes, patch)
2023-12-28 02:05 UTC, fosslinux
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description fosslinux 2023-12-21 00:22:14 UTC
On my armv7 system, running bootstrap-prefix.sh sets a profile default/linux/arm/17.0/prefix/kernel-3.2+, which does not exist.


Reproducible: Always

Steps to Reproduce:
On a 32-bit arm system, run bootstrap-prefix.sh, with default options.
Actual Results:  
Bootstrap errors;

* Your profile is set to /tmp/prefix/var/db/repos/gentoo/profiles/default/linux/arm/17.0/prefix/kernel-3.2+.
./bootstrap-prefix.sh: line 461: /tmp/prefix/etc/portage/make.profile/package.use: No such file or directory
...


I am using the "existing Gentoo" shortcut, but I can confirm this occurs without using it as well.

My system is a QEMU armv7 chroot running Gentoo.

In my instance, the profile chosen should really be default/linux/arm/17.0/armv7a/prefix/kernel-3.2+, I believe; manually setting my profile to that and continuing the bootstrap worked past that problem.
Comment 1 Larry the Git Cow gentoo-dev 2023-12-25 11:11:17 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=b313adcb844cc7037cc3d19b02ecfcb9c9deb88c

commit b313adcb844cc7037cc3d19b02ecfcb9c9deb88c
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2023-12-25 11:10:00 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2023-12-25 11:10:00 +0000

    scripts/bootstrap-prefix: fix profile for armv7 targets
    
    Thanks fosslinux
    
    Closes: https://bugs.gentoo.org/920437
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 scripts/bootstrap-prefix.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 2 fosslinux 2023-12-28 02:04:30 UTC
Sorry, not quite fixed :(

I've attached a patch that fixes it properly for me.

While I'm at it noticed another obselete case in the CHOST checks, attached a second patch for that unrelated issue.
Comment 3 fosslinux 2023-12-28 02:04:51 UTC
Created attachment 880791 [details, diff]
Fix ARM RAP profile
Comment 4 fosslinux 2023-12-28 02:05:03 UTC
Created attachment 880792 [details, diff]
Remove i386 MacOS
Comment 5 Larry the Git Cow gentoo-dev 2023-12-29 09:45:51 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=a709bd77db53b483e1b2eb4d77816acfd4f9770a

commit a709bd77db53b483e1b2eb4d77816acfd4f9770a
Author:     fosslinux <fosslinux@aussies.space>
AuthorDate: 2023-12-27 11:27:09 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2023-12-29 09:45:38 +0000

    scripts/bootstrap-prefix: fix arm RAP profile (again)
    
    arm uses a sub-dir for the target, the main is still called arm
    
    Closes: https://bugs.gentoo.org/920437
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 scripts/bootstrap-prefix.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Comment 6 Fabian Groffen gentoo-dev 2023-12-29 09:46:12 UTC
thanks, applied your patches!