Commit Graph
506 Commits
Author SHA1 Message Date
Oliver Smith c45d7ec0a5 cross/crossdirect: fakeroot: add helpful error msg (MR 5744)
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
2024-10-30 22:24:57 +01:00
Luca Weiss a9ab9a3925 cross/busybox-static-*: upgrade to 1.37.0-r3 (MR 5727)
[ci:skip-build]: already built successfully in CI
2024-10-23 00:19:15 -07:00
Clayton Craft ad9a7874a5 cross/gcc-*: upgrade to 14.2.0-r4 (MR 5722)
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: Luca Weiss <luca@lucaweiss.eu>
2024-10-21 13:25:53 +02:00
Luca Weiss 878e3d7bf7 cross/musl-*: upgrade to 1.2.5-r5 (MR 5720)
[ci:skip-build]: already built successfully in CI
2024-10-17 23:13:24 -07:00
Pablo Correa Gómez 8a14c77745 cross/crossdirect: rebuild to update references to gitlab.postmarketos.org (MR 5696) 2024-10-07 12:58:04 +02:00
Luca Weiss 31b39acf0b cross/musl-*: upgrade to 1.2.5-r3 (MR 5620)
The rest of the packages were already handled in 6a290d1c35.
2024-09-23 21:08:10 +02:00
Luca Weiss 51640b1322 cross/gcc-*: upgrade to 14.2.0-r3 (MR 5619)
The rest of the packages were already handled in 6a290d1c35.
2024-09-23 21:06:16 +02:00
Bart Ribbers 6a290d1c35 cross/gcc-*: upgrade to 14.2.0-r1 2024-09-23 20:04:54 +02:00
Oliver Smith 303596dc73 cross/busybox-static-*: upgrade to 1.36.1-r32 2024-09-19 02:15:00 +02:00
Oliver Smith 7720c5c767 cross/gcc-*: upgrade to 14.2.0-r2 2024-09-01 14:25:54 +02:00
Oliver Smith 699763cfb0 cross/musl-*: upgrade to 1.2.5-r2 2024-08-18 14:06:38 +02:00
knuxify 2b1a26bf25 cross/gcc-*: upgrade to 14.2.0-r1 (MR 5479)
[ci:skip-build]
2024-08-10 23:30:06 +09:00
Oliver Smith 5d1d7214a7 cross/grub-efi-x86: upgrade to 2.12-r6 2024-08-04 16:39:22 +02:00
Arnav Singh cebadbcf4c cross/gcc-*: upgrade to 14.2.0-r0 (MR 5455)
[ci:skip-build] CI fails because of an issue with pmb fetching build
deps on subsequent packages in the aggregated list of packages to build,
but bpo is expected to pass because it builds packages one at a time
2024-08-03 09:54:18 -07:00
Oliver Smith 1dfd81dfd0 cross/busybox-static-*: upgrade to 1.36.1-r31 2024-06-20 19:25:45 +02:00
Oliver Smith fab386bcc7 cross/busybox-static-*: upgrade to 1.36.1-r29 2024-06-02 16:43:10 +02:00
Oliver Smith 3126954b45 cross/grub-efi-x86: upgrade to 2.12-r5 2024-05-29 00:26:57 +02:00
Oliver Smith 2d1d38e73f cross/musl-*: upgrade to 1.2.5-r1 2024-05-29 00:26:57 +02:00
Oliver Smith b4f51af7c8 cross/busybox-static-*: upgrade to 1.36.1-r28 2024-05-29 00:26:57 +02:00
Pablo Correa Gómez fb1a13a5d6 cross/busybox-static-*: upgrade to 1.36.1-r26 2024-05-02 02:05:17 +02:00
Oliver Smith 10e5389345 cross/grub-efi-x86: upgrade to 2.12-r3 2024-04-12 15:43:19 +00:00
Oliver Smith 1c17a83eff cross/busybox-static-*: upgrade to 1.36.1-r25 2024-04-10 21:27:53 +00:00
Oliver Smith 0ce1ca8948 cross/busybox-static-*: upgrade to 1.36.1-r24 2024-04-02 19:22:34 +00:00
Oliver Smith 42042f691c cross/busybox-static-*: upgrade to 1.36.1-r23 2024-03-27 19:21:12 +00:00
Oliver Smith 11cc8fc549 cross/busybox-static-*: upgrade to 1.36.1-r21 2024-03-17 17:30:24 +00:00
Oliver Smith 45acb50ffc cross/gcc-*: upgrade to 13.2.1_git20240309-r0 2024-03-12 22:44:04 +00:00
Luca Weiss 7aca98d772 cross/musl-*: upgrade to 1.2.5-r0 (MR 4890)
[ci:skip-build]: already built successfully in CI
2024-03-05 20:40:55 +01:00
Luca Weiss c8e64981b7 cross/busybox-static-*: upgrade to 1.36.1-r20 (MR 4890) 2024-03-05 20:40:55 +01:00
Luca Weiss 1cbd8ecfae cross/grub-efi-x86: upgrade to 2.12-r2 (MR 4844)
[ci:skip-build]: already built successfully in CI
2024-02-19 16:24:37 -08:00
Clayton Craft 0aa02bb6f4 cross/gcc-*: upgrade to 13.2.1_git20231014-r1 2024-02-17 15:52:43 -08:00
Oliver Smith 3661a84936 cross/musl: upgrade to 1.2.4_git20230717-r6 2024-02-05 23:27:09 +00:00
Oliver Smith 7b8f969222 cross/grub-efi-x86: upgrade to 2.12-r1 2024-01-28 18:55:30 +00:00
Oliver Smith 8e8c795b79 cross/busybox-static-*: upgrade to 1.36.1-r19 2024-01-28 18:55:23 +00:00
Oliver Smith 0722c95c1c cross/grub-efi-x86: upgrade to 2.12-r0 2024-01-08 12:50:54 +01:00
Oliver Smith 780a96aec1 cross/busybox-static-aarch64: upgrade to 1.36.1-r18 2024-01-01 15:16:59 +01:00
Oliver Smith 83a5b08c2d cross/musl-*: upgrade to 1.2.4_git20230717-r5 2024-01-01 14:12:22 +01:00
Oliver Smith 62f75c65ff cross/busybox-static: upgrade to 1.36.1-r18 2024-01-01 14:11:55 +01:00
Oliver Smith dd378d0c77 cross/busybox-static-*: upgrade to 1.36.1-r17 2023-12-17 15:57:44 +01:00
Oliver Smith db94f21dc2 cross/busybox-static-*: upgrade to 1.36.1-r16 2023-12-13 22:15:12 +01:00
Oliver Smith debb2461d3 cross/grub-efi-x86: upgrade to 2.06-r17 2023-12-07 20:21:06 +01:00
Clayton Craft 38073a05a4 cross/gcc-x86_64: new aport (MR 4568)
Useful for compiling x86_64 packages on aarch64

