Skip to content

change white space to tabs#205

Merged
jonesmz merged 1 commit into
GenPi64:masterfrom
tin-machine:fix_hear_documents
Jul 30, 2023
Merged

change white space to tabs#205
jonesmz merged 1 commit into
GenPi64:masterfrom
tin-machine:fix_hear_documents

Conversation

@tin-machine
Copy link
Copy Markdown
Contributor

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

  • Raspberry Pi 4 Model B Rev 1.4 8GB
  • GenPi64 OpenRC
  • Target image PROJECT="GenPi64Systemd"

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
Copy link
Copy Markdown
Contributor Author

@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 jonesmz merged commit 559dd93 into GenPi64:master Jul 30, 2023
@jonesmz
Copy link
Copy Markdown
Contributor

jonesmz commented Jul 30, 2023

Thank you very much for the pull request.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants