Skip to content
Snippets Groups Projects
  1. Mar 13, 2025
  2. Oct 27, 2024
  3. Oct 11, 2024
    • Clayton Craft's avatar
      install_pmbootstrap: make pmaports/.git world writeable by all (MR 10) · 6beb94d4
      Clayton Craft authored
      Works around an issue in the CI after the migration where some dirs are
      created that are owned by root and not writeable by any other groups/
      users.
      
      One way the CI failed from this is .git/refs/remotes was only
      writeable by root, since root ran `git remote add` on the freshly cloned
      repo causing the remotes dir to be created. Later in CI, when other
      users tried to add remotes, these failed silently (thanks git) and the
      CI job crashed when it tried to run `git fetch` on the remote that was
      never added. At this point in the script, refs/remotes exists so this
      chmod "fixes" the issue.
      
      I don't have any idea why this is a problem *now* and not when we were
      on gitlab.com.
      Verified
      6beb94d4
  4. Oct 07, 2024
  5. Sep 29, 2024
  6. Aug 04, 2024
    • Oliver Smith's avatar
      install_pmbootstrap: install losetup · 4727a0b8
      Oliver Smith authored
      Add losetup, so "pmbootstrap shutdown" doesn't fail because it tries to
      use busybox losetup with the --json parameter that it doesn't support:
      
      	[11:29:44] % sudo losetup --json --list
      	losetup: unrecognized option: json
      	BusyBox v1.36.1 (2024-06-12 11:52:11 UTC) multi-call binary.
      	Usage: losetup [-rP] [-o OFS] {-f|LOOPDEV} FILE: associate loop devices
      		losetup -c LOOPDEV: reread file size
      		losetup -d LOOPDEV: disassociate
      		losetup -a: show status
      		losetup -f: show next free loop device
      		-o OFS	Start OFS bytes into FILE
      		-P	Scan for partitions
      		-r	Read-only
      		-f	Show/use next free loop device
      
      Currently running into this with bpo CI while working on
      build.postmarketos.org#140.
      Unverified
      4727a0b8
    • Oliver Smith's avatar
      install_pmbootstrap: tweak depends formatting · 5ecba956
      Oliver Smith authored
      Put coreutils in its own line, so it's easier to sort the list e.g. in
      neovim.
      Unverified
      5ecba956
  7. Jul 17, 2024
  8. Jun 10, 2024
  9. Feb 11, 2024
  10. Jan 28, 2024
  11. Apr 13, 2022
    • Oliver Smith's avatar
      install_pmbootstrap: mark pmaports as safe dir · 34222ed9
      Oliver Smith authored
      In latest git version a safety check was added that makes sure a git
      directory is owned by the same user that tries to modify it. Since this
      script runs only in CI, we can just mark it as safe directory and it
      should work the same as before.
      
      Fix for:
        Creating pmos user
        Found pmaports.cfg in current dir
        ERROR: failed to add original remote with git!
        fatal: unsafe repository ('/builds/anjandev/pmaports' is owned by someone else)
        To add an exception for this directory, call:
          git config --global --add safe.directory /builds/anjandev/pmaports
      
      Related: https://gitlab.com/anjandev/pmaports/-/jobs/2328801751
      Unverified
      34222ed9
    • Oliver Smith's avatar
      distfile-check: add shellcheck ignores · 739e7ddd
      Oliver Smith authored
      Looks like there's a new shellscript version that finds more errors than
      before. The errors are non-POSIX syntax that do work with busybox sh,
      just ignore it for now since I want to fix another script.
      Unverified
      739e7ddd
  12. Sep 21, 2020
  13. Sep 07, 2020
  14. Jul 20, 2020
  15. Jul 02, 2020
  16. Jun 16, 2020
  17. Jun 10, 2020
  18. Jun 02, 2020
  19. May 17, 2020
  20. Apr 19, 2020
    • Oliver Smith's avatar
      install_pmbootstrap.sh: add procps to depends · 4251e202
      Oliver Smith authored
      Let pmbootstrap properly kill processes that are timing out, instead of
      having it display the busybox ps usage screen (as we are using arguments
      of ps that busybox ps does not support):
      
      [00:15:45] Process did not write any output for 900 seconds. Killing it.
      [00:15:45] NOTE: The timeout can be increased with 'pmbootstrap -t'.
      ps: unrecognized option: noheaders
      BusyBox v1.31.1 () multi-call binary.
      Usage: ps [-o COL1,COL2=HEADER]
      Show list of processes
      	-o COL1,COL2=HEADER	Select columns for display
      [00:15:45] ERROR: Command '['ps', '-e', '-o', 'pid=,ppid=', '--noheaders']' returned non-zero exit status 1.
      
      Example: https://gitlab.com/postmarketOS/pmaports/-/jobs/517281598#L6026
      Unverified
      4251e202
    • Oliver Smith's avatar
      install_pmbootstrap.sh: make depends git-friendly · 17661f51
      Oliver Smith authored
      Put each dependency in a single line, sort them alphabetically and
      change the code that prints the dependencies to still print them as
      single line.
      Unverified
      17661f51
  21. Apr 11, 2020
  22. Mar 21, 2020
Loading