Skip to content

Jan 14 2023 poole#185

Closed
jlpoolen wants to merge 16 commits into
GenPi64:masterfrom
jlpoolen:Jan_14_2023_Poole
Closed

Jan 14 2023 poole#185
jlpoolen wants to merge 16 commits into
GenPi64:masterfrom
jlpoolen:Jan_14_2023_Poole

Conversation

@jlpoolen
Copy link
Copy Markdown

I'm submitting 4 files modified:
3 have "-p" added to mkdir.
1 has whitespace before shebang removed.

When I built anew, there was a problem with a subdirectory not being created at first, a bug which would only manifest itself on an initial run. I see no harm in having all mkdirs with -p.

jlpoolen added 16 commits April 8, 2022 05:01
Took 1 hour 33 minutes on Bulldozer FX-8120

tests of simple *.c succeeeded on Raspberry Pi 4B.
…otes I had posted so Maffblaster might get some benefit
…mjones advises there is only the "main" branch.
…Pipeline_Jan_02_2023_1602@2\build was not created when it should have been come time to stage the release.
Incomplete notes; safety
moved closing double quote mark to include the double dollar sign.  In OpenRC, having the dollar sign outside of the quotation mark causes chroot.py to not find the temporary pid file.  (Not fully tested, e.g. going back to original form and generating error and then making change and seeing that the step/task "locale" works as I  do not know where the log ares cached and I've asked in Issue #179 and on Discord general chat how to force that particular step to be reprocessed.
Having whitespace before a shebang, "#!", on first line causes QEMU to barf.
Comment thread parsers/rawcommand/rawcommand
Comment thread parsers/stage3/stage3

if [[ ! -d "${PROJECT_DIR}/chroot" ]]; then
mkdir "${PROJECT_DIR}/chroot"
mkdir -p "${PROJECT_DIR}/chroot"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use ckmkdir from scripts/functions.sh instead

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An example, from parsers/emerge

source "$BASEDIR/scripts/functions.sh"

ckmkdir "${BINPKGS_DIR}"
ckmkdir "${DISTFILES_DIR}"
ckmkdir "${PROJECT_DIR}/chroot/var/cache/binpkgs"
ckmkdir "${PROJECT_DIR}/chroot/var/cache/distfiles"

#Use as a last resort.
if [[ ! -d "$BINPKGS_DIR" ]]; then
mkdir "$BINPKGS_DIR"
mkdir -p "$BINPKGS_DIR"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use chmkdir from scripts/functions.sh instead

wget https://bouncer.gentoo.org/fetch/root/all/releases/${STAGE3_ARCH}/autobuilds/${STAGE3} -O stage3.tar.xz
fi
mkdir chroot
mkdir -p chroot
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-p is not needed here. The mkdir command runs relative to the current working directory, which, in the context of github actions, always exists unless otherwise deleted.

fi
mkdir chroot
mkdir -p chroot
pushd chroot
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unrelated to the -p change, i'm not seeing a big advantage of using pushd over cd.

and i'm also not sure that it makes sense to change directory instead of just telling the tar command to extract directly into the chroot directory.

@jonesmz
Copy link
Copy Markdown
Contributor

jonesmz commented Jan 15, 2023

Squash your commits into a single commit.

git rebase origin/master -i

edit the resulting file as appropriate following the in-file instructions

git commit --amend --no-edit
git push -f

@jlpoolen
Copy link
Copy Markdown
Author

I apologize for the delay. I'm really struggling here to use git. Can you recommend a site which covers git. This try-to-learn git peace-meal as needed simply is not working for me. I'll make a commitment to learn git and do practice stuff with a test repository until I'm satisfied I know what I'm doing in git. I have enough problems with Subversion and branching which I avoid if I can because it just seems to get me into trouble. In the meantime, in the interest of efficiency, perhaps you can effectuate a patch that replaced "mkdir" with your custom chmkdir at the places I identified you agreed needed improvement so the benefit of the change does not get delayed due to my incompetency of using git.

@samip5
Copy link
Copy Markdown
Contributor

samip5 commented Jan 26, 2023

I apologize for the delay. I'm really struggling here to use git. Can you recommend a site which covers git. This try-to-learn git peace-meal as needed simply is not working for me. I'll make a commitment to learn git and do practice stuff with a test repository until I'm satisfied I know what I'm doing in git. I have enough problems with Subversion and branching which I avoid if I can because it just seems to get me into trouble. In the meantime, in the interest of efficiency, perhaps you can effectuate a patch that replaced "mkdir" with your custom chmkdir at the places I identified you agreed needed improvement so the benefit of the change does not get delayed due to my incompetency of using git.

Maybe this helps: https://www.youtube.com/watch?v=SWYqp7iY_Tc

@jlpoolen
Copy link
Copy Markdown
Author

I apologize for the delay. I'm really struggling here to use git. Can you recommend a site which covers git. This try-to-learn git peace-meal as needed simply is not working for me. I'll make a commitment to learn git and do practice stuff with a test repository until I'm satisfied I know what I'm doing in git. I have enough problems with Subversion and branching which I avoid if I can because it just seems to get me into trouble. In the meantime, in the interest of efficiency, perhaps you can effectuate a patch that replaced "mkdir" with your custom chmkdir at the places I identified you agreed needed improvement so the benefit of the change does not get delayed due to my incompetency of using git.

Maybe this helps: https://www.youtube.com/watch?v=SWYqp7iY_Tc

Thank you. I'm plowing through https://git-scm.com/book/en/v2. I really won't be able to spend much time until after February 1st, so don't expect anything in the next week.

@jlpoolen
Copy link
Copy Markdown
Author

jlpoolen commented Jul 29, 2023 via email

@jlpoolen
Copy link
Copy Markdown
Author

jlpoolen commented Jul 30, 2023 via email

@jlpoolen
Copy link
Copy Markdown
Author

This is so stale and tin-machine looks to have submitted what was needed; I'm closing this as stale.

@jlpoolen jlpoolen closed this Aug 16, 2023
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.

4 participants