[ci:skip-vercheck]
[ci:skip-build]: already built successfully in CI
2023-11-24 17:44:48 -08:00
Clayton Craft 1590be8611 cross/musl-x86_64: new aport (MR 4568) 2023-11-24 17:44:48 -08:00
Oliver Smith ffd16fa263 cross/musl-*: upgrade to 1.2.4_git20230717-r4 2023-11-13 08:44:30 +01:00
Oliver Smith 2dc2b58c26 cross/busybox-static-*: upgrade to 1.36.1-r15 2023-11-13 08:44:24 +01:00
Oliver Smith 930aa6df78 cross/busybox-static-*: upgrade to 1.36.1-r14 2023-11-03 09:26:31 +01:00
Stefan Hansson 14e6594cc5 cross/gcc-*: upgrade to 13.2.1_git20231014 2023-10-20 13:06:28 +02:00
Clayton Craft 9400f43579 cross/gcc-riscv64: upgrade to 13.1.1_git20230722-r3 (MR 4476)
This reverts commit 72e55aae91, which was
itself a revert of this change 🥳

[ci:skip-build]: Already built successfully in CI
2023-10-18 16:59:53 +02:00
Clayton Craft ba934f0325 cross/busybox-static-*: upgrade to 1.36.1-r13 2023-10-12 23:47:20 -07:00
Clayton Craft ca17321f5d cross/gcc-x86: new aport (MR 4469)
Required for cross compiling 32-bit EFI apps/bootloaders on x86_64

[ci:skip-vercheck]
[ci:skip-build]: already built successfully in CI
2023-10-12 19:50:34 +02:00
Clayton Craft bb18956a2e cross/musl-x86: new aport (MR 4469) 2023-10-12 19:50:34 +02:00