-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Script ./src/make_custom_pi_os returns unexpected error #212
Comments
Not sure what is going on. Will try and reoroduce. |
i cannot reproduce (on Debian/sid). it might be interesting which $ which bash
/usr/bin/bash
$ bash --version
GNU bash, version 5.2.15(1)-release (x86_64-pc-linux-gnu) having said that: the CustomPiOS/src/make_custom_pi_os Line 34 in 63da54b
so it probably is safe to remove that part of the script |
i got hands of a macOS/BigSur machine, and i can now reproduce the problem. $ which bash
/bin/bash
$ bash --version
GNU bash, version 3.2.57(1)-release (arm64-apple-darwin21) in the bash changelogs i find
so maybe this is just requiring a too-new-for-macOS bash version (for something that doesn't get used anyhow...) OTOH, the incriminated lines where added in 2017, when the current release of bash was probably the relevant changelog entry is therefore:
|
My current bash 3.2.57, I make a clean setup and attech all my logs here: ➜ hacklab git clone https://github.com/guysoft/CustomPiOS.git
Cloning into 'CustomPiOS'...
remote: Enumerating objects: 4837, done.
remote: Counting objects: 100% (810/810), done.
remote: Compressing objects: 100% (272/272), done.
remote: Total 4837 (delta 590), reused 594 (delta 524), pack-reused 4027
Receiving objects: 100% (4837/4837), 1000.27 KiB | 4.15 MiB/s, done.
Resolving deltas: 100% (2589/2589), done.
➜ hacklab cd CustomPiOS
➜ CustomPiOS git:(devel) which bash
/bin/bash
➜ CustomPiOS git:(devel) bash --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin23)
Copyright (C) 2007 Free Software Foundation, Inc.
➜ CustomPiOS git:(devel) ./src/make_custom_pi_os -g test
Settings:
making dstro in test
variant: raspios_lite_armhf
./src/make_custom_pi_os: line 36: MULTIPLE[@]: unbound variable
➜ CustomPiOS git:(devel) |
@umlaeute you right, the error throws because i use the old version of bash, currently I update my bash and has the following output. Does the output correct ?
|
hmm, the new failure (assuming that i correctly read your output as a failure), appears to be somewhere in CustomPiOS/src/dist_generators/dist_example_script Lines 22 to 23 in 63da54b
i don't see any obvious invocations of the do you have |
Thx, the problem fix, after I install ++++ realpath -s /Users/vovastelmashchuk/Desktop/hacklab/CustomPiOS/src/build
realpath: illegal option -- s
usage: realpath [-q] [path ...]
+++ dirname
usage: dirname string [...]
++ BUILD_SCRIPT_PATH=
You have new mail in /var/mail/vovastelmashchuk It's look like a new issue, can we discuss the issue here or close current discussion and open new github issue ? |
i agree it's probably a new issue. otoh, it seems that CustomPiOS is probably just not usable on macOS right now. |
Indeed, you could use it via Docker. In general Docker tends to work better if you are on MacOS. |
You could install bash 5 using homebrew.
But then you need to put bash in your path:
|
Yep, I have bash 5 already on my machine. It fixes the issue. Thx. |
Thanks! If you have the time to document or post here in the wiki how to gets stuff working on mac that could help people in the future (or yourself too): |
I start works with repo and just flow the tuturial from ReadMe file. Clone the repo and try to execute
./src/make_custom_pi_os -g test
the script returns the following error:I have no idea, about how to fix the problem. Sure i can just remove the part of script which produce the problem, but the way doesn't look right for me.
My envirment
MacOs sonoma: Version 14.0
Processor: 2,4 GHz 8-Core Intel Core i9
The text was updated successfully, but these errors were encountered: