• 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/1379-pkgrel_bump-subpackages
branch: fix/1379-pkgrel_bump-subpackages
CHANGE BRANCH
x
Reset
  • fix/1379-pkgrel_bump-subpackages
  • 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/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
4623

push

travis-ci

ollieparanoid
"pkgrel_bump --auto": Handle subpackages properly

`pmbootstrap pkgrel_bump --auto` automatically increases the pkgrel for
packages linking against libraries, which don't exist anymore (because
the soname has been changed). The feature is explained in detail in

The previous implementation did not detect soname breakage, when a
subpackage linked against a certain library, but the main package
did not (e.g. `qt5-qtbase-mysql` and `qt5-qtbase`). This was, because
we iterated over the aports/* to find the packages to be checked.

To fix this, we are iterating over the packages found in the APKINDEX
files instead (of both the locally compiled packages and the downloaded
index from the pmOS mirror).

Details:
* `pmb/helpers/pkgrel_bump.py`:
  * Rewrite `auto_apkindex_package()` to act upon a given parsed
    `aport` and `apk` (from the index) instead of finding the `apk`
    dict by itself (we need it earlier anyway).
  * Rewrite `auto()` to iterate over APKINDEX files instead of aports
    * Skip packages already found, so the `pkgrel` does not get
      increased multiple times when the same package was found in
      multipe index files.
* Put the package name at the beginning of the log messages to make
  them more readable
* testdata: Create a new `testsubpkg` aport, where only the subpackage
  links against `testlib`
* Adjust testing code to test everything with `testsubpkg` as well.

NOTE: This makes the command a bit slower, but we could improve
performance again by smart caching of `pmb.parse.apkindex.depends()`.
This could come in a future PR, the important part here is that the
command is bug-free again with this fix.

3207 of 4049 relevant lines covered (79.2%)

0.79 hits per line

Relevant lines Covered
Build:
Build:
4049 RELEVANT LINES 3207 COVERED LINES
0.79 HITS PER LINE
Source Files on fix/1379-pkgrel_bump-subpackages
  • 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
4623 fix/1379-pkgrel_bump-subpackages "pkgrel_bump --auto": Handle subpackages properly `pmbootstrap pkgrel_bump --auto` automatically increases the pkgrel for packages linking against libraries, which don't exist anymore (because the soname has been changed). The feature is explaine... push 02 Apr 2018 11:51PM 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