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

postmarketOS / pmbootstrap
79%
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/1272-aportgen-handle-old-git-checkout
branch: fix/1272-aportgen-handle-old-git-checkout
CHANGE BRANCH
x
Reset
  • fix/1272-aportgen-handle-old-git-checkout
  • 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/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/smarter-build-arch-autodetect
  • 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
4299

push

travis-ci

ollieparanoid
aportgen: Gracefully handle old aports_upstream

In order to get cross-compilers, we generate a few aports (e.g.
binutils-armhf, gcc-armhf) automatically from Alpine's aports.
pmbootstrap was already able to perform a git checkout of Alpine's
aports repository. But it needed to be manually updated. Otherwise
the `pmbootstrap aportgen` command could actually downgrade the aport
instead of updating it to the current version.

After thinking about adding a dedicated pmbootstrap command for
updating git repositories, I thought it would be better to not open
that can of worms (pmbootstrap as general git wrapper? no thanks).

The solution implemented here compares the upstream aport version of
the git checkout of a certain package (e.g. gcc for gcc-armhf) with the
version in Alpine's binary package APKINDEX. When the aport version is
lower than the binary package version, it shows the user how to update
the git repository with just one command:

    pmbootstrap chroot --add=git --user -- \
        git -C /mnt/pmbootstrap-git/aports_upstream pull

Changes:
* `pmb.aportgen.core.get_upstream_aport()`: new function, that returns
  the absolute path to the upstream aport on disk, after checking the
  version of the aport against the binary package.
* Use that new function in pmb.aportgen.gcc and pmb.aportgen.binutils
* New function `pmb.helpers.repo.alpine_apkindex_path()`: updates the
  APKINDEX if necessary and returns the absolute path to the APKINDEX.
  This code was basically present already, but not as function, so now
  we have a bit less overhead there.
* `pmbootstrap chroot`: new `--user` argument
* `pmb.parse.apkbuild`: make pkgname check optional, as it fails with
  the official gcc APKBUILD before we modify it (the current APKBUILD
  parser is not meant to be perfect, as this would require a full shell
  parsing implementation).
* Extended `test_aportgen.py` and enabled it by default in
  `testcases_fast.sh`.  Previously it was disabled due to traffi... (continued)

3093 of 3931 relevant lines covered (78.68%)

0.79 hits per line

Relevant lines Covered
Build:
Build:
3931 RELEVANT LINES 3093 COVERED LINES
0.79 HITS PER LINE
Source Files on fix/1272-aportgen-handle-old-git-checkout
  • 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
4299 fix/1272-aportgen-handle-old-git-checkout aportgen: Gracefully handle old aports_upstream In order to get cross-compilers, we generate a few aports (e.g. binutils-armhf, gcc-armhf) automatically from Alpine's aports. pmbootstrap was already able to perform a git checkout of Alpine's apor... push 04 Mar 2018 02:10PM 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