Skip to content
Snippets Groups Projects
  1. Oct 26, 2024
  2. Oct 24, 2024
  3. Oct 23, 2024
  4. Oct 22, 2024
    • Newbyte's avatar
      pmb.flasher: Remove use of args (MR 2441) · 37ec73c0
      Newbyte authored
      Also adapt pmb/install/recovery.py to new API for variables.py.
      
      [ci:skip-build]: already built successfully in CI
      37ec73c0
    • Clayton Craft's avatar
      pmb.parse.apkindex: fix crash when origin or timestamp are unset (MR 2449) · 2305cc5d
      Clayton Craft authored and Newbyte's avatar Newbyte committed
      Sometimes these fields are not set, e.g.:
      
      pdb> p ret
      {'depends': ['build-base', 'bash', 'bison', 'findutils', 'flex', 'musl-dev', 'openssl-dev', 'perl', 'python3'], 'arch': 'noarch', 'version': '20241022.022230', 'pkgname': '.makedepends-linux-lenovo-21bx', 'provides': []}
      
      I hit this crash when I installed the build deps for the
      linux-lenovo-21bx package in the native chroot, and then ran
      `pmbootstrap stats`
      [ci:skip-build]: already built successfully in CI
      2305cc5d
  5. Oct 21, 2024
    • Newbyte's avatar
      pmb.parse.arguments: Make -x and -n mutually exclusive in kconfig edit (MR 2346) · 11c7d235
      Newbyte authored and Casey's avatar Casey committed
      It doesn't make sense to both request the nconfig UI and the xconfig UI
      at the same time. Make them mutually exclusive.
      11c7d235
    • Jane Rachinger's avatar
      pmb.kconfig: refactor to remove args (MR 2346) · afb036da
      Jane Rachinger authored and Casey's avatar Casey committed
      
      Co-authored-by: default avatarStefan Hansson <newbyte@postmarketos.org>
      
      Closes #2402
      afb036da
    • Luca Weiss's avatar
      Improvements to documentation (MR 2440) · 35cd6408
      Luca Weiss authored and Casey's avatar Casey committed
      * Make sure all Python modules are documented by adding a bit of shell
        to .ci/docs.sh
      * Remove non-existing module references from .rst
      * Fix various warnings from sphinx by adjusting Python docstrings
      * Add class member docs to ApkindexBlock
      35cd6408
    • Clayton Craft's avatar
      pmb.core.arch: add noarch (MR 2446) · c7a97df7
      Clayton Craft authored and Casey's avatar Casey committed
      When a `noarch` APKBUILD is changed in local pmaports, `pmb install`
      will build it automatically but image creation will fail with the
      following error:
      
      ```
      $ pmbootstrap install
      ...
      [12:00:43] Build is necessary for package 'postmarketos-base-ui': binary package out of date (binary: 28-r6, local pmaports: 29-r0)
      [12:00:48] => edge/postmarketos-base-ui: Done!
      ...
      [12:01:02] (rootfs_lenovo-21bx) % apk --no-progress --repository /home/clayton/.local/var/pmbootstrap/packages/edge add -u --virtual .pmbootstrap /mnt/pmbootstrap/packages/edge/aarch64/postmarketos-base-ui-wifi-iwd-29-r0.apk /mnt/pmbootstrap/packages/edge/aarch64/postmarketos-base-ui-qt-wayland-29-r0.apk /mnt/pmbootstrap/packages/edge/aarch64/postmarketos-base-ui-qt-tweaks-29-r0.apk /mnt/pmbootstrap/packages/edge/aarch64/postmarketos-base-ui-29-r0.apk /mnt/pmbootstrap/packages/edge/aarch64/postmarketos-base-ui-audio-none-29-r0.apk /mnt/pmbootstrap/packages/edge/aarch64/postmarketos-base-ui-networkmanager-29-r0.apk /mnt/pmbootstrap/packages/edge/aarch64/postmarketos-base-ui-wifi-iwd-29-r0.apk --no-interactive
      ...
      [12:01:04] ERROR: Invalid architecture: 'noarch', expected something like: x86_64, aarch64, riscv64, armhf, x86, armv7
      [12:01:04] See also: <https://postmarketos.org/troubleshooting>
      [12:01:04] Traceback (most recent call last):
        File "/home/clayton/src/pmbootstrap/pmb/core/arch.py", line 42, in from_str
          return Arch(arch)
                 ^^^^^^^^^^
        File "/usr/lib/python3.12/enum.py", line 757, in __call__
          return cls.__new__(cls, value)
                 ^^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/lib/python3.12/enum.py", line 1171, in __new__
          raise ve_exc
      ValueError: 'noarch' is not a valid Arch
      
      ```
      
      [caleb: fixed tests]
      c7a97df7
    • Luca Weiss's avatar
      pmb.parse.apkindex: Add missing type hints in package() (MR 2438) · 327010cf
      Luca Weiss authored and Casey's avatar Casey committed
      Make sure to annotate the parameters.
      327010cf
    • Luca Weiss's avatar
      pmb.helpers.pkgrel_bump: Add type hints and fix auto_apkindex_package (MR 2438) · 9a5b5fc5
      Luca Weiss authored and Casey's avatar Casey committed
      9a5b5fc5
    • Luca Weiss's avatar
      pmb.core.apkindex_block: Don't mark depends as optional (MR 2438) · 99f770d2
      Luca Weiss authored and Casey's avatar Casey committed
      In the code where the object is made (pmb/parse/apkindex.py) depends
      already will become an empty array when there's no dependencies.
      
      And there's no point in having a differentiation between None and empty
      array.
      99f770d2
    • Luca Weiss's avatar
      Replace gitlab.com with gitlab.postmarketos.org (MR 2443) · 3df0be35
      Luca Weiss authored
      Try to finish the migration by changing various links and texts to point
      to the new GitLab instance.
      3df0be35
  6. Oct 18, 2024
  7. Oct 17, 2024
  8. Oct 16, 2024
    • Clayton Craft's avatar
      Revert "pmb.install.losetup: Run kpartx, losetup in chroot (MR 2430)" · 1ec55fc1
      Clayton Craft authored
      This series breaks pmbootstrap, and that's not good[1]. A bug was filed
      about this (#2465), and there have been multiple attempts to fix it (!
      2435 and !2436). It kinda seems like we don't have time to fix/test this
      for a while longer, which is fine, but given the impact this bug has I
      think we should be revert this series until this issue is solved/tested.
      
      1. pmb is broken in some specific cases, which means some workflows are
      broken. One example is that this breaks the pmaports CI, so no work can
      be done in pmaports.
      1ec55fc1
  9. Oct 15, 2024
  10. Oct 13, 2024
  11. Oct 11, 2024
    • Clayton Craft's avatar
      pmb.build: make sure cross compiler config is appropriate for each given package (MR 2433) · e56eadd6
      Clayton Craft authored
      Here's the problem: Imagine a queue with 2 packages in it, the 1st
      package uses crossdirect and the second uses cross-native. When building
      the 1st package, pmb will configure the native chroot for crossdirect
      as expected. When it gets to the 2nd package, the chroot env/config
      might not be appropriate for actually doing a native cross compile.
      
      This re-inits the cross compiler stuff if the cross compile method
      changes while processing the queue.
      
      Another approach that might solve this problem is to not re-use chroots
      when building packages... I didn't think this was a good way to go
      because it would greatly increase runtime (having to recreate chroots
      multiple times)
      e56eadd6
Loading