Skip to content
Snippets Groups Projects
  1. Nov 02, 2024
  2. Nov 01, 2024
  3. Oct 31, 2024
  4. 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
  5. Oct 29, 2024
  6. Oct 28, 2024
  7. Oct 27, 2024
  8. Oct 26, 2024
  9. 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
Loading