GenPi64 / Build.Dist

Build scripts for building GenPi64 images.
Other
11 stars 10 forks source link

change white space to tabs #205

Closed tin-machine closed 1 year ago

tin-machine commented 1 year ago

Overview

Minor corrections to heredocment descriptions.

Changes

parsers/rawcommand/rawcommand Modify the above file to use tabs like the following file. parsers/emerge/emerge

My environment

Issues

Execution of rawcommand fails.

running jobs [(<Popen: returncode: None args: ['/net/10.10.254.10/homes/kaoru/workspace/git...>, 'locale')]
+ source /net/10.10.254.10/homes/kaoru/workspace/git/github.com/GenPi64/Build.Dist/scripts/functions.sh
+ echo 'Running eselect locale set en_US.utf8'
Running eselect locale set en_US.utf8
+ trap finish EXIT
+ cat
+ chmod +x /net/10.10.254.10/homes/kaoru/workspace/git/github.com/GenPi64/Build.Dist/build/GenPi64OpenRC/chroot/em-1876
+ /net/10.10.254.10/homes/kaoru/workspace/git/github.com/GenPi64/Build.Dist/scripts/chroot.py /em-1876
%p1%d`pychroot succeeded%p1%d`pychroot succeededTraceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/pychroot/scripts/pychroot.py", line 130, in main
  File "/usr/lib/python3.10/subprocess.py", line 501, in run
  File "/usr/lib/python3.10/subprocess.py", line 969, in __init__
  File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child
OSError: [Errno 8] Exec format error: '/em-1876'
+ finish
+ ret=1
+ rm -f /net/10.10.254.10/homes/kaoru/workspace/git/github.com/GenPi64/Build.Dist/build/GenPi64OpenRC/chroot/em-1876
+ exit 1
FATAL: JOB locale FAILED with exit code 1
FATAL: JOB gentoo-base FAILED with exit code 1

after PARSERS

run complete.

It is a postscript of the part that seems to be related to the output contents of build.sh.

{'name': 'locale', 'deps': ['etc'], 'parser': 'rawcommand', 'args': ['eselect locale set en_US.utf8']},

I researched the following. parsers/rawcommand/rawcommand outputs a small script in the heredoc and passes it to chroot.py in the part below.

"${SCRIPTS}/chroot.py" /em-$$ At this time, it printed the following error:

OSError: [Errno 8] Exec format error: '/em-1876'

It seems that the shebang at the beginning of the script is not working.

Additional Information

When creating an image for the SD card, There was another problem with the path of the qemu-arm command, but I'm considering it as a separate problem.

tin-machine commented 1 year ago

@jonesmz , @samip5 Thank you for maintaining this wonderful project. I would appreciate it if you could review it at your convenience (I'm in no hurry😸)

jonesmz commented 1 year ago

Thank you very much for the pull request.

Please feel free to make more proposals! Happy to work with you!