Skip to content
Snippets Groups Projects
  1. Oct 31, 2024
  2. Oct 30, 2024
    • Oliver Smith's avatar
      cross/crossdirect: fakeroot: add helpful error msg (MR 5744) · c45d7ec0
      Oliver Smith authored
      Alpine's abuild runs build() without fakeroot, and package() with
      fakeroot. From the APKBUILD reference page in the Alpine wiki:
      
      > Note: Building in fakeroot will reduce performance for parallel
      > builds dramatically. It is for this reason that we split the build
      > and package process into two separate functions.
      
      Every now and then we see a package that tries to run a compiler (gcc,
      g++, clang, ...) during package() in the APKBUILD. This is a bug in the
      APKBUILD / build system of the program we are packaging. All compiling
      should be done during build().
      
      Let crossdirect print the following when this happens:
      
        ============================================================================================
        ERROR: crossdirect was called with: LD_PRELOAD=libfakeroot.so
        This means your package tried to run a compiler during package().
        This is not supported by crossdirect, and usually not a good idea.
        * Try to fix your APKBUILD so it does not run the compiler during package(), only in build()
          * If you're using meson install, try to add '--no-rebuild'
        * If this is not possible, you can work around it by setting options="!pmb:crossdirect"
          (compilation will be slower!)
        ============================================================================================
      
      Instead of:
      
        ERROR: crossdirect: can't handle LD_PRELOAD: libfakeroot.so
        Please report this at: https://gitlab.com/postmarketOS/pmaports/issues
        As a workaround, you can compile without crossdirect.
      
      In the past I've also tried to add 'strcmp(ldPreload, "libfakeroot.so") == 0'
      (pmaports MR 2231), and today I made the same patch. The current code
      looks like it would then work by just using libfakeroot.so from the
      native chroot, but it does not work. And as mentioned, if we hit this
      then we are compiling in package() which is something we should not do
      anyway!
      
      Fixes: pmb issue 2039
      Related: pma issue 2351, pma MR 5738
      Unverified
      c45d7ec0
  3. Oct 29, 2024
  4. Oct 28, 2024
  5. Oct 27, 2024
  6. Oct 26, 2024
  7. Oct 23, 2024
    • Oliver Smith's avatar
      linux-purism-librem5: add pmb:kconfigcheck-librem5 (MR 5633) · 378cbbb2
      Oliver Smith authored and Newbyte's avatar Newbyte committed
      Follow up to MR 5562, which introduced category:librem5. Add the related
      option, so CI actually enforces this category for the Librem 5.
      
      [ci:skip-vercheck]: no need to rebuild for this
      Verified
      378cbbb2
    • Oliver Smith's avatar
      CI: common.run_pmbootstrap: use simple check=True (MR 5633) · a6f188af
      Oliver Smith authored and Newbyte's avatar Newbyte committed
      Use check=True instead of running check_returncode() afterwards, it has
      the same effect and is shorter.
      Verified
      a6f188af
    • Oliver Smith's avatar
      CI: apkbuild_linting: fix missing output (MR 5633) · 4ef0a4e9
      Oliver Smith authored and Newbyte's avatar Newbyte committed
      pmbootstrap used to exit with 0 if "pmbootstrap lint" failed. This was
      the case in 2.3.x too, but I assumed this was a regression and fixed it
      recently in pmbootstrap MR 2398.
      
      It turns out that the CI code relied on this assumption, it captured the
      output of "pmbootstrap lint", and only after it is done it checks if the
      output wasn't empty and prints it in that case followed by exit 1.
      
      Now that pmbootstrap actually exits with 1, CI already fails at
      "common.run_pmbootstrap" and doesn't get to the part where it would be
      printed.
      
      I think "exit 1" on error is actually the right thing to do in
      pmbootstrap, so I'll leave that in. Adjust CI to just run "pmbootstrap
      lint", removing the additional output capture logic that isn't used
      anywhere besides here. This also has the advantage that we get the
      output "live", without buffering it completely first.
      Verified
      4ef0a4e9
    • Jakko's avatar
      device-qemu-*: set a default resolution for X11 (MR 5712) · a8a4d06f
      Jakko authored and Clayton Craft's avatar Clayton Craft committed
      Qemu by default starts a GTK window in VGA resolution 640x480. The content
      adapts to this resolution, thus X11 shows up in resolution 640x480 as well.
      
      This resolution causes some handling issues. In Xfce4 the shutdown button of
      the menu isn't reachable. Even worse in MATE, where the "Apply" button for
      changing the resolution is out of the screen, making it difficult to change
      the resolution.
      
      The default resolution for X11 can be set by a config file. The Qemu GTK
      window resolution remains independently at default 640x480. Setting the X11
      resolution to default 800x600 mitigates the issue: Most of the screen content
      becomes accessible while font size and button sizes are still large enough.
      From this point the user can adjust the resolutions of the Qemu GTK window
      and X11 content as desired.
      [ci:skip-build]: already built successfully in CI
      Verified
      a8a4d06f
    • Luca Weiss's avatar
      cross/busybox-static-*: upgrade to 1.37.0-r3 (MR 5727) · a9ab9a39
      Luca Weiss authored and Clayton Craft's avatar Clayton Craft committed
      [ci:skip-build]: already built successfully in CI
      Verified
      a9ab9a39
    • Clayton Craft's avatar
      main/postmarketos-ui-sway: enable portals (MR 5643) · 66cffd19
      Clayton Craft authored
      This adds the wlr and GTK portal backends so that apps using portals will work OOTB.
      
      The GTK backend is added because the wlr backend does not provide some essential portals, e.g. for camera
      [ci:skip-build]: already built successfully in CI
      Verified
      66cffd19
    • Clayton Craft's avatar
      device-lenovo-21bx: depend on alsa-ucm-conf (MR 5714) · 36c12f18
      Clayton Craft authored
      fixes #3251
      
      [ci:skip-build]: already built successfully in CI
      Verified
      36c12f18
    • Clayton Craft's avatar
      main/postmarketos-installkernel: install to /sbin (MR 5728) · 5541f19d
      Clayton Craft authored
      This reverts 62214096, which basically broke installkenrel because
      the kernel build system is hardcoded to look for installkernel in /
      sbin/installkernel.
      
      We'll have to move then once usr merge is complete and the symlink is
      created for /sbin
      [ci:skip-build]: already built successfully in CI
      Verified
      5541f19d
  8. Oct 22, 2024
    • Luca Weiss's avatar
      linux-postmarketos-qcom-msm8974: upgrade to 6.11.4 (MR 5725) · da8d31d6
      Luca Weiss authored and Newbyte's avatar Newbyte committed
      Some kconfig changes to reduce kernel size to avoid conflict of 0x8000
      (kernel load address) + uncompressed kernel size (arch/arm/boot/Image) +
      compressed kernel size (arch/arm/boot/zImage) being bigger than
      0x1e00000 (tags address).
      
      This causes mostly silent boot failures, with CONFIG_DEBUG_LL messages
      such as "no ATAGS support: can't continue" or "Error: invalid dtb and
      unrecognized/unsupported machine ID" can be seen on UART, though they're
      not very clear that the kernel image is essentially too big for what lk
      is setting up.
      
      Manual kconfig changes:
      * Convert some =y to =m to reduce kernel size, mostly NFS_FS and CIFS
        since those are quite big and there's no point in having them
        built-in.
      * Disable EXT2_FS & EXT3_FS - handled by EXT4 driver
      * Disable PCI - unused
      [ci:skip-build]: already built successfully in CI
      Verified
      da8d31d6
    • Caleb Connolly's avatar
      CI: fix autoupdate bot and don't enable it for local CI (MR 5724) · a79aaf01
      Caleb Connolly authored
      
      Update the bot email address, and don't enable the script for local CI
      since it relies on protected GitLab CI variables. This could be fixed in
      the future by safely handling these not being available.
      
      Signed-off-by: default avatarCaleb Connolly <caleb@postmarketos.org>
      Unverified
      a79aaf01
  9. Oct 21, 2024
    • Clayton Craft's avatar
      main/postmarketos-base-ui: configure flathub from file drop-in (MR 5726) · 901cb952
      Clayton Craft authored
      Per the flatpak manpage, repos can be configured OOTB by dropping config under /etc/flatpak/remotes.d. Using the install script requires doing stuff over the internet, which may not always work at image build time. By using the drop-in file, we avoid having to connect to flathub.
      
      The manpage only mentions /etc/flatpak, and nothing about /usr ...
      Unverified
      901cb952
    • Clayton Craft's avatar
      cross/gcc-*: upgrade to 14.2.0-r4 (MR 5722) · ad9a7874
      Clayton Craft authored and Luca Weiss's avatar Luca Weiss committed
      
      Quite a messy upgrade due to changes in both abuild and in the upstream
      gcc APKBUILD breaking various things. Pmbootstrap also seems to
      misbehave in GitLab CI making it difficult to validate.
      
      Manual fixups:
      * Set !tracedeps - changed behavior in abuild
      * Manually add "so:" dependencies to avoid issues with !tracedeps set
        (becomes obvious with crossdirect)
      * Add back makedepends="$makedepends_build $makedepends_host"
      * Disable move of some files into usr/lib to avoid
        ERROR: gcc-aarch64-14.2.0-r4: trying to overwrite usr/lib/libgcc_s.so.1 owned by libgcc-14.2.0-r4.
      
      [ci:skip-build] # pmbootstrap bugs will prohibit this from building
                      # anyways, don't even attempt
      
      Co-developed-by: default avatarLuca Weiss <luca@lucaweiss.eu>
      Unverified
      ad9a7874
  10. Oct 19, 2024
Loading