• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

postmarketOS / pmbootstrap
76%
master: 79%

Build:
Build:
LAST BUILD BRANCH: feature/chroot-buildroot-architecture
DEFAULT BRANCH: master
Repo Added 24 Oct 2017 04:26PM UTC
Files 392
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH fix/smarter-build-arch-autodetect
branch: fix/smarter-build-arch-autodetect
CHANGE BRANCH
x
Reset
  • fix/smarter-build-arch-autodetect
  • 0.3.0
  • 0.4.0
  • 0.5.0
  • 0.6.0
  • bshah/calls-hammerhead
  • check-dtbtool-qcdt
  • default-bootimg-qcdt
  • device-asus-tf300t
  • device-jolla-sbj
  • device-lg-bullhead
  • device-samsung-g930f
  • device/huawei-y530-cleanup
  • device/kernel-APKBUILD-cleanup
  • device/lg-mako
  • device/motorola-maserati
  • device/raspberry-pi
  • device/samsung-i9070-fix
  • device/samsung-i9070-mesa-subpackage
  • device/samsung-klte
  • device/samsung-klte-mainline
  • device/samsung-maguro
  • device/samsung-maguro-firmware
  • device/wiko-lenny3
  • deviceinfo_parse
  • drebrez-patch-1
  • falkon-disable-checks
  • feature/1013-depend-on-mesa-dri-swrast
  • feature/1041-kernel-local-git-repo
  • feature/1049-split-install
  • feature/1065-disallow-running-as-root
  • feature/1175-tmpfs-in-chroot-dev-folder
  • feature/1241-zap-m-delete-old-pkgs-too
  • feature/1263-init-choose-kernel
  • feature/453-qmu-virtio
  • feature/574_swap_file
  • feature/756-make-proprietary-software-optional
  • feature/865-check-APKBUILD-line-endings
  • feature/anbox
  • feature/apk-file
  • feature/aportgen-linux-output-dir
  • feature/better-depends-error
  • feature/binutils_gcc_musl_x86
  • feature/bullhead-osk-sdl
  • feature/charging-sdl
  • feature/chroot-buildroot-architecture
  • feature/config-init-ccache-size
  • feature/coveralls
  • feature/debug-shell
  • feature/debug-shell-fbdebug
  • feature/delete_old_packages
  • feature/devicepkg-generate-udev-rules
  • feature/enable-binary-repository
  • feature/enable_distcc_for_repack
  • feature/envkernel.sh
  • feature/fbdebug
  • feature/flash_method_none
  • feature/flasher-fastboot-vendor-id
  • feature/flasher-flash-rootfs-instead-of-system
  • feature/grouper_add_osk_config
  • feature/hybris
  • feature/implement_gitlab_ci
  • feature/improved-pmbootstrap-init
  • feature/init-create-device-linux-aport
  • feature/initramfs-debug-shell-files
  • feature/kconfig-check-config-pft
  • feature/libhybris
  • feature/linux-postmarketos-hammerhead-the-2nd
  • feature/matchbox-keyboard
  • feature/msm-refresher-initfs-hook
  • feature/n900-swiss-german-keyboard
  • feature/networkmanager
  • feature/nheko
  • feature/nonfree-optional-part2
  • feature/only-download-necessary-apkindex-files
  • feature/ordered_ui_selection
  • feature/parse_bootimg
  • feature/phosh
  • feature/pmbootstrap-log-msg-not-in-logfile
  • feature/pmbootstrap-timeout
  • feature/postmarketos-ui-i3
  • feature/postmarketos-ui-mate
  • feature/qemu-running-processes
  • feature/qemu-user-static-repack-all-arch
  • feature/raspberry-pi-no-dhcpcd
  • feature/readme-remove-telnet-unlock
  • feature/readme-update
  • feature/recovery-chroot
  • feature/remove-werror-in-kbuild
  • feature/set-hostname
  • feature/test-upstream-compatibility-for-aportgen-packages
  • feature/travis-device-documentation-check
  • feature/travis-find-changemes
  • feature/travis-output-folding
  • feature/ui-mate-pmos-wallpaper
  • feature/ui-weston-pmos-wallpaper
  • feature/wireguard
  • feature/wrap-newapkbuild
  • feature/x86_64_cross_compilation
  • feature/x86_support
  • feature/xfce4-improvements
  • firmware-adreno-4xx
  • fix/1017-qemu-arm
  • fix/1033-disable-v4l-properly
  • fix/1061-strict-depend-native-cross
  • fix/1066-permisson-error-bootimg
  • fix/1071-shadow-su-wrong-path
  • fix/1072-rm-rf-tempdir-odin
  • fix/1122-pmbootstrap-picks-wrong-so-provider
  • fix/1128-require-valid-device-for-testsuite
  • fix/1144-version-validation-corner-case
  • fix/1186-device-has-pmbootstrap-repo
  • fix/1212-all-depends-marked-as-explicitly-installed
  • fix/1220-build-resolve-provides
  • fix/1272-aportgen-handle-old-git-checkout
  • fix/1273-missing-key-timestamp
  • fix/1287-can-only-concatenate-list
  • fix/1298-make-copied-aport-world-readable
  • fix/1302-newapkbuild-argparse
  • fix/1344-resolver-fuzzy-versions
  • fix/1351-dependency-resolver-hangs
  • fix/1353-init-ask-ssh-keys
  • fix/1364-ext4-metadata-csum
  • fix/1379-pkgrel_bump-subpackages
  • fix/1405-initfs-hook-ls-output
  • fix/1431-user-not-in-video-group
  • fix/1444-binfmt-misc-check
  • fix/1458-gcc-armhf-strict
  • fix/1551-pmbootstrap-kconfig-edit
  • fix/312-mkinitfs-fail-on-missing-depends
  • fix/672-qemu-amd64-xfce4-broken
  • fix/700_rx51_udev_trigger
  • fix/716-ccache-distcc
  • fix/722-install-fails-on-fedora
  • fix/818_clear_repo_list_after_zap
  • fix/831-check-if-work-is-inside-pmbootstrap-folder
  • fix/839-check-pkgvers
  • fix/839-invalid-pkgvers
  • fix/869-resize-qemu-partition
  • fix/893-handle-soname-bumps
  • fix/897_fastboot_max_filesize
  • fix/928-no-space-left
  • fix/941-refactor-cleanup
  • fix/948-depends-recurse-forever
  • fix/949-check-if-work-folder-exists
  • fix/955-unwanted-rebuilds
  • fix/960-disable-root-login
  • fix/968-cache-built-packages-list
  • fix/abootimg_all_architectures
  • fix/apk-file-update
  • fix/build-is-necessary-default-arch
  • fix/build-src-foreign-arch
  • fix/choose-right-gtk2
  • fix/cleanup_networking
  • fix/device-pkgs-depend-on-pmos-base
  • fix/distfiles-permissions
  • fix/downloading-native-apkindex-twice
  • fix/dtbTool-version-detection
  • fix/flasher-depends
  • fix/ignore_vscode
  • fix/incorrect-package-metadata
  • fix/index-with-README
  • fix/initramfs-framebuffer-mode
  • fix/install-wrong-device-kernel
  • fix/kconfig-allow-devtmpfs-mount
  • fix/lingering_broken_cache_apk_symlink
  • fix/linux-pmos-mainline-makedepends
  • fix/linux-samsung-i9003-paranoid
  • fix/mdss-fb-hack
  • fix/menuconfig-arch
  • fix/missing-dev-nodes-after-shutdown
  • fix/move_flash_methods_variable
  • fix/musl-version
  • fix/odin-export-default-partitions
  • fix/odin-export-regression
  • fix/pmb-chroot-user-escaping
  • fix/pmbootstrap-zap-m
  • fix/qemu-flavor
  • fix/random-depends
  • fix/raspberry-pi-firmware
  • fix/readme-requirements
  • fix/recovery-copy-files
  • fix/recovery-fstab-regex
  • fix/recovery-tar-extract
  • fix/rx51_uboot_stable_kernel
  • fix/test-build-package-testcase
  • fix/travis-apk-progress-screwup
  • fix/travis-apkindex-not-found-messages
  • fix/travis-qemu-test-case
  • fix/unregister-all-binfmt-architectures
  • fix/xorg-on-hammerhead
  • flash-method-singular
  • fp2-firmware
  • init-manufacturer
  • kde-connect
  • kernel-updates
  • konsole-fix
  • martijnbraam/hammerhead-cleanup
  • martijnbraam/new-wallpaper
  • martijnbraam/postmarketos-qcom-networking
  • master
  • method-info
  • peruse-comic-book-reader-app
  • pmbootstrap-feature/756-move-firmware-folder
  • postmarketos-ui-luna
  • postmarketos-ui-plasma-mobile
  • qemu-kernel-flavors
  • recovery-single-logfile
  • refactor/pmb-build-package
  • refactor/remove-obsolete-challenge-code
  • remove/buildinfo
  • remove/temp-rpi-bootloader
  • remove/timestamp-based-rebuilds
  • titan-osk-sdl
  • titan-wifi-firmware
  • unicsy-2
  • update/linux-4.13.10
  • update/linux-4.13.11
  • update/linux-postmarketos-stable-4.14
  • update/linux-postmarketos-stable-4.14.2
  • update/linux-postmarketos-stable-4.14.9
  • update/linux-postmarketos-stable_4.13.12
  • update/osk-sdl
  • update/osk-sdl-0.51
  • workaround/1055-package-both-dtbtools
  • workaround/936-qemu-lts-kernel
  • workaround/aarch64-abuild-tar-qemu
  • workaround/qml-compile-for-armv7
  • workaround/weston-disable-rdp

pending completion
4239

push

travis-ci

ollieparanoid
Always prefer native/device arch when building

In case the user does not specify for which arch packages should be
built with `pmbootstrap build`, we detect it automatically.

Previous logic was, that if the APKBUILD's arch is "all" or "noarch",
then prefer the native arch, and otherwise use the first one in the
list of available arches.

New behavior is, that we also check if the list of possible arches
contains the native arch (and if that fails, the device arch). If that
is the case, we return the native/device arch instead of the first one
in the list.

\### Use case

The arch from `gcc-armhf` and similar packages (as generated by
`pmbootstrap aportgen`) used to be "all", but is nowadays a specific
list of arches. This means, that after updating the `gcc-armhf` and
`gcc-aarch64` packages, and calling `pmbootstrap build gcc-armhf`,
it will try to build `gcc-armhf` for `aarch64` instead of the native
architecture, because that is the first one listed.
And since compiling to `aarch64` requires `gcc-aarch64`, it will build
that for the native architecture first.

So you're asking for `gcc-armhf` and it compiles `gcc-aarch64`, which
is very confusing (see #1272).

2962 of 3892 relevant lines covered (76.1%)

0.76 hits per line

Relevant lines Covered
Build:
Build:
3892 RELEVANT LINES 2962 COVERED LINES
0.76 HITS PER LINE
Source Files on fix/smarter-build-arch-autodetect
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
4239 fix/smarter-build-arch-autodetect Always prefer native/device arch when building In case the user does not specify for which arch packages should be built with `pmbootstrap build`, we detect it automatically. Previous logic was, that if the APKBUILD's arch is "all" or "noarch", ... push 28 Feb 2018 10:08PM UTC ollieparanoid travis-ci pending completion  
See All Builds (1844)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc