Commit graph

307 commits

Author SHA1 Message Date
Oliver Smith
4429132ac5
cross/grub-efi-x86: upgrade to 2.02-r18 2019-12-04 21:35:42 +01:00
Oliver Smith
9d9ad17fd8
cross/busybox-static-*: upgrade to 1.31.1-r2 2019-11-27 23:30:00 +01:00
Oliver Smith
1a5312bb28
cross/gcc-*: upgrade to 9.2.0-r3 2019-11-25 09:50:59 +01:00
Oliver Smith
c16726177c
cross/busybox-static-*: upgrade to 1.31.1-r1 2019-11-24 19:06:26 +01:00
Oliver Smith
93d7dc419f
cross/busybox-static-*: upgrade to 1.31.1-r0 2019-10-30 19:08:14 +01:00
Oliver Smith
55a71fea98
cross/musl-*: upgrade to 1.1.24-r0 2019-10-18 21:16:04 +02:00
Oliver Smith
54a4807d21
cross/binutils-*: upgrade to 2.33.1-r0 2019-10-13 15:19:41 +02:00
Oliver Smith
9984bf9e14
cross/gcc-*: adjust to upstream changes
Alpine made some minor modifications to the gcc aport, without
changing the version. Let's adjust the pmaports too, so we stay in
sync. [ci:skip-vercheck]

Related: 97a2b093b1
2019-10-01 09:57:30 +02:00
Oliver Smith
a039e6f1f8
cross/gcc-*: upgrade to 9.2.0-r2
[ci:skip-build]: won't finish in time
2019-09-19 23:07:15 +02:00
Oliver Smith
ceefd198f9
Cosmetic: cross/binutils-*: remove empty line
The last update of the binutils-* pmaports were not made with the latest
pmbootstrap version, which has the additional empty line remved in the
generated aports. Fix this, so we get an empty diff when running
aportgen, unless the binutils version was changed in Alpine.

[ci:skip-build], [ci:skip-vercheck]
2019-09-18 20:44:28 +02:00
Oliver Smith
aa9cc057f1
cross/binutils-*: upgrade to 2.32-r0 2019-09-16 22:51:35 +02:00
Daniele Debernardi
811dc68960
cross/binutils{aarch64,armhf,armv7}: remove extra newline (!627)
Adjust to fix in aportgen code, that was part of pmbootstrap!1811.

[ci:skip-vercheck]
2019-09-14 05:03:16 +02:00
Oliver Smith
d1078bc319
cross/busybox-static-*: upgrade to 1.31.0-r1 2019-09-14 00:20:09 +02:00
Luca Weiss
8ed829516a
cross/gcc-*: regen for gcc9 (!624)
[ci:skip-build]: will not finish in time and does not build with --strict
because of an abuild bug that will be fixed in the next abuild release by
this patch:

c54d39d8aa
2019-09-12 17:47:03 +02:00
Oliver Smith
e72aad5dba
{main,cross}/gcc{4,6}*: bump pkgrel
Rebuild all other GCC packages against mpfr4, so they don't fail with:

Error loading shared library libmpfr.so.4: No such file or directory (needed by /usr/gcc4/libexec/gcc/x86_64-alpine-linux-musl/4.9.2/cc1)

[ci:skip-build]: won't finish in time
Related: 2b32ed3a48786fa151cad8f920e5d9997bee94ed in Alpine's aports.git
2019-09-11 21:32:52 +02:00
Oliver Smith
de2b9a33b4
cross/crossdirect: pkgrel bump
Rebuild to make it use the new armhf triplet. Otherwise cross compiling
with crossdirect to armhf fails with:

ERROR: crossdirect: failed to execute /native/usr/lib/ccache/bin/armv6-alpine-linux-muslgnueabihf-gcc: No such file or directory

This finally fixes #295.
2019-09-11 20:51:14 +02:00
Oliver Smith
6bea557208
cross/ccache-cross-symlinks: pkgrel bump
Rebuild to make it use the new armhf triplet. Otherwise cross compiling
with crossdirect to armhf fails with:

ccache: error: Could not find compiler "armv6-alpine-linux-muslgnueabihf-gcc" in PATH

Related: #295
2019-09-11 20:50:54 +02:00
Oliver Smith
731423e13b
cross/binutils-armhf: upgrade to 2.32.0
Upgrading binutils-armhf was blocked, after the armhf triplet had been
renamed and gcc-armhf still had the old triplet. Now gcc-armhf was
upgraded. When trying to the upgraded build gcc-armhf with the current
set of binary packages, without updating binutils-armhf, it fails with:

configure: error: cannot compute suffix of object files: cannot compile

So let's upgrade binutils-armhf too and finally have the triplet of both
programs in sync again \o/

Related: #295
2019-09-11 20:49:55 +02:00
Oliver Smith
0cae49b26f
cross/gcc-*: bump pkgrel
Make the version match Alpine's gcc again. Fixes libstdc++ unsatisfiable
constrains related error messages (because the libstdc++ generated by
these cross-* packages has the same pkgver and pkgrel again as the one
provided by Alpine's gcc package).

[ci:skip-build]: won't finish in time

The upstream compat test case will still fail after this, there are more
issues that need to be resolved. I'm on it.
2019-09-11 19:00:28 +02:00
Oliver Smith
6afffe73e1
cross/musl-*: upgrade to 1.1.23-r3 2019-08-17 09:34:32 +02:00
Oliver Smith
bfac093092
cross/musl-*: upgrade to 1.1.23-r2 2019-08-06 12:36:15 +02:00
Oliver Smith
fe8858d59e
cross/musl-*: update to 1.1.23-r1 2019-07-28 10:49:21 +02:00
Oliver Smith
cb9313a27c
cross/busybox-static-*: update to 1.31.0-r0 2019-07-25 20:28:52 +02:00
Oliver Smith
bf4b8a9051
cross/musl-*: update to 1.1.23-r0
Latest version from Alpine. I've checked that we can still compile
packages for armhf after this update, in other words that we don't get
a regression related to the triplet change like in #295.
2019-07-18 21:59:24 +02:00
Luca Weiss
82b143f3f0
Fix spelling mistakes (!466)
codespell --skip="./.git,*.patch,*.diff,config-*.*"

[ci:skip-build]
[ci:skip-vercheck]
2019-06-30 01:40:02 +02:00
Luca Weiss
a66fed62cc
Format **/*.c with clang-format (!465)
[ci:skip-build]: already built successfully in CI
[ci:skip-vercheck]
2019-06-26 22:36:24 +02:00
Oliver Smith
eecd32812d
cross/busybox-static-*: update to 1.30.1-r2 2019-06-13 22:07:51 +02:00
Oliver Smith
c61f0dae5e
Revert "cross/binutils-*: update to 2.32-r0"
This reverts commit 593fe01bb8.

Binaries in binutils-armhf etc. break the build system:

Error loading shared library libopcodes-2.32.so: Exec format error (needed by /usr/bin/as)
Error loading shared library libbfd-2.32.so: Exec format error (needed by /usr/bin/as)
Error loading shared library libz.so.1: Exec format error (needed by /usr/bin/as)
Error relocating /usr/bin/as: bfd_errmsg: symbol not found
Error relocating /usr/bin/as: deflateEnd: symbol not found
Error relocating /usr/bin/as: bfd_arch_bits_per_address: symbol not found
Error relocating /usr/bin/as: bfd_set_error_program_name: symbol not found
Error relocating /usr/bin/as: xcalloc: symbol not found

Reverting for now. The upstream compatibility CI test is expected to fail.
The postmarketOS binary repositories still have the old binutils package.

I'm analyzing this issue in #295.

[ci:skip-vercheck]: package downgrade
2019-06-09 22:44:04 +02:00
Oliver Smith
593fe01bb8
cross/binutils-*: update to 2.32-r0 2019-06-09 21:24:16 +02:00
Oliver Smith
974fa8e028
cross/musl-*: update to 1.1.22-r2 2019-06-06 22:22:51 +02:00
Oliver Smith
2cba912d15
cross/grub-x86: fix pmb:strict option name
This package should use the pmb:strict option, in order to force
pmbootstrap to always build it in strict mode. Otherwise it can have
a conflict with packages installed earlier.

I've just noticed that the merged patch was still using the early name
of the option, "pmbootstrap-strict". It was later changed to
"pmb:strict" in the related pmbootstrap!1771 merge request, for
consistency with !pmb:kconfig-check. Fix grub-x86 to use the proper
option name.

[ci:skip-vercheck]: version bump not needed
2019-06-04 23:28:39 +02:00
Oliver Smith
f45faa2c2a
cross/grub-efi-x86: update to 2.0.2-r17 2019-05-28 23:21:13 +02:00
Oliver Smith
4e9d08d39e
cross/gcc-*: re-generate with pmbootstrap aportgen
Adjust the depends of the GCC-8 cross compiler packages after the change
from pmbootstrap!1778. This does not have any effect (since the GCC-8
aports don't have !tracedeps in options, in contrary to the other GCC
aports we ship). But it makes sure that we don't get any changes after
running the repository maintenance script from here:
https://wiki.postmarketos.org/wiki/Repository_maintenance

[ci:skip-build]: cosmetic change, build would take too long anyway
2019-04-30 19:12:56 +02:00
Oliver Smith
c6e854b186
main/gcc{4,6}, cross/gcc{4,6}*: fix depends
Explicitly depend on mpc1. Our generated gcc aports use the !tracedeps
option, so we need to explicitly set the libraries it depends on.

This has mostly not been an issue, as we are installing our gcc
packages together with Alpine's gcc package, which causes the libraries
to get installed anyway.

Fixes #236.

[ci:skip-build]: takes too long to build.
2019-04-26 22:45:54 +02:00
Oliver Smith
b4ed4fce33
cross/busybox-static-*: update to 1.30.1-r1 2019-04-26 21:02:37 +02:00
Oliver Smith
2c07f28419
cross/crossdirect: use qemu when linking (!318)
Cross linker (e.g. ld from binutils-armhf) does not support any method
of setting additional link paths, and this causes problems when building
various packages. Work around this problem by calling the qemu binary
instead of the cross binary from the native chroot, whenever we are
linking.

I have tested that this allows successfully building hello-world,
coreinfo, libhybris for armhf. So this fixes #227 and fixes #228.

Regarding performance, this is the same way as distcc does it. We would
get a performance gain if we were able to use the cross-linker. But so
far I could not figure out how to patch the binutils source to make it
work like we want to have it. Maybe I'll ask on some binutils mailing
list for advice. In the meantime, this workaround should make
crossdirect work for all use-cases, and it is still faster than the
previous distcc setup, because we can avoid the overhead of setting up
and running a ssh server locally to work around missing authentication
in distcc (see pmbootstrap!1649). Let's test this for some more time,
and then make a pmbootstrap release that rolls out crossdirect for
everyone.
2019-04-14 04:03:21 +02:00
Oliver Smith
9b6ea60690
cross/musl-*: update to 1.1.22-r0 2019-04-11 23:48:26 +02:00
Oliver Smith
3928475fd6 cross/grub-efi-x86: update to 2.02-15 (!302) 2019-04-06 01:30:29 +02:00
Nick Reitemeyer
39971739fa
surftab-wintron7.0: new device (TrekStor Surftab wintron 7.0) (!290)
This device is x86_64 and has a 32-bit UEFI, so I need to install
32-bit grub (AFAIK it's the only bootloader capable of loading a 64-bit
kernel from 32-bit).

The grub-efi-x86 package has been generated with pmbootstrap.
2019-04-04 19:58:24 +02:00
Oliver Smith
958f597a6c cross/crossdirect: use ccache, execve, -Werror (!299)
Instead of running compilers directly, let them go through the native
ccache binary. Note that it will still use the foreign arches cache dir
because the native cache dir would be at /native/home/pmos/.ccache.

Use execve instead of setenv and execv, because that didn't work with
LD_LIBRARY_PATH (ccache was complaining that it couldn't load zlib).

Enable -Werror, because we are maintaining this program and it helps
us catching bugs early.
2019-04-03 21:26:12 +02:00
Oliver Smith
9c90da7969 ccache-cross-symlinks: all arches, relative, clang (!299)
Create symlinks for all supported arches (armhf, armv7, aarch64, x86_64,
x86), not only armhf and aarch64. Skip creating symlinks for the arch
that the package gets built for, so we can include x86_64 in the list
without conflicting with the ccache package from Alpine.

Link to ../../../bin/ccache instead of /usr/bin/ccache, so it works
properly with crossdirect (where we mount the native chroot to /native
in the foreign chroot).

Add symlinks for clang and clang++.
2019-04-03 21:26:12 +02:00
Oliver Smith
c6aae11598
cross/musl-*: update to 1.1.21-r2 2019-03-26 23:19:56 +01:00
Zhuowei Zhang
68c1d5d2bd cross: add crossdirect package (!222)
A set of wrapper executables that launch native cross compilers inside
foreign chroots. Speeds up cross compilation a lot, compared to the
distcc-sshd method.
2019-03-23 01:05:40 +01:00
Oliver Smith
0d966c7a6f
cross/musl-*: update to 1.1.21-r1 2019-03-20 08:23:39 +01:00
Oliver Smith
f1121b5e07
cross/musl-*: regenerate pmaports (!270)
Regenerated with:
$ pmbootstrap aportgen musl-armhf musl-aarch64 musl-aarch64

This new version fixes the build for gitlab-ci and builds.sr.ht:
https://gitlab.com/postmarketOS/pmaports/issues/26
2019-03-10 02:01:23 +01:00
Oliver Smith
17dae7d98c
cross/gcc4-{aarch64,armv7}: add generated aports
Make it possible to build old kernels with gcc4 for armv7 and aarch64.

The packages have been generated with (as usually):
$ pmbootstrap aportgen gcc4-aarch64 gcc4-armv7

[ci:skip-build]: I have tested that this builds locally.

Fixes #193.
2019-02-28 13:29:03 +01:00
Martijn Braam
021640f04b cross/gcc-*: update to 8.3.0-r0 2019-02-26 13:22:07 +01:00
Oliver Smith
3de8300f91
cross/busybox-static-*: update to 1.30.1 2019-02-16 18:39:41 +01:00
Oliver Smith
bc0a942628
cross/musl-*: update to 1.1.21 2019-02-15 11:00:38 +01:00
Daniele Debernardi
7b3702e2dd Add gcc4 and gcc4-armhf packages (!216)
Successfully tested both the gcc4 compiler on x86_64 with a simple
program (fbdebug) and the gcc4-armhf cross-compiler to build a very old
u-boot port for Galaxy Nexus (a MR will follow soon) which failed to
boot with either newer version (6 and 8).

[skip ci]: already went through
2019-02-12 21:03:12 +00:00
Oliver Smith
dcaf388c44
cross/busybox-static-*: update to 1.29.3-r12 2019-02-07 06:53:58 +01:00
Oliver Smith
7828c621da
busybox-static-*: update to 1.29.3-r10 2019-01-25 08:37:02 +01:00
Oliver Smith
6e7778f4bd
cross/busybox-static-*: update to 1.29.3-r9 2019-01-18 07:29:57 +01:00
Martijn Braam
093cc7d002 cross/busybox-static-*: update to 1.29.3-r7 2019-01-14 22:48:40 +01:00
Oliver Smith
ab9d05eea6
cross/arch-bin-masquerade: add armv7
Make our distcc+ccache+cross compiling setup work with armv7.
2019-01-10 22:43:13 +01:00
Oliver Smith
f9c6aa17cc
cross/busybox-static-*: update to 1.29.3-r6 2019-01-10 22:26:56 +01:00
Oliver Smith
6225dfa554
cross/musl-*: update to 1.1.20-r3 2019-01-04 21:07:23 +01:00
Oliver Smith
9b4435bcd0
cross/gcc-*: add missing patch file
I forgot to add it with the last commit, sorry for that.
2019-01-03 16:03:55 +01:00
Oliver Smith
81b184522a
cross/gcc-*: update to 8.2.0-r2
[skip ci], as the build takes too long.
2019-01-03 15:57:32 +01:00
Oliver Smith
b682ed3a98
cross/binutils-*: update to 2.31.1-r2 2019-01-03 09:47:29 +01:00
Oliver Smith
ac2730385b
cross/busybox-static-*: update to 1.29.3-r5 2019-01-02 09:07:03 +01:00
Oliver Smith
984476227f
cross/binutils-*: regenerate with pmbootstrap
Changes spaces to tabs in the APKBUILDs, thanks to this fix:
https://gitlab.com/postmarketOS/pmbootstrap/merge_requests/1734

Alpine uses tabs in almost all their APKBUILDs, so we should do it the
same way. [skip ci].
2018-12-31 08:55:09 +01:00
Oliver Smith
14cf39a836
cross/gcc6-{aarch64,armhf}: regenerate with pmbootstrap
Run 'pmbootstrap aportgen gcc6-aarch64 gcc6-armhf' again and commit
the resulting changes, as these packages are meant to be always
auto-generated and therefore in sync with main/gcc6.

This changes the pkgver to 9999, as it was required in main/gcc6 to
avoid conflicts with Alpine's gcc6 package.
2018-12-31 08:45:39 +01:00
Grant Miller
74941fe0d4
Add cross/{binutils,busybox-static,gcc,gcc6,musl}-armv7 (!110)
Generated with:
$ pmbootstrap aportgen binutils-armv7 busybox-static-armv7 gcc-armv7 \
  gcc7-armv7 musl-armv7

[skip ci]
2018-12-22 23:25:26 +01:00
Oliver Smith
15ff816233
cross/binutils-*, cross/musl-*: add armv7
Regenerate these aports, so the test case does not complain anymore
that they are outdated. Adds armv7 to the arch lines, as that is the
aportgen change which was done in pmbootstrap!1730.
2018-12-22 09:29:47 +01:00
Oliver Smith
017376be29
cross/busybox-static-*: update to 1.29.3-r4 2018-12-10 07:45:05 +01:00
Oliver Smith
ffee5d6a4a
cross/busybox-static-*: update to 1.29.3-r3 2018-11-27 07:47:11 +01:00
Oliver Smith
1358b1a91d
cross/gcc-*: update to upstream (8.2.0-r1) 2018-11-27 07:47:11 +01:00
Oliver Smith
80a704e1c6
cross/binutils-*: regenerate aports (update src url)
Download URL was changed from HTTP to HTTPS in Alpine's binutils
aport. Adjust our automatically generated binutils-* aports.
2018-11-27 07:47:11 +01:00
Oliver Smith
2f125587fe
cross/busybox-static-*: update to 1.29.3-r2 2018-11-27 07:47:11 +01:00
Oliver Smith
70a3d3b9d5
cross/*-x86_64: remove aports
These can be manually generated when one really wants to cross compile
from arm to x86_64. Usually this is not needed, so let's save the
compile time. [skip ci]
2018-11-27 07:47:11 +01:00
Oliver Smith
2e7437825b
cross/gcc*: set arch to x86_64 only
This covers most use cases and saves a lot of build time. Can be
changed on demand. Again, this simplifies package building as part of
the new build infrastructure effort. [skip ci]
2018-11-27 07:47:11 +01:00
Oliver Smith
61489b8367
cross/busybox-static-*: update to 1.29.3-r1 2018-11-27 07:47:11 +01:00
Oliver Smith
dd17dc5c06
*/gcc6*: properly regenerate aports with aportgen
I did it manually in the previous commit and replaced the wrong for
loop in gcc6-armhf. [skip ci]
2018-11-27 07:47:11 +01:00
Oliver Smith
1b78e64748
*/gcc6*: add symlinks for all binutils [skip ci]
I thought only having specific symlinks was enough, and it was for one
kernel. However, to make sure it works with all kernels, let's just add
symlinks for all the binutils.
2018-11-27 07:47:11 +01:00
Oliver Smith
7e89296ab4
*/gcc6*: bump pkgrel [skip ci] 2018-11-27 07:47:11 +01:00
Oliver Smith
4dbef543cd
*/gcc6*: add objdump symlink [skip ci]
Without this symlink, lots of messages like this one appear while
compiling kernels:

/bin/sh: gcc6-armv6-alpine-linux-muslgnueabihf-objdump: not found
2018-11-27 07:47:11 +01:00
Oliver Smith
1ffa59d892
cross/gcc-*, cross/gcc6-*: regenerate [skip ci]
GCC6 cross compiler packages, based on the latest pmbootstrap
aportgen code. Related: #103
2018-11-27 07:47:11 +01:00
Oliver Smith
479055e896
cross/busybox-*: update to 1.29.3-r0 2018-11-27 07:47:11 +01:00
Oliver Smith
56f1e0c10f
cross/gcc-*: upgrade to gcc 8.2.0 [skip ci]
Skipping CI, because it would probably not finish building all of them.
Major breakage incoming. Details discussed here:
<https://gitlab.com/postmarketOS/pmaports/issues/103>
2018-11-27 07:47:11 +01:00
Oliver Smith
022240425a
cross/binutils-*: update to 2.31.1-r1 (+ patches)
I've missed the patch files in the previous commit, my bad.

This reverts commit 71ffb78557d34408286681d03e41dc612c0b63e1.
2018-11-27 07:47:11 +01:00
Oliver Smith
17ba355220
cross/binutils-*: update to 2.31.1-r1 2018-11-27 07:47:11 +01:00
Daniele Debernardi
bbc4b6bbfe
cross/musl-armhf cross/musl-aarch64 cross/musl-x86_64: Update aports to 1.1.20-r2 2018-09-21 23:00:59 +02:00
Martijn Braam
23ba0dd94c cross/musl-x86_64: Update aports to 1.1.20-r0 2018-09-08 01:02:15 +02:00
Martijn Braam
c4132e6e37 cross/musl-armhf cross/musl-aarch64: Update aports to 1.1.20-r0 2018-09-08 00:57:53 +02:00
Oliver Smith
cf979e773a cross/binutils-*: update to upstream (2.31.1-r0) 2018-08-22 23:46:33 +02:00
Martijn Braam
feae03d4f1 aports: Updated busybox-static-aarch64 to 1.28.4-r2 for upstream compatability 2018-08-13 02:23:00 +02:00
Martijn Braam
da07c7ff06 aports: Updated busybox-static to 1.28.4-r2 for upstream compatability 2018-08-12 22:07:17 +02:00
Oliver Smith
0e65b1bff8 pmb: qemu-user-static from aport, not from Debian
Overview:
In order to execute foreign arch binaries on the host system, we are
using the Linux kernel's binfmt_misc feature in combination with
static builds of QEMU. Before this patch, the statically compiled
QEMU binaries were taken from Debian (mostly because I did not realize
that Alpine ships them as well). Now we can use the ones from the aport.

Benefits:
This allows us to easily update and patch the QEMU executables, we
don't need to be in sync with Debian's versions anymore.

Alpine's package is more modular, so we can save some download,
install, zap time, as well as disk space: setting up an armhf chroot
with pmbootstrap took ~102 MB before, now it's ~18 MB.

Detailed changes:
* Remove `cross/qemu-user-static-repack` aport
* Add `data/qemu-user-binfmt.txt` with the binfmt_misc flags for ELF
  binaries of various arches (extracted from Debian's packaging)
* When parsing that file, don't write verbose messages to
  `pmbootstrap log` anymore, only to the verbose log (can be enabled
  with `pmbootstrap -v`)
* Rename `pmb.parse.arch.alpine_to_debian()` to ...`alpine_to_qemu()`
* Rename `arch_debian` to `arch_qemu`
2018-08-10 15:11:21 +00:00
Oliver Smith
c6c8172efa cross/busybox-static-*: update to 1.28.4-r1 2018-07-22 23:17:19 +02:00
Oliver Smith
6ea553a178 cross/musl-*: update to 1.1.19-r10 2018-06-20 00:59:31 +02:00
Oliver Smith
9acbdf3175 cross/musl: update to 1.1.19-r9 2018-06-16 07:25:51 +02:00
Oliver Smith
df7ad599f1 cross/binutils-*: update to 2.30-r5 2018-06-13 02:07:07 +02:00
Oliver Smith
c4c135251a cross/binutils-*: update to 2.30-r4 2018-06-07 08:00:36 +02:00
Oliver Smith
39d62928cb cross/busybox-static-*: update to 1.28.4-r0 2018-05-30 23:44:35 +02:00
Oliver Smith
8e0f2aa4c5 cross/busybox-static-*: update to 1.28.3-r1 2018-05-28 23:51:35 +02:00
Oliver Smith
392318c1b8 cross/musl-*: update to upstream (1.1.19-r8) 2018-05-25 00:36:04 +02:00
Oliver Smith
1ed23588a3 cross/binutils-*: update to 2.30-r2 2018-05-20 20:39:56 +02:00
Oliver Smith
d20a4806d9 cross/busybox-static-*: update to 1.28.3-r0 2018-05-14 23:46:37 +02:00
Oliver Smith
a6d89192ce gcc-*: fix compiling in strict mode [skip ci] (#1468)
Due to changes in abuild, our `gcc-armhf` etc. packages did not build
when using strict mode (i.e. `pmbootstrap build --strict gcc-armhf`)
anymore.

Changes:
* Set `CBUILDDIR=/`, so apk can read a valid package index from there
* Directly set `_cross_configure`, so it does not use CBUILDDIR anymore
* Set `BOOTSTRAP="nobuildbase"` to prevent apk from installing
  `build-base-armhf` etc. (these don't exist in pmOS)
* Remove legacy code for lazy reproducible builds that wrapped
  `package()`
2018-05-13 18:30:02 +00:00
Oliver Smith
ce8475d6aa cross/binutils-*: update to upstream (2.30-r1) 2018-05-08 01:41:27 +02:00
Oliver Smith
c5f689d154 gcc-*: fix download URLs
Fix inherited from upstream by running 'pmbootstrap aportgen gcc-...'
again.
2018-05-06 11:36:37 +02:00
Oliver Smith
eb709f2450 Update binutils-* to upstream (2.30-r0) 2018-05-03 21:14:30 +02:00
Martijn Braam
471391afb8 Updated gcc-armhf, gcc-aarch64 and gcc-x86_64 to r8 (#1456) 2018-05-01 15:17:32 +02:00
Oliver Smith
97f94c593e Update musl-* to upstream (1.1.19-r7) 2018-04-11 23:45:58 +02:00
Oliver Smith
386dec5c1a Update musl-* to upstream (1.1.19-r6) 2018-04-10 22:18:07 +02:00
Decatf
eb6b3d22fe Update busybox-static-* to upstream (1.28.2-r3) (#1387) 2018-04-02 23:33:34 +02:00
Oliver Smith
eedbcf05d3 musl-*: use default Alpine mirror
Otherwise the test/test_aportgen.py case fails.
2018-03-31 20:46:39 +02:00
Oliver Smith
da846f1441 Update musl-* to upstream (1.1.19-r4) 2018-03-31 17:27:49 +02:00
Oliver Smith
25b2af90c7 Update musl-* to upstream (1.1.19-r3) 2018-03-30 23:46:45 +02:00
Oliver Smith
3ff97e906c Update busybox-static-* to upstream (1.28.2-r1) 2018-03-30 18:48:51 +02:00
Oliver Smith
e6f9e31426 Update musl-* to upstream (1.1.19-r2) 2018-03-30 18:07:04 +02:00
Oliver Smith
c300dde6a4 Update busybox-static-* to upstream (1.28.2-r0) 2018-03-28 19:35:33 +02:00
Oliver Smith
afa759414d Update busybox-static-* to upstream (1.28.1-r1) 2018-03-24 12:16:23 +01:00
Oliver Smith
d2dda897da Update busybox-static-* to upstream (1.28.1-r0) 2018-03-11 15:06:27 +01:00
Oliver Smith
fcc96b0f2d Update musl-* to upstream (1.1.19-r1) 2018-03-07 23:33:47 +01:00
Oliver Smith
7581bc0858 Update gcc-* to upstream: 6.4.0-r7 2018-02-27 23:24:21 +01:00
Oliver Smith
6fb1fd4f97 Update musl-* to upstream (1.1.19-r0) 2018-02-22 23:44:37 +01:00
Oliver Smith
e80811fa0b Bump musl-* to upstream (1.1.18-r8) 2018-02-21 19:46:06 +01:00
Oliver Smith
4b71aa8525 Update musl-* to upstream (1.1.18-r7) 2018-02-10 19:07:17 +01:00
Oliver Smith
a224919712 Update musl-* to upstream (1.1.18-r6) 2018-02-03 11:58:04 +01:00
Oliver Smith
163564f0e6 Update busybox-static-* to upstream (1.27.2-r8) 2018-01-29 20:01:24 +01:00
Daniele Debernardi
1eb6b7cbd7 Allow to build musl/binutils/gcc for x86 architecture (#1150) 2018-01-23 00:26:33 +00:00
Oliver Smith
017f0b4c3e Don't compile cross-compiler packages for the host arch
Example: Building gcc-armhf for armhf does not make sense, so this
commit changes arch="all" to arch="aarch64 x86_64". This helps to
simplify the repository scripts (#970).
2018-01-20 19:17:23 +01:00
Daniele Debernardi
de21e03333 Add qemu-user-static-repack all architectures (#1136)
Also don't build "-repack" packages in native chroot anymore.
This was a legacy hack, which has no use anymore, and it prevented
the package from being built for different architectures.
2018-01-19 21:30:16 +00:00
Daniele Debernardi
efc7fc9c57 Add musl/binutils/gcc for cross-compiling to x86_64 (#1130) 2018-01-18 21:48:04 +00:00
Oliver Smith
5f24a4447d Update musl-* to upstream (1.1.18-r5) 2018-01-06 15:37:50 +01:00
Oliver Smith
26304f0ef4 Update gcc-* to upstream 6.4.0-r6 2017-12-26 16:37:21 +01:00
Oliver Smith
672f15b68b Update musl-* to upstream (1.1.18-r3) 2017-12-21 17:55:26 +01:00
Oliver Smith
7589ce632a ccache: Fix for distcc cross-compiling / various improvements (#1026)
* ccache: Fix for distcc cross-compiling / various improvements

* Make ccache work when cross-compiling with distcc (fix #716)
* Allow to configure the ccache size in "pmbootstrap init"
* Moved ccache stats code from pmb/build/other.py to
  pmb/helpers/frontend.py
* Grouped job count, ccache size and timestamp based rebuilds
  together to "build options" and allow to skip them
* Sorted config options that had to be modified anyway
  alphabetically

* Improve comment in arch-bin-masquerade APKBUILD
2017-12-21 16:42:29 +00:00
Oliver Smith
157ecd3d67 Update busybox-static-* to upstream (1.27.2-r7) 2017-12-16 01:12:58 +01:00
Anton Lazarev
15c4e9f725 update qemu-user-static-repack (#1006) 2017-12-14 20:35:36 +00:00
Oliver Smith
d93180dbef Update busybox-static-* to upstream (1.27.2-r6) 2017-11-29 00:28:11 +01:00
Oliver Smith
534a7e1b5d Update binutils-* to upstream (2.28-r3) 2017-11-27 21:40:38 +01:00
Oliver Smith
3a92a1927a Update busybox-static-* to upstream (1.27.2-r4) 2017-11-27 21:36:38 +01:00
Oliver Smith
2eeee445b9 Update musl-* to upstream (1.1.18-r2) 2017-11-22 23:07:50 +01:00
drebrez
a95ce42a81 Update musl-* to upstream (1.1.18-r0) (#873) 2017-11-04 19:50:48 +01:00
JBB
1ecdae5ee4 Fix: #842: qemu-user-static-repack download URL didn't work (#844) 2017-10-29 14:00:02 +00:00
ajakk
1237ef25f7 Update aports for busybox-static-* (to 1.27.2-r3) (#837) 2017-10-28 19:28:28 +00:00
Oliver Smith
ffc361b821 Update musl-* to upstream (1.1.17-r2) (Fix #838) 2017-10-28 21:15:56 +02:00
Oliver Smith
e454709328 Update busybox-static-* to upstream (1.27.2-r2) 2017-10-21 15:54:19 +02:00
Oliver Smith
2e9c8a4cf7 Update musl-* to upstream (1.1.17) 2017-10-20 16:22:17 +02:00
Pablo Castellano
34de4c899f Update musl-* to upstream (#748) 2017-10-12 17:53:39 +02:00
Pablo Castellano
b8d61323f8 qemu-user-static-repack: fix download url (#728) (#730) 2017-10-09 15:33:56 +02:00
Pablo Castellano
dbbdf7cfa4 Fix #436: Clean apkbuilds (#692)
* Remove empty build() functions
* Remove obsolete '|| return 1' statements
2017-10-04 15:05:00 +00:00
Martijn Braam
4b67d15535 Update musl from upstream (#617) 2017-09-23 00:48:07 +00:00
Oliver Smith
986da4a8c2 Update musl-* to upstream 2017-08-31 01:14:08 +02:00
Oliver Smith
1198390ece Update musl-* to upstream 2017-08-26 12:47:56 +02:00
Oliver Smith
ab9dc62370 Update gcc-armhf and gcc-aarch64 to upstream 2017-08-24 23:15:14 +02:00
Oliver Smith
a65e7d034b Make gcc-aarch64 reproducible (#366)
This fixes https://github.com/postmarketOS/binary-package-repo/issues/1

GCC generates hardlinks between files `A` and `B` in its `make install` step. The problem is, that `tar` randomly packages `A` as full binary, and links `B` to `A`, or the other way around! I was able to reproduce this issue consistently when re-building `gcc-aarch64` on Travis CI (interestingly, this did not appear for `gcc-armhf`).

The fix is, to delete `B` and create a symlink `B` that points to `A` instead.
2017-08-12 14:06:02 +00:00
Oliver Smith
3e6631e1d3 Update busybox-static-* to upstream 2017-08-10 00:52:28 +02:00
Oliver Smith
79654e8e5e Fix: gcc-armhf not reproducible (#64) (#333)
libstdc++.a from gcc-armhf was not reproducible on Travis (it was, when built locally!). These .a files are just archives of object files .o, and in this case it was caused by a random order of the .o files in the archive.

This PR patches the package() function of the APKBUILD when running pmbootstrap aportgen gcc-armhf (same for aarch64 of course), to extract all .a files, and repack them to be reproducible (by sorting the files before packing them).

As usually, we can still inherit everything from the upstream gcc aport from Alpine, and apply our changes on top of that.

Travis without the patch:
https://api.travis-ci.org/jobs/260402679/log.txt?deansi=true

> CHALLENGE FAILED for usr/armv6-alpine-linux-muslgnueabihf/lib/libstdc++.a:File 'usr/armv6-alpine-linux-muslgnueabihf/lib/libstdc++.a' is different!

Travis with the patch (I've instructed Travis to run off this branch to test it):
https://api.travis-ci.org/jobs/260806203/log.txt?deansi=true

> Done. Your build exited with 0.
2017-08-04 20:38:27 +00:00
Oliver Smith
28b710c5ec Update busybox-static-* to upstream 2017-08-04 01:39:03 +02:00
Oliver Smith
94055072d4 Update busybox-static-* to upstream 2017-08-03 02:22:28 +02:00
Pablo Castellano
13eac29c0c Update musl-* to 1.1.16-r17 (#320) 2017-08-02 11:22:40 +00:00
Oliver Smith
8234cc5f2b Move two cross-packages to the cross folder 2017-07-29 01:35:53 +02:00
Oliver Smith
3e140ea690 Close #194: Aports subfolders! See migration guide in the wiki (#227)
Migration guide:
https://github.com/postmarketOS/pmbootstrap/wiki/Migration-to-aports-subfolders
2017-07-28 22:34:40 +00:00