Jump to content

Repository maintenance: Difference between revisions

From postmarketOS Wiki
Fixing upstream incompatibilities with Alpine's repository: add "git diff --name-only" at the end, it's quite useful to see what changed
update to gitlab.postmarketos.org
 
(6 intermediate revisions by 4 users not shown)
Line 24: Line 24:
git -C ~/code/pmbootstrap checkout master
git -C ~/code/pmbootstrap checkout master
git -C ~/code/pmbootstrap/aports checkout master
git -C ~/code/pmbootstrap/aports checkout master
git -C ~/.local/var/pmbootstrap/cache_git/aports_upstream pull


pmbootstrap --mirror-alpine="$mirror" -y zap
pmbootstrap --mirror-alpine="$mirror" -y zap
pmbootstrap --mirror-alpine="$mirror" \
    chroot --add=git --user -- git -C /mnt/pmbootstrap-git/aports_upstream pull
pmbootstrap --mirror-alpine="$mirror" pkgrel_bump --auto
pmbootstrap --mirror-alpine="$mirror" pkgrel_bump --auto
pmbootstrap --mirror-alpine="$mirror" aportgen \
pmbootstrap --mirror-alpine="$mirror" aportgen \
    binutils-armhf binutils-aarch64 binutils-armv7 \
     busybox-static-armhf busybox-static-aarch64 busybox-static-armv7 \
     busybox-static-armhf busybox-static-aarch64 busybox-static-armv7 \
     gcc6-armhf gcc6-aarch64 gcc6-armv7 \
     gcc6-armhf gcc6-aarch64 gcc6-armv7 \
     gcc-armhf gcc-aarch64 gcc-armv7 \
     gcc-armhf gcc-aarch64 gcc-armv7 \
     musl-armhf musl-aarch64 musl-armv7
     musl-armhf musl-aarch64 musl-armv7 \
    grub-efi-x86


cd ~/code/pmbootstrap/aports
cd ~/code/pmbootstrap/aports
Line 43: Line 42:
== See also ==
== See also ==
* [[Merge_Workflow#Merge_on_command_line|How to merge git commits on the command line]]
* [[Merge_Workflow#Merge_on_command_line|How to merge git commits on the command line]]
* [https://github.com/postmarketOS/pmOS-repo-scripts pmOS-repo-scripts]
* [https://gitlab.postmarketos.org/postmarketOS/pmOS-repo-scripts pmOS-repo-scripts]
* {{github|1458}} Fixing the repo after QT upgrade to 5.10.1
* {{issue|1458}} Fixing the repo after QT upgrade to 5.10.1
* [[Add a new architecture to postmarketOS]]
* [[Add a new architecture to postmarketOS]]

Latest revision as of 06:58, 3 November 2024

This page is about maintaining the official binary package repository of postmarketOS. It does not relate to the local package repository that pmbootstrap creates when compiling packages. So most people will not need this.

Qt upgrade

There are KDE packages, which need to be rebuilt after each Qt upgrade:

$ pmbootstrap pkgrel_bump kwayland kwin plasma-framework kdeclarative

See pmaports#130 for an idea to automatize this and for more information.

Fixing upstream incompatibilities with Alpine's repository

The following script checks out the master branch of pmbootstrap and pmaports, automatically bumps the pkgrels that need to be bumped because of soname bumps, and regenerates all aports that are based on Alpine's aports. Finally it executes the upstream compatibility test case again, which should run through again with the changes it made.

After the script ran, manually check the diff in the pmaports.git repository. Then make reasonable patches and commit messages from the changes.

#!/bin/sh -ex

# make sure we don't get an outdated mirror
mirror="http://dl-cdn.alpinelinux.org/alpine/"

git -C ~/code/pmbootstrap checkout master
git -C ~/code/pmbootstrap/aports checkout master
git -C ~/.local/var/pmbootstrap/cache_git/aports_upstream pull

pmbootstrap --mirror-alpine="$mirror" -y zap
pmbootstrap --mirror-alpine="$mirror" pkgrel_bump --auto
pmbootstrap --mirror-alpine="$mirror" aportgen \
    busybox-static-armhf busybox-static-aarch64 busybox-static-armv7 \
    gcc6-armhf gcc6-aarch64 gcc6-armv7 \
    gcc-armhf gcc-aarch64 gcc-armv7 \
    musl-armhf musl-aarch64 musl-armv7 \
    grub-efi-x86

cd ~/code/pmbootstrap/aports
pytest .gitlab-ci/testcases/test_upstream_compatibility.py
git diff --name-only

See also