Compare commits

..
808 Commits
Author SHA1 Message Date
Casey Connolly be4ef96662 main/postmarketos-base-ui-gnome: add gnome-software stub for Duranium
Phosh allows uninstalling apps by tap-holding the icon, in the
background this spawns gnome-software with --uninstall ID.

Since system apps can't be uninstalled, but the user may still want to
hide them, introduce a stub which installs a copy of the apps desktop
file into the users local applications directory and marks it as Hidden,
effectively disabling the app.

Use Zenity to offer a prompt and explain how apps can be re-enabled
later (unfortunately there's no nice UI for this).

Additionally let's just plumb this in to flatpak and invoke flatpak
uninstall in the background, this provides a nicer interface than simply
doing nothing.
2026-06-17 17:49:30 +02:00
Aster Boese 283ff28eff device-lenovo-21bx: add boot-deploy hook to remove EFI capsules file
Persisted_Captules.sh is huge (70 MB) and can cause boot-deploy failures
when doing transactions that do large modifications to `/boot/`, such as
switching kernel packages. Persisted_Capsules.sh is recreated on reboot
and we do not use it for anything currently, so it is safe to remove in a
hook.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8368>
2026-06-17 15:01:58 +00:00
Aster Boese f0b0dff385 device-lenovo-21bx: switch to mainline kernels
Adds support for the kernels in main (lts, mainline, stable) and removes
support for linux-postmarketos-qcom-laptop after discussion with the
kernel's maintainers, as it is most likely going to be dropped, or at
least moved to testing.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8368>
2026-06-17 15:01:58 +00:00
Yu Watanabe 7eb30fa6f2 systemd/systemd: drop unnecessary conditionalization for $source
The upstream mkosi build does not fetch source files. Hence, it is not
necessary to exclude the tar ball from $source.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8832>
2026-06-17 10:16:34 +00:00
Clayton Craft eb81a92aae systemd/systemd: upgrade to 261-rc4
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8832>
2026-06-17 10:16:34 +00:00
Oliver Smith aafecd66e7 device-apple-tonga: remove
Craftyguy: "we should really just drop apple-tonga, it's redundant with
'device-apple-mac-aarch64'"

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8683>
2026-06-17 09:07:14 +00:00
Bart Ribbers f5e350c0bd temp/plasma-bigscreen: remove
Moved upstream in https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/104116

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8841>
2026-06-17 08:54:06 +00:00
Clayton Craft 51b52fc2cc main/postmarketos-base-ui: revert flatpak hack
Flatpak 1.18 includes a proper fix[1] for #3816, so we can revert this
hack that delayed starting the helper until ntp was available. This also
means that boot will now be marked 'complete' in systemd before NTP is
up, which was a weird side-effect of this hack.

This reverts commit 96d714f167.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>

1. https://patch-diff.githubusercontent.com/raw/flatpak/flatpak/pull/6547.patch

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8487>
2026-06-17 09:58:58 +02:00
Clayton Craft b04820297c linux-postmarketos-asahi: upgrade to 7.0.12-1
This also adds a patch that was sent upstream to allow enabling dynamic
ftrace on aarch64 with CFI=y

https://lore.kernel.org/all/20260609-arm64-ftrace-direct-calls-v1-0-4a46f266697f@linux.dev/

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8837>
2026-06-16 16:37:14 -07:00
Clayton Craft 8be47c7a33 main/postmarketos-base-ui-gnome: move install= from subpkg funcs
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8831>
2026-06-16 18:22:10 +00:00
Clayton Craft 138a8c01c3 main/postmarketos-base-ui-gnome: add "app provider" subpkgs
This adds two new subpackages, one pulls in in gnome software and the
other pulls in bazaar. Both subpackages provide a new virtual
(gnome-app-provider), and the main base GNOME UI pkg now depends on
this virtual. This allows us to ship bazaar in Duranium instead of GNOME
Software, and to continue to use GNOME Software by default on mutable
pmOS.

 Previously there was an "optional" dependency on a sw
app provider (gnome-software, via pmb_recommends), but I made it a hard
dependency now because:

1) I think users can expect *some* app store thing to be available
by default, and the number of users who would remove all of them is
probably approaching 0

2) Ignoring pmb_recommends made the rest of this easier to implement,
since I'm not entirely sure how pmb would react to a virtual provided
by the pkg it is processing pmb_recommends for, and I didn't want to
find out.

Fixes #4634

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8831>
2026-06-16 18:22:10 +00:00
Ferass El Hafidi fe736c32ea main/postmarketos-bootsplash: switch back to plymouth-openrc-plugin
With the openrc plugins hanging issues fixed in OpenRC 0.63.2, we can
now make use of plymouth-openrc-plugin once again.

This partially reverts commit f13be0f6b7.

Signed-off-by: Ferass El Hafidi <funderscore@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8811>
2026-06-16 16:58:21 +00:00
v34びょう 8ebe73581c postmarketos-config-nftables: bump pkgrel and checksum
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8820>
2026-06-16 16:18:55 +00:00
v34びょう a24583b9e7 postmarketos-config-nftables: block qmapmux interfaces
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8820>
2026-06-16 16:18:55 +00:00
postmarketOS CI f621576f12 linux-next: upgrade to next-20260616 2026-06-16 15:39:35 +00:00
Oliver Smith 2f121a4d14 docs: integrate COMMITSTYLE
Make a symlink at docs/merge-requests/commitstyle.md that points at the
COMMITSTYLE.md file, so it is part of the documentation at
https://docs.postmarketos.org/pmaports/.

Tweak the headline and link to Alpine's COMMITSTYLE.md so it looks
better in the version rendered at docs.postmarketos.org.

Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8829>
2026-06-16 13:40:21 +00:00
Antoine Martin 2a902da452 device-pine64-pinenote: fix upgrade path for nonfree-firmware
Renames pre-upgrade script to post-upgrade script for non-freefirmware
subpackage.

This script creates stub files for where the waveform firmware should
be. When upgrading from 13-r0, the script detects files being there,
thus does not create the stub files. Unfortunately, since before
15-r0 those files are "owned" by the subpackage, they are removed
when upgrading, and thus the stub files are never created by the
pre-upgrade. By making this script post-upgrade, it'll recreate the
empty stub files so that the actual waveforms can be extracted by
the systemd / openrc boot-up service.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8827>
2026-06-16 13:26:39 +00:00
Oliver Smith 4084d06f7b docs: approval-rules: simplify for stable branches
Don't describe how MRs to stable branches are done here, link to the
other page instead. Otherwise the approval rules should be the same as
for stable branches from now on.

Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8812>
2026-06-16 13:30:02 +02:00
Oliver Smith 8d534ae3d6 docs: update merge-requests/stable-branches
* Describe relevant changes, especially that we may make non-backport
  changes if there is a patch release for a package that meanwhile has a
  higher version in main already (e.g. a kernel in main is on linux
  7.x.y while stable is on 6.18.z).

* Directly pushing to a stable branch should only be done during initial
  branch bringup, otherwise we shall always make MRs that go through CI.

* Update formatting and title of the page.

Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8812>
2026-06-16 13:30:01 +02:00
Oliver Smith d13bed7d56 docs: make headlines more consistent
Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8812>
2026-06-16 13:27:58 +02:00
Oliver Smith 5b69893122 docs: structure: move packaging related pages
Bring more structure into the docs by moving packaging related subpages
as well.

Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8812>
2026-06-16 13:27:25 +02:00
Oliver Smith ac931d4507 docs: structure: move merge-requests related pages
Add a new "merge requests" page and move all related pages under that
page to give the docs more structure.

Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8812>
2026-06-16 13:27:22 +02:00
Oliver Smith ae07d28bfb docs: structure: move CI related pages
Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8812>
2026-06-16 13:24:21 +02:00
Clayton Craft 5932b59857 main/postmarketos-duranium: remove app store plugin conflicts
These conflicts in the sysext-dev-tools subpkg were intended to prevent
app store plugins from being pulled into the system extension image
(where they would not work as expected and cause confusion.) They were
causing an issue with how packages are snapshot in the duranium build CI
by causing a conflict when it tried to resolve base and sysext package
lists together (so install_if packages were included). The conflict
was from:

error: apk add --simulate failed:
ERROR: unable to select packages:
  gnome-software-plugin-apk2-0.0.3-r1:
    breaks: postmarketos-duranium-sysext-dev-tools-11-r0[!gnome-software-plugin-apk2]
    satisfies: world[gnome-software-plugin-apk]

It's much simpler to just remove these conflicts and add these plugins
to the list of RemovedPackages in duranium's mkosi config so they are
purged before main image is finalized.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8761>
2026-06-16 06:40:02 +00:00
Clayton Craft c25a89d8f8 main/postmarketos-duranium: add waydroid sysext subpkg
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8761>
2026-06-16 06:40:02 +00:00
postmarketOS CI ba02a48358 linux-next: upgrade to next-20260615 2026-06-16 04:38:45 +00:00
Oliver Smith b2efdb7f64 issue-templates/Release_Infrastructure: update
* Note that several steps can already be done even if the community repo
  is not published yet in Alpine.
* Adjusting arches in .ci/build-jobs.yaml.j2 is not needed anymore, CI
  scripts read them from pmaports.cfg now.
* Branch protection: we have a v2*.* rule in place now that protects new
  release branches automatically, adjust wording to just double check if
  it still matches and add a link (in 2030 it will not match anymore.)
* channels.cfg: cover case that the aports branch may not exist yet in
  pre-branch phase.
* Use git commit -s in example commands.
* postmarketos-ui-asteroid currently doesn't exist anymore, so we don't
  need to delete it for stable.
* Add the command for regenerating cross packages.
* Remove postmarketos-repo-nightly in stable.
* Bootstrap of binary packages: tweak wording, mention that only the
  main repo needs to be built for x86_64 before arm repos can be
  enabled, we don't need to wait for the x86_64 systemd repo.
* Adjust to QEMU devices not being in main anymore.
* Various syntax fixes and readability improvements.

Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8815>
2026-06-15 19:23:56 +00:00
Oliver Smith ad05a1b83b docs/releases/timeline: add numbers before phases
Adjust the timeline docs and release infrastructure template to have
numbers before the phases. This makes clearer where the next phase
begins in the long infrastructure issue template.

Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8815>
2026-06-15 19:23:56 +00:00
Aster Boese 3e322e01a1 apple-idevice: fix APKBUILD formatting
Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8800>
2026-06-15 19:15:13 +00:00
Aster Boese 8615aac3af apple-idevice: depend on firmware-apple-idevice
Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8800>
2026-06-15 19:15:13 +00:00
Aster Boese 1ec34e426f firmware-apple-idevice: new package
Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8800>
2026-06-15 19:15:09 +00:00
Oliver Smith 484ac6f4d3 main/postmarketos-release-upgrade: upgrade to 1.12.1
Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8817>
2026-06-15 07:02:45 +00:00
Yu Watanabe 863cc44ac9 systemd/systemd: bump pkgrel
In the previous commits,
- enabled bootloader support on 32-bit architectures,
- fixed libpwquality dependency,
- enabled libarchive and zlib supports,
- enabled xen kexec support,
- enabled valgrind support,
- added systemd-tests subpackage,
- added upstream build support.

So, let's bump the pkgrel to make them take effects.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8718>
2026-06-15 13:42:43 +09:00
Yu Watanabe f432f70de9 systemd/systemd: add upstream mkosi build support
For https://github.com/systemd/systemd/pull/39823

The upstream systemd's mkosi build requires that systemd-boot and ukify
are also built from the upstream source files.

Also, mkosi needs to pass specific source and build directories,
override default meson options, and so on. To support them, this adds
several extra environment variables support:
- $_systemd_upstream,
- $_meson_extra_configure_options,
- $_meson_builddir,
- $_upstream_srcdir.

Note, postmarketOS image built with mkosi already enables usr-merge. Hence
several symlink paths are changed when $_systemd_upstream is set.

This should not change any behavior when the above environment variables
are _not_ set.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8718>
2026-06-15 13:42:43 +09:00
Yu Watanabe 0bc8f74905 systemd/systemd: enable bootloader support on 32-bit architecture
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8718>
2026-06-15 13:42:37 +09:00
Yu Watanabe 87c4c8c4e0 systemd/systemd: introduce systemd-tests subpackage
Then, we can run unit tests and integration tests on postmarketOS systems.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8718>
2026-06-15 12:08:49 +09:00
Yu Watanabe 6ba54d5a25 systemd/systemd: add valgrind support
Note, systemd uses `RUNNING_ON_VALGRIND` macro, hence when executables
are not running on valgrind, this should introduce any runtime behavior
differences.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8718>
2026-06-15 12:08:49 +09:00
Yu Watanabe 3de1007991 systemd/systemd: add xenctl support
Then, we can support xen kexec commends on reboot.
Note, this does not requires any runtime library.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8718>
2026-06-15 12:08:43 +09:00
Yu Watanabe f8dbf2b686 systemd/systemd: enable libarchive and zlib support
Then, people can use foo.tar.gz by systemd-import and friends.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8718>
2026-06-15 11:50:28 +09:00
Yu Watanabe d7af540929 systemd/systemd: fix libpwquality dependency
Without installing -dev package on build, libpwquality support is not
enabled.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8718>
2026-06-15 11:50:28 +09:00
Yu Watanabe 33f463cd23 systemd/systemd: gnu grep is required by test-kernel-install
test-kernel-install requires 'grep -G', which is not supported by
BusyBox grep.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8718>
2026-06-15 11:50:28 +09:00
Yu Watanabe 1be5715359 systemd/systemd: various trivial cleanups
- -Dsysvinit-path= has been deprecated,
- dropped stale comment,
- fix indent.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8718>
2026-06-15 11:50:19 +09:00
Sicelo A. Mhlongo 6d0ebc1731 device-nokia-n900: improve input-device-related configuration
1. Use udev's uaccess tag mechanism to permit unprivileged access to the
     gpio_keys input device which reports EV_SW events such as SW_KEYPAD_SLIDE.
     Thus the user can interact with the keypad slide switch under X11 without
     needing to be in the input group. Do the same for the power button, even
     though X11 can read it directly.
  2. Drop acpid and related configurations. This removes the dependency on user
     being in the input group.
  3. Switch to the logind SetBrightness API to control the keyboard LEDs
     without requiring elevated permissions. brightnessctl as packaged under
     Alpine currently depends on the user being in the input group to control
     LEDs.
  4. Improve the keyboard backlighting so it is more even, by setting higher values
     of brightness for the innermost keyboard backlight LEDs.
  5. Simplify the touchscreen calibration rules and merge with the rules for
     gpio_keys and power button.

Signed-off-By: Sicelo A. Mhlongo <absicsz@gmail.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8748>
2026-06-14 18:05:47 +00:00
Sicelo A. Mhlongo 47ffb9097e device-nokia-n900: switch sound card over to ucm2
Having switched card over to ucm2, drop alsactl restore hacks from /etc/local.d
and from the acpi configuration.

PS: Microphones not implemented yet.

Signed-off-By: Sicelo A. Mhlongo <absicsz@gmail.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8748>
2026-06-14 18:05:47 +00:00
Aster Boese 15eb62c214 cross/gcc-*: Upgrade to 15.2.0-r6
Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8814>
2026-06-14 16:53:59 +00:00
Neil Armstrong 83adba34fd linux-ayaneo-pocket-s2: install modules to /usr
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>

[ci:skip-kconfigcheck]: The kconfigcheck.toml has been changed since the
last CI run. Let's merge the version that Neil has tested without
modifying it further.

Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8801>
2026-06-14 18:41:38 +02:00
Neil Armstrong 8ed1cc0379 device-ayaneo-pocket-s2: update firmware file and initfs modules
Take in account the new Audiorech Topology path and panel module name
for the upstreaming work.

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8801>
2026-06-14 16:29:35 +00:00
Neil Armstrong 529a05ecf1 linux-ayaneo-pocket-s2: use updated patch serie with upstream aligned support
It contains the already merged SGM304 driver and the following
patch in review on the mailing-lists:
- https://lore.kernel.org/all/20260529-topic-sm8650-ayaneo-pocket-s2-sy7758-v5-0-03aacd49747c@linaro.org/
- https://lore.kernel.org/all/20260605-topic-sm8650-ayaneo-pocket-s2-r63419-v7-0-b84b6da84293@linaro.org/
- https://lore.kernel.org/all/20260608023011.942228-1-mohammad.rafi.shaik@oss.qualcomm.com/
- https://lore.kernel.org/all/20260610-topic-sm8650-ayaneo-pocket-s2-wsa2-fix-v1-0-18bb19c5ca22@linaro.org/
- https://lore.kernel.org/all/20260522-topic-sm8650-ayaneo-pocket-s2-display-dt-v2-1-cdd4b70e5a16@linaro.org/

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8801>
2026-06-14 16:29:35 +00:00
Neil Armstrong 13f3f6c11e firmware-ayaneo-pocket: use upstream topology for Pocket S2
Use an upstream aligned Audiorech Topology using the in-kernel
WSA2 fix instead of using a fake WS2 topology element.

Built from:
https://github.com/linux-msm/audioreach-topology/pull/65

commit 6040c950021b88c6db287cfffa17abbf917f56cf

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8801>
2026-06-14 16:29:32 +00:00
Neil Armstrong 16e3543e64 alsa-ucm-conf-ayaneo-pocket-s2: update UCM conf
Use an upstream aligned UCM conf, without microphone support yet

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8801>
2026-06-14 16:29:32 +00:00
Clayton Craft 2ca69460a1 kconfigcheck: drop DEBUG_INFO_BTF=n for LTO+Rust
These options are required to get BPF stuff working in the kernel.

Fixes #4411

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8779>
2026-06-14 16:03:04 +00:00
Clayton Craft 5f8ef38f89 kconfigcheck: add systemd bpf requirements to default category
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8779>
2026-06-14 16:03:04 +00:00
Clayton Craft 64ae016303 systemd/systemd-stage0: add comment about why depends_* are manually set
This confused me in
https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8
704#note_557852

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8779>
2026-06-14 16:03:04 +00:00
Aelin a77c75ee76 systemd/systemd: build with TPM support
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8779>
2026-06-14 16:03:04 +00:00
Clayton Craft 2006cfcde8 systemd/systemd: enable bpf support
systemd supports using gcc or clang for bpf compilation, using clang
seems easier since the gcc option requires bpf-gcc and a few other tools
that don't seem to be packaged in Alpine.

This isn't working on ARM (see #4411 ), but we can enable it now for x86
and in preparation for a kernel fix on ARM later.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8779>
2026-06-14 16:03:04 +00:00
Aster Boese 842f171d02 .gitlab: Out_of_date_community_kernels.md: use ymd for date and clarify title
Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8816>
2026-06-14 17:10:03 +02:00
Daniel Kulesz 46f257215e linux-purism-librem5: Remove forgotten and obsoleted call to downstream_package
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8751>
2026-06-14 10:58:41 +00:00
Daniel KuleszandAster Boese asterboese@mailbox.org 7116a079b8 linux-purism-librem5: Modernize packaging
refs #1814, #4594

Related to !8124, !8578

Port changes from !8578 authored by Aster Boese to currently developed MR for the librem5.

Co-authored-by: Aster Boese asterboese@mailbox.org
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8751>
2026-06-14 10:58:41 +00:00
Daniel Kulesz eafc62dd74 linux-purism-librem5: Add zstd as dependency (required for packaging the kernel)
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8751>
2026-06-14 10:58:41 +00:00
Daniel Kulesz 60c7c33de3 linux-purism-librem5: Remove pureosrel variable from APKBUILD
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8751>
2026-06-14 10:58:41 +00:00
Daniel Kulesz 3d4edb256b linux-purism-librem5: Migrate kernel config (manually) and update checksum
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8751>
2026-06-14 10:58:41 +00:00
Daniel Kulesz dc4836fb4d linux-purism-librem5: Sort makedepends alphabetically in APKBUILD
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8751>
2026-06-14 10:58:41 +00:00
Daniel Kulesz 1d70fbaf39 linux-purism-librem5: Prefix custom variables with underscore
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8751>
2026-06-14 10:58:41 +00:00
Daniel Kulesz d662b52807 linux-purism-librem5: Try to fix linter warnings and make url schema more flexible
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8751>
2026-06-14 10:58:41 +00:00
Daniel Kulesz e4c6d1ae0e linux-purism-librem5: upgrade to 6.6.139
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8751>
2026-06-14 10:58:41 +00:00
Oliver Smith 120808693a temp/gnome-shell-mobile: apply patches here too
Apply the same patches that were just added to
extra-repos/systemd/gnome-shell-mobile to temp/gnome-shell-mobile as
well.

Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8798>
2026-06-14 08:43:55 +00:00
Cédric Bellegarde a3a2689d5e systemd/gnome-shell-mobile: Fix a keyboard issue causing excessive battery drain
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8798>
2026-06-14 08:43:55 +00:00
Cédric Bellegarde e52b130052 systemd/gnome-shell-mobile: Fix a crash when closing a window
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8798>
2026-06-14 08:43:55 +00:00
postmarketOS CI da6728b62e linux-next: upgrade to next-20260612 2026-06-13 04:39:16 +00:00
Antoine Martin 36b5f56f96 device-pine64-pinenote: add missing procps-ng and pinenote-service dependency to sway config
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8804>
2026-06-12 16:29:13 -04:00
Aster Boese e1e0ccc2e9 pmaports.cfg: add install_user_groups
Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8767>
2026-06-12 17:26:20 +00:00
Aster Boese 9755b0ed94 main/postmarketos-ui-sxmo-*: explicitly add user to input
The input group should not be blanket allowed for UIs that do not need it as
it bypasses the security benefits of Wayland. This change explicitly adds
the input group to only the UIs that absolutely require it, which is only
SXMO due to their udev rules and lisgd.

Signed-off-by: Aster Boese <asterboese@mailbox.org>

[ci:skip-vercheck]

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8767>
2026-06-12 17:26:20 +00:00
Ferass El Hafidi 5c8d75d0c3 device-amlogic-aarch64-tvbox: make it clear that refboards are only for testing
(bumped pkgver because else CI gets confused if I do it the "right" way)

Signed-off-by: Ferass El Hafidi <funderscore@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8689>
2026-06-12 13:39:06 +00:00
Ferass El Hafidi 3f6985ef8b device-amlogic-aarch64-tvbox: add SEI510
Signed-off-by: Ferass El Hafidi <funderscore@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8689>
2026-06-12 13:39:06 +00:00
Szymon Graczyk 07376edcef linux-htc-flounder: install modules to /usr
CI flags INSTALL_MOD_PATH="$pkgdir" on changed packages since the
/usr merge; suggested by @Newbyte in !8796 review.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8796>
2026-06-12 11:42:13 +00:00
Szymon Graczyk 5f91ac5670 linux-htc-flounder: add maintainer
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8796>
2026-06-12 11:42:13 +00:00
Szymon Graczyk 7a02b6efb6 linux-htc-flounder: install kernel.release again
Commit a4e9924792 ("linux-htc-flounder: Modernize package") dropped the
kernel.release install step. Since then a fresh build fails at install:

    (rootfs_htc-flounder) % mkinitfs
    ERROR: only one kernel release/flavor is supported, found: []

postmarketos-mkinitfs needs /usr/share/kernel/$_flavor/kernel.release
to detect the flavor. Restore the install line (same as other kernel
packages).

Tested: pmbootstrap 3.10.1, edge; fresh install for htc-flounder passes
mkinitfs again and the image boots on hardware.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8796>
2026-06-12 11:42:10 +00:00
Nick Chan 903c2d89dd linux-postmarketos-apple-{4,16}k: Upgrade to 7.0.12
Resolves all nvme instability issues on Apple A11.

Signed-off-by: Nick Chan <towinchenmi@gmail.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8799>
2026-06-12 15:52:19 +08:00
Martin Juecker c72c5f23f7 samsung-p4note: update maintainer
It's time to take some responsibility

Signed-off-by: Martin Jücker <martin@bitkeller.de>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8750>
2026-06-11 22:31:33 +02:00
Stefan Hansson d52160d224 alsa-ucm-conf-sdm845: set url to the actual project location
More useful if you're trying to find relevant information from e.g. the
postmarketOS package browser.

Signed-off-by: Stefan Hansson <newbyte@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8793>
2026-06-11 19:07:58 +00:00
Sicelo A. Mhlongo b495aa576b device-*: switch to UPower config fragments
As of upower 1.91.0, UPower supports config fragments, thus there is no longer
a need to ship a full UPower.conf.

Signed-off-By: Sicelo A. Mhlongo <absicsz@gmail.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8794>
2026-06-11 17:25:47 +00:00
postmarketOS CI 2edcb111d8 linux-next: upgrade to next-20260611 2026-06-11 15:39:10 +00:00
Andreas Kemnade 39a2e8d0dc device-epson-embt2ws: add x11 no-display-clone snipped and force resize
Force partition resizing as we are installing to sdcard.
Add an x11 config snippet to have cloned displays. This
will help non-specialized UIs to be usable by having the
same picture for both eyes. Seeing totally different things
on both eyes is a nightmare.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8774>
2026-06-11 14:07:57 +00:00
Stefan Hansson cb29939029 linux-ayn-odin: install modules to /usr
Signed-off-by: Stefan Hansson <newbyte@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8792>
2026-06-11 13:52:28 +02:00
Stefan Hansson 5b7e436713 linux-ayn-odin: add maintainership
Ultimately the goal is to get rid of this kernel once the gamepad driver
has been upstreamed, but until that happens I'll mark myself as
maintainer.

Signed-off-by: Stefan Hansson <newbyte@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8792>
2026-06-11 13:44:37 +02:00
postmarketOS CI 8d6ccabbde linux-next: upgrade to next-20260610 2026-06-11 04:38:53 +00:00
Antoine Martin 29741b496c device-pine64-pinenote: move install variable to global variable
Incidently, drop $pkgname-systemd.post-install as it was only necessary
for upgrade from v7-r0 to v8-r0 done before v25.12

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8784>
2026-06-11 04:13:08 +00:00
Antoine Martin 07c9b98eb7 device-pine64-pinenote: drop sway subpackage
Sway subpackage existed to provide a shim between 7-r0 and 8-r0, where
sway UI configuration was refactored to be under `$pkgname-sway-hrdl`
subpackage instead of `$pkgname-sway`. This refactor was for two reasons:
1) clean-up package so that just the necessary files were included for
   different UIs
2) Since sway subpackage was pulled by sxmo-de-sway, it made sense
   only sway-related files be packaged by that subpackage.

Since 96853032, sway subpackage depends directly on `$pkgname-sway-hrdl`
subpackage to automatically pull sway-UI opinionated configuration by
default. This was a mistake, as it broke `sxmo-de-sway` that conflicts
with `iio-sensor-proxy` due to depending on conflicting polkit packages.

This commit drops sway subpackage, as the shim is not necessary anyway,
and adds `install_if` to `$pkgname-sway-hrdl` to automatically install
package when installing `postmarketos-ui-sway`. This means
`$pkgname-sway-hrdl` is never pulled when installing
`postmarketos-ui-sxmo-de-sway`, thus never pulling `iio-sensor-proxy`.

Fixes #4612

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8784>
2026-06-11 04:13:08 +00:00
Nardo45andFerass El Hafidi bac7f24803 lg-elsa: new device
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8701>

Co-authored-by: Ferass El Hafidi <funderscore@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8701>
2026-06-10 13:33:06 -07:00
adamthiede be29d62b94 device-sqfmi-beepy: update display driver for 6.18
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8775>
2026-06-10 19:43:44 +00:00
Akari Tsuyukusa dda1bacb45 device-google-corsola: Add Starmie touchpanel module
starmie-sku0 uses i2c-hid-of-elan touchpanel driver.

Signed-off-by: Akari Tsuyukusa <akkun11.open@gmail.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8777>
2026-06-10 19:34:13 +00:00
Aelin 06318bcfec kconfigcheck: Drop options redundant with 5.18 community baseline
As per https://docs.postmarketos.org/pmaports/main/kconfigcheck.html and
considering that today is the beginning of June 2026, the baseline for
community kconfig checks is Linux 5.18, so we can remove the redundant
CONFIG_ASHMEM enablement in the waydroid category for kernels older than
5.18.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8783>
2026-06-10 19:21:42 +00:00
Richard Acayan 39c1eb5f9e community/linux-postmarketos-qcom-sdm670: reduce max speaker volume
Closes #4616

Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8764>
2026-06-10 18:29:00 +00:00
Aelin 7b49e35608 device-generic-ppc64le: Rename from device-qemu-ppc64le
When I was chatting with Ollie the other day about getting rid of the
QEMU packages, I asked whether the ppc64le package should stay as-is,
and we decided to rename this device package as well.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8725>
2026-06-10 16:15:56 +00:00
Aster Boese 4569ead4f7 google-x64cros: add new maintainer and move myself to contributor
My Chromebook finally died on me (after 10 years!), so I cannot maintain
this device anymore.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8743>
2026-06-10 15:21:58 +00:00
Aster Boese 19de35d151 google-manta: depend on firmware-google-manta
Switches the depends from firmware-samsung-manta to firmware-google-manta.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8778>
2026-06-10 16:53:52 +02:00
methanal 75de3a15d3 linux-postmarketos-exynos7870: change my e-mail
[ci:skip-build]

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8776>
2026-06-10 14:32:42 +00:00
methanal f51dacdd68 device-samsung-exynos7: change my e-mail
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8776>
2026-06-10 14:32:42 +00:00
Daniel Kulesz 2fffa2be60 device-samsung-m0: Bump pkgver after updating deviceinfo
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8769>
2026-06-10 12:43:08 +00:00
Daniel Kulesz 73880af78a samsung-m0: Fix internal flashing
The S3 needs the sparse format set to be able to flash bigger partitions such as USERDATA properly. Otherwise, it aborts after 1 or 2 percent (depending on the image size)

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8769>
2026-06-10 12:43:08 +00:00
Robert Eckelmann f701f3e238 systemd/cups: upgrade to 2.4.19
Signed-off-by: Robert Eckelmann <longnoserob@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8773>
2026-06-10 19:31:06 +09:00
Aster Boese 3d47d387a3 treewide: remove userspace pd-mapper from sdm845 devices
Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8663>
2026-06-10 07:43:05 +00:00
Aster Boese cc7fd734f3 linux-postmarketos-qcom-sdm845: enable in-kernel pd-mapper
The in-kernel pd-mapper was disabled with
https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6032
to work around an issue with call audio on xiaomi-beryllium and
oneplus-enchilada. With the pending removal of the userspace pd-mapper from
Alpine, the in-kernel pd-mapper must be used.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8663>
2026-06-10 07:43:05 +00:00
Aster Boese fb74aa230e docs: document how to create a UI package
Updates and replaces https://wiki.postmarketos.org/wiki/UI_specific_package,
being a bit more specific as to what is expected out of a UI package and
how exactly to create one.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8720>
2026-06-10 07:26:39 +00:00
postmarketOS CI 6924c78d48 linux-next: upgrade to next-20260609 2026-06-10 04:38:52 +00:00
Aelin 8050eb2cc4 linux-postmarketos-lts: Upgrade to 6.18.35
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8766>
2026-06-09 22:49:07 +00:00
Aelin 337c786611 linux-postmarketos-stable: Upgrade to 7.0.12
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8765>
2026-06-09 22:46:45 +00:00
Akari Tsuyukusa 0217d62806 linux-postmarketos-mediatek-mt81: Add support for Starmie Chromebook
The following devices are defined in the latest Starmie Device Tree.
https://github.com/torvalds/linux/commit/7d346bf124282d0326dd4f1b104b2d07d902ef23

=====
> mt8186-corsola-starmie.dtsi
regulator-fixed: CONFIG_REGULATOR_FIXED_VOLTAGE
generic-adc-thermal: CONFIG_GENERIC_ADC_THERMAL
google,cros-cbas: CONFIG_HID_GOOGLE_HAMMER
google,cros-ec-keyb-switches: CONFIG_KEYBOARD_CROS_EC
sbs,sbs-battery: CONFIG_BATTERY_SBS

> mt8186-corsola-starmie-sku0.dts
starry,ili9882t: CONFIG_DRM_PANEL_ILITEK_ILI9882T
ilitek,ili9882t: CONFIG_I2C_HID_OF_ELAN

> mt8186-corsola-starmie-sku1.dts
starry,himax83102-j02: CONFIG_DRM_PANEL_HIMAX_HX83102
hid-over-i2c: CONFIG_I2C_HID_OF
=====

This commit adds missing drivers to config.

Signed-off-by: Akari Tsuyukusa <akkun11.open@gmail.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8763>
2026-06-09 14:47:02 +00:00
Akari Tsuyukusa 8fbe6f0561 linux-postmarketos-mediatek-mt81: Add suggested configs
```
[07:20:50] ERROR: config-postmarketos-mediatek-mt81.aarch64: CONFIG_NLS_ASCII should be enabled and preferably set to 'y' (category:default)
[07:20:51] ERROR: config-postmarketos-mediatek-mt81.aarch64: CONFIG_SECURITY_YAMA should be enabled and preferably set to 'y' (category:hardening)
[07:20:51] ERROR: kconfig check failed! More info: https://postmarketos.org/kconfig
```

Link: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8763#note_559867
Signed-off-by: Akari Tsuyukusa <akkun11.open@gmail.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8763>
2026-06-09 14:47:02 +00:00
Hugo Osvaldo Barrera 4cb28c65aa device/community/u-boot-pinebookpro: upgrade to 2026.04
u-boot-pinebookpro-2020.07 has a bunch of patches:

- 0001-enable-rockchip-rng.patch
  - Upstream as dc38a58360bfc3b21621dc9d5e626febd1aa93ec, in v2020.10
- 0002-enable-usb-keyboard.patch
  - Partially upstream as 3a57712496ab4383c528184ad1021908d6620162, in v2020.10
- 0003-display-support.patch bundles has multiple patches:
  1. Upstream as 7fe2ebf3a326026b9ab80ed94da3cd217c84724d, in v2021.07
  2. Upstream as 04d67ceb1c62012822430135be31e18c9c176d85, in v2021.07
  3. **not upstream**
  4. **not upstream**
  5. Upstream in decbc18ed2a9788fcaad3ca349def7bad36741f4, in v2021.07
  6. Upstream as a0c248ef0844da239096ecb4a83f9fa2b0535117, in v2021.07
  7. Upstream in b197c934b11f611dcc1a083d90e68019d1e010cf, in v2021.01
  8. Upstream as 4db3926874a6a17cca1f97a4fd92e58e9182a272, in v2021.07
  9. No longer required (screen works fine after warm reboot).
  10. Upstream in 216928c772798609ba2cb01a42b6f89832bb0587, in v2023.01
  11. Upstream in fce1e9bba263fb5e3e589fdc5c2321f733e3de81, in v2022.07
- 0004-rk3399-light-pinebook-power-and-standby-leds.patch
  - LED support is already upstream. It's not as early as this patch,
    but its preferable to align with mainline.
- 0005-support-SPI-flash-boot.patch
  - Superceded by f9d67436ce5814ea4e394317ddeaf1dbecb1c36b, in v2020.10
- 0006-implement-boot-menu.patch has four patches
  1. Disable CONFIG_SPLASH_SOURCE instead of patching the source.
  2. No compressed bmp logo in use. Unnecessary and labelled as a hack.
  3. Irrelevant as we don't enable CONFIG_CMD_BOOTMENU for this device.
  4. Kept patch "vidconsole-uclass: Implement ANSI_CURSOR_COLUMN".
- 0007-rockchip-boot-order.patch
  - Upstream as b212ad24a604b00b240add35516b7381965deb31, in v2021.10
- 0008-rockchip-boot-order-add-usb.patch
  - **not upstream**
- 0009-rk3399-support-compressed-kernel.patch
  - Upstream in 6c041b35bf8966ef3d48fc439c1c07131431d2f5, in v2020.10

Drop a few cosmetic and UX improvements were dropped. These are not
strictly required for device support. For example, only the Esc or
Ctrl+C key would interrupt boot, rather than u-boot's "press any key".
Carrying these improvements puts a burden on maintenance and drifts us
further from upstream.

Rebasing all the way up to v2024.01 was mostly strightfoward, but
v2024.07 had some major conflicts. The conflicting patch was already a
hack, so the result is a hack too.

Also drop "Define a very-opinionated boot sequence". This enables the
truetype console (which no longer builds on ARM64) and relies of
features which have been completely re-written upstream.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8586>
2026-06-09 13:59:36 +00:00
bluebunny 9a8530c89b docs: make package versioning more detailed
The old wiki page "Packaging" [1] had more information on when to bump packages,
but it was omitted when migrating to docs.postmarketos.org. Revive the section
and reword the sentences a bit, so that there will be no confusion that the
version of a package should always be bumped.

[1]: https://wiki.postmarketos.org/index.php?title=Packaging&oldid=68927#When_should_pkgver/pkgrel_get_increased?

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8739>
2026-06-09 05:29:54 +00:00
Clayton Craft f0a25fbb7b main/postmarketos-duranium: drop units for initramfs conf/sys ext
These units are now in systemd 261

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8727>
2026-06-08 22:25:24 +00:00
Ferass El Hafidi 5285b12c5b systemd/postmarketos-base-systemd: only mount /tmp as tmpfs when RAM >2 GB
On OpenRC we only mount /tmp as tmpfs when the RAM available is greater
than 2 GB. Do this on systemd too to match OpenRC's behavior for devices
with a small amount of RAM.

Signed-off-by: Ferass El Hafidi <funderscore@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8737>
2026-06-08 17:53:12 +00:00
Ferass El Hafidi 6553360263 main/postmarketos-base: tmpfs configuration in /etc/conf.d
Make use of a /etc/conf.d/tmpfs file to setup /tmp mounting, instead of
relying on deviceinfo_tmp_as_tmpfs_size. This matches what is currently
being done in systemd (where we also do tmp config at the init system
level).

Signed-off-by: Ferass El Hafidi <funderscore@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8737>
2026-06-08 17:53:12 +00:00
Ferass El Hafidi f389d9654e deviceinfo_schema: deprecate deviceinfo_tmp_as_tmpfs
It was rarely if ever used.

Signed-off-by: Ferass El Hafidi <funderscore@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8737>
2026-06-08 17:53:12 +00:00
postmarketOS CI 604e0acda3 linux-next: upgrade to next-20260608 2026-06-08 15:38:39 +00:00
Oliver Smith 12c6f6490f issue_templates: add v26.06
Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8756>
2026-06-08 15:09:11 +00:00
Oliver Smith 85111424ce main/postmarketos-release-upgrade: upgrade to 1.12.0
Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8755>
2026-06-08 15:50:33 +02:00
Achill Gilgenast 3c7ed7de45 systemd/gnome-session: upgrade to 50.1
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8754>
2026-06-08 10:51:50 +00:00
Aelin d6f5b8453a linux-postmarketos-mainline: Upgrade to 7.1_rc7
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8752>
2026-06-08 09:18:10 +00:00
Clayton Craft 7922630728 main/postmarketos-base-ui-gnome-mobile: add lpa-gtk
I think it's pretty common to want to manage an eSIM on most modern
phones now, so let's install an eSIM management app by default.

For phones without eSIM support:

- I don't think having this by default is an issue, and users can
uninstall it (it's in pmb_recommends)

- There are eSIM adapters that fit in SIM slots, so this app is relevant
for them

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>

[ci:skip-vercheck] - pmb_recommends

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8749>
2026-06-08 05:28:02 +00:00
Clayton Craft e0e8a06390 linux-postmarketos-asahi: upgrade to 7.0.11-2
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8747>
2026-06-07 18:06:50 +00:00
Aster Boese 9c2c311330 main/postmarketos-artwork: use amove instead of installing to subpkgdir
Installing files in subpackages is bad practice, as amove is much preferred.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8741>
2026-06-07 15:41:39 +02:00
Aster Boese 373b88d53f main/postmarketos-artwork: download individual files
Previously, when pulling sources, the entire 285M artwork repo was pulled. With this change, only the packaged files are pulled.

Closes https://gitlab.postmarketos.org/postmarketOS/pmaports/-/work_items/4595

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8741>
2026-06-07 15:41:32 +02:00
Sam Day c3dad137b1 device/community/*: fix 'maintainance' typo
Signed-off-by: Sam Day <me@samcday.com>

Bump the pkgrels, remove CI tags, adjust commit msg.

Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8738>
2026-06-07 13:14:12 +02:00
Oliver Smith 1a6c9dda36 docs: fix typo: maintainance -> maintenance
Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8738>
2026-06-07 13:12:35 +02:00
Aelin dfa76a6744 systemd/xorg-server: upgrade to 21.1.23
Ref: https://gitlab.alpinelinux.org/alpine/aports/-/commit/de6c6be6f84f940d340387d620e72da75c18a186
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8724>
2026-06-07 12:51:52 +02:00
Oliver Smith 734884e864 CI: apkbuild-lint: add a skip-apkbuild-lint tag
As we are now moving to a newer, stricter version, we might want to skip
fixing APKBUILDs in some MRs. And this is in general useful to have.

Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8735>
2026-06-07 10:09:20 +00:00
Oliver Smith 87502f982e CI: apkbuild-lint: make output more readable
Add empty lines around the apkbuild-lint output, so it is easy to spot.
Also note when it is starting and if it was successful (vs. not having
any output on success).

Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8735>
2026-06-07 10:09:20 +00:00
Oliver Smith ac3e4f8a70 CI: apkbuild-lint: fix checking only the 1st file
apkbuild-lint only checks the file from the first parameter:

$ apkbuild-lint main/postmarketos-ui-phosh/APKBUILD
IC[AL65]:main/postmarketos-ui-phosh/APKBUILD:66:2:non-local 'install' variable in function 'openrc'. Add install scripts to global install variable instead.
MC[AL49]:main/postmarketos-ui-phosh/APKBUILD:46:1:invalid option 'pmb:drm'
MC[AL49]:main/postmarketos-ui-phosh/APKBUILD:46:1:invalid option 'pmb:systemd'

$ apkbuild-lint main/hello-world/APKBUILD main/postmarketos-ui-phosh/APKBUILD
(empty output!)

Loop over the APKBUILDs we want to lint so all of them get checked.

Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8735>
2026-06-07 10:09:17 +00:00
Oliver Smith 75b8400f82 CI: aport-lint: use alpine:edge
I was wondering why apkbuild-lint found a bug locally but not in CI:

IC[AL65]:main/postmarketos-ui-phosh/APKBUILD:66:2:non-local 'install' variable in function 'openrc'. Add install scripts to global install variable instead.

The reason is that the we use alpine:latest here. Let's change it to
alpine:edge so we have the most recent abuild-go version that finds the
most APKBUILD linting bugs.

Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8735>
2026-06-07 10:09:14 +00:00
Sam Day 2bfa564eb3 device-samsung-exynos7: update co-maintainers
[ci:skip-build] [ci:skip-vercheck] maintainer update

Signed-off-by: Sam Day <me@samcday.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8746>
2026-06-07 09:11:36 +00:00
Stefan Hansson 7ea7d2b89e linux-postmarketos-stericsson: install modules to /usr
See https://gitlab.postmarketos.org/postmarketOS/pmaports/-/work_items/4354

Signed-off-by: Stefan Hansson <newbyte@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8688>
2026-06-06 21:14:13 +02:00
Stefan Hansson 9df099cc0c linux-postmarketos-qcom-msm8226: install modules to /usr
See https://gitlab.postmarketos.org/postmarketOS/pmaports/-/work_items/4354

Signed-off-by: Stefan Hansson <newbyte@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8688>
2026-06-06 21:14:13 +02:00
Stefan Hansson f316267363 linux-purism-librem5: install modules to /usr
See https://gitlab.postmarketos.org/postmarketOS/pmaports/-/work_items/4354

Signed-off-by: Stefan Hansson <newbyte@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8688>
2026-06-06 21:14:12 +02:00
Stefan Hansson 9e9272d2a7 linux-postmarketos-exynos4: install modules to /usr
See https://gitlab.postmarketos.org/postmarketOS/pmaports/-/work_items/4354

Signed-off-by: Stefan Hansson <newbyte@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8688>
2026-06-06 21:14:12 +02:00
Stefan Hansson 7260bf9963 */*: update my name and email
Let's finally be consistent about this.

[ci:skip-count]: Deliberately changing a lot of packages.
[ci:skip-vercheck]: Updating co-maintainer does not need a pkgrel bump.

Signed-off-by: Stefan Hansson <newbyte@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8688>
2026-06-06 21:14:12 +02:00
Robert Eckelmann 0412c5bab5 device-ouya-ouya: move to archived
Archiving as no available tester for !8567 and as device and kernel esp are not
maintained.

HINT, if you have such a device and want to see this in testing again,
please switch to the -grate kernel.

Signed-off-by: Robert Eckelmann <longnoserob@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8740>
2026-06-06 21:38:39 +09:00
Aster Boese 864cc6c223 systemd/systemd: remove clang and llvm from makedepends
Clang isn't needed for compilation of systemd. The only reason I can
think of for this being here is that, when systemd was first added,
Alpine's GCC may have been too old for BPF. The LLVM dependency also
is removed

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8726>
2026-06-05 15:39:59 +00:00
postmarketOS CI c0fa62d31a linux-next: upgrade to next-20260605 2026-06-05 15:39:15 +00:00
Sam Day 47e3afacc2 device-samsung-exynos7: update co-maintainership
bluebunny's j7xelte has sadly bricked, and so they would prefer to step
down as co-maintainer. I will replace them and so my best to carry the
torch and fill their shoes!

[ci:skip-build] [ci:skip-vercheck] just updating maintainership

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8731>
2026-06-05 13:32:37 +00:00
Aelin f948899cb0 docs: Add approval rules flowchart
Apparently our rules are complicated enough that this is necessary. I am
*not* an expert at Inkscape, so bear with me. This is also my
interpretation of the rules, if I got anything wrong, please correct me.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8719>
2026-06-05 13:07:15 +00:00
Ferass El Hafidi 322eae70c2 main/postmarketos-ui-phosh: explicitely depend on postmarketos-base-ui-gnome
Else somehow its -openrc subpackage don't get installed properly.
This means the wrong polkit gets installed on OpenRC systems, causing
poweroff to not work among other things.

Signed-off-by: Ferass El Hafidi <funderscore@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8732>
2026-06-05 12:43:17 +00:00
Aelin aefa007bd0 systemd/systemd: upgrade to 261_rc3
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8730>
2026-06-05 05:35:30 +00:00
postmarketOS CI 0a9a7adc8c linux-next: upgrade to next-20260604 2026-06-05 04:38:45 +00:00
postmarketOS CI dc05e96819 linux-next: upgrade to next-20260603 2026-06-04 15:39:01 +00:00
Aelin c6ed450f55 systemd/mutter: upgrade to 50.2
Ref: https://gitlab.alpinelinux.org/alpine/aports/-/commit/ff48c2c6ed9e2cc8313dfb7c776631de8c8f7f26
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8723>
2026-06-04 02:47:34 +02:00
Sicelo A. Mhlongo 636cc55824 device-nokia-n900: add -udev subpackage
Evidently a recent Alpine development.

[1] https://wiki.alpinelinux.org/wiki/Eudev#Installation

Signed-off-By: Sicelo A. Mhlongo <absicsz@gmail.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8612>
2026-06-03 19:18:45 +00:00
Sicelo A. Mhlongo 83214d9d05 device-nokia-n900: fix issues with systemd
For seamless systemd support:
  1. Fix sway locking script. systemd adds more paths under /run/user, which
     interfere with `find`. Limiting the search depth works around the issue
  2. Only force load `nokia-modem` driver under openrc. With systemd, force-
     loading the driver appears to confuse systemd-udevd during boot, causing
     long boot times and even total failure. On the running system, the driver
     also causes systemd-udevd to become unstable. Until the issue is resolved
     (probably in the driver), there will not be any modem support when using
     systemd
  3. Remove the isp1704 driver (for the PHY) from the initramfs. Under systemd,
     it might load too early and fail, leading to slow charging in the running
     system. It is more reliable when loaded later on. Charging still works in
     the initramfs since the actual charger driver (bq2415x) is available

Signed-off-By: Sicelo A. Mhlongo <absicsz@gmail.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8612>
2026-06-03 19:18:45 +00:00
Ferass El Hafidi 63ae75d3b4 device-raspberry-pi: set correct initramfs path in usercfg.txt
Else it tries to load "initramfs-rpi" which doesn't exist, and then
later the kernel panics because it couldn't find anything to boot from.

Signed-off-by: Ferass El Hafidi <funderscore@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8721>
2026-06-03 14:05:12 +00:00
Achill Gilgenast 0094028f1c device/{archived,downstream}: add missing maintainer= variable
[ci:skip-vercheck]
[ci:skip-build]
[ci:skip-grep]

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8651>
2026-06-03 08:15:04 +00:00
postmarketOS CI 23de9b070f linux-next: upgrade to next-20260602 2026-06-03 04:39:00 +00:00
Achill Gilgenast a7665377ae systemd/phosh: backport patch for extending app startup timer
Helps UX on slower devices like the PinePhone a lot, let's backport it.
This was suggested by upstream[1].

 [1]: https://gitlab.gnome.org/World/Phosh/phosh/-/merge_requests/1915#note_2778701

See: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/103390
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8716>
2026-06-02 21:24:04 +00:00
Aster Boese 6b1a2b41fb main/postmarketos-initramfs: add libinput-udev to depends
https://gitlab.alpinelinux.org/alpine/aports/-/commit/6b63703a58e35adb2377d12278e5de397b2ed547
changed the udev subpackage for libinput. Previously, it would be pulled in if
libinput-libs and a udev implementation were installed at the same time. Now,
it uses the default logic for udev subpackages, preventing it from being
pulled in with postmarketos-initramfs only depending on -libs. This change
explicitly depends on -udev to fix this issue.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8715>
2026-06-02 20:29:44 +00:00
Clayton Craft c17dc45441 systemd/systemd: add explicit dependency on libfdisk
This one is required now by systemd-repart, but is dlopened so we have
to "manually" depend on it.

Fixes https://gitlab.postmarketos.org/postmarketOS/duranium-build/-/work_items/54

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8714>
2026-06-02 08:46:40 -07:00
Aelin 759d6c6701 systemd/systemd-stage0: provide pc:libsystemd
See the comment in the APKBUILD for the details.

Closes #4156

Tweak by Oliver: set provider_priority=1 explicitly, so the CI script
passes. systemd proper has provider_priority=100 for the dev()
subpackage.

Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8711>
2026-06-02 15:32:20 +00:00
Aster Boese cb7bce13df main/postmarketos-initramfs: remove unudhcpd.conf
Everything included in the unudhcpd.conf file is already the default in
init_functions.sh. Adding the !optional key to the initramfs config allows
these configs to be overwritten by users if need-be.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8696>
2026-06-02 14:10:26 +00:00
Oliver Smith 879b7a6dbc docs: update release timeline
Move the test week by one week, the package repository isn't ready just
yet.

Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8713>
2026-06-02 15:34:17 +02:00
Mario d5d864c5a9 fairphone-fp5: Switch boot partition to fat32
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8135>
2026-06-02 10:09:19 +02:00
postmarketOS CI 3cc0cc112f linux-next: upgrade to next-20260601 2026-06-02 04:38:41 +00:00
Aelin e9a700008d systemd/systemd: bump pkgrel
systemd-stage0 is currently at pkgrel=1, while systemd is still at
pkgrel=0. However, systemd provides systemd-stage0=$pkgver-r$pkgrel, so
currently, installing systemd-stage0 will always install systemd-stage0
instead of systemd. Their pkgrels MUST be kept in sync.

[ci:skip-vercheck]: the stage0 package change is only a new comment

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8709>
2026-06-02 01:09:02 +00:00
Robert Eckelmann 93f21c62ed device-nvidia-tegra-armv7: remove inactive co-maintainers
Signed-off-by: Robert Eckelmann <longnoserob@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8673>
2026-06-02 00:06:54 +00:00
Robert Eckelmann 71263c7413 device-nvidia-tegra-armv7: remove nonfree-firmware subpackage
Signed-off-by: Robert Eckelmann <longnoserob@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8673>
2026-06-02 00:06:54 +00:00
Robert Eckelmann 0f165375fe device-nvidia-tegra-armv7: fix plymouth display issue
adds `console=tty0` to the kernel-cmdline.conf to have a console entry
for plymouth as the other console entry is an ignored serial one.

Fixes #4585

Signed-off-by: Robert Eckelmann <longnoserob@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8673>
2026-06-02 00:06:51 +00:00
Aelin 1754e31b62 device-generic-loongarch64: Extend modules-initfs from postmarketos-qemu-common
This makes it so the splash screen renders when booting the package in
QEMU.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8631>
2026-06-01 23:43:01 +02:00
Aelin eaa3397e62 device-qemu-loongarch64: remove
We can use the generic loongarch64 device package in QEMU just fine, no
need to keep around a second device package.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8631>
2026-06-01 23:26:31 +02:00
Aelin b1eb5ff951 linux-postmarketos-lts: Upgrade to 6.18.34
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8706>
2026-06-01 21:21:31 +00:00
Aelin d3c3d589d2 linux-postmarketos-stable: Upgrade to 7.0.11
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8707>
2026-06-01 21:16:25 +00:00
Oliver Smith 9a045f56af main/postmarketos-artwork: set v26.06 wallpaper
The poll is not fully over yet, but the outcome seems clear with Alpen
having 51% currently. Let's set the wallpaper now to get further along
in the v26.06 release process, if it really changes in the poll we can
adjust the package in a follow-up MR.

Related: https://social.treehouse.systems/@postmarketOS/116641283568377248
Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8708>
2026-06-01 20:17:53 +02:00
Aelin 2dcfeceda0 docs: device-categorization: Don't special-case CC approvals
As far as I can tell, this was overlooked so far when going over things
where we still differentiate between CCs and TCs.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8705>
2026-06-01 17:02:50 +00:00
Aster Boese 3fc1dc89ac main/postmarketos-initramfs: make /etc/deviceinfo an optional file
This change only includes /etc/deviceinfo in the initramfs if it exists in the rootfs.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6834>
2026-06-01 16:57:03 +00:00
Aster Boese d6c8350021 main/devicepkg-utils: remove etc-deviceinfo
Removes the template file to abide by hermetic-usr. If a user
wishes to override deviceinfo themselves, then they can create
the file. Existing /etc/deviceinfo files will not be deleted if
they have been edited, so current installs with modifications
will not be affected.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6834>
2026-06-01 16:57:03 +00:00
Aster Boese 67eb669f06 firmware-samsung-a30: replace dead link
Replaces the current dead repository with an alternative.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8690>
2026-06-01 16:02:36 +02:00
Oliver Smith e96054e2a3 systemd/systemd-stage0: depend on libucontext
When building dbus against systemd-stage0, we need to have libucontext
installed. Since systemd-stage0 uses !tracedeps, it needs to be
specified manually in depends. I've reproduced the build error locally
and verified that this fixes it.

Fix for:
  [195/243] Linking target test/manual-test-thread-blocking
  ninja: job failed: cc  -o test/test-sd-activation test/test-sd-activation.p/sd-activation.c.o -Wl,--as-needed -Wl,--no-undefined -pie -Wl,--as-needed,-O1,--sort-common -Wl,-z,pack-relative-relocs -Os -fstack-clash-protection -Wformat -Werror=format-security '-Wl,-rpath,$ORIGIN/../dbus' -Wl,--start-group test/libdbus-testutils.a dbus/libdbus-1.so.3.38.3 dbus/libdbus-internal.a /usr/lib/libglib-2.0.so /usr/lib/libintl.so /usr/lib/libgio-2.0.so /usr/lib/libgobject-2.0.so -pthread /usr/lib/libsystemd.so -Wl,--end-group
  /usr/lib/gcc/aarch64-alpine-linux-musl/15.2.0/../../../../aarch64-alpine-linux-musl/bin/ld: warning: libucontext.so.1, needed by /usr/lib/libsystemd.so, not found (try using -rpath or -rpath-link)
  /usr/lib/gcc/aarch64-alpine-linux-musl/15.2.0/../../../../aarch64-alpine-linux-musl/bin/ld: /usr/lib/libsystemd.so: undefined reference to `swapcontext'
  /usr/lib/gcc/aarch64-alpine-linux-musl/15.2.0/../../../../aarch64-alpine-linux-musl/bin/ld: /usr/lib/libsystemd.so: undefined reference to `getcontext'
  /usr/lib/gcc/aarch64-alpine-linux-musl/15.2.0/../../../../aarch64-alpine-linux-musl/bin/ld: /usr/lib/libsystemd.so: undefined reference to `makecontext'
  collect2: error: ld returned 1 exit status

Related: https://builds.sr.ht/~postmarketos/job/1776990
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8704>
2026-06-01 15:28:25 +02:00
Aster Boese 58fdca1ad6 linux-samsung-gta7litewifi: fix build
The source checksums have changed. Rerun the checksums.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8687>
2026-06-01 03:32:40 +00:00
Aster Boese be198d62dd temp/plasma-bigscreen: add !spdx to options
LicenseRef licenses are not SPDX compliant, and thus need
to have an exemption added to options.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8695>
2026-06-01 02:55:05 +00:00
Aelin 8b5248a412 linux-postmarketos-mainline: Upgrade to 7.1_rc6
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8699>
2026-06-01 01:54:03 +00:00
Vitaliy Ognev a6dc97b1b9 u-boot-powkiddy-x55: upgrade to 2026.04
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8697>
2026-05-31 23:43:47 +00:00
Richard Acayan 78077f0c48 linux-postmarketos-qcom-sdm670: upgrade to v7.0.10
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8698>
2026-05-31 23:37:16 +00:00
Aster Boese 6ecd7f6d43 kconfigcheck: move VFAT_FS to category:default
All but 10 kernels in downstream and 1 in testing support VFAT_FS already.
FAT32, which VFAT_FS supports, is proposed with
https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/merge_requests/2869
to become the default filesystem for pmOS_boot. Since so many kernels already
support this option and the FAT filesystems are so common, there is no reason
not to include VFAT_FS by default. VFAT_FS only increases kernel size by 10kb,
so it does not impact boot partition space in any meaningful way.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8694>
2026-05-31 21:43:12 +00:00
Lukas Timmermann c554d8177e samsung-manta: Rename to google-manta
Rename both the device package, and the firmware package.

Also drop unnecessary deviceinfo_boot_filesystem="fat32" flag, as it
is no longer necessary when device uses u-boot.

Signed-off-by: Lukas Timmermann <lukas@timmermann.space>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8433>
2026-05-31 19:24:02 +00:00
Aster Boese e79c23c612 samsung-gtaxlwifi: move to archived
The source url for the kernel is dead and all alternatives that I have
found do not compile. Since this device is already unmaintained, better
to archive than painstakingly fix compliation.

Signed-off-by: Aster Boese <asterboese@mailbox.org>

[ci:skip-vercheck]

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8691>
2026-05-31 16:47:50 +00:00
Oliver Smith ca390e0be5 linux-purism-librem5: temporarily build with GCC
Building this package is currently failing with:
  scripts/Kconfig.include:41: linker 'aarch64-alpine-linux-musl-ld' not found

This kernel was switched over to LLVM and it built fine then, but due to
other changes (pmbootstrap maybe?) it doesn't build anymore. This is
currently blocking v26.06 bringup, so let's temporarily switch back to
GCC until we can resolve it better in edge, probably by getting !8578 in
which is currently blocked as there seem to be regressions.

This reverts the APKBUILD changes from
9b27b4a0f7.

[ci:skip-kconfigcheck]: minimal changes to make this build again

Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8693>
2026-05-31 15:11:23 +00:00
Oliver Smith 092da83b9e linux-purism-librem5: adjust INSTALL_MOD_PATH
Fix for:
ERROR: Please set INSTALL_MOD_PATH to '"$pkgdir"/usr'.

Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8693>
2026-05-31 15:11:23 +00:00
Aster Boese 9df3dbc6f7 main/*: fixup license key to be spdx-compliant
Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8056>
2026-05-31 14:53:46 +00:00
Aster Boese f0a1a7142b oneplus-fajita: move q6voiced config out of openrc subpackage
q6voiced stores its config in the OpenRC configuration directory, which is
automatically picked up by the default_openrc split function and moved to
the openrc subpackage. This means q6voiced never starts on systemd. Move
this config out of the openrc subpackage by not using default_openrc.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8656>
2026-05-31 16:40:59 +02:00
Aster Boese 2779e7a2a4 firmware-asus-z010d: replace _tag with _commit
This package wrongly uses a separate pkgver than the taged version used
in sources. This tag is just HEAD, so use HEAD as _commit instead.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8593>
2026-05-31 14:14:49 +00:00
Oliver Smith bb56208d81 main/postmarketos-ui-sxmo-de-river: fix arch
Set arch to aarch64 and x86_64. From
https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/community/sxmo-utils/APKBUILD:

  # zig, and thus river, is only available for aarch64 and x86_64
  case "$CARCH" in
  	aarch64|x86_64)
  		subpackages="$subpackages $pkgname-river"
  		install="$install $pkgname-river.post-install"
  	;;
  esac

[ci:skip-vercheck]: no rebuild necessary

Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8692>
2026-05-31 15:14:21 +02:00
Oliver Smith aeb5875bc7 u-boot-*: fix libfdt build errors
Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8685>
2026-05-31 12:08:34 +00:00
Oliver Smith e7e8fcb2e3 u-boot-rock64: add py3-setuptools to makedepends
Fix for:
  ModuleNotFoundError: No module named 'distutils'

Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8685>
2026-05-31 12:08:34 +00:00
Oliver Smith a7c9e1d1e0 u-boot-*: fix build with current python
Alpine has moved from python 3.12 to 3.14. Since then binman in these
older u-boot ports is broken. Adapt a patch from upstream to fix it.

Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8685>
2026-05-31 12:08:31 +00:00
Oliver Smith 88559d9e8c u-boot-manta: fix build
* Use a stable source tarball by using the latest commit on the
  "lat3st/google-manta".
* Depend on bash, as it is needed during build.
* Remove usage of empty variable depends_dev while at it.

Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8686>
2026-05-31 11:56:11 +00:00
Aster Boese 4f9187b4aa linux-postmarketos-qcom-sdm845: remove module build and sources from /usr/
Fixes CI failing when mkinitfs tries resolving a pmbootstrap symlink in
`/usr/lib/modules/` that should be removed at build-time.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8666>
2026-05-31 11:09:44 +00:00
Barnabás Czémán c6807383fc device-qcom-msm8953: modules-initfs: Add VSmart Joy 3 panels
Add VSmart Joy 3 panels.

Signed-off-by: Barnabás Czémán <barnabas.czeman@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8646>
2026-05-31 09:34:06 +00:00
Knoyan Mitsu d33b4466a9 firmware-qcom-msm8953: add Xiaomi Mi Max 2 (Oxygen) firmware
Add zap firmware for GPU and wcnss nv for wifi.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8646>
2026-05-31 09:34:06 +00:00
Barnabás Czémán af55b81691 linux-postmarketos-qcom-msm8953: Upgrade to v7.0.9-r0
Upgrade to v7.0.9-r0.

Signed-off-by: Barnabás Czémán <barnabas.czeman@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8646>
2026-05-31 09:34:06 +00:00
Henrik Grimler fad9378de9 linux-postmarketos-exynos5: update to 6.18.33
Changes since v6.12.63 are:

* Rebase on top of 6.18.33
* Sync manta with mainline (@lat3st, @alexmrqt)
* Add bluetooth support to manta (@lat3st, @alexmrqt)
* Fix manta magnetometer with mainline dts (@alexmrqt)
* Fix hang on suspend/display off on galaxy pros (@eisenbahnfan)
* Add support for max77888 and use it on galaxy pros (@eisenbahnfan)

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8634>
2026-05-31 08:49:46 +00:00
Oliver Smith 85ff156167 main/postmarketos-ui-plasma-bigscreen: disable for armv7
qt6-qtwebengine is not available for armv7.

Related: https://builds.sr.ht/~postmarketos/job/1775297
[ci:skip-vercheck]: no rebuild necessary

Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8684>
2026-05-31 09:40:30 +02:00
Aelin 3ebc5c885e systemd/gnome-shell: Upgrade to 50.2
Ref: https://gitlab.alpinelinux.org/alpine/aports/-/commit/cfb9cb2004dddc1244a04a7158e699cb6e32f7f1
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8680>
2026-05-31 07:24:24 +00:00
Aelin 64e3b521c3 cross/grub-efi-x86: Upgrade to 2.14-r0
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8679>
2026-05-31 07:21:42 +00:00
Aster Boese 10e2244d75 samsung-manta: move firmware from nonfree subpackage to depends
See https://postmarketos.org/edge/2024/02/15/default-nonfree-fw

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8613>
2026-05-31 05:43:03 +00:00
Paul Sajna d28b19687d kconfig: add sc7180 chromebook configs to generic device category
Technically there's also some non-chromebook configs for acer aspire one
but I digress

Signed-off-by: Paul Sajna <sajattack@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8596>
2026-05-30 14:42:28 +00:00
bluebunny f1371a9b7b treewide: update bluebunny's email address
[ci:skip-build] [ci:skip-vercheck] only updating the email

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8678>
2026-05-30 14:32:47 +00:00
Barnabás Czémán a434caf8af linux-postmarketos-qcom-msm89x7: Upgrade to v7.0.9-r0
Upgrade to v7.0.9-r0

Signed-off-by: Barnabás Czémán <barnabas.czeman@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8647>
2026-05-30 05:04:51 +00:00
postmarketOS CI d5b8edc81c linux-next: upgrade to next-20260529 2026-05-30 04:39:06 +00:00
Aelin 0050519fa6 cross/gcc-*: Upgrade to 15.2.0-r5
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8675>
2026-05-29 22:21:59 +00:00
Aelin 92bca88500 temp/plasma-bigscreen: disable on armv7
qt6-qtwebengine is not available for armv7.

[ci:skip-vercheck]

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8676>
2026-05-29 22:18:25 +00:00
Aelin 6784b51266 temp/aura-browser: disable on armv7
qt6-qtwebengine is not available on armv7.

[ci:skip-vercheck]

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8677>
2026-05-29 22:28:35 +02:00
Aster Boese 67d104aa0b ci: verify-checksums: ignore archived
Because archived is neglected, the sources of packages therein can have
dead links, causing any MR that touches them to fail. Since we don't want
to fix archived packages, just ignore them entirely.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8661>
2026-05-29 17:36:08 +00:00
Aelin 869c1036e7 cross/gcc-*: Upgrade to 15.2.0-r4
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8670>
2026-05-29 09:22:14 +00:00
Oliver Smith 2d0c9e52a1 linux-postmarketos-qcom-msm8939: fix the build
The downloaded patches are not stable, so add them to the git repository
directly. Change INSTALL_MOD_PATH as well, as CI complained about it.
Add V=1 to work around the incompatibility with kernels before 6.2 and
newer make that lead to having no build output.

Related: https://builds.sr.ht/~postmarketos/job/1773002
Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8671>
2026-05-29 08:19:01 +00:00
postmarketOS CI d1b0948907 linux-next: upgrade to next-20260528 2026-05-29 04:38:58 +00:00
Aster Boese 28886ed2ed main/postmarketos-mkinitfs: upgrade to 2.11.0
Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8665>
2026-05-29 00:19:02 +00:00
Clayton Craft 4121c0d740 main/postmarketos-duranium: drop subpartition script, expand udev disk hack
systemd 261 can now natively detect and mount subpartitions.

Fixes #4544

This also works around an issue where udiskie will prompt for mounting
the /usr partitions on disk, when they are subpartitions. I didn't
file a bug upstream because it's really not clear to me what to blame
(udisks2? udiskie? udev?)

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8660>
2026-05-28 22:56:37 +00:00
Aster Boese 813a3b3afb linux-postmarketos-apple-{4,16}k: upgrade to 7.0.4 and cleanup
Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8517>
2026-05-28 17:15:07 +02:00
Ferass El Hafidi 6a511250ba main/postmarketos-bootsplash: add plymouth.prefer-fbcon
Plymouth added a new console viewer to replace fbcon, however it is
quite slow and needs another font in the initramfs (and we're already
kind of running out of space if we just keep adding more and more).
Switch to the old behavior of just using fbcon.

Signed-off-by: Ferass El Hafidi <funderscore@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8645>
2026-05-28 13:06:33 +00:00
Aelin a18d68dd30 cross/systemd-boot-x86: Upgrade to 260.2
Ref: https://gitlab.alpinelinux.org/alpine/aports/-/commit/c329463d3dbe6b28360180706f843e605c97575b
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8659>
2026-05-27 20:30:51 +00:00
Clayton Craft a80a649d4f systemd/systemd: upgrade to 261-rc2
ukify is provided in Alpine aports, so it's disabled to prevent
conflicting with that pkg.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8623>
2026-05-27 13:23:35 -07:00
Clayton Craft 68362c1f42 systemd/systemd-stage0: upgrade to 261-rc2
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8623>
2026-05-27 13:23:32 -07:00
Antoine Martin 0d6e1add74 temp/py3-pylibi2c: drop due to inclusion in aports
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8658>
2026-05-27 20:07:04 +00:00
Oliver Smith 9efd154db2 main/postmarketos-base-nofde: split out from postmarketos-base
Split postmarketos-base-nofde out from postmarketos-base to fix this
bootstrap problem:

  postmarketos-initramfs:
    provides: postmarketos-ramdisk
    depends: postmarketos-fde-unlocker

  postmarketos-base:
    depends: postmarketos-ramdisk
    provides: postmarketos-fde-unlocker (via postmarketos-base-nofde subpackage)

Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8657>
2026-05-27 21:09:37 +02:00
Oliver Smith 0a944426e7 main/postmarketos-initramfs: fix wrong makedepends
I have added both earlier, and they don't make sense. We don't need to
have postmarketos-base-nofde installed at build time when building
postmarketos-initramfs.

[ci:skip-vercheck]: no rebuild needed

Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8657>
2026-05-27 20:49:14 +02:00
Aelin ed13c0ed9e ci: Run armhf jobs natively
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8654>
2026-05-27 18:35:22 +00:00
postmarketOS CI 6370088543 linux-next: upgrade to next-20260527 2026-05-27 15:40:15 +00:00
Aster Boese 1a482a2b17 docs: add skip-grep
Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8652>
2026-05-27 15:29:19 +02:00
Aster Boese 7a6d8d5e9c ci: grep: add option to ignore grep.sh errors
Adds an option to ignore grep.sh errors in instances where there may be false
positives due to git weirdness. e.g. git not tracking renames and instead
seeing them as new packages.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8652>
2026-05-27 15:29:12 +02:00
Ferass El Hafidi ca76992b64 device-samsung-serranolte: remove msm-modem-downstream
This package no longer exists. Reported on IRC.

Signed-off-by: Ferass El Hafidi <funderscore@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8610>
2026-05-27 13:10:07 +00:00
Aelin 0a82e717aa kconfig-generic: Enable configs for armhf userspace on aarch64
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8644>
2026-05-27 12:52:37 +00:00
Robert Eckelmann 86d4040146 main/postmarketos-dev: add packages for compiling u-boot
Signed-off-by: Robert Eckelmann <longnoserob@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8594>
2026-05-27 12:18:13 +00:00
adamthiede 817cfa8d36 linux-postmarketos-mediatek-mt8173: upgrade to 7.0.10
- enabled 'yama' for pmos kconfig checks
- enabled 'lockdown' since it's similar, and options are good

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8640>
2026-05-27 09:11:19 +00:00
Paul Sajna 25b5ba7b71 device-lg-judyln: Update dependencies, change deviceinfo_boot_filesystem
This commit contains 2 major classes of dependency updates

1. Updates to reflect splitting of soc-qcom and soc-qcom-pd-mapper to
   fix Wi-Fi on fresh installs
2. Updates to enable Tauchgang fwupd U-Boot EFI capsule updates

Signed-off-by: Paul Sajna <sajattack@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8620>
2026-05-27 09:02:07 +00:00
Eric Anderson 02ad959901 linux-asus-flo: Move to archived
Fixes #4568

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8635>
2026-05-27 04:57:38 +00:00
Eric Anderson 190b5d0048 device-asus-flo: Remove option to use linux-asus-flo
The kernel is being moved to archived.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8635>
2026-05-27 04:57:38 +00:00
Antoine Martin 9685303286 device-pine64-pinenote: pull sway-hrdl UI configuration by default when using sway
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8562>
2026-05-27 02:45:47 +00:00
Antoine Martin b3235f201e temp/py3-pylibi2c: new aport
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8562>
2026-05-27 02:45:47 +00:00
Antoine Martin b18ebeea4d device-pine64-pinenote: add sidebar to sway config
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8562>
2026-05-27 02:45:47 +00:00
Robert Eckelmann 091d973b26 device-oneplus-fajita: add -sensor firmware package to depends
Signed-off-by: Robert Eckelmann <longnoserob@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8617>
2026-05-26 18:20:31 +00:00
Robert Eckelmann 7b7a09ad94 device-oneplus-enchilada: add -sensor firmware package to depends
Signed-off-by: Robert Eckelmann <longnoserob@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8617>
2026-05-26 18:20:31 +00:00
Alistair Francis 7fb880aca6 device-google-sargo: Reload I2C drivers on error
It's common for the I2C touch driver on the Google Pixel 3a to crash
resulting in touch input not working, see [1].

This patch adds a systemd service that can be used to monitor for errors
and reload the drivers on error, the original idea came from [2].

The actual script is not systemd specific, so that the script can be
ported to openrc if required.

1: https://gitlab.com/sdm670-mainline/linux/-/work_items/6
2: https://gitlab.com/sdm670-mainline/linux/-/work_items/6#note_3104050714

Signed-off-by: Alistair Francis <alistair@alistair23.me>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8409>
2026-05-26 16:47:31 +00:00
Clayton Craft 77c05f0443 main/postmarketos-bootsplash: fix pwr button toggle and dev. scale
Apparently plymouth's config parser can't handle in-line comments. This
also fixes an issue I just noticed where the scale wasn't being parsed
correctly either because 1.0 is not a uint.

../src/libply/ply-key-file.c:427:ply_key_file_get_ulong       : group 'Daemon' key 'DeviceScale' val '1.0' is not a valid unsigned number
../src/libply/ply-key-file.c:427:ply_key_file_get_ulong       : group 'Daemon' key 'XkbExtraEscButton' val '0x1008ff2a  # Power button (XKB_KEY_XF86PowerOff)' is not a valid unsigned number

The additional xkb config is necessary for plymouth to detect the pwr
key press, or else it isn't initialized.

Fixes #4548

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8561>
2026-05-26 15:57:20 +00:00
Clayton Craft 4257f74e62 main/postmarketos-bootsplash: add udev rules for plymouth
Without this rule, fb0 doesn't get ID_PATH set in the udev database
and plymouth this to detect that fb0 is backed by a DRM device. This
fixes an issue where plymouth times out and treats fb0 as an independent
display, and creates a second framebuffer renderer, which caused it to
render the splash at the wrong resolution.

These lines were lifted from 71-seat.rules, which are packaged in
systemd-udevd and elogind. They're vendored here because we don't want
to depend on elogind just for a few udev rules. These rules should be
idempotent in the rootfs (setting ID_PATH is guarded by ID_PATH=="" and
IIUC setting an existing TAG is a noop in udev)

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8561>
2026-05-26 15:57:20 +00:00
Clayton Craft be5d39de3c main/postmarketos-plymouth-themes: upgrade to 1.2.3
Changelogs:

https://gitlab.postmarketos.org/postmarketOS/plymouth-themes/-/tags/1.2.2
https://gitlab.postmarketos.org/postmarketOS/plymouth-themes/-/tags/1.2.3

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8561>
2026-05-26 15:57:16 +00:00
postmarketOS CI 1bdad56708 linux-next: upgrade to next-20260526 2026-05-26 15:39:40 +00:00
Oliver Smith 13379db56d main/postmarketos-base: fix dependency loop
We don't need to have makedepends="postmarketos-initramfs" for building
postmarketos-base. I'm not sure why this was added in
6c799ac4f6.

Removing it fixes this dependency loop we currently see in BPO while
bootstrapping v26.06:

* postmarketos-initramfs-3.11.0-r0 (missing depends: postmarketos-base)
* postmarketos-base-61-r1 (missing depends: postmarketos-initramfs)

Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8643>
2026-05-26 16:34:40 +02:00
Luca Weiss b2e19fb456 modem/msmipc-dev: update to source mirror
The kernel/msm repo on Google's Gerrit doesn't have any content anymore.
Point the sources to the same commit on a LineageOS repo on GitHub.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8642>
2026-05-26 15:31:05 +02:00
Antoine Martin ca932427e6 device-pine64-pinenote: only create stub firmware when missing
Pinenote includes waveform lookup tables that are proprietary and only
available through the `waveform` partition. Before, we packaged empty
files for the firmware so that mkinitfa does not fail. The init scripts
then extracts the waveform binaries on first boot. Unfortunately, this
has the consequence that of overriding the extracted binaries every boot.

Fixes this by only creating stub files when files are missing so
mkinitfs does not fail via pre upgrade and install script.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8639>
2026-05-26 07:10:15 +00:00
Antoine Martin 24dad0d658 device-pine64-pinenote: fix libexec call for waveform init
ab7a887f accidently dropped part of a patch that moved waveform init
shell under libexec rather than bin.

This fixes the patch in question

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8639>
2026-05-26 07:10:15 +00:00
Antoine Martin d7241ef5d8 device-pine64-pinenote: fix splash
Adds missing modules to make splash work on boot, and adjust splash
orientation

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8639>
2026-05-26 07:10:12 +00:00
postmarketOS CI 5a6e4737c3 linux-next: upgrade to next-20260525 2026-05-26 04:38:53 +00:00
Antoine Martin 65f1808676 linux-postmarketos-rockchip: enable CONFIG_DRM_ROCKCHIP
4a1612eb56 introduced a set of changes for this kernel to support the
pine64-pinenote. The commit converts certain built-in drivers into
modules to make them work with the device.

This initially broke `pinebook-pro` due to `CONFIG_GPIO_ROCKCHIP=m`
which was reverted with 51261ea7. Making `CONFIG_DRM_ROCKCHIP` a module
pushes screen init to later in the boot, which is less ideal.

This reverts the change for `CONFIG_DRM_ROCKCHIP` for it to be built-in.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8633>
2026-05-26 01:39:31 +00:00
Antoine Martin 302e4a1b46 linux-pine64-pinenote: drop due to being replaced by linux-postmarketos-rockchip
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8632>
2026-05-26 01:30:21 +00:00
Clayton Craft 72695cbf00 linux-postmarketos-asahi: upgrade to 7.0.10-2
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8628>
2026-05-25 23:56:28 +00:00
Henrik Grimler e95d5dec44 device-odroid-u2: load the ledtrig-heartbeat module
So that the blue led can automatically blink in the default heartbeat
mode.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8630>
2026-05-25 20:41:48 +02:00
Henrik Grimler 9c67d85231 device-odroid-xu4: load the ledtrig-heartbeat module
So that the blue led can automatically blink in the default heartbeat
mode.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8630>
2026-05-25 20:41:45 +02:00
Aelin 1f11c48d3c linux-postmarketos-mainline: Upgrade to 7.1_rc5
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8625>
2026-05-25 10:00:13 +00:00
Aelin e427f36c1b systemd/phosh: disable crossdirect
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8626>
2026-05-25 06:33:40 +00:00
Ferass El Hafidi 17138bf2ed main/postmarketos-initramfs: vibrate on boot
Vibrate on multiple stages:
* twice when forced to enter debug-shell
* 3 times on error
* once at the end of the initramfs to indicate that we're booting
  to the OS
This uses the beebzzr tool <https://scm.dersco.re/utils/beebzzr.git>.

It is meant to be useful to know if your phone is booting or having
issues, which is useful when legally or fully blind, or when the display
isn't working yet.

On devices without force-feedback support, this is a no-op.
It is worth noting that quite a few devices do not yet have some modules
required for haptics in initramfs. These will need to be fixed for
beebzzr to work.

Signed-off-by: Ferass El Hafidi <funderscore@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7563>
2026-05-25 06:31:11 +00:00
Aelin 48b61bf481 temp/xkeyboard-config: Upgrade to 2.47
Ref: https://gitlab.alpinelinux.org/alpine/aports/-/commit/ec89b244a8f186e061fdc6433d384e93c4155ff7
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8627>
2026-05-25 03:25:21 +02:00
Aelin b38d810c74 linux-samsung-m20lte: Don't override CROSS_COMPILE
Setting this to an empty string will result in the kernel invoking just
"ld" for linking, rather than aarch64-alpine-linux-musl-ld. When
building with GCC and linking with BFD, we still need to rely on
pmbootstrap to set CROSS_COMPILE appropriately, overriding it will break
cross compilation.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8622>
2026-05-25 00:37:36 +00:00
bluebunny 6d7a70344b xiaomi-pipa: fix internal speaker sounds
It turns out that U-Boot exposes a different name to ALSA UCM. Fix the
symlink to be the correct name from SMBIOS data.

Add the missing PlaybackMixer line. Without it, ALSA doesn't select the
right mixer, leading to a Qualcomm DSP error.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8624>
2026-05-25 00:31:53 +00:00
Clayton Craft 59b49aea1c main/postmarketos-mkinitfs: upgrade to 2.10.0
Changelog:
https://gitlab.postmarketos.org/postmarketOS/postmarketos-mkinitfs/-/tags/2.10.0

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8621>
2026-05-23 16:24:39 -07:00
Aelin 84447ed6ef realme-x3: Move to archived
The maintainer has not responded on the maintainership status issue in
over two weeks, so move the device to archived.

[ci:skip-vercheck]: moving between categories

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8532>
2026-05-23 16:27:50 +00:00
Aelin ff4b970e1a linux-postmarketos-lts: Upgrade to 6.18.33
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8619>
2026-05-23 16:59:34 +02:00
Aelin f90b57106f linux-postmarketos-stable: Upgrade to 7.0.10
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8618>
2026-05-23 14:57:49 +00:00
Achill Gilgenast 6ff32835f4 systemd/phosh: fork again :(
Closes: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/work_items/4344
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8309>
2026-05-23 14:58:00 +02:00
Aelin 4402d4a28e kconfigcheck: Require support for Yama
This lets us prohibit non-ancestor ptrace access to running processes
and their credentials via sysctl kernel.yama.ptrace_scope=1.

Yama stacks correctly with SELinux. Arch Linux enables it and sets
ptrace_scope=1 by default, see https://wiki.archlinux.org/title/Security#ptrace_scope.

Note that SELinux also has the deny_ptrace mechanism to achieve similar
things, but we're not shipping SELinux at the moment and we can opt to
switch to deny_ptrace for enforcing this in the future if desired.

See https://docs.kernel.org/admin-guide/LSM/Yama.html for more information.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8582>
2026-05-23 09:16:21 +00:00
Aelin e1bc923bdb kconfig-generic: Enable configs for Microsoft Surface devices
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8616>
2026-05-23 01:04:22 +02:00
postmarketOS CI 18a8ec6879 linux-next: upgrade to next-20260522 2026-05-22 15:38:38 +00:00
DiegoStocco a76125ccb2 samsung-m20lte: new device
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8603>
2026-05-22 04:53:08 +00:00
Richard Acayan 20bfba5913 linux-postmarketos-qcom-sdm670: use pmos kconfig fragment
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8445>
2026-05-21 21:04:07 -04:00
Richard Acayan 57a9ba9ed1 linux-postmarketos-qcom-sdm670: upgrade to v7.0.5
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8445>
2026-05-21 20:23:25 -04:00
chiffa 9a1d628b4b samsung-beyond1lte: add a maintainer
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8563>
2026-05-21 21:49:11 +00:00
chiffa 61d49e3691 linux-samsung-beyond1lte: switch to LLVM toolchain
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8563>
2026-05-21 21:49:11 +00:00
postmarketOS CI 4c3d35d210 linux-next: upgrade to next-20260521 2026-05-21 15:38:47 +00:00
Ali Nasrullayev 2721343bac device-xiaomi-vayu: enable internal speakers and microphone
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8607>
2026-05-21 15:01:13 +00:00
Sicelo A. Mhlongo 79cc4424c7 device-nokia-n900: fixes for unl0kr
The hardware keyboard on N900 has been unusable for FDE unlocking since a
recent unl0kr commit [1]. Fix via hwdb so unl0kr can detect it correctly.

While at it, add an unl0kr config to ensure all keys are mapped correctly and
usable.

[1] https://gitlab.postmarketos.org/postmarketOS/buffybox/-/work_items/62

Signed-off-By: Sicelo A. Mhlongo <absicsz@gmail.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8598>
2026-05-21 14:50:14 +00:00
Robert Eckelmann d985b54e5e device-xiaomi-beryllium: add -sensor firmware subpackage to the
non-free-firmware section

Signed-off-by: Robert Eckelmann <longnoserob@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8611>
2026-05-21 11:00:36 +00:00
Eric Anderson 969e3c94fd linux-google-veyron: Upgrade to 6.12.90
Tested with GNOME on veyron-minnie. Speakers worked; the pipewire LUA
incompatibilty has been fixed since the 6.12.54 testing.

Fixes #4553

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8600>
2026-05-21 09:10:17 +00:00
Hugo Osvaldo Barrera 51261ea7e0 linux-postmarketos-rockchip: fix pinebook-pro support
4a1612eb56 introduced a set of changes for this kernel to support the
pine64-pinenote. These changes broke boot on the PineBook Pro: after the
kernel and initfs are loaded and started, the screen blanks and remains
that way indefinitely.

From the set of changes made for the pine64-pinenote support, reverting
only CONFIG_GPIO_ROCKCHIP=y restores the pinebook-pro into a working
status.

I don't have the means to test on the pine64-pinenote, and would
appreciate feedback on this.

Fixes: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/work_items/4559
Fixes: 4a1612eb56
References: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8217
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8604>
2026-05-20 22:48:43 +00:00
DomHeadroom ad9f07bb1d xiaomi-gauguin: new device
Add support for the Xiaomi Mi 10T Lite 5G

Signed-off-by: DomHeadroom <domefemia@protonmail.com>

Xiaomi-gauguin fixed linting problems

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8609>
2026-05-20 19:01:36 +00:00
postmarketOS CI f34c51c335 linux-next: upgrade to next-20260520 2026-05-20 15:38:39 +00:00
Hugo Osvaldo Barrera 2588acdd23 device-pine64-pinebookpro: include rockchipdrm in initfs
Since 4a1612eb56, the rockchipdrm driver is built as a separate module.
The kernel loads it quite late in the start-up process, so early output
it lost, and plymouth doesn't even work.

Force inclusion of this module into the initfs. This is still
suboptional: the display is initialised earlier, but not as early as it
would be with CONFIG_DRM_ROCKCHIP=y. Regrettably, using this last
options has negative side-effects on the PineNote.

References: 4a1612eb56
References: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8217
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8605>
2026-05-20 11:11:09 +00:00
Stefan Hansson 53562e05b7 ayn-odin: take over maintainership
Jenneron gave me his device.

Signed-off-by: Stefan Hansson <newbyte@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8606>
2026-05-19 22:07:13 +02:00
Aster Boese 83177e2395 firmware-oneplus-sdm845: revert wrong commit
The commit change from
https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8446
got lost in rebase of
https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8450,
causing the package to end up broken.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8602>
2026-05-19 19:30:42 +02:00
postmarketOS CI 4f222f4c4b linux-next: upgrade to next-20260519 2026-05-19 15:42:25 +00:00
Oliver Smith fff4a0aadf channels.cfg: add initial v26.06 branch
Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
2026-05-19 15:04:27 +02:00
Rudraksha Gupta 9cb4e481ab linux-pine64-pinephonepro: fix lint error
Satisfy the following lint error:

ERROR: Please set INSTALL_MOD_PATH to '"$pkgdir"/usr'.
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8475>
2026-05-19 08:14:25 +00:00
Rudraksha Gupta 72a0c1bcdf linux-pine64-pinephonepro: update maintainers
Signed-off-by: Rudraksha Gupta <guptarud@gmail.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8475>
2026-05-19 08:14:25 +00:00
Stanley cf53008b99 device-amlogic-aarch64-tvbox: add B860H V1/V2 kernel subpackage
Add kernel_b860h subpackage for the ZTE B860H V1/V2 TV box (S905X/GXL).
Uses meson-gxl-s905x-b860h.dtb and u-boot-amlogic-s905x-tv bootloader.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8552>
2026-05-19 07:37:53 +00:00
Stanley bac841dcae linux-postmarketos-amlogic: add ZTE B860H V1/V2 DTS
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8552>
2026-05-19 07:37:53 +00:00
postmarketOS CI b9ff9eb459 linux-next: upgrade to next-20260518 2026-05-19 04:38:47 +00:00
Antoine Martin c1a6b50512 linux-postmarketos-rockchip: upgrade to 7.0.8
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8581>
2026-05-18 22:48:34 +00:00
Aster Boese 5e7cac3f31 docs: document requirement for mainline kernels to be built with LLVM
Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8546>
2026-05-18 20:48:08 +00:00
Aster Boese aacb35f760 docs: document version cutoff for mainline kernels
Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8546>
2026-05-18 20:48:08 +00:00
Paul Sajna cf1442a458 firmware-lg-judy: drop
It was intended to support judyln and judyp but that didn't pan out.

It's causing a mess for judyln and no one is actively testing judyp

judyln has a separate firmware package now

Signed-off-by: Paul Sajna <sajattack@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8469>
2026-05-18 18:20:06 +00:00
Paul Sajna dd727b6876 firmware-lg-judyln: Firmware package for lg-judyln on Linux 7.1
Initially when I made firmware-lg-judy,
I was hoping the firmware from judyln would help judyp as well
But now the firmware paths have changed in 7.1.

I will add firmware for judyp to a new package later on when I have
a device to test it with.

Signed-off-by: Paul Sajna <sajattack@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8469>
2026-05-18 18:20:06 +00:00
Clayton Craft 9f2a70f86a linux-postmarketos-asahi: upgrade to 7.0.8-1
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8576>
2026-05-18 17:44:02 +00:00
Dang Huynh 2c277f0284 linux-pine64-pinetab2: Upgrade to 7.0.6
Signed-off-by: Dang Huynh <dang.huynh@mainlining.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8555>
2026-05-18 17:23:30 +00:00
Alexander Martinz 89af951da0 alsa-ucm-conf-sdm845: update to latest state
This consists of the following changes:
- starqltechn: add initial sound config
- Shift/axolotl: add symlink for u-boot
- SHIFT: axolotl: drop commented out sequence
- SHIFT: axolotl: HiFi: add q6voice routes
- SHIFT: axolotl: do not directly link uboot symlinks
- OnePlus: enchilada/fajita: add uboot symlink for newer kernels
- Xiaomi/beryllium: add Tianma UBoot symlink

Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8503>
2026-05-18 14:38:56 +00:00
Aelin 6e58c5099d issue_templates: Add archival deadline to maintainer status template
As agreed upon in the 2026-05-11 team meeting.

Signed-off-by: Pablo Correa Gómez <pabloyoyoista@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8531>
2026-05-18 14:12:23 +00:00
Ingo Reitz be7d39ff4d device-google-{bluejay,oriole,raven}: We dont have drm
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8537>
2026-05-18 14:06:07 +00:00
Hendra Manudinata ef935a7584 linux-samsung-j4lte: Update patches for recent boot fixes
Recent test shows that j4lte requires these patches to be able to boot
into postmarketOS, as well as some additional features to make it a little bit
more usable:

1. Disabling direct I/O patch

This is required to fix kernel panic during e2fsck performed by initramfs.
The root cause is still unknown and thus needs further investigation. But for now,
while we're in downstream kernel, temporarily add this hacky patch.

2. Initialize framebuffer later

This fixes kernel panics when `CONFIG_FRAMEBUFFER_CONSOLE` is enabled, caused by
unitialized pointers & mutex. This could be applied on other older Samsung devices that
use similar DECON.

Signed-off-by: Hendra Manudinata <hm@ndraa.xyz>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8574>
2026-05-18 14:02:28 +00:00
Aster Boese 92fa3601f6 .gitlab: add issue template for notifying maintainers of o-o-d kernels
Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8579>
2026-05-18 14:00:21 +00:00
Stefan Hansson 27f0a8cf82 main/postmarketos-artwork: use cross-native2
The approach used by cross-native2 is more proper and less hacky than
cross-native, so let's use it here as we can without issues.

We can't rely on pmbootstrap defaulting to cross-native2 for noarch
packages since that was introduced with version 3.10.0 and we're still
at pmbootstrap_min_version=3.9.0, doesn't seem worth bumping it over
this.

[ci:skip-vercheck]: Changes don't affect resulting package.

Signed-off-by: Stefan Hansson <newbyte@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8558>
2026-05-18 13:57:35 +00:00
Aelin 89f19c239b device-qcom-sm7150: Drop accelerometer mount matrix
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8588>
2026-05-18 13:55:03 +00:00
Aelin 05b64abc5f firmware-xiaomi-tucana: Update with accelerometer mount matrix
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8588>
2026-05-18 13:55:03 +00:00
Aelin 55606d9bad firmware-xiaomi-sweet: Update with accelerometer mount matrix
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8588>
2026-05-18 13:55:03 +00:00
Aelin 2c385d799d firmware-xiaomi-surya: Update with accelerometer mount matrix
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8588>
2026-05-18 13:55:03 +00:00
Aelin 9c36cc31e1 firmware-xiaomi-davinci: Update with accelerometer mount matrix
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8588>
2026-05-18 13:55:03 +00:00
Aelin 4984469e9d linux-postmarketos-mainline: Upgrade to 7.1_rc4
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8589>
2026-05-18 12:42:48 +00:00
Aster Boese ab7a887f16 treewide: finish moving community firmware under /usr/
Modifies mkinitfs *.files files to expect firmware under `/usr/lib/` and
cleans up firmware installs missed by the initial migration.

https://gitlab.postmarketos.org/postmarketOS/pmaports/-/work_items/4354

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8450>
2026-05-18 12:40:26 +00:00
Luca Weiss 176c093cd3 linux-postmarketos-qcom-milos: upgrade to 7.0.8
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8590>
2026-05-18 11:32:03 +00:00
Luca Weiss 7a08ba74cc linux-postmarketos-qcom-sm6350: upgrade to 7.0.8
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8591>
2026-05-18 11:13:39 +00:00
Luca Weiss 6862f4b5e2 linux-postmarketos-qcom-sc7280: upgrade to 7.0.8
Enable two new kconfig options for the NexPhone.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8570>
2026-05-18 11:10:53 +00:00
Ferass El Hafidi 59a119477e linux-postmarketos-amlogic: update modules install path
They should be installed to /usr/lib now.

Signed-off-by: Ferass El Hafidi <funderscore@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7633>
2026-05-18 10:19:25 +00:00
Ferass El Hafidi de06982952 linux-postmarketos-amlogic: add zstd to depends
Also sort the list while at it.

Signed-off-by: Ferass El Hafidi <funderscore@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7633>
2026-05-18 10:19:25 +00:00
Ferass El Hafidi db83412532 linux-postmarketos-amlogic: upgrade to 6.18.28
Also switch to kconfig fragments
(https://docs.postmarketos.org/pmaports/main/kconfig-fragments.html).

Signed-off-by: Ferass El Hafidi <funderscore@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7633>
2026-05-18 10:19:21 +00:00
Oliver Smith cb29632344 systemd/gnome-keyring: fix first login bug
Accessing gnome-keyring on first login is broken with systemd, apps
relying on a working keyring just hang or show errors. This is a known
bug since 2023 [1] with multiple open merge requests to fix the bug
[2][3][4]. Both Debian and Fedora have patched their packages to ship a
workaround [5][6].

From the available patches I've decided to use the one from Debian [4],
because I didn't see [2] being used in another distribution and [3]
doesn't seem to be as technically correct according to [7].

I've also tried to reproduce this problem with OpenRC, but it doesn't
happen there. Hence not applying the patch to Alpine.

[1]: https://gitlab.gnome.org/GNOME/gnome-keyring/-/work_items/137
[2]: https://gitlab.gnome.org/GNOME/gnome-keyring/-/merge_requests/69
[3]: https://gitlab.gnome.org/GNOME/gnome-keyring/-/merge_requests/78
[4]: https://gitlab.gnome.org/GNOME/gnome-keyring/-/merge_requests/99
[5]: https://src.fedoraproject.org/rpms/gnome-keyring/blob/rawhide/f/78.patch
[6]: https://salsa.debian.org/gnome-team/gnome-keyring/-/blob/debian/latest/debian/patches/gkd-login-Register-the-login-collection-on-dbus-on-creati.patch
[7]: https://gitlab.gnome.org/GNOME/gnome-keyring/-/merge_requests/78#note_2567002

Fixes: #3496
Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8587>
2026-05-17 21:54:55 +00:00
Aelin 9d0b47c505 linux-postmarketos-stable: Upgrade to 7.0.9
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8584>
2026-05-17 20:39:59 +00:00
Achill Gilgenast 5abbd0f865 systemd/postmarketos-base-systemd: add preset for io.github.kolunmi.Bazaar.service
If the user installed bazaar, the service makes sure to e.g. continue
downloading apps and refresh flatpak metadata (which should make startup
faster) while being closed.

Note that we currently don't pre-install bazaar on any UI, but will
bring a benefit to those who choose to manually install it.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8583>
2026-05-17 16:48:19 +00:00
Aelin 73ccd45c93 linux-postmarketos-stable: Upgrade to 7.0.8
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8568>
2026-05-17 16:44:49 +02:00
Oliver Smith 7f09128ba4 extra-repos/systemd: plasma: disable riscv64
build-edge-riscv64 currently shows "lost" as status on
https://build.alpinelinux.org/. Let's disable riscv64 for these packages
again so we can update the packages for the other arches.

Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8572>
2026-05-17 14:27:38 +02:00
Bart Ribbers 3f960c6ac2 systemd/plasma*: upgrade to 6.6.5
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8572>
2026-05-17 14:23:19 +02:00
Eisenbahnfan a2d63ae730 u-boot-exynos5420: Fix slow EFI boot time
CONFIG_EFI_GRUB_ARM32_WORKAROUND always disables the caches and mmu. EFI
requires that those are enabled. As a result it takes long to uncompress
the vmlinuz file.

The new u-boot release has this option disabled and thus boots far faster.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8571>
2026-05-17 11:25:59 +00:00
Paul Sajna f077d2a1db kconfig-generic: Enable MIDI sequencer and CH341 USB-UART
Quoth /sound/core/seq/Kconfig:
"Many programs require this feature, so you should enable it
unless you know what you're doing."

I'm using my google-wormdingler tablet for some music production stuff
and these missing Kconfigs are really grinding my gears.

The USB-UART is part of my MIDI adapter, but is also quite a common
chip used for many things, including a bunch of arduinos.

Other configs for MIDI are enabled by default, but for whatever reason
the core sequencer device isn't.

Signed-off-by: Paul Sajna <sajattack@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8577>
2026-05-16 14:41:00 -07:00
Ferass El Hafidi ceb1d85e82 main/postmarketos-duranium: don't pass -v to losetup
See previous initramfs commit message for reasoning.

Signed-off-by: Ferass El Hafidi <funderscore@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8573>
2026-05-15 21:16:04 +00:00
Ferass El Hafidi f1d5764f16 main/postmarketos-initramfs: remove -v from losetup args
It was removed in
https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/commit/sys-utils/losetup.c?id=7e27c815979986666f78696adcfd5d13eab5df36
as it apparently had no effect on anything. Now that it is removed, the
initramfs still trying to use it is making complain and do nothing,
which results in boot failure.

Signed-off-by: Ferass El Hafidi <funderscore@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8573>
2026-05-15 21:16:04 +00:00
Aelin b04ad535bf linux-postmarketos-lts: Upgrade to 6.18.31
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8569>
2026-05-15 16:40:55 +02:00
Ferass El Hafidi f13be0f6b7 main/postmarketos-bootsplash: revert to killing plymouth using an openrc service
plymouth-openrc-plugin (and any other OpenRC plugins really) trigger a
bug in OpenRC that only happens on musl-based systems, which can result
in a hang if a service fails.

A PR has been submitted to OpenRC to fix this bug. While the PR is
waiting for review and merging, work around this by reverting to killing
the splash from an OpenRC service to at least no longer trigger this
bug. See pmaports#4536 for more context.

Signed-off-by: Ferass El Hafidi <funderscore@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8560>
2026-05-15 11:33:14 +00:00
Aster Boese 921c30190b kconfigcheck: add CONFIG_RUST=y to category:rust
category:rust was actually not added to *enable* Rust support in the kernel,
but to add options needed by kernels that had *already* enabled Rust. Since
the category was meant for kernels with Rust enabled, enabling Rust support
with the category makes sense and fits better with the category name to clear
up any confusion kernel package maintainers may have.

See 5cbd09c81c

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8559>
2026-05-15 10:53:09 +02:00
Aelin d43fb9230e linux-postmarketos-lts: Upgrade to 6.18.30
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8565>
2026-05-15 01:22:54 +00:00
Aelin fa890a3978 linux-postmarketos-stable: Upgrade to 7.0.7
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8564>
2026-05-15 00:15:08 +02:00
Aelin 0fefc4d2e7 cross/arch-bin-masquerade: remove
This package appears to be unused as I was not able to find any
references to it. The last references to it in pmaports history are from
2019 when distcc was still being used.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8554>
2026-05-14 04:28:21 +00:00
Aelin 8449ea7ef9 linux-postmarketos-qcom-sm7150: Upgrade to 7.1_rc3
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8544>
2026-05-14 04:19:28 +00:00
Ingo Reitz 0e9ad37eb4 linux-postmarketos-gs101: update to 7.0.6
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8188>
2026-05-14 04:05:47 +00:00
Stefan Hansson 2dec667f00 CI: Add check for required pmbootstrap version's age
While ideally everyone would be running the latest pmbootstrap version,
in practice people don't always update right away. And even if they want
to, their distribution may not have the latest version packaged yet.
Let's enforce some wiggle room here so distributions have time to catch
up before we require newer versions.

Signed-off-by: Stefan Hansson <newbyte@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8550>
2026-05-13 21:16:39 +00:00
Antoine Martin 5fa1e809b5 linux-postmarketos-rockchip: upgrade to 7.0.6
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8529>
2026-05-13 19:44:25 +00:00
Luca Weiss bc4c31a336 linux-postmarketos-qcom-msm8974: update to latest kconfig
Manual kconfig changes:
* CACHEFILES=m (category:netmount)
* CRYPTO_CAMELLIA=m (category:netmount)
* CRYPTO_CTS=y (category:netmount)
* FSCACHE=y (category:netmount)
* NFS_FSCACHE=y (category:netmount)
* NFS_V4_2=y (category:netmount)
* NFSD=m (category:netmount)
* NFSD_V3_ACL=y (category:netmount)
* NFSD_V4=y (category:netmount)
* NFSD_PNFS=y (category:netmount)
* NFSD_BLOCKLAYOUT=y (category:netmount)
* NFSD_SCSILAYOUT=y (category:netmount)
* NFSD_V4_2_INTER_SSC=y (category:netmount)
* RPCSEC_GSS_KRB5_ENCTYPES_AES_SHA1=y (category:netmount)
* RPCSEC_GSS_KRB5_ENCTYPES_AES_SHA2=y (category:netmount)
* RPCSEC_GSS_KRB5_ENCTYPES_CAMELLIA=y (category:netmount)
* CRYPTO_AES_TI=m (category:netmount)
* NFS_V4_1=y (category:netmount)
* ACCESSIBILITY=y (category:accessibility)
* A11Y_BRAILLE_CONSOLE=y (category:accessibility)
* SPEAKUP=m (category:accessibility)
* SPEAKUP_SYNTH_ACNTSA=m (category:accessibility)
* SPEAKUP_SYNTH_APOLLO=m (category:accessibility)
* SPEAKUP_SYNTH_AUDPTR=m (category:accessibility)
* SPEAKUP_SYNTH_BNS=m (category:accessibility)
* SPEAKUP_SYNTH_DECTLK=m (category:accessibility)
* SPEAKUP_SYNTH_DECEXT=m (category:accessibility)
* SPEAKUP_SYNTH_LTLK=m (category:accessibility)
* SPEAKUP_SYNTH_SOFT=m (category:accessibility)
* SPEAKUP_SYNTH_SPKOUT=m (category:accessibility)
* SPEAKUP_SYNTH_TXPRT=m (category:accessibility)
* SECURITY_DMESG_RESTRICT=y (category:hardening)

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8535>
2026-05-13 18:42:06 +00:00
Aelin 05ddca189d alsa-ucm-conf-qcom-sm7150: Upgrade to 1.2.15.3_git20260513
This adds symlinks for newer kernels and rebases it on upstream
alsa-ucm-conf.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8542>
2026-05-13 12:24:51 +00:00
bluebunny 4ca8c56900 generic-x86_64: recommend fwupd
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8551>
2026-05-13 20:33:28 +09:00
Aelin c7e2196f35 device-qcom-sm7150: Re-enable splash screen
pbsplash was broken on this device, but plymouth works completely fine,
so we can re-enable the splash screen and just drop the kernel cmdline
configuration.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8541>
2026-05-12 23:02:40 +00:00
Aelin 531c8cdcaa ci: Run armv7 jobs on native runner
We now have a runner capable of running 32-bit ARM jobs natively, so
switch to it to relieve the QEMU runner and get faster builds.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8539>
2026-05-12 21:03:00 +02:00
Aelin 2b26a11a85 ci: Tag aarch64 builds for aarch64 rather than arm64
Our aarch64 runners are tagged with both the aarch64 and the arm64 tag,
let's use the aarch64 tag to be consistent with the architecture naming
in APK.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8539>
2026-05-12 20:46:34 +02:00
bluebunny 3104b0b1e1 device-xiaomi-pipa: switch to EFI booting via U-Boot
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8536>
2026-05-12 16:22:07 +00:00
bluebunny c5493a9ad8 linux-xiaomi-pipa: upgrade to 7.0.6
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8536>
2026-05-12 16:22:07 +00:00
adamthiede 34ce832637 main/postmarketos-base: nosplash subpkg provide bootsplash virtual pkg
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8506>
2026-05-12 16:09:31 +00:00
adamthiede e881e9b51c main/postmarketos-base-ui: depend on bootsplash virtual package
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8506>
2026-05-12 16:09:31 +00:00
adamthiede fd36a1f665 main/postmarketos-bootsplash: provide virtual package
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8506>
2026-05-12 16:09:31 +00:00
Joel Selvaraj 67672bfcdf device-shift-axolotl: include panel driver to initfs
Needed for panel to work in FDE.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8446>
2026-05-11 19:26:50 -05:00
Joel Selvaraj f9818877c8 device-google-blueline: depend on userspace pd-mapper
Currently there is a bug in in-kernel pd-mapper (https://gitlab.postmarketos.org/postmarketOS/pmaports/-/work_items/3481).
So we depend on userspace pd-mapper in all sdm845 devices. Do the same here.
Required to get wifi and audio working.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8446>
2026-05-11 19:26:50 -05:00
Joel Selvaraj b8d769b1fb firmware-google-blueline: depend on qca fw and update fw path
Depend on upstream qca firmware for bluetooth and update fw paths as per
upstream kernel changes.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8446>
2026-05-11 19:26:50 -05:00
Joel Selvaraj bdb295daa1 firmware-shift-sdm845: update fw path as per upstream kernel changes
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8446>
2026-05-11 19:26:50 -05:00
Joel Selvaraj 0b38dbbe01 firmware-xiaomi-beryllium: update fw path as per upstream kernel changes
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8446>
2026-05-11 19:26:50 -05:00
Joel Selvaraj 8621428523 firmware-oneplus-sdm845: update fw path as per upstream kernel changes
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8446>
2026-05-11 19:26:50 -05:00
Joel Selvaraj 2b81e08dbc linux-postmarketos-qcom-sdm845: upgrade kernel to 7.1rc1
Also install modules into /usr.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8446>
2026-05-11 19:24:28 -05:00
Aelin c57ccbf57b linux-postmarketos-mainline: Upgrade to 7.1_rc3
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8528>
2026-05-11 22:46:43 +00:00
Andreas Kemnade f9357ff76b linux-epson-embt2ws: Update to 7.0.6
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8527>
2026-05-11 20:27:27 +00:00
Luca Leonardo Scorcia d64e7f263b main/postmarketos-mkinitfs-hook-netboot: remove redundant 'ERROR:' prefix
Remove the now redundant 'ERROR:' prefix.

Signed-off-by: Luca Leonardo Scorcia <l.scorcia@gmail.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8526>
2026-05-11 19:14:26 +00:00
Luca Leonardo Scorcia 2a350af160 main/postmarketos-mkinitfs-hook-netboot: update show_splash calls for plymouth
The show_splash function has been replaced by splash_show,
splash_set_message and splash_set_error, but the netboot hook still calls
the old function, logging errors in boot dmesg.

Signed-off-by: Luca Leonardo Scorcia <l.scorcia@gmail.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8526>
2026-05-11 19:14:26 +00:00
adamthiede 8dda93f2e4 linux-postmarketos-mediatek-mt8173: upgrade to 7.0.6 and update config
- Once again, another vuln: https://lwn.net/Articles/1071775/
- Adding required kconfig items

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8514>
2026-05-11 19:09:04 +00:00
Pablo Correa Gómez ff3de1ac4d main/postmarketos-base: drop innefective empty replaces
The main package does not have a replaces, so this is just redundant

Signed-off-by: Pablo Correa Gómez <pabloyoyoista@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8522>
2026-05-11 18:39:10 +00:00
Pablo Correa Gómez 38c285af62 main/postmarketos-base-nofde: integrate as postmarketos-base subpackage
This is pretty pointless as an independent subpackage

Signed-off-by: Pablo Correa Gómez <pabloyoyoista@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8522>
2026-05-11 18:39:10 +00:00
Pablo Correa Gómez 747fca72f1 main/postmarketos-base-nofde: drop inneffective provider_priority
It's ignored whenever the provides is versioned!

Signed-off-by: Pablo Correa Gómez <pabloyoyoista@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8522>
2026-05-11 18:39:07 +00:00
Pablo Correa Gómez c3fb6da297 main/unl0kr: fix postmarketos-fde-unlocker provider not being versioned
And therefore remove the unnecessary "provider_priority". The
postmarketos-base-nofde is already versioned, and there is no situation
in which having both unl0kr and postmarketos-base-nofde installed
makes sense.

Signed-off-by: Pablo Correa Gómez <pabloyoyoista@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8522>
2026-05-11 18:39:03 +00:00
Steven Lamphear 7c57ec6983 device-fairphone-fp6: move sim-wait-time.conf to -systemd subpackage
Co-authored by: @craftyguy

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8428>
2026-05-11 17:29:20 +00:00
Steven Lamphear eb61326447 device-fairphone-fp6: fix sim detection on cold boot
On cold boot, msm-modem-uim-selection's default 4-second SIM
detection timeout expires before the modem's UIM service is ready,
leaving ModemManager stuck in a "sim-missing" failed state and
requiring the user to manually run `systemctl restart ModemManager`.

Install a systemd drop-in override that increases SIM_WAIT_TIME from
the default 4 seconds to 30 seconds, giving the modem enough time to
finish initializing on this device.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8428>
2026-05-11 17:29:20 +00:00
Luca Leonardo Scorcia 79325d16d5 main/postmarketos-initramfs: fix leftover pbsplash call in debug_shell
The hide_splash function has been renamed to splash_hide.

Signed-off-by: Luca Leonardo Scorcia <l.scorcia@gmail.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8525>
2026-05-11 09:23:29 +00:00
bluebunny 299759f051 linux-postmarketos-exynos7870: set CONFIG_NLS_ASCII, sync kconfig, install modules to /usr
Without CONFIG_NLS_ASCII=y, the kernel fails to boot from fat32 ESP.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8515>
2026-05-11 09:19:50 +00:00
bluebunny 768de0abe4 firmware-samsung-{a2corelte,j6lte,on7xelte}: drop
Bluetooth firmware are all in upstream linux-firmware-brcm, and Wi-Fi can be
functional by symlinking inside the device package.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8515>
2026-05-11 09:19:50 +00:00
bluebunny 3dd9d1522f device-samsung-{a2corelte,j6lte,j7xelte,on7xelte}: drop
Switch to generic port samsung-exynos7.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8515>
2026-05-11 09:19:50 +00:00
bluebunny 8e343f6183 samsung-exynos7: switch to generic port for {a2corelte,j6lte,j7xelte,on7xelte}
Add myself as a co-maintainer.

Simplify the device name across APKBUILD and deviceinfo.

Depend on linux-firmware-brcm and add all related symlinks for enabling Wi-Fi support.

Follow the device package template for generic kernels [1] and add the close-to-mainline
kernel alongside the generic kernels. This is done because vanilla upstream kernels are
not very usable at the moment. (e.g. Wi-Fi doesn't work at all, j7xelte doesn't boot
due to lack of proper DRM)

[1]: https://docs.postmarketos.org/pmaports/main/generic-kernels.html#device-package-template

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8515>
2026-05-11 09:19:50 +00:00
Antoine Martin 522114f550 device-clockworkpi-uconsole-rpi: take maintainership
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8524>
2026-05-11 06:00:11 +00:00
Stefan Hansson 8133df094d Revert "main/postmarketos-mkinitfs-hook: merge mkinitfs-hook packages into one"
This breaks pmbootstrap's hook handling.

Closes https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/work_items/2759

This reverts commit 38ccc2ac8a.

[ci:skip-vercheck]: These aren't "new" packages per se.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8511>
2026-05-10 13:43:38 +00:00
Stefan Hansson aa19f54ef9 Revert "ci: shellcheck: update mkinitfs hook paths"
This reverts commit 59beb3ba91.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8511>
2026-05-10 13:43:38 +00:00
Aster Boese 30b14c3938 lynx-r1: add maintainer
See https://gitlab.postmarketos.org/postmarketOS/pmaports/-/work_items/4445#note_551859

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8523>
2026-05-10 10:37:21 +02:00
Luca Weiss c8c48bb2d3 linux-postmarketos-qcom-sm6350: upgrade to 7.0.5
* CACHEFILES=m (category:netmount)
* CRYPTO_CAMELLIA=m (category:netmount)
* CRYPTO_CTS=y (category:netmount)
* FSCACHE=y (category:netmount)
* NFS_FS=m (category:netmount)
* NFS_FSCACHE=y (category:netmount)
* NFS_V3=m (category:netmount)
* NFS_V4=m (category:netmount)
* NFS_V4_2=y (category:netmount)
* NFSD=m (category:netmount)
* NFSD_V3_ACL=y (category:netmount)
* NFSD_V4=y (category:netmount)
* NFSD_PNFS=y (category:netmount)
* NFSD_BLOCKLAYOUT=y (category:netmount)
* NFSD_SCSILAYOUT=y (category:netmount)
* NFSD_V4_2_INTER_SSC=y (category:netmount)
* RPCSEC_GSS_KRB5=m (category:netmount)
* RPCSEC_GSS_KRB5_ENCTYPES_AES_SHA1=y (category:netmount)
* RPCSEC_GSS_KRB5_ENCTYPES_AES_SHA2=y (category:netmount)
* RPCSEC_GSS_KRB5_ENCTYPES_CAMELLIA=y (category:netmount)
* ACCESSIBILITY=y (category:accessibility)
* A11Y_BRAILLE_CONSOLE=y (category:accessibility)
* SPEAKUP=m (category:accessibility)
* SPEAKUP_SYNTH_ACNTSA=m (category:accessibility)
* SPEAKUP_SYNTH_APOLLO=m (category:accessibility)
* SPEAKUP_SYNTH_AUDPTR=m (category:accessibility)
* SPEAKUP_SYNTH_BNS=m (category:accessibility)
* SPEAKUP_SYNTH_DECTLK=m (category:accessibility)
* SPEAKUP_SYNTH_DECEXT=m (category:accessibility)
* SPEAKUP_SYNTH_LTLK=m (category:accessibility)
* SPEAKUP_SYNTH_SOFT=m (category:accessibility)
* SPEAKUP_SYNTH_SPKOUT=m (category:accessibility)
* SPEAKUP_SYNTH_TXPRT=m (category:accessibility)

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8512>
2026-05-09 23:07:35 +00:00
Luca Weiss fec2d011a2 linux-postmarketos-qcom-sc7280: upgrade to 7.0.5
Enable all the 'accessibility' options as well.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8498>
2026-05-09 23:05:00 +00:00
Sicelo A. Mhlongo 33cea5f892 linux-postmarketos-omap: Add accessibility kconfigs
Signed-off-By: Sicelo A. Mhlongo <absicsz@gmail.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8471>
2026-05-09 18:29:24 +00:00
Sicelo A. Mhlongo 6b6306918c linux-postmarketos-omap: add CFI compatibility patch
omap4_finish_suspend is defined in arm assembly and is thus invisible to CFI,
causing errors when called directly as .finish_suspend. Wrap it in a function
which calls the assembly function.

The goal is to upstream the patch.

Signed-off-By: Sicelo A. Mhlongo <absicsz@gmail.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8471>
2026-05-09 18:29:24 +00:00
Sicelo A. Mhlongo 66f3535d7a linux-postmarketos-omap: add upstreamable hsi fix
Signed-off-By: Sicelo A. Mhlongo <absicsz@gmail.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8471>
2026-05-09 18:29:21 +00:00
Sicelo A. Mhlongo 75141b778c linux-postmarketos-omap: upgrade to 7.0.5
In addition to the version upgrade:
 1. Drop DTS patch for volume keys. These will be handled via hwdb
 2. Drop CONFIG_FW_LOADER_USER_HELPER. It was required by the LED controller
    (lp5523) driver until Linux 6.19
 3. Restore TWL4030_PWRBUTTON, and make it built-in (in readiness for plymouth)
 4. Drop HSI patch. To be replaced with a better quality patch which will be
    upstreamed
 5. The remainder of changes are from kconfig migrate

 Signed-off-By: Sicelo A. Mhlongo <absicsz@gmail.com>

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8471>
2026-05-09 18:29:17 +00:00
Ferass El Hafidi 85e89db86a main/postmarketos-base-ui-plasma: switch _pmb_recommends to depends for -kaccounts
Signed-off-by: Ferass El Hafidi <funderscore@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8507>
2026-05-09 08:56:07 +00:00
Ferass El Hafidi 0f35b43684 main/postmarketos-ui-plasma-mobile: switch _pmb_recommends to depends
for subpackages

Apparently pmbootstrap doesn't look in subpackages for _pmb_recommends.

Suggested-by: Clayton Craft <craftyguy@postmarketos.org>
Signed-off-by: Ferass El Hafidi <funderscore@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8507>
2026-05-09 08:56:07 +00:00
adamthiede dca2d19532 linux-postmarketos-mediatek-mt81: upgrade to 6.18.28 and update kconfig
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8516>
2026-05-09 01:56:21 +00:00
Andreas Kemnade 76b2ad1c28 linux-postmarketos-imx-ereader: Update to 7.0
- backlight for kobo-clara2e
- remove upstreamed wifi fix, add another one
- make kconfigcheck happy

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8492>
2026-05-08 23:44:34 +00:00
Pablo Correa Gómez 6112038d86 docs: remove requirement for maintainer from community devices
This is a general packaging guideline.

Signed-off-by: Pablo Correa Gómez <pabloyoyoista@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8508>
2026-05-08 21:49:46 +00:00
Pablo Correa Gómez e3f06aba45 docs: add section about maintainership to packaging guidelines
Signed-off-by: Pablo Correa Gómez <pabloyoyoista@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8508>
2026-05-08 21:49:46 +00:00
Pablo Correa Gómez b293a8e354 docs: place the provides section of the packaging guidelines at the end
It is quite massive, and therefore let's put the simpler things
first. If things keep growing, at some point it would make sense to
move it out to a subpage.

Signed-off-by: Pablo Correa Gómez <pabloyoyoista@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8508>
2026-05-08 21:49:43 +00:00
Luca Weiss a90be8cc48 linux-postmarketos-qcom-milos: upgrade to 7.0.5
Manual kconfig changes:
* CACHEFILES=m (category:netmount)
* CRYPTO_CAMELLIA=m (category:netmount)
* CRYPTO_CTS=y (category:netmount)
* FSCACHE=y (category:netmount)
* NFS_FS=m (category:netmount)
* NFS_FSCACHE=y (category:netmount)
* NFS_V3=m (category:netmount)
* NFS_V4=m (category:netmount)
* NFS_V4_2=y (category:netmount)
* NFSD=m (category:netmount)
* NFSD_V3_ACL=y (category:netmount)
* NFSD_V4=y (category:netmount)
* NFSD_PNFS=y (category:netmount)
* NFSD_BLOCKLAYOUT=y (category:netmount)
* NFSD_SCSILAYOUT=y (category:netmount)
* NFSD_V4_2_INTER_SSC=y (category:netmount)
* RPCSEC_GSS_KRB5=m (category:netmount)
* RPCSEC_GSS_KRB5_ENCTYPES_AES_SHA1=y (category:netmount)
* RPCSEC_GSS_KRB5_ENCTYPES_AES_SHA2=y (category:netmount)
* RPCSEC_GSS_KRB5_ENCTYPES_CAMELLIA=y (category:netmount)
* ACCESSIBILITY=y (category:accessibility)
* A11Y_BRAILLE_CONSOLE=y (category:accessibility)
* SPEAKUP=m (category:accessibility)
* SPEAKUP_SYNTH_ACNTSA=m (category:accessibility)
* SPEAKUP_SYNTH_APOLLO=m (category:accessibility)
* SPEAKUP_SYNTH_AUDPTR=m (category:accessibility)
* SPEAKUP_SYNTH_BNS=m (category:accessibility)
* SPEAKUP_SYNTH_DECTLK=m (category:accessibility)
* SPEAKUP_SYNTH_DECEXT=m (category:accessibility)
* SPEAKUP_SYNTH_LTLK=m (category:accessibility)
* SPEAKUP_SYNTH_SOFT=m (category:accessibility)
* SPEAKUP_SYNTH_SPKOUT=m (category:accessibility)
* SPEAKUP_SYNTH_TXPRT=m (category:accessibility)

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8513>
2026-05-08 16:19:27 +00:00
postmarketOS CI 18f6788502 linux-next: upgrade to next-20260508 2026-05-08 15:38:50 +00:00
Aelin 43e3d13a3e linux-postmarketos-lts: Upgrade to 6.18.27
And patch the ESP part of dirtyfrag.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8510>
2026-05-08 00:18:54 +00:00
Aelin fbd16e84e6 linux-postmarketos-stable: Upgrade to 7.0.4
And patch the ESP part of dirtyfrag.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8509>
2026-05-08 00:16:36 +00:00
postmarketOS CI 7774d016a5 linux-next: upgrade to next-20260507 2026-05-07 21:30:48 +00:00
Casey Connolly 3622865c9e CI: fix autoupdate
Reference the main branch instead of master.

Signed-off-by: Casey Connolly <kcxt@postmarketos.org>
2026-05-07 23:14:34 +02:00
bluebunny baa112b246 kconfig-generic: enable upstream configs for sm8250
These are some configs in the mainline kernel for supporting sm8250 devices.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8504>
2026-05-08 02:57:00 +09:00
Aster Boese 9153c26779 kconfig-generic: sort alphanumerically
Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8440>
2026-05-07 17:22:41 +00:00
Aster Boese 943ad8bb9e kconfig-generic: enable upstream configs for sdm845
These are not all the required configs for running mainline on sdm845, only the
ones that are in the upstream kernel.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8440>
2026-05-07 17:22:41 +00:00
Pablo Correa Gómez 0b505f0189 docs: cleanup wording of device-categorization.
"2021-11" is completely unnecessary at this point, and adding that the
kernel must be upgraded regularly is redundant with the requirement of
3 kernel releases and a lot less objective. So keep the objective
wording and remove the one very up for interpretation.

Signed-off-by: Pablo Correa Gómez <pabloyoyoista@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8505>
2026-05-07 16:44:53 +00:00
Pablo Correa Gómez 5e180a8f0b docs: fix heading level of archived category
Signed-off-by: Pablo Correa Gómez <pabloyoyoista@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8505>
2026-05-07 16:44:53 +00:00
Steven Lamphear ec2040aad2 linux-postmarketos-allwinner: fetch tarball from GitHub mirror
The codeberg tarball fetch was timing out the verify-checksums CI job
(no bytes received after TCP/TLS handshake for 15 minutes). Switch to
Arnav Singh's GitHub mirror of megi's tree, which mirrors the same tag
(orange-pi-6.18-20260105-0049).

The recorded sha512sum changes because GitHub and Gitea (codeberg)
generate tarballs with different bytes for the same git tag.

Also adjust builddir, since GitHub's tarball top-level directory is
named "<repo>-<tag>" (linux-orange-pi-6.18-20260105-0049/) where
codeberg's was just "<repo>" (linux/).

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8501>
2026-05-07 08:38:00 -05:00
Steven Lamphear bed6fee4cf linux-postmarketos-allwinner: install modules to /usr/lib/modules
Required by .ci/grep.sh as of c883d781bd. Matches the pattern already in linux-postmarketos-{mainline,lts,stable}

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8501>
2026-05-07 08:17:51 -05:00
Steven Lamphear 56ab46e628 linux-postmarketos-allwinner: fix rtl8723cs CFI panic on PinePhone
The rtl8723cs staging driver in megi's tree [declares rtw_xmit_entry as returning int](https://codeberg.org/megi/linux/src/tag/orange-pi-6.18-20260105-0049/drivers/staging/rtl8723cs/os_dep/linux/xmit_linux.c#L513), but the kernel core's net_device_ops::ndo_start_xmit [expects netdev_tx_t](https://codeberg.org/megi/linux/src/commit/6519f78239276e5d14698135fe05aa3206947ab9/include/linux/netdevice.h#L1413). With kCFI enabled on aarch64 the indirect call from dev_hard_start_xmit traps on the type-hash mismatch, panicking the kernel as soon as wpa_supplicant sends a frame. This patch changes rtw_xmit_entry's return type to netdev_tx_t (the function already returns 0, which is NETDEV_TX_OK).

Tested on a PinePhone 1.2 with both an SD-card install and an eMMC install: wifi associates and remains stable, no CFI panic. The eMMC install had previously been connected to wifi, so it froze during boot; the SD-card install was new, but would freeze (and eventually crash) upon attempting to connect to wifi.

Closes: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/work_items/4507
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8501>
2026-05-07 08:17:51 -05:00
Aster Boese 38566839db systemd/postmarketos-base-systemd: fix VT auto allocation
For systemd-logind to allocate VTs automatically when a user switches to them, two
things need to be done. First, logind.conf needs `NAutoVTs=` set to a value, which
in this change is set to the default. Second, getty@.service needs to be symlinked
to autovt@.service, otherwise systemd-logind fails to find the template file.

This change also moves logind.conf to the proper path under `/usr/lib/systemd/`
instead of the sysadmin override path under `/etc/systemd/` and alphanumerically
sorts the sources.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8496>
2026-05-06 19:02:02 +00:00
Aster Boese 029b539827 kconfigcheck: add accessibility category
Enables the basic kernel interfaces for the kernel braille and
speakup support.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7429>
2026-05-06 16:10:53 +00:00
Andreas Kemnade 5fd2a894fe u-boot-kobo-librah2o: take over maintainership
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8491>
2026-05-06 05:50:55 +00:00
Andreas Kemnade b4239c35a8 device-kobo-librah2o: take over maintainership
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8491>
2026-05-06 05:50:55 +00:00
Clayton Craft 8d657c1c3f main/postmarketos-base: update nosplash kernel cmdline config
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7482>
2026-05-05 12:34:20 -07:00
Clayton Craft 92db54cf94 main/postmarketos-mkinitfs: add trigger for plymouth
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7482>
2026-05-05 12:34:20 -07:00
Clayton Craft 084013fac5 main/postmarketos-initramfs: replace pbsplash with plymouth
This also drops support for pmos.no-splash, since removing `splash` from
the kernel cmdline will effectively prevent Plymouth from showing the
splash screen.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>

[ci:skip-vercheck]

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7482>
2026-05-05 12:34:20 -07:00
Clayton Craft 3f67ce725c main/postmarketos-bootsplash: Clayton take over maintaining
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7482>
2026-05-05 12:34:19 -07:00
Clayton Craft c9d6c3b56e main/postmarketos-bootsplash: replace pbsplash with plymouth
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7482>
2026-05-05 12:34:19 -07:00
Clayton Craft 2c16da8777 main/postmarketos-plymouth-themes: new aport
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7482>
2026-05-05 12:34:19 -07:00
Andreas Kemnade 608d19a9d7 u-boot-tolino-shine3: MAINTAINER
I have kobo-clarahd and tolino-shine2hd.
kobo-clarahd uses the same board as tolino-shine3, but another
pin-compatible but not software-compatible SoC is installed
tolino-shine2hd uses the same SoC as the tolino-shine3.
So if things are working on both of the devices, it is almost
safe to assume that they will also work on the tolino-shine3.
Based on that assumption add me as a maintainer.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8490>
2026-05-05 17:43:02 +00:00
Andreas Kemnade e4f3682b35 device-tolino-shine3: MAINTAINER
I have kobo-clarahd and tolino-shine2hd.
kobo-clarahd uses the same board as tolino-shine3, but another
pin-compatible but not software-compatible SoC is installed
tolino-shine2hd uses the same SoC as the tolino-shine3.
So if things are working on both of the devices, it is almost
safe to assume that they will also work on the tolino-shine3.
Based on that assumption add me as a maintainer.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8490>
2026-05-05 17:43:02 +00:00
Oliver Smith c52e7b1556 docs: add release documentation
Move and update release documentation from these wiki pages to pmaports
docs:
* https://wiki.postmarketos.org/wiki/Releases
* https://wiki.postmarketos.org/wiki/Creating_a_release_branch#Timeline

Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8486>
2026-05-05 12:48:41 +00:00
Oliver Smith c614719e7a issue_templates: add Release_EOL.md
Move the contents of this wiki page into an issue template and modernize
it a bit while at it:
https://wiki.postmarketos.org/wiki/Creating_a_release_branch#Drop_phase

Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8486>
2026-05-05 12:48:41 +00:00
Oliver Smith ca732c1fb7 issue_templates: add Release_Infrastructure.md
Move the contents of this wiki page into an issue template and modernize
it a bit while at it:
https://wiki.postmarketos.org/wiki/Creating_a_release_branch#Detailed_tasks_for_Team

Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8486>
2026-05-05 12:48:41 +00:00
Paul Sajna 185e92dba7 device-lg-judyp: MAINTAINER
I now have one of these in my posession and I'm working on extracting the firmware and fixing up the DTB to get it working properly again.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8483>
2026-05-05 01:55:44 +00:00
Clayton Craft 37c9314dbe main/postmarketos-duranium: merge sysexts in initramfs
This merges system extensions in the initramfs, right before
switch_root, so that the rootfs boot always has the full merged /usr
right from the start. It fixes ordering issues like binfmt starting
before /usr/lib/binfmt.d was merged, and ultimately not working as
expected.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8426>
2026-05-04 15:53:33 -07:00
Clayton Craft f61687b60d main/postmarketos-duranium: support "self hosting"
This will allow folks to easily run mkosi, e.g. for building duranium
images. This makes duranium self-hosting.

There are several key changes in this patch:

- mkosi is added to the duranium developer tools sysext

- user qemu is added to the dev tools sysext (for binfmt+qemu)

- coreutils is added to the main pkg to work around a conflict that Alpine
has with mkosi (see: https://github.com/systemd/mkosi/pull/4283). The
issue is that the busybox symlinks installed in the base duranium image
are not replaced by mkosi when it generates a system extension even if
that sysext pulls in coreutils. coreutils isn't *that* big, so it makes
sense to just have these links correct in the base image.

- duranium dev. tools depends on apk-tools. Wait, what?! mkosi uses
apk to bootstrap a tools tree for building pmOS images. Since we don't
actually want apk to work when run against the duranium rootfs, this
also installs a wrapper that refuses to run apk if it detects that it's
being used "unsafely". To be clear, running apk on duranium's rootfs
won't change /usr or break duranium, but it will: 1) fail, 2) create
confusing state in /etc, /var.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8426>
2026-05-04 15:53:16 -07:00
Clayton Craft fc5554ef5c main/postmarketos-base: split apk-tools into -apk subpkg
It doesn't make sense to install apk by default in all flavors of pmOS,
like duranium. To avoid this, apk-tools is moved into a new -apk
subpackage that is pulled in implicitly via install_if. This has the
following benefits:

- postmarketos-duranium can "depend" on !postmarketos-base-apk to
exclude apk-tools

- apk-tools remains a dependency in existing mutable pmOS installs,
so it shouldn't be purged by this change 🤞

- we don't have to update hundreds of APKBUILDs in pmaports that
explicitly depend on `postmarketos-base` to now depend on some other
package that doesn't have apk-tools as an explicit dependency.

After this change, we'll be able to remove some janky cleanup code in
the duranium image build config for uninstalling apk-tools from the base
image, and it will allow us to *add* apk-tools in a system extension
later [1]

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>

1. https://gitlab.postmarketos.org/postmarketOS/pmaports/-/work_items/4502

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8426>
2026-05-04 15:53:16 -07:00
Scott C 83b13b1ad0 device-barnesnoble-encore: Become maintainer and add udev rule for touchscreen
I've added support for this device and continue to work on it, so
become maintainer.

Udev rule is just a slight tweak to the one generated by pmbootstrap
when touchscreen details are in deviceinfo, except use the device
name instead of /dev/input/eventX, whose number varies each boot.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8470>
2026-05-04 20:05:31 +00:00
Aelin c1ed6289e2 kconfigcheck: Require the improved NTFS driver in 7.1+
Linux 7.1 introduces a new NTFS driver that is more compatible than
NTFS3, faster and has more features. Let's switch to it for kernel
versions where it is available.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8484>
2026-05-04 14:24:22 +00:00
Aster Boese c883d781bd ci: grep: enforce installing kernel modules to /usr/lib/modules/
Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8374>
2026-05-04 09:43:12 +02:00
Affe Null 784f73e155 firmware-jolla-c2: remove boot subpackage
Do not package proprietary bootloader files in /boot since they are not
needed there.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8480>
2026-05-04 05:38:43 +00:00
Affe Null 9c64171a29 device-jolla-c2: remove firmware-jolla-c2-boot dependency
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8480>
2026-05-04 05:38:43 +00:00
Aelin b6ce0811df linux-postmarketos-mainline: Upgrade to 7.1_rc2
Also install modules to /usr/lib/modules rather than /lib/modules.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8482>
2026-05-04 04:51:14 +00:00
Aelin d2e6fed469 cross/gcc-*: regenerate to enable on aarch64
[ci:skip-vercheck]: architecture enablement

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8479>
2026-05-03 22:41:52 +00:00
Aelin 0cb96660c3 cross/musl-*: regenerate to enable for aarch64
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8479>
2026-05-03 22:41:52 +00:00
Aelin 616d3a5fcb linux-postmarketos-qcom-sm8250: Update source checksums
[ci:skip-vercheck]: moving between categories
[ci:skip-kconfigcheck]: moving between categories

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8398>
2026-05-03 20:35:10 +02:00
Aelin c66aa62e36 device-xiaomi-elish: Move to testing
The kernel package used by this device does not meet the community
kernel version requirements anymore and the maintainer has not responded
to the issue #4448 which notified them of the situation.

Since two weeks have passed without a request for more time, the device
should be moved to testing.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8398>
2026-05-03 20:35:06 +02:00
Tom Schlenker 1a3c003fda linux-postmarketos-qcom-sc7180: enable CROS_EC_CHARGECONTROL
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8477>
2026-05-03 16:11:35 +00:00
Kevin Widjaja 0726a31793 Move sony-togari to archive
I have not maintained the port for a while now and am currently unable to due to my Z Ultra being broken. The last status was the device was able to boot debug shell but unable to boot to pmos.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8465>
2026-05-03 15:51:40 +00:00
Aster Boese c08af97985 cross/gcc{4,6}-*: sync with compilers in main/
Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8214>
2026-05-03 15:08:45 +00:00
Aster Boese f98e59c618 main/gcc{4,6}: fix license and options fields
license= is not touched by pmbootstrap's gcc aportgen, so we need to
fix it manually.

options= is edited to match the modern output of aportgen.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8214>
2026-05-03 15:08:45 +00:00
Aster Boese 345094da82 main/gcc{4,6}: remove fortify-headers from the default include path
gcc4 and gcc6 are only used for compiling downstream kernels these days.
Because these compilers are so old, most of fortify-headers does not even
work with them. As such, because downstream kernels have no security
guarantees, removing fortify-headers from the default include path
won't have any negative impacts on the distro.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8214>
2026-05-03 15:08:45 +00:00
Oliver Smith a3efbbedb4 Drop maintainership for jane400
She currently can't maintain these ports, drop the maintainership as we
had discussed in chat.

[ci:skip-vercheck]

Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8478>
2026-05-03 13:15:49 +00:00
Stefan Hansson c6caa19a8f Revert "linux-postmarketos-allwinner: HACK: disable cross-native"
This was only needed as a temporary workaround[1].

This reverts commit a184bf63e2.

 [1]: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8295#note_546725

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8476>
2026-05-03 09:27:01 +02:00
Rudraksha Gupta f43a60639d linux-pine64-pinephonepro: upgrade to 7.0
Update ppp kernel to 7.0

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8300>
2026-05-02 20:48:58 -07:00
Robert Eckelmann b91e6153b5 linux-postmarketos-grate: adopt latest changes in kconfig
Signed-off-by: Robert Eckelmann <longnoserob@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8422>
2026-05-03 10:20:03 +09:00
Robert Eckelmann a9e24a9109 linux-postmarketos-grate: add source by commit_id
Signed-off-by: Robert Eckelmann <longnoserob@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8422>
2026-05-03 10:20:03 +09:00
Robert Eckelmann 780a52b667 linux-postmarketos-grate: update maintainers
Signed-off-by: Robert Eckelmann <longnoserob@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8422>
2026-05-03 10:20:03 +09:00
Robert Eckelmann b5ffd1b480 linux-postmarketos-grate: fix dependencies
Signed-off-by: Robert Eckelmann <longnoserob@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8422>
2026-05-03 10:20:03 +09:00
Robert Eckelmann 7c32d93131 linux-postmarketos-grate: remove patch for wifi on Surface RT
This patch is now included in the source-tree

Signed-off-by: Robert Eckelmann <longnoserob@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8422>
2026-05-03 10:20:03 +09:00
Robert Eckelmann 4262b265df linux-postmarketos-grate: upgrade to 7.0.1
- update url to new tegra-libre repo on codeberg
- kconfig migration done
- latest changes to kconfig reflected

Signed-off-by: Robert Eckelmann <longnoserob@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8422>
2026-05-03 10:19:47 +09:00
Sicelo A. Mhlongo 71858694b3 device-nokia-n900: sway: workaround wlroots dpms bug
The sway 1.12 & wlroots 0.20 combination surfaces a dpms bug where the display
requires two attempts at turning it on after it has been set to off. Workaround
this until the issue is resolved.

Reference: https://gitlab.freedesktop.org/wlroots/wlroots/-/work_items/4026
Signed-off-By: Sicelo A. Mhlongo <absicsz@gmail.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8472>
2026-05-02 16:09:42 +02:00
Sicelo A. Mhlongo e51efc65b2 device-nokia-n900: drop xorg.conf
The X11 server can auto-configure things on its own.

Signed-off-By: Sicelo A. Mhlongo <absicsz@gmail.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8472>
2026-05-02 16:09:42 +02:00
Sicelo A. Mhlongo fcbcb97a50 device-nokia-n900: Implement fixes for boot/init issues
1. Modernize the boot parameters uboot passes to the kernel
 2. Correct the volume keys. Upstream DTS actually sends F7 and F8 for these
       keys, which is the behavior from stock. Using hwdb to correct the keys
       allows us to drop the relevant DTS patch from linux-postmarketos-omap.
       Additionally add the hwdb database into initramfs to ensure the keys
       also work during system initialization
 3. Disable OMAP 3430 OFF mode early in the initramfs. This is currently
       broken and causes system instability. We previously used a DTS patch to
       do this, but using an initramfs hook allows us to reduce the amount of
       kernel patches we maintain

Signed-off-By: Sicelo A. Mhlongo <absicsz@gmail.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8472>
2026-05-02 16:09:42 +02:00
Sicelo A. Mhlongo 5622b6371c device-nokia-n900: do not depend on UPower for i3blocks
Version 34 of the device-nokia-n900 package implemented an udev-based script
for shutdown due to critically-low battery condition.  Therefore, depending on
UPower is no longer necessary. To keep the i3blocks status bar working in
the absence of UPower, switch back to basic sysfs polling.

Signed-off-By: Sicelo A. Mhlongo <absicsz@gmail.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8472>
2026-05-02 16:09:42 +02:00
Sicelo A. Mhlongo 1de140f47f device-nokia-n900: upower: switch to config fragment
As of upower 1.91.0, UPower supports config fragments, thus there is no longer
a need to ship a full UPower.conf. The device-specific upower package can
therefore be dropped, and the config fragment will be installed unconditionally
as part of the device package.

NB: It is still necessary to use a custom udev script to initiate poweroff due
to low battery on the N900, since the fuel gauge has a hardware limitation
which results in reporting 0% if the calibration is off, causing unwanted
device shutdowns if UPower's mechanism is active.

Signed-off-By: Sicelo A. Mhlongo <absicsz@gmail.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8472>
2026-05-02 16:09:42 +02:00
Sicelo A. Mhlongo 0b83a665db device-nokia-n900: rework screen locking
Provide a unified screen locking mechanism, supporting x11 and sway.  Auto
locking is also improved to correctly disable inputs in all screen locking
scenarios, and re-enabling them on unlock. Unlock on keypad slide now also
works on sway (from sway v1.12).

Any x11 UI can use the existing script by setting up appropriate keybinds to
the script and autostarting xautolock. It may be necessary to disable any
built-in autolock method integrated within a specific x11 WM.

NB: This is NOT locking in the sense of secure locking. It is purely for
turning the screen off and disabling some inputs (currently only the
touchscreen) to prevent unintended wakeups.

Signed-off-By: Sicelo A. Mhlongo <absicsz@gmail.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8472>
2026-05-02 16:09:42 +02:00
Sicelo A. Mhlongo 92b08601f7 device-nokia-n900: simplify sway status bar configuration
Since version 4, postmarketos-ui-sway allows overriding the status bar easily,
thus the hack to hide the global sway status bar to display a second bar is no
longer necessary.

Signed-off-By: Sicelo A. Mhlongo <absicsz@gmail.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8472>
2026-05-02 16:09:42 +02:00
Sicelo A. Mhlongo 79f6325f6c postmarketos-ui-sway: use config fragment for status bar
Separating the status bar allows for customization (e.g. in a device package)
without replacing the entire sway config

Signed-off-By: Sicelo A. Mhlongo <absicsz@gmail.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8472>
2026-05-02 16:09:42 +02:00
Luca Weiss 94a191ce06 linux-postmarketos-qcom-sc7280: upgrade to 7.0.0
Manual kconfig changes:
* QCOM_QSEECOM=y (Q6A)
* QCOM_QSEECOM_UEFISECAPP=y (Q6A)
* BRCMFMAC=m (RUBIK Pi 3)
* SENSORS_PWM_FAN=m (RUBIK Pi 3)
* DEVFREQ_GOV_PERFORMANCE=y
* DEVFREQ_GOV_POWERSAVE=y
* DEVFREQ_GOV_USERSPACE=y
* DEVFREQ_GOV_PASSIVE=y
* USB_NET_RNDIS_HOST=m (category:usb)
* SECURITY_DMESG_RESTRICT=y (category:hardening)

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8360>
2026-05-02 08:30:49 +00:00
Robert Eckelmann b2befbfed1 linux-postmarketos-marvell: upgrade to 6.18.24
relecting also lated kconfig requirements

Signed-off-by: Robert Eckelmann <longnoserob@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8424>
2026-05-02 02:38:57 +00:00
Stefan Hansson 96217725f4 main/postmarketos-tweaks-setting-definitions: upgrade to 1.1.0
Signed-off-by: Stefan Hansson <newbyte@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8456>
2026-05-02 02:13:09 +00:00
adamthiede 4fc27938cc linux-postmarketos-mediatek-mt81: upgrade to 6.18.26 and update kconfig
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8464>
2026-05-02 02:10:13 +00:00
Anton Bambura 395c9d0981 ayn-odin: depend on soc-qcom-pd-mapper and soc-qcom-qbootctl
soc-qcom-pd-mapper is required for WiFi to work, and
soc-qcom-qbootctl should fix the issue of the slot getting inactive
after a few reboots.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8434>
2026-05-02 01:31:11 +00:00
Alexander Martinz bce2b05e3b firmware-shift-otter: update firmware to 20260306
Firmware is updated to 20260306, matching the latest Android OTA
`OTTER.SOS.6.5.G-RELEASE-20260306-OTA.zip`.

This release also adds firmware for hexagonfs.

Further the prepare script is now installing the firmware into
`/usr/lib` instead of `/lib`.

Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8451>
2026-05-02 00:59:35 +00:00
Barnabás Czémán 0bf541c91b linux-postmarketos-qcom-msm8953: Upgrade to v7.0.2-r0
Upgrade kernel to v7.0.2-r0

Signed-off-by: Barnabás Czémán <barnabas.czeman@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8452>
2026-05-02 00:56:42 +00:00
Linus Walleij 47ed0d3446 samsung-stericsson-phones: Assume maintainership
The kernel and firmware is maintained, I can maintain the devices,
I maintain their wikipages anyway.

Signed-off-by: Linus Walleij <linusw@kernel.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8466>
2026-05-01 17:58:11 +02:00
adamthiede 69c23c9752 linux-postmarketos-mediatek-mt8173: upgrade to 7.0.3 and update config
update config for new default checks

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8455>
2026-05-01 13:03:02 +00:00
Alicja Michalska 2d18e334fe linux-postmarketos-qcom-sc7180: Update to 6.18.26
Patches CopyFail, satisfies new kconfig requirements

Signed-off-by: Alicja Michalska <ellyqw@mainlining.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8460>
2026-05-01 12:35:10 +00:00
Antoine Martin 082d19cdd8 linux-postmarketos-rockchip: upgrade to 6.19.14
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8462>
2026-04-30 19:26:13 -04:00
Clayton Craft dc9bacbe85 linux-postmarketos-asahi: upgrade to 6.19.14-1
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8458>
2026-04-30 22:44:30 +00:00
Aelin a25bb27739 linux-postmarketos-lts: Upgrade to 6.18.26
Also install modules to /usr/lib/modules rather than /lib/modules.

And fix an oversight in the kconfig-generic.toml that would lead to
some configs not being enabled on 6.18.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8459>
2026-04-30 19:23:34 +00:00
Aelin 120f85d9fc kconfig-generic: EC_LENOVO_YOGA_C630 is not enabled on 6.18
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8459>
2026-04-30 19:23:34 +00:00
Aelin a6e35ca3aa linux-postmarketos-stable: Upgrade to 7.0.3
Also install modules to /usr/lib/modules rather than /lib/modules.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8457>
2026-04-30 16:23:35 +02:00
Eisenbahnfan 40380a12d6 device-samsung-v1awifi: Add more initfs modules for display
Additional modules are needed in initfs to enable the display during boot.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8453>
2026-04-30 00:28:57 +02:00
Eisenbahnfan 565544855e device-samsung-n2awifi: Add more initfs modules for display
Additional modules are needed in initfs to enable the display during boot.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8453>
2026-04-30 00:28:35 +02:00
Eisenbahnfan 834b442669 device-samsung-n1awifi: Add more initfs modules for display
Additional modules are needed in initfs to enable the display during boot.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8453>
2026-04-30 00:25:54 +02:00
Barnabás Czémán 40bcbbb4c3 device-qcom-msm89x7: add necessary modules for pwm
Redmi 4A, 5A and Go are using PWM backlight what is
dependency of the panel.
Add necessary modules for make it able to use PWM at
early boot stage.

Signed-off-by: Barnabás Czémán <barnabas.czeman@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8447>
2026-04-29 11:49:10 +00:00
Barnabás Czémán 114b9249dd linux-postmarketos-qcom-msm89x7: Upgrade to v7.0.2-r0
Upgrade kernel to v7.0.2-r0.

Signed-off-by: Barnabás Czémán <barnabas.czeman@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8447>
2026-04-29 11:49:10 +00:00
Robert Mader 4b25f699e4 temp/libcamera: upgrade to 0.7.1
See
https://gitlab.freedesktop.org/camera/libcamera/-/releases/v0.7.1

Also sync dependencies to upstream.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8449>
2026-04-29 09:48:53 +02:00
Robert Eckelmann 4ca37d4f48 device-nvidia-tegra-armv7: takeover maintainership
Signed-off-by: Robert Eckelmann <longnoserob@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8425>
2026-04-28 21:40:09 +00:00
Robert Eckelmann dee0225ae5 firmware-nvidia-tegra-armv7: update source repo and maintainer
Signed-off-by: Robert Eckelmann <longnoserob@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8425>
2026-04-28 21:40:09 +00:00
Aelin 86283c7cf0 firmware-thundercomm-rubikpi3: Add WiFi firmware
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8400>
2026-04-28 23:00:38 +02:00
Aelin 96fc094233 linux-postmarketos-lts: Upgrade to 6.18.25
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8444>
2026-04-28 13:53:09 +00:00
Aelin 90202ff4d3 linux-postmarketos-stable: Upgrade to 7.0.2
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8443>
2026-04-28 13:51:01 +00:00
Aelin d918718472 linux-postmarketos-mainline: Upgrade to 7.1_rc1
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8435>
2026-04-28 13:47:55 +00:00
Eisenbahnfan 08d1da344f device-samsung-v1awifi: Switch to u-boot
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8296>
2026-04-28 13:21:25 +00:00
Eisenbahnfan cb474148bb device-samsung-n2awifi: Switch to u-boot
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8296>
2026-04-28 13:21:25 +00:00
Eisenbahnfan 677c91b500 device-samsung-n1awifi: Switch to u-boot
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8296>
2026-04-28 13:21:25 +00:00
Eisenbahnfan f4fdf38d13 u-boot-exynos5420: Introduce u-boot package for device-samsung-{n1awifi,n2awifi,v1awifi}
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8296>
2026-04-28 13:21:25 +00:00
Clayton Craft f559b38457 main/postmarketos-duranium: don't set user comment on first boot
This was causing GNOME and KDE to show "Default User" e.g. on login

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8442>
2026-04-28 12:38:32 +00:00
Ferass El Hafidi 6f49801ecd main/postmarketos-base-ui-plasma: do not install kaccounts-providers on armv7
Yet another package that depends on qtwebengine and thus is unavailable
on armv7.
See: pma#4505

Signed-off-by: Ferass El Hafidi <funderscore@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8438>
2026-04-28 07:44:18 +00:00
Aster Boese c1722fd01a main/postmarketos-mkinitfs-hook: fix using wrong variable in loop
Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8441>
2026-04-28 00:11:48 +02:00
Aster Boese ec2aab38d5 device/community/firmware-*: install to /usr/lib/
Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8385>
2026-04-27 17:49:29 +00:00
Stefan Hansson fd95c55abf deviceinfo_schema.toml: Document vendor_boot-related variables
Found in
https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/commit/8e3229c9a8d481ad223ecfe7a73041323cbc2390

Signed-off-by: Stefan Hansson <newbyte@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8387>
2026-04-27 16:52:54 +00:00
Eisenbahnfan a325d6d06d kconfigcheck: CONFIG_NFS_V4_1 is not available starting from Linux v7.0
See [1], which was merged into v7.0.

[1] https://lore.kernel.org/all/20260126203938.450304-15-anna@kernel.org/

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8429>
2026-04-26 17:34:33 +00:00
Ali Nasrullayev db45854e65 xiaomi-vayu: Take maintainership, refactor firmware and device packages
Updated firmware and device packages to comply with latest standards and
added kernel subpackages for each display panel variant

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8332>
2026-04-26 15:39:36 +00:00
Aster Boese 430a3f0f85 systemd/cups: upgrade to 2.4.18
Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8430>
2026-04-26 15:26:03 +00:00
bluebunny 632197dd74 linux-xiaomi-pipa: upgrade to 7.0.1
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8412>
2026-04-26 10:48:24 +00:00
Clayton Craft ea6a2fc814 linux-postmarketos-asahi: upgrade to 6.19.12-1
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8423>
2026-04-25 10:18:17 -07:00
Luca Weiss bb0d75bf85 linux-postmarketos-qcom-sc7280: update kconfig for NFSD
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8117>
2026-04-24 21:05:20 +00:00
Luca Weiss fbaf608c1c kconfigcheck: Enable NFSD options
Enable the in-kernel NFS server along with some other related options.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8117>
2026-04-24 21:05:20 +00:00
Neil Armstrong 51f2a726b1 linux-ayaneo-pocket-s2: refresh kernel on v7.0 and latest mainline patchset
Also include changed from Drakulix to enable the controller UART,
fix runtime suspend and enable higher GPU OPPs.

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8405>
2026-04-24 20:54:40 +00:00
Aelin 5d38a7cc64 kconfigcheck: Simplify based on version baselines
This replaces all version requirements below the baseline for the
categories with >=0.0.0 and completely removes configurations that would
only apply to version ranges no longer included in the baseline.

The default category baseline is 2.6.0, categories for community kernels
currently have a baseline of 5.17.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8421>
2026-04-24 20:43:49 +00:00
André Apitzsch 4b64fc45ed motorola-peregrine: archive device specific package
Archive Motorola Moto G 4G 2013 device package in favor of
device-qcom-msm8226.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8395>
2026-04-23 21:36:37 +02:00
Aster Boese 59beb3ba91 ci: shellcheck: update mkinitfs hook paths
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8413>
2026-04-23 19:04:55 +00:00
Aster Boese 38ccc2ac8a main/postmarketos-mkinitfs-hook: merge mkinitfs-hook packages into one
Having many separate mkinitfs-hook packages makes it harder to add new
hooks and makes maintaining the hooks very fragmented and challenging.
Merging them all into one package and splitting them out by subpackage
makes them much more maintainable and makes adding new hooks as easy as
adding files and a subpackage.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8413>
2026-04-23 19:04:55 +00:00
Aelin 0def725a74 kconfig-generic: Enable Motorcomm YT6801 ethernet controller
This ethernet controller is found on a handful of Loongson mainboards,
for example the XB612B0 for the 3B6000.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8418>
2026-04-23 10:10:31 +00:00
Aelin ccd99db6a1 linux-postmarketos-stable: Upgrade to 7.0.1
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8416>
2026-04-23 09:12:46 +00:00
Clayton Craft a329e09227 main/postmarketos-duranium: pin size of usr partition
In some cases when the disk is very large (e.g. 2TB) repart will add
extra space to the slot-A usr partition to make it larger. The slot-B
partitions are already pinned with a min/max size so they would stay
the correct size. This pins the slot-A usr partition so it's no longer
grown. This should have been done all along.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8419>
2026-04-23 03:07:53 +00:00
Aelin 4c2cb176ef linux-postmarketos-lts: Upgrade to 6.18.24
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8417>
2026-04-23 00:25:04 +02:00
Aelin b51e236f1a kconfigcheck: Fix inconsistencies on loongarch64
CONFIG_CRYPTO_CTS is built-in if CONFIG_FS_ENCRYPTION is enabled, which
it is by default on loongarch64, which is reasonable.

CONFIG_NFSD is also built-in on some architectures, which causes
CONFIG_RPCSEC_GSS_KRB5 to be built-in rather than a module. We could
either force disable NFSD, which is not great, or just build it as a
module, which is what I opted for.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8415>
2026-04-22 22:06:50 +00:00
Guido Günther 20424b99f9 issue_template: Explain how to get debug information for Phosh
Signed-off-by: Guido Günther <agx@sigxcpu.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8403>
2026-04-22 21:13:59 +00:00
Neil Armstrong 8155e23632 kconfigcheck: CRYPTO_AES_TI is not available starting from Linux v7.0
See [1], which was merged into v7.0.

[1] https://lore.kernel.org/all/20260112192035.10427-9-ebiggers@kernel.org/

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8410>
2026-04-22 20:23:39 +00:00
Clayton Craft 0add2ad499 main/postmarketos-duranium: shorten part. names, drop verity sig part.
This uses a new naming convention for partitions. It fixes an issue
where some firmware (i.e. on the OnePlus 6 / 6T) will hang when starting
fastboot mode if it finds a (sub!)partition with a GPT partition label
that's "too long" (25char, in the case of enchilada, well under the 34
char limit in the GPT spec).

By keeping the old partition name match pattern, which *should* help
migrate existing installs after 2 updates (to capture partitions
associated with both "slots"). Given duranium's "wip" status, I don't
think it's strictly necessary to migrate existing installs, but I feel
like this is a good opportunity to see if it's possible to do so. It
might be handy to do in the future and working out how to do that now
seems useful.

This also drops the verity signature partition. According to the UAPI
Discov. Partition Spec (DPS) this partition is not really needed if the
verity hash for the usr partition is in the kernel cmdline and the UKI
is signed (not yet, but one day 🤞). There is one mode where having the
separate partition is useful: verified boot in containers, but this is
outside the scope of duranium.

This partition is tiny (16K) so the space saving is negligible... but
it would be nice to have one less partition to "manage". On existing
installs, this partition will become "foreign" to systemd repart, and
sysupdate will not touch it since it will no longer match any patterns.

fixes #4484

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8408>
2026-04-22 19:25:48 +00:00
Clayton Craft 4a588de728 main/postmarketos-base-ui-gnome: add duranium-specific config
The kernel cmdline option is to prevent gnome-initial-setup from
launching, because it doesn't work properly and conflicts with our first
boot setup. On phosh this is technically not necessary since g-i-s won't
try to start there, but adding this to the base gnome UI pkg means I
wouldn't have to add sep. subpackages to gnome and gnome-mobile UI pkgs.

The duranium subpkg also pulls in a plugin for gnome-software so that
g-s can provide a frontend for pulling duranium image updates via
sysupdate.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8411>
2026-04-22 16:23:49 +00:00
Aelin 6d11555054 docs/kconfigcheck: Clarify version baselines
It is extremely tedious to keep track of what the name of a particular
option was for every kernel release and when they were added. To keep
kconfigcheck maintainable, let's ease the burden on people adding new
options for community categories or other categories only required by
close-to-mainline kernel packages and only have them look back a
reasonable number of kernel versions.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8407>
2026-04-22 16:12:29 +00:00
Christian Duerr adf05d8067 device-fairphone-fp4: Fix USB audio DACs
The current pipewire rule was forcing every output sink to use the S32LE
format, which caused problems with DACs that do not support this format.

To ensure only the built-in sinks are matched, we manually specify the
alsa card name in the pipewire rule matcher.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8363>
2026-04-22 12:07:10 +00:00
Christian Duerr 33e4ce4dc8 device-fairphone-fp5: Fix USB audio DACs
The current pipewire rule was forcing every output sink to use the S32LE
format, which caused problems with DACs that do not support this format.

To ensure only the built-in sinks are matched, we manually specify the
alsa card name in the pipewire rule matcher.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8346>
2026-04-22 11:35:16 +00:00
Bart Ribbers 0342eafd35 systemd/kjournald: upgrade to 25.12.2
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8078>
2026-04-21 23:05:15 +02:00
Luca Weiss 0ea9e8b265 linux-postmarketos-qcom-sc7280: update kconfig for 'netmount' category
Enable the new options that are required by the updated
kconfigcheck.toml including 'netmount'.

[ci:skip-vercheck] # no need to bump allwinner package

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8063>
2026-04-21 15:51:21 +02:00
Luca Weiss 44b33f724a linux-postmarketos-allwinner: drop redundant kconfigcheck-netmount option
This category is now included with the community category.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8063>
2026-04-21 15:47:43 +02:00
Luca Weiss 8c29e3a104 kconfigcheck: Add 'netmount' to community category
It doesn't look like it was intentional to keep this optional, so let's
require netmount (i.e. NFS) for all community kernels.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8063>
2026-04-21 15:47:43 +02:00
Luca Weiss 470789f095 kconfigcheck: Build 'netmount' category as modules where possible
There's no need to have these built-in to the kernel, better to build
these options as modules to keep the impact low.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8063>
2026-04-21 15:47:43 +02:00
Bart Ribbers d56a1df0fd temp/{plasma-bigscreen,plank-player,aura-browser}: add comment explaining why it's in temp
[ci:skip-vercheck]

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8404>
2026-04-21 09:49:42 +02:00
Sam Day d90dbbd420 linux-postmarketos-qcom-msm8916: fix kconfigcheck
Enable the options flagged by pmb:kconfigcheck-community (hardening,
zram backends, immutable rootfs, module compression, etc.) so both
aarch64 and armv7 configs pass 'pmbootstrap kconfig check'.

Signed-off-by: Sam Day <me@samcday.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8084>
2026-04-20 23:23:59 +00:00
Sam Day cefa00376b linux-postmarketos-qcom-msm8916: enable ublk
https://github.com/samcday/smoo needs ublk to do smoo-y things

Signed-off-by: Sam Day <me@samcday.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8084>
2026-04-20 23:23:59 +00:00
Chris Vogel a5a5bca690 shift-axolotl: add unl0kr-fbforcerefresh
when started from u-boot unl0kr doesn't display the keyboard without a forced refresh

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8142>
2026-04-20 22:47:30 +00:00
Chris Vogel f1c4d7434c shift-axolotl: u-boot
adds dependencie on systemd-boot and changes boot partitions filesystem to fat32 to efi boot from u-boot

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8142>
2026-04-20 22:47:30 +00:00
Aelin 8065e72b63 firmware-analogix: drop
This package was introduced back when Pine64 shipped the PinePhone
with a broken ANX7688. The issue no longer persists on later versions
of the PinePhone and the package requires manual intervention and is
not pre-installed, so let's drop it.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7799>
2026-04-20 21:07:02 +00:00
bluebunny ab29db9b94 firmware-samsung-j7xelte: drop
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8402>
2026-04-20 15:55:23 +00:00
bluebunny e110300bd0 device-samsung-j7xelte: comply with firmware policy
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8402>
2026-04-20 15:55:23 +00:00
Aelin 6182ce138d {device-microsoft-surface-rt,device-nvidia-tegra-armv7}: move to testing
The kernel package used by these two devices does not meet our community
kernel version requirements anymore, and two weeks after notifying the
maintainers, the situation hasn't changed, so let's move them to testing
accordingly.

See also #4448

[ci:skip-vercheck]: moving between categories
[ci:skip-kconfigcheck]: moving between categories

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8399>
2026-04-20 11:13:03 +00:00
Aelin 477a24fe25 linux-postmarketos-lts: Upgrade to 6.18.23
And enable SELinux configurations on all architectures.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8397>
2026-04-20 06:50:31 +00:00
Aelin 912e8272c9 linux-postmarketos-stable: Upgrade to 6.19.13
And enable SELinux configurations on all architectures.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8396>
2026-04-20 01:51:43 +02:00
Barnabás Czémán efb8b4bf9b linux-postmarketos-qcom-msm8956: Upgrade to v7.0-r0
Upgrade to v7.0-r0.

Signed-off-by: Barnabás Czémán <barnabas.czeman@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8390>
2026-04-19 17:55:17 +00:00
Aster Boese 993d92a696 main/postmarketos-base: add kernel-cmdline.d config to disable splash
By creating a package for this, debugging boot-time issues is made a lot easier
as now during image creation `postmarketos-base-nosplash` can be added to
extra-packages and installed without rebuilding any packages.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8304>
2026-04-19 17:38:49 +00:00
Eric Anderson 48a40e6f01 firmware-asus-flo: Add ejona as maintainer
I became the maintainer of device-asus-flo in !8111.

Contributes to #4445 which is tracking down maintainers for unmaintained
packages.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8393>
2026-04-19 07:47:12 -07:00
Pan Ortiz 5321fd0ca3 google-bonito: mirror sargo changes
This commit mirrors some of the changes from google-sargo:

 google-sargo: install config for plasma-camera
  device-google-sargo: add support for u-boot
 community/device-google-sargo: only keep fastrpc link udev rule

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8386>
2026-04-19 07:53:52 +00:00
Luca Weiss d01f245f62 linux-postmarketos-qcom-sm6350: upgrade to 7.0.0
Manual kconfig changes:
* POWER_SEQUENCING=m
* DEVFREQ_GOV_PERFORMANCE=y
* DEVFREQ_GOV_POWERSAVE=y
* DEVFREQ_GOV_USERSPACE=y
* DEVFREQ_GOV_PASSIVE=y
* BPF_LSM=y (category:default)
* KPROBES=y (category:default)
* KPROBE_EVENTS=y (category:default)
* SECURITY=y (category:default)
* SECURITYFS=y (category:default)
* IP_NF_RAW=m (category:containers)
* IP6_NF_RAW=m (category:containers)
* BLK_DEV_UBLK=m (category:netboot)
* EROFS_FS is preferably m, but currently y (category:filesystems)
* EROFS_FS_ZIP_LZMA=y (category:filesystems)
* EROFS_FS_ZIP_DEFLATE=y (category:filesystems)
* EROFS_FS_ZIP_ZSTD=y (category:filesystems)
* USB_NET_RNDIS_HOST=m (category:usb)
* SECURITY_DMESG_RESTRICT=y (category:hardening)

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8358>
2026-04-19 07:50:58 +00:00
Dang Huynh ff519f2e14 linux-pine64-pinetab2: Upgrade to 7.0
Signed-off-by: Dang Huynh <dang.huynh@mainlining.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8391>
2026-04-19 07:42:35 +00:00
Stefan Hansson a184bf63e2 linux-postmarketos-allwinner: HACK: disable cross-native
To avoid issue described here:
https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8295#note_5453

Signed-off-by: Stefan Hansson <newbyte@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8295>
2026-04-18 14:40:07 +00:00
Luca Weiss 822ccc31a7 linux-postmarketos-allwinner: pass LLVM=1 to downstreamkernel_prepare
Since a 'recent' pmbootstrap change, the cross compilers are no longer
installed by default which uncovered that "make oldconfig" is called
without LLVM=1.

scripts/Kconfig.include:41: linker 'armv7-alpine-linux-musleabihf-ld' not found
make[2]: *** [scripts/kconfig/Makefile:85: oldconfig] Error 1

Pass it so that all steps in the build process are run with the LLVM
toolchain and we're not mixing toolchains in the build process.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8295>
2026-04-18 14:40:07 +00:00
Luca Weiss cbed5ce151 main/devicepkg-dev: support passing LLVM=1 in downstreamkernel_prepare
As required by kernels that probably shouldn't be using the
downstreamkernel_* functions in the first place, but we need to fix this
up to unblock linux-postmarketos-allwinner compilation.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8295>
2026-04-18 14:40:03 +00:00
Luca Weiss a77dff06d8 linux-postmarketos-qcom-milos: upgrade to 7.0.0
Manual kconfig changes:
* VIDEO_QCOM_VENUS=n
* VIDEO_QCOM_IRIS=m
* DEVFREQ_GOV_PERFORMANCE=y
* DEVFREQ_GOV_POWERSAVE=y
* DEVFREQ_GOV_USERSPACE=y
* DEVFREQ_GOV_PASSIVE=y
* SRAM=y
* USB_NET_RNDIS_HOST=m (category:usb)
* SECURITY_DMESG_RESTRICT=y (category:hardening)

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8383>
2026-04-18 10:06:03 +00:00
Clayton Craft ae9cab3d75 main/postmarketos-duranium: add packages for "dev tools" sysext
This subpackage will be used to build the "developer tools" system
extension for duranium. The list of packages was created after
collecting input from early testers in the Duranium chat.

Also see: https://gitlab.postmarketos.org/postmarketOS/duranium-build/-/work_items/47

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8366>
2026-04-18 00:11:19 -07:00
Ferass El Hafidi 9fa7c035d4 device-asus-s5507q: remove inexistent fw package from depends
It seems to have been removed in https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8312
but the actual device package did not get fixed up.

Signed-off-by: Ferass El Hafidi <funderscore@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8389>
2026-04-17 20:21:18 +00:00
Arnav Singh c5a625ac35 main/postmarketos-base: allow pwfeedback default to be overridable by dropins
Currently dropins are processed before the default of enabling pwfeedback,
so a dropin that does `Defaults !pwfeedback` to restore the pre-sudo-rs behavior
has no effect. With this change, the dropin will take effect.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8388>
2026-04-17 10:10:03 -07:00
adamthiede c37475182e device-google-oak: add mesa driver dependency and option for powervr
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8384>
2026-04-17 15:38:22 +00:00
Antoine Martin 08821f5224 community/linux-postmarketos-rockchip: upgrade to 6.19.12
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8380>
2026-04-17 15:06:07 +00:00
Ferass El Hafidi 37d5c5e228 main/postmarketos-ui-plasma-mobile: preinstall angelfish or firefox
depending on arch

Angelfish is not available on armv7 nor riscv64 due to qt6-qtwebengine
getting disabled. However, it is still preferable to install a web
browser by default. Firefox however can still be used on those devices.
Add a new -web subpackage, which installs Firefox on armv7/riscv64, and
installs angelfish on others, so everyone gets to have a pre-installed
and working web browser.

Signed-off-by: Ferass El Hafidi <funderscore@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8373>
2026-04-17 13:38:44 +00:00
Ferass El Hafidi 14a23d8a3e main/postmarketos-ui-plasma-mobile: move qtwebengine apps to extras_web
A web browser engine not being available should not cause the whole UI
to become unavailable, especially when not required for the UI itself to
work. Move packages depending on qt6-qtwebengine to a separate
subpackage, that gets pulled only on arches where qtwebengine is
available.

Signed-off-by: Ferass El Hafidi <funderscore@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8373>
2026-04-17 13:38:44 +00:00
Clayton Craft 8981be95a2 main/postmarketos-duranium: add base image pkg depends
This adds pkg dependencies for the base duranium image to pmaports.
Previously these were set in the duranium-build project (mkosi config)

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8370>
2026-04-17 12:51:07 +00:00
Aelin d0ea020d94 systemd/xorg-server: upgrade to 21.1.22
Ref: https://gitlab.alpinelinux.org/alpine/aports/-/commit/3d6fde66df26d446f5628cf91bc06fd3fdc5fdfe
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8378>
2026-04-17 10:38:14 +00:00
Aelin f2cbd4c2de systemd/mutter: upgrade to 50.1
Ref: https://gitlab.alpinelinux.org/alpine/aports/-/commit/c35b2e4748b43cb65f289dadc7bbb9231debe661
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8377>
2026-04-17 08:04:14 +00:00
Aelin 6e96732a57 systemd/gnome-shell: upgrade to 50.1
Ref: https://gitlab.alpinelinux.org/alpine/aports/-/commit/b1891e1cbbfb824c833145614b95e85e49e623eb
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8376>
2026-04-17 08:02:11 +00:00
Clayton Craft afcc901fc1 systemd/systemd: re-enable -Dbootloader
Turns out, a few useful things are gated by this flag that I want to use
in Duranium:

1) bootctl automatically configuring EFI boot entry variables
2) systemd-boot-update.service installation

Let's just re-enable this and strip out the sd-boot stuff already
packaged in Alpine aports, rather than continue to fight the build
system with more patches in pmaports.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8371>
2026-04-16 20:52:18 +00:00
Aster Boese af11b81362 kconfig-generic: enable missing configs for lenovo-21bx
Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8367>
2026-04-16 20:10:35 +02:00
Aelin dc9dc99690 linux-postmarketos-mainline: Opt-in to SELinux configs
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8352>
2026-04-16 16:27:57 +00:00
Aelin 5d06fe0fd1 kconfigcheck: Add SELinux category
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8352>
2026-04-16 16:27:57 +00:00
Achill Gilgenast 51940cbddc systemd/postmarketos-base-systemd: enable avahi-daemon.service
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8102>
2026-04-16 16:16:43 +02:00
Achill Gilgenast 599973fa45 main/postmarketos-base-ui: depend on avahi
Pre-install and enable a zeroconf provider

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8102>
2026-04-16 16:01:26 +02:00
Aelin ecb80ae8ca main/postmarketos-ui-plasma-mobile: Disable on ARMv7
qt6-qtwebengine has been disabled on ARMv7, and therefore angelfish is
no longer available for this architecture (pending disablement in
Alpine, but cannot be installed due to the missing qtwebengine libraries).

[ci:skip-vercheck]: only changing architectures

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8372>
2026-04-16 05:12:15 +02:00
bluebunny f27753a73d testing/linux-xiaomi-pipa: upgrade to 6.19.12
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8359>
2026-04-15 18:09:17 +00:00
Duje Mihanović 424665e7a0 device-samsung-coreprimevelte: implement UEFI
The new U-Boot supports the phone's MMC controllers, so let's use that
to enable UEFI boot.

This allows us to drop initfs-extra, avoid reflashing the kernel to the
boot partition every upgrade, fix kernel-cmdline and future-proof the
port in general.

Signed-off-by: Duje Mihanović <duje@dujemihanovic.xyz>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8337>
2026-04-14 18:33:53 +02:00
Duje Mihanović 8eae9f10ee linux-samsung-coreprimevelte: enable EFI_ZBOOT
Signed-off-by: Duje Mihanović <duje@dujemihanovic.xyz>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8337>
2026-04-14 18:33:53 +02:00
Duje Mihanović b77efb7d29 u-boot-coreprimevelte: upgrade to 2026.04
Signed-off-by: Duje Mihanović <duje@dujemihanovic.xyz>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8337>
2026-04-14 18:33:53 +02:00
Duje Mihanović d392f07927 device-samsung-coreprimevelte: add WLAN calibration & QoL
The calibration is loaded from firmware, which in turn is done through a
modprobe config file.

Besides this, there're a few QoL fixes:
* Update my email in maintainer=
* Drop _pmb_recommends approach for firmware, it's now depended on
* Sort depends alphabetically

Signed-off-by: Duje Mihanović <duje@dujemihanovic.xyz>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8311>
2026-04-14 18:18:30 +02:00
Duje Mihanović 333ba1f2ce firmware-samsung-pxa1908: install all firmware files unconditionally
It has been found that the calibration files, while not mandatory, could
be useful with the mainline mwifiex driver as well. Install those on
mainline as well and leave the -downstream subpackage as a stub for
-downstream-openrc.

Also, switch from installing the firmware to /usr/lib instead of /lib to
suppress warnings.

Signed-off-by: Duje Mihanović <duje@dujemihanovic.xyz>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8311>
2026-04-14 18:18:30 +02:00
Duje Mihanović e7132cc758 firmware-samsung-pxa1908: add myself as maintainer
Signed-off-by: Duje Mihanović <duje@dujemihanovic.xyz>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8311>
2026-04-14 18:18:28 +02:00
Eisenbahnfan c0a41f2f34 device-odroid-xu4: Add necessary modules for FDE
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8361>
2026-04-14 13:58:36 +00:00
adamthiede 60d7ad04b7 linux-postmarketos-mediatek-mt8173: upgrade to 7.0
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8348>
2026-04-14 13:38:42 +00:00
Aelin 07966102d7 Revert "systemd/systemd: build with SELinux support"
This reverts commit 688a1c53f1.

It created a dependency on a linux-pam linked against libselinux-dev,
which the one in Alpine currently isn't built against. This went
unnoticed because it only affected systemd --user instances, which
console UI does not seem to depend on as much.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8362>
2026-04-14 14:18:51 +02:00
Aelin 688a1c53f1 systemd/systemd: build with SELinux support
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8354>
2026-04-14 07:04:42 +00:00
Aelin 4e97050cf4 CI: build-jobs: Pull from Alpine's registry
Dockerhub does not support loongarch64, but Alpine's registry does. We
need to hardcode the latest stable release here until the latest tag is
made to point at a stable release rather than edge.

Fixes: a0bc3115a9 ("CI: build-jobs: use Alpine stable")
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8353>
2026-04-14 06:08:31 +00:00
Aster Boese c5bc9a0a72 linux-postmarketos-qcom-laptop: sync kconfig
Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8351>
2026-04-14 05:42:25 +00:00
Dang Huynh 20f7b34831 linux-pine64-pinetab2: Upgrade to 6.19.10
Signed-off-by: Dang Huynh <dang.huynh@mainlining.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8275>
2026-04-14 02:43:08 +00:00
Clayton Craft 9b27911469 linux-postmarketos-asahi: upgrade to 6.19.11-3
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8349>
2026-04-13 19:39:11 -07:00
Aster Boese b5c5a91b60 kconfigcheck: enable SECURITY_DMESG_RESTRICT
Kernel logs can contain sensitive information which we don't want
easily accessible. This locks the kernel buffer to privileged
access (with sudo).

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8342>
2026-04-13 21:15:35 +00:00
Mithil Bavishi 49f331f411 firmware-samsung-espresso: take over maintainership
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8350>
2026-04-13 21:09:55 +00:00
Aelin 7ecceb937d linux-postmarketos-mainline: Upgrade to 7.0
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8344>
2026-04-13 20:55:49 +00:00
Oliver Smith b0aefa426d main/postmarketos-ui-mediaberry: remove
This package depends on mbwl, which has been removed from pmaports.

Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8335>
2026-04-13 15:01:17 +00:00
Oliver Smith e66f50889c temp/mbwl: remove
This package still depends on wlroots0.18, which has been removed in
aports. Furthermore it shouldn't be in pmaports in the first place as it
isn't a postmarketOS specific package.

Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8335>
2026-04-13 15:01:17 +00:00
Petr Vorel 360f58b46c firmware-aosp-broadcom-wlan: take over maintainership
Link: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/work_items/4445
Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8324>
2026-04-13 07:49:06 +00:00
Petr Vorel 241502da0b firmware-lg-bullhead: take over maintainership
Link: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/work_items/4445
Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8324>
2026-04-13 07:49:06 +00:00
exkc 81a5ff3599 device-radxa-zero: add deviceinfo_getty
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8345>
2026-04-13 07:43:18 +00:00
Clayton Craft ac37fc4dd2 main/postmarketos-duranium: add config for dev-tools sysext
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8258>
2026-04-12 21:34:51 -07:00
Clayton Craft 6d8d98c235 main/postmarketos-duranium: depend on shadow-subids
useradd is run during first boot, and if /etc/sub{uid,gid} exist then
the user is added there. By adding an explicit dependency, we make sure
these files always exist on first boot so that container stuff added
later (e.g. in an extension) will work OOTB.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8258>
2026-04-12 21:34:51 -07:00
Clayton Craft 7674d8b45a main/postmarketos-duranium: add systemd-sysext preset
This service merges installed system extensions on boot

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8258>
2026-04-12 21:34:39 -07:00
Aelin 8d14bcf93a systemd/gdm: build with libselinux & audit
Ref: https://gitlab.alpinelinux.org/alpine/aports/-/commit/4c63ddbf8880b10dc2bd874c971a722fd9a198df
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8341>
2026-04-12 21:59:17 +02:00
Oliver Smith a0bc3115a9 CI: build-jobs: use Alpine stable
Fix that the build-jobs were using Alpine edge. This seems
unintentional, or at least inconsistent. Before this patch we had:

  $ git grep alpine:latest
  .ci/build-jobs.yaml.j2:image: registry.alpinelinux.org/img/alpine:latest
  .gitlab-ci.yml:image: alpine:latest

It turns out that "registry.alpinelinux.org/img/alpine:latest" is
actually alpine edge:

  $ docker run --rm registry.alpinelinux.org/img/alpine:latest cat /etc/os-release
  Unable to find image 'registry.alpinelinux.org/img/alpine:latest' locally
  latest: Pulling from img/alpine
  d4a983187cfd: Pull complete
  Digest: sha256:47b4a945203d4bad4e0c7840d64044da50a719d0cd0512a50e3ab473240635ea
  Status: Downloaded newer image for registry.alpinelinux.org/img/alpine:latest
  NAME="Alpine Linux"
  ID=alpine
  VERSION_ID=3.21.0_alpha20240923
  PRETTY_NAME="Alpine Linux edge"
  HOME_URL="https://alpinelinux.org/"
  BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"

And alpine:latest is stable (when fetched from docker hub, with podman
it could be configured to point at alpine's registry as well, which
means it is edge... but the OSUOSL CI runners use docker):

  $ docker run --rm alpine:latest cat /etc/os-release
  Unable to find image 'alpine:latest' locally
  latest: Pulling from library/alpine
  589002ba0eae: Already exists
  Digest: sha256:25109184c71bdad752c8312a8623239686a9a2071e8825f20acb8f2198c3f659
  Status: Downloaded newer image for alpine:latest
  NAME="Alpine Linux"
  ID=alpine
  VERSION_ID=3.23.3
  PRETTY_NAME="Alpine Linux v3.23"
  HOME_URL="https://alpinelinux.org/"
  BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"

Using stable makes more sense here, so temporary bugs in edge don't
break our CI. It is currently somewhat broken because running
pmbootstrap with python 3.14 and musl results in crashes with "No file
descriptors available" errors in some situations.

Related: https://gitlab.postmarketos.org/postmarketOS/postmarketos/-/work_items/141
Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8340>
2026-04-12 19:29:04 +00:00
Clayton Craft b466485f09 systemd/gdm: add tmpfiles config for gdm-greeter home dir
This allows using systemd-tmpfiles to automatically create the home dir,
needed to fix running gdm on duranium.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8330>
2026-04-12 17:17:56 +00:00
Clayton Craft 06489cbd79 main/postmarketos-duranium: add support for systemd config extensions
Some of this was inspired by what GNOME OS does.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8330>
2026-04-12 17:17:55 +00:00
Clayton Craft 5d73bec629 ci/shellcheck: add duranium scripts
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8330>
2026-04-12 17:17:55 +00:00
Clayton Craft 89e4cd346f main/postmarketos-duranium: add script to set image channel
This adds a script that can be used to set the "channel" for images to
"staging" or "main." "Staging" will come from a separate pipeline in the
duranium mkosi config repo, it may build images with patches or whatever
for testing, and won't be available to users running the "main" channel.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8330>
2026-04-12 17:17:55 +00:00
Antoine Martin 4a1612eb56 linux-postmarketos-rockchip: add rk3566-pinenote support
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8217>
2026-04-12 17:15:56 +00:00
Oliver Smith 060e35c8df cross/gcc-*: upgrade to 15.2.0-r3
Regenerate the cross/gcc packages against Alpine's aports with
pmbootstrap's current main branch.

Related: https://gitlab.alpinelinux.org/alpine/aports/-/commit/05d31c9bcf193b80306c64019d5f8c292dc64f0e
Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8240>
2026-04-12 12:30:11 +00:00
Aelin 37835efefb linux-postmarketos-lts: Upgrade to 6.18.22
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8328>
2026-04-12 09:13:10 +00:00
Aelin 0e5faaa707 linux-postmarketos-stable: Upgrade to 6.19.12
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8327>
2026-04-12 09:11:01 +00:00
Aelin b787bef725 cross/musl-*: upgrade to 1.2.6-r2
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8329>
2026-04-12 09:08:45 +00:00
Nikita Travkin 8e34c82714 firmware-acer-aspire1: become maintainer
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8331>
2026-04-12 12:40:03 +05:00
Nikita Travkin 4dd5b3309e device-arrow-db410c: become maintainer
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8331>
2026-04-12 12:39:38 +05:00
methanal bc14466f8b linux-postmarketos-exynos7870: become maintainer
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8326>
2026-04-11 22:38:00 +00:00
methanal b38c1c08b2 firmware-samsung-on7xelte: become maintainer
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8326>
2026-04-11 22:38:00 +00:00
methanal 8f3382f239 firmware-samsung-j6lte: become maintainer
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8326>
2026-04-11 22:38:00 +00:00
methanal 4e4ae5d6af firmware-samsung-a2corelte: become maintainer
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8326>
2026-04-11 22:38:00 +00:00
methanal 059cc2cc0f device-samsung-on7xelte: become maintainer
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8326>
2026-04-11 22:38:00 +00:00
methanal 7b4deaa135 device-samsung-j6lte: become maintainer
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8326>
2026-04-11 22:38:00 +00:00
methanal 6eac360957 device-samsung-a2corelte: become maintainer
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8326>
2026-04-11 22:38:00 +00:00
Stefan Hansson de9bcda556 firmware-bestechnic-bes2600: copy maintainers from device package
See https://gitlab.postmarketos.org/postmarketOS/pmaports/-/work_items/4445

Signed-off-by: Stefan Hansson <newbyte@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8321>
2026-04-11 16:32:19 +00:00
Affe Null d8e85297cb soc-unisoc-ums9230: add missing maintainer
The package was accidentally added with no maintainer specified.
I still intend to maintain this package together with device-jolla-c2.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8320>
2026-04-11 15:06:40 +00:00
Nickolay Goppen 2f78f33707 firmware-sony-ninges: Add Alexeymin as a maintainer
Signed-off-by: Nickolay Goppen <setotau@mainlining.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8305>
2026-04-11 14:41:27 +00:00
Nickolay Goppen c88b67ed54 firmware-xiaomi-jasmine_sprout: add Alexeymin as a maintainer
Signed-off-by: Nickolay Goppen <setotau@mainlining.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8305>
2026-04-11 14:41:27 +00:00
Nickolay Goppen d7ce109b04 firmware-xiaomi-whyred: update Alexeymin's email
Signed-off-by: Nickolay Goppen <setotau@mainlining.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8305>
2026-04-11 14:41:27 +00:00
Nickolay Goppen 4ddf2d656e firmware-xiaomi-clover: Add myself as a maintainer
Signed-off-by: Nickolay Goppen <setotau@mainlining.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8305>
2026-04-11 14:41:27 +00:00
Nickolay Goppen e8e3e2a958 device-sony-pioneer: Add Alexeymin as a maintainer
And move Max Buchholz to a co-maintainer

Signed-off-by: Nickolay Goppen <setotau@mainlining.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8305>
2026-04-11 14:41:27 +00:00
Nickolay Goppen 86a804f617 device-xiaomi-whyred: Update Alexeymin's e-mail
Signed-off-by: Nickolay Goppen <setotau@mainlining.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8305>
2026-04-11 14:41:27 +00:00
Nickolay Goppen a31212c55f device-xiaomi-jasmine_sprout: Add Alexeymin as a maintainer
Signed-off-by: Nickolay Goppen <setotau@mainlining.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8305>
2026-04-11 14:41:27 +00:00
Nickolay Goppen faf1b92ad9 device-xiaomi-lavender: Update Alexeymin's e-mail
Signed-off-by: Nickolay Goppen <setotau@mainlining.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8305>
2026-04-11 14:41:26 +00:00
Nickolay Goppen 5f50270944 device-asus-x00td: Add iAboothahir as a maintainer
Signed-off-by: Nickolay Goppen <setotau@mainlining.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8305>
2026-04-11 14:41:26 +00:00
Nickolay Goppen 6a0267124e device-xiaomi-clover: Add Mi Pad 4 LTE variation
Mi Pad 4 LTE is very very similar to regular Mi Pad 4,
but it has a modem with LTE support.

Signed-off-by: Nickolay Goppen <setotau@mainlining.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8305>
2026-04-11 14:41:26 +00:00
Nickolay Goppen 5cd0fcb7da alsa-ucm-conf-qcom-sdm660: update to 1.2.15_git20260401
Changelog:
Changed name of xiaomi-clover's ucm file symlink
Added xiaomi-tulip support

Signed-off-by: Nickolay Goppen <setotau@mainlining.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8305>
2026-04-11 14:41:26 +00:00
Nickolay Goppen e3ca61be37 linux-postmarketos-qcom-sdm660: upgrade to 6.19.10
Changelog:
Switched to LLVM ( setotau )
Added support for LTE version of xiaomi-clover ( setotau )
Added proper battery capacities for different xiaomi-clover versions ( setotau )
Removed SD-card slot definition on xiaomi-jasmine ( alexeymin )
Add NT36672A e7t variant support for xiaomi-tulip ( M0Rf30 )
Initial sound support for xiaomi-tulip ( M0Rf30 )
Changed model-name in the sound node of xiaomi-clover-common dtsi ( setotau )
Migrated to DPU from MDP5, following upstream migration ( alexeymin )
Added battery support for sony-pioneer ( alexeymin )
Added Synaptics panel variants of blackberry-luna and blackberry-athena ( sajattack )

Signed-off-by: Nickolay Goppen <setotau@mainlining.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8305>
2026-04-11 14:41:26 +00:00
bluebunny 90281e9722 testing/linux-xiaomi-pipa: upgrade to 6.19.11
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8316>
2026-04-11 14:38:36 +00:00
Antoine Martin 5a7acde0f0 device-pine64-pinenote: implement rockchip_ebc reload workaround on openrc
Implements openrc implementation of the workaround introduced in
d7229de9d4 for a `rockchip_ebc` bug where the
initial waveform is not properly loaded. Reloading `rockchip_ebc` just
before starting `tinydm` loads the correct waveform.

In systemd, this is implemented via a systemd override file for
`tinydm.service` that includes an `ExecStartPre`, reloading the driver via
modprobe. For openrc, we add an initd service that restarts driver before
starting `tinydm`.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8288>
2026-04-11 14:36:29 +00:00
Bart Ribbers b97a71f27a systemd/kwin: rebuild against Qt 6.11
It'll run without the rebuild, but you won't be able to input anything
into textfields.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8325>
2026-04-11 10:22:06 +02:00
exkc a9aae1a4c0 linux-linksys-jamaica: move to archived
[ci:skip-vercheck]

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8323>
2026-04-10 23:59:03 +00:00
exkc 742a2f0ac5 firmware-linksys-jamaica: move to archived
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8323>
2026-04-10 23:59:03 +00:00
exkc ff3d5089c7 device-linksys-jamaica: move to archived
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8323>
2026-04-10 23:59:03 +00:00
exkc c5128ba2e2 device-xunlong-orangepi3: remove me as co-maintaintor
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8323>
2026-04-10 23:59:03 +00:00
exkc 1d887a0ad8 device-lenovo-lxf-p5100 : move to archived
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8323>
2026-04-10 23:59:00 +00:00
exkc a4c2c01a40 linux-postmarketos-allwinner-d1 : move to archived
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8323>
2026-04-10 23:59:00 +00:00
exkc 192989a5d7 device-mangopi-mq-pro : move to archived
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8323>
2026-04-10 23:59:00 +00:00
exkc 53857411cd device-dongshanpi-nezhastu : move to archived
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8323>
2026-04-10 23:59:00 +00:00
Stefan Hansson 3fd038a1fb firmware-samsung-u8500: take over maintainership
See https://gitlab.postmarketos.org/postmarketOS/pmaports/-/work_items/4445

Signed-off-by: Stefan Hansson <newbyte@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8322>
2026-04-10 19:56:21 +02:00
Stefan Hansson 8efa29e7cc firmware-samsung-midas: take over maintainership
See https://gitlab.postmarketos.org/postmarketOS/pmaports/-/work_items/4445

Signed-off-by: Stefan Hansson <newbyte@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8319>
2026-04-10 19:06:15 +02:00
Henrik Grimler 2479a00f3e testing/device-google-snow: set myself as maintainer
I have this device and intend to test with it every now and then.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8318>
2026-04-10 12:57:14 +00:00
Henrik Grimler 2c54ef84bc testing/firmware-samsung-klimt: set myself as maintainer
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8318>
2026-04-10 12:57:14 +00:00
Henrik Grimler 003bc6414e testing/firmware-samsung-chagall: set myself as maintainer
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8318>
2026-04-10 12:57:14 +00:00
Henrik Grimler 8fb37f6ded testing/firmware-samsung-i9100: set myself as maintainer
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8318>
2026-04-10 12:57:14 +00:00
Henrik Grimler 1a1c13c955 testing/u-boot-samsung-i9100: set myself as maintainer
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8318>
2026-04-10 12:57:14 +00:00
Henrik Grimler 1a877941a6 testing/device-samsung-i9100: set myself as maintainer
I have it hooked up to a phone-harness and am planning to continue
using and testing it, so set myself as maintainer for the device.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8318>
2026-04-10 12:57:14 +00:00
binarycraft007 91050b8121 device-asus-s5507q: take over maintainership
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8317>
2026-04-10 12:55:03 +00:00
knuxify 16cf3b6b40 firmware-odroid-hc2: take over maintainership
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8315>
2026-04-10 12:52:21 +00:00
Vitaliy Ognev 9c3a568c77 powkiddy-x55-mapper: take maintainership
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8314>
2026-04-10 12:49:53 +00:00
Achill Gilgenast e38532b7f7 ci: relax pkgrel changes for packages that don’t have remote sources
Motivation is to avoid unnecessary overhead for MR authors & no reason to
actually use pkgrel for meta-packages.

So instead, recommend pkgver-bumps & pkgrel=0 for metapackages, but don't
block MRs when they bumped the "wrong" one. Just make everyone's life easier.

Discussed at <https://docs.postmarketos.org/policies-and-processes/governance/team-meetings/meeting-notes.html> (2026-03-16)

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8302>
2026-04-10 12:08:26 +00:00
Pan Ortiz 90aeb1d4de firmware-xiaomi-nabu: take mantainership
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8313>
2026-04-10 09:21:24 +00:00
Pan Ortiz ece507ed7e firmware-xiaomi-nabu: take mantainership
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8313>
2026-04-10 09:21:24 +00:00
Bart Ribbers bdc9b2878e systemd/plasma-login-manager: upgrade to 6.6.4
Also stop defining UID_MIN and UID_MAX because they are ignored, see
https://gitlab.postmarketos.org/postmarketOS/pmaports/-/work_items/4428#note_545485

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8310>
2026-04-10 00:43:07 +00:00
Aelin a508b2c913 kconfig-generic: Enable VHOST acceleration configs
These are required for using the vhost=on flag for QEMU and offload
certain virtio work onto the host kernel to increase performance.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8307>
2026-04-09 22:29:21 +00:00
binarycraft007 b0833bc9fe firmware-asus-s5507q: take over maintainership
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8312>
2026-04-09 20:46:15 +02:00
Luca Weiss aff876a396 device-fairphone-fp6: update for renamed firmware dependency
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8306>
2026-04-09 15:54:04 +00:00
Luca Weiss 0e00ecfa53 firmware-fairphone-fp6: rename venus subpackage to vpu, update path
Neither the firmware binary, nor the Linux driver are called 'venus'
nowadays. Rename the package to VPU (video processing unit).

Also accordingly, don't rename the firmware to "venus.mbn" but keep the
original filename intact.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8306>
2026-04-09 15:54:04 +00:00
Antoine Martin ff47d2a1af linux-postmarketos-rockchip: upgrade to 6.19.11
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8289>
2026-04-09 15:51:30 +00:00
Kidd Lee c8d19646e4 {device,linux}-xiaomi-ido: add myself as the maintainer
Add the maintainer to avoid removal.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8303>
2026-04-09 15:47:32 +00:00
Kidd Lee fc69b84129 linux-xiaomi-ido: make kconfig check pass
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8303>
2026-04-09 15:47:32 +00:00
Kidd Lee 3cf2a9415c linux-xiaomi-ido: using the default host cc
Host `gcc6-gcc` will cause this error:
```
  HOSTCC  scripts/basic/fixdep
In file included from /usr/include/fortify/sys/select.h:26:0,
                 from /usr/include/sys/types.h:71,
                 from scripts/basic/fixdep.c:106:
/usr/include/fortify/fortify-headers.h:56:67: error: missing binary operator before token "("
 #if _FORTIFY_SOURCE > 2 && defined __has_builtin && __has_builtin (__builtin_dynamic_object_size)
                                                                   ^
```

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8303>
2026-04-09 15:47:29 +00:00
Arnav Singh 02cd0ebc93 firmware-pine64-ov5640: take over maintainership
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8308>
2026-04-09 07:46:31 -07:00
Bart Ribbers c40e9038b1 systemd/plasma*: upgrade to 6.6.4
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8297>
2026-04-09 12:33:46 +00:00
Vishwas Rajashekar 6fab672abc samsung-lt03lte: enable touchscreen
Signed-off-by: Vishwas Rajashekar <dev@vrajashkr.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8169>
2026-04-09 06:59:52 +00:00
Aster Boese 130e3e9e89 linux-google-crosshatch-mainline: revert: build with LLVM and sync kconfig
Reverts commit b33ba8203c

Build failing in bpo.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8299>
2026-04-09 05:07:27 +00:00
Antoine Martin 2d7c216e36 linux-pine64-pinenote: upgrade to 6.19.11
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8292>
2026-04-08 14:28:00 +00:00
Aelin e11779e4c8 linux-postmarketos-mainline: Upgrade to 7.0-rc7
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8284>
2026-04-08 14:07:04 +02:00
Aelin 92b204a3b9 kconfig-generic: Enable configs for some SDM845/SC7180 devices
Taken from linux-next. The configs for X1E devices are already all enabled.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8276>
2026-04-08 11:58:49 +00:00
Mithil Bavishi 8a77fc7f0a linux-postmarketos-omap: upgrade to 6.19.0
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8301>
2026-04-07 23:23:49 +00:00
Mithil Bavishi 550ea91eee linux-postmarketos-omap: Rebase patch for 6.19
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8301>
2026-04-07 23:23:49 +00:00
Mithil Bavishi 887b1b6416 linux-postmarketos-omap: Remove N900 idle config patch
Upstreamed: https://lore.kernel.org/all/20250914192516.164629-4-jihed.chaibi.dev@gmail.com/
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8301>
2026-04-07 23:23:49 +00:00
Mithil Bavishi 0e6f192a80 linux-postmarketos-omap: Remove driver for twl6030-pwrbutton
Upstreamed: https://lore.kernel.org/all/20251106-twl6030-button-v4-0-fdf1aa6e1e9a@kernel.org/
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8301>
2026-04-07 23:23:49 +00:00
Antoine Martin 4b57172b93 u-boot-pine64-pinenote: upgrade to 2026.04
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8293>
2026-04-07 20:37:06 +00:00
Luca Weiss 2b97b34c18 linux-postmarketos-qcom-msm8226: upgrade to 6.16.12
Manual kconfig changes:
* IP6_NF_MANGLE=m (category:containers)
* IP_NF_RAW=m (category:containers)
* IP6_NF_RAW=m (category:containers)

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8253>
2026-04-07 18:39:50 +02:00
Qs315490 425f6d9117 linux-xiaomi-latte: update kernel config
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8212>
2026-04-07 13:55:04 +00:00
Aster Boese b33ba8203c linux-google-crosshatch-mainline: build with LLVM and sync kconfig
The previous patch was broken because the kernel was still configured to use
GCC. Builds passed in pmaports CI because the runner is native aarch64, which
hits the issue of Alpine's clang packaging depending on gcc to get access to
libgcc-dev. This pulls in the whole GCC compiler, causing the kernel to default
to it and ignore clang. When this patch got to BPO, it failed because BPO
cross-compiles packages, leading to aarch64 GCC not being installed when
building (only clang is used as the cross-compiler) and causing the build to
fail there.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8265>
2026-04-07 13:34:38 +00:00
Aster Boese 83e7197431 linux-realme-x3: sync kconfig and build with LLVM
Syncs the linux-realme-x3 kernel config with kconfigcheck.toml and builds the
kernel with LLVM to follow policy.

See https://postmarketos.org/edge/2025/11/11/kernels-llvm/

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8119>
2026-04-07 13:31:52 +00:00
Achill Gilgenast fdb3d2ebbc main/postmarketos-base-ui: adapt replaces= to upstream chrony changes
The config file got moved to the new chrony-common package, so we must
"replace" this subpkg, so apk doesn't fails when replacing the file

Ref: https://gitlab.alpinelinux.org/alpine/aports/-/commit/70b570d4095272ab926a2693fdfb09c62d016a0b
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8294>
2026-04-07 11:17:19 +02:00
Clayton Craft 236204b51f main/postmarketos-install-recommends: set Clayton as maintainer
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8287>
2026-04-06 22:09:05 +00:00
Clayton Craft 6b903686d4 main/postmarketos-install-recommends: upgrade to 0.3
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8287>
2026-04-06 22:09:05 +00:00
adamthiede 899eeec737 linux-postmarketos-mediatek-mt81: upgrade to 6.18.21, pass kconfig check
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8272>
2026-04-06 21:01:31 +00:00
bluebunny 033c34b0ad kconfigcheck: add USB_NET_RNDIS_HOST
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8230>
2026-04-06 17:33:28 +00:00
Dylan Van Assche f4ad3632fc main/postmarketos-base-ui: set TimeoutStopSec for iio-sensor-proxy
Enforce to be killed on shutdown in 3s,
until https://gitlab.freedesktop.org/hadess/iio-sensor-proxy/-/merge_requests/410 is upstream.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7788>
2026-04-06 16:29:10 +00:00
Dylan Van Assche 4dec972549 community/device-xiaomi-beryllium: drop libssc udev rule
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7788>
2026-04-06 16:29:10 +00:00
Dylan Van Assche f6f3673351 community/firmware-xiaomi-beryllium: define mount matrix
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7788>
2026-04-06 16:29:10 +00:00
Clayton Craft e1317493c6 main/postmarketos-base-ui: proximity and accel sensor support
This is hopefully temporary. The proximity and accelerometer sensor tags
were removed upstream(1) citing an open issue on a specific device
and the desire to have more testing. Enabling it in pmOS will help get testing.

This udev rule shouldn't have any impact on devices that don't have
fastrpc. Installing it conditionally on iio-sensor-proxy just seems adds
packaging complexity for basically no benefit.

1. https://gitlab.freedesktop.org/hadess/iio-sensor-proxy/-/commit/a9d7ff148cd4fa5e40b23b189894b36dd81f51df

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7788>
2026-04-06 16:29:10 +00:00
Dylan Van Assche d047599228 community/device-oneplus-enchilada: drop libssc udev rule
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7788>
2026-04-06 16:29:06 +00:00
Dylan Van Assche fb118d6d8b community/device-google-sargo: only keep fastrpc link udev rule
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7788>
2026-04-06 16:29:06 +00:00
Dylan Van Assche 8564693e9f community/firmware-google-sargo: define mount matrix
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7788>
2026-04-06 16:29:06 +00:00
Dylan Van Assche f1e277695b community/firmware-oneplus-sdm845: define mount matrix
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7788>
2026-04-06 16:29:06 +00:00
Clayton Craft d65edea0ee temp/iio-sensor-proxy: drop fork
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7788>
2026-04-06 16:29:06 +00:00
Frieder Hannenheim 91470d21d1 device-oneplus-kebab: add me as a maintainer
- Also add me as a maintainer to firmware-oneplus-instantnoodlep

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8283>
2026-04-06 10:18:29 +00:00
Luca Weiss dc8edd7b76 linux-postmarketos-qcom-msm8974: upgrade to 6.16.12
* CM3323=m (samsung-lt03lte)
* BMC150_ACCEL=m (samsung-lt03lte)
* BMG160=m (samsung-lt03lte)
* AK8975=m (samsung-lt03lte)
* TOUCHSCREEN_ATMEL_MXT=m (samsung-lt03lte)
* NFC_PN544=m (htc-m8)

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8251>
2026-04-06 08:27:53 +00:00
Bart Ribbers e90be571c4 main/postmarketos-base-ui-plasma: depend on geoclue
Required for GPS/location functionality in various applications. Needs
to be pulled in by the meta package rather than the apps themselves to
ensure it'll work for Flatpakked apps.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8269>
2026-04-06 00:01:36 +00:00
Achill Gilgenast ec6491ffe9 main/postmarketos-ui-phosh: update to mobi.phosh schema for stevia
See https://gitlab.gnome.org/World/Phosh/stevia/-/commit/a4c92473dad292e524dea4e465a8b620a0684991

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8282>
2026-04-05 17:37:01 +00:00
Aelin 97c8cf8a91 linux-xiaomi-whyred: drop
device-xiaomi-whyred uses the sdm660 mainline kernel, this package is unused.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8281>
2026-04-05 14:33:31 +02:00
Barnabás Czémán 46cd4737de firmware-xiaomi-lavender: add myself as maintainer
firmware-xiaomi-lavender package was created by me,
add myself as maintainer for avoid removal, the package
necessary for Wifi and GPU support.

Signed-off-by: Barnabás Czémán <barnabas.czeman@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8278>
2026-04-05 08:40:25 +00:00
Nikita Travkin 8f192af9b1 main/dtbloader: upgrade to 1.5.4
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8277>
2026-04-05 11:07:11 +05:00
Aelin c6f7e0bb06 linux-postmarketos-lts: Upgrade to 6.18.21
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8263>
2026-04-04 22:48:04 +00:00
Aelin 80c2d40599 linux-postmarketos-stable: Upgrade to 6.19.11
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8262>
2026-04-04 22:35:33 +00:00
Bart Ribbers 72de94e2de temp/plasma-bigscreen: upgrade to 6.6.80_git20260404
Fixes the back key on TV remotes not being mapped to escape thus making
it impossible to navigate "back" in applications and menus, and ensures
the virtual keyboard is enabled. Furthermore it now hides the KDE
Connect app and the mouse cursor when not actually used.
2026-04-04 18:56:23 +02:00
Clayton Craft 9246ff8172 linux-postmarketos-asahi: upgrade to 6.19.11-1
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8271>
2026-04-04 04:21:27 +00:00
Clayton Craft dceffe8a46 main/postmarketos-duranium: new aport
Duranium is an immutable variant of postmarketOS that uses systemd's
image-based OS model: dm-verity verified /usr, A/B slots managed by
systemd-sysupdate, LUKS2-encrypted root, and systemd-boot with UKIs.

This package ships systemd-repart, systemd-sysusers, tmpfiles, and
first-boot service configuration needed at runtime in both the initramfs
and the booted system, as well as sysupdate transfer definitions for
finding and upgrading images. Build-time repart and sysupdate config
lives in the mkosi config repo[1].

The pmOS initramfs is not used. Rather than re-implement partition
setup, verity, factory reset, and switch_root in shell script and
risk regressions for mutable pmOS installs, an initramfs is built by
mkosi containing systemd. This lets the standard systemd initrd
machinery handle everything, with no modifications to the pmOS
initramfs required.

On Android devices, subpartition logic from the pmOS initramfs is
essentially copied into a new systemd unit that runs in the initramfs
and sets up subpartitions so that they are available to tooling that
runs later in the boot process. In the future, this functionality should
be moved upstream into systemd.

Boot flows:

"Normal boot": the verified /usr partition is mounted and the LUKS
root partition is unlocked (empty passphrase by default, with fallback
to a graphical unlock prompt for user-set passphrases). switch_root
hands off to the real rootfs.

"First boot": systemd-repart creates the root partition, always as a
LUKS volume with an empty passphrase. After switch_root, a first-boot
app runs before the display manager to collect a username and password,
create the user account, and optionally set a LUKS passphrase. The
passphrase can also be changed later via systemd-cryptenroll or
cryptsetup.

"Factory reset": detected in the initramfs by systemd, which uses
systemd-repart to wipe and recreate the root partition. Boot then
continues with the first boot flow above. Factory reset can be triggered
while booting in the rootfs by starting a systemd unit that configures
an EFI variable to signal to the initramfs on next boot.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7059>
2026-04-03 19:23:17 +00:00
Luca Weiss 97fcae383a device-fairphone-fp6: update for DPU & GPU support
Remove the Mesa workaround and add the panel to the list of modules to
include in the initramfs.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8266>
2026-04-03 17:58:26 +00:00
Luca Weiss 108309ad98 firmware-fairphone-fp6: package gen80300 gmu & sqe firmware
These generic files are not (yet) available in linux-firmware, so we
need to package them for this device.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8266>
2026-04-03 17:58:26 +00:00
Luca Weiss afaf475693 linux-postmarketos-qcom-milos: upgrade to 6.19.10
Manual kconfig changes:
* DRM_PANEL_NOVATEK_NT37705=m
* NVMEM_REBOOT_MODE=y
* NVMEM_SPMI_SDAM=y
* PINCTRL_MILOS_LPASS_LPI=m
* SND_SOC_AW88261=m
* SND_SOC_LPASS_MACRO_COMMON=y
* SND_SOC_LPASS_RX_MACRO=y
* SND_SOC_LPASS_TX_MACRO=y
* SND_SOC_LPASS_VA_MACRO=y
* SND_SOC_SC8280XP=m
* SOUNDWIRE_QCOM=y

* BPF_LSM=y (category:default)
* KPROBES=y (category:default)
* KPROBE_EVENTS=y (category:default)
* SECURITY=y (category:default)
* SECURITYFS=y (category:default)
* IP_NF_RAW=m (category:containers)
* IP6_NF_RAW=m (category:containers)
* BLK_DEV_UBLK=m (category:netboot)
* EROFS_FS is preferably m, but currently y (category:filesystems)
* EROFS_FS_ZIP_LZMA=y (category:filesystems)
* EROFS_FS_ZIP_DEFLATE=y (category:filesystems)
* EROFS_FS_ZIP_ZSTD=y (category:filesystems)

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8266>
2026-04-03 17:58:26 +00:00
Bart Ribbers 32642bb737 temp/plank-player: fix typo in the _repo_url
This is currently making the nightly builder fail on this package.

[ci:skip-vercheck]

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8268>
2026-04-02 17:51:51 +02:00
Clayton Craft b75f4a118b linux-google-crosshatch-mainline: revert: build with LLVM and sync kconfig
This partially reverts commit 3fad2cf8df

This kernel is too old to build with clang/llvm

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8264>
2026-04-03 08:08:04 +02:00
WrenIX 07d8d68309 main/postmarketos-ui-os-installer: switch from doas to sudo
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8228>
2026-04-02 22:35:35 +00:00
Clayton Craft 40a5c82049 systemd/systemd: add patches to fix sysupdate issues
These patches are merged (or submitted) upstream and not in a release
yet.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8261>
2026-04-02 13:31:46 -07:00
Aster Boese d4c0788fb6 main/postmarketos-initramfs: install udev.conf from /usr/lib/udev/udev.conf
Signed-off-by: Aster Boese <asterboese@mailbox.org>

[ci:skip-build]: already built successfully in CI (except riscv64 and armv7 due to known CI issue)

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8046>
2026-04-02 20:29:28 +00:00
Aster Boese 3713cc55a7 main/postmarketos-base: move udev.conf to /usr/lib/udev/
Moves udev.conf from `/etc/udev.conf` to `/usr/lib/udev/udev.conf` and fixes
invalid syntax.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8046>
2026-04-02 20:29:28 +00:00
Aster Boese b589f8fb8c systemd/systemd{-stage0}: add install-sysconfdir=false
To align with hermetic-usr, no packages should install to `/etc/`. systemd has
a built-in option called `install-sysconfdir` that defaults to true and guards
putting files under `/etc/` or using systemd-tmpfiles.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8046>
2026-04-02 20:29:28 +00:00
Bart Ribbers 489294b64d temp/plasma-bigscreen: upgrade to 6.6.80_git20260402
Contains fixes so the CEC device has the right permissions out of the
box (needed for TV remote functionality) and applications like KDE
Connect's SMS functionality and Waydroid stock apps are hidden.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8260>
2026-04-02 19:19:26 +02:00
Aster Boese 42d71205f5 linux-ayn-odin: build with LLVM and sync kconfig
Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8247>
2026-04-02 05:26:09 +00:00
Aster Boese d8308ee1f5 linux-google-smaug: build with LLVM and sync kconfig
Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8255>
2026-04-02 05:24:03 +00:00
Aster Boese 3fad2cf8df linux-google-crosshatch-mainline: build with LLVM and sync kconfig
Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8254>
2026-04-02 05:21:24 +00:00
Hugo Osvaldo Barrera eec995fbe0 readme: update link to approval rules
Link pointed to inexistent file.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8256>
2026-04-02 05:18:48 +00:00
Hugo Osvaldo Barrera 62fb055e5c readme: link to issues
The folks at GitLab like to hide and rename sections. Add a handy link
for newcomers who are not as well versed in the current iteration of
GitLab's UI / lingo.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8256>
2026-04-02 05:18:48 +00:00
Hugo Osvaldo Barrera 6d1ef68afc */*: rely on abuild's systemd integration
abuild's default behaviour copies files from usr/lib/systemd into a the
$pkgname-split subpackage.

Several APKBUILD definitions do this manually, since they predate this
feature.

Remove the superfluous systemd() function in these cases.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8023>
2026-04-01 21:40:48 +00:00
Richard Acayan 58348da036 alsa-ucm-conf-qcom-sdm670: upgrade to 1.2.9_git20260223
The userspace-facing names of some mixer paths were changed in response
to upstream review of the SDM660 sound card.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8166>
2026-04-01 19:38:09 +00:00
Richard Acayan cd9832dcbe linux-postmarketos-qcom-sdm670: upgrade to v6.19.10
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8166>
2026-04-01 19:38:09 +00:00
Aelin 2e48f05b6f linux-postmarketos-mainline: Upgrade to 7.0_rc6
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8243>
2026-04-01 17:48:42 +00:00
Bart Ribbers 74bc7fb86b main/postmarketos-base-ui-plasma: move plasma-camera to -ui-plasma-mobile
Not sure why we were installing this application to desktop and
bigscreen as well...

[ci:skip-vercheck]

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8252>
2026-04-01 14:18:40 +02:00
MultisampledNight 5d6e5141d6 device-xiaomi-raphael: remove redundant set of deviceinfo_flash_pagesize
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7957>
2026-03-31 19:57:49 +02:00
MultisampledNight 8023b6747a device-xiaomi-pyxis: remove redundant set of deviceinfo_append_dtb
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7957>
2026-03-31 19:57:49 +02:00
MultisampledNight 21b7f67695 device-xiaomi-natrium: remove redundant set of deviceinfo_flash_pagesize
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7957>
2026-03-31 19:57:49 +02:00
MultisampledNight 9489015f7f device-nothing-tetris: fix typo
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7957>
2026-03-31 19:57:49 +02:00
MultisampledNight c0fde77e65 device-nothing-tetris: remove redundant set of deviceinfo_rootfs_image_sector_size
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7957>
2026-03-31 19:57:49 +02:00
MultisampledNight 72b70d2f55 device-lynx-r1: remove overridden set of deviceinfo_append_dtb
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7957>
2026-03-31 19:57:49 +02:00
MultisampledNight b16054a8ef device-lg-mako: remove double entry of deviceinfo_generate_bootimg
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7957>
2026-03-31 19:57:49 +02:00
MultisampledNight c781b16be9 device-lg-mako-downstream: remove double entry of deviceinfo_generate_bootimg
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7957>
2026-03-31 19:57:49 +02:00
LogicalErzor 5bc1c00b5a device-samsung-expressatt: take over maintainership
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8248>
2026-03-31 17:51:06 +00:00
Bart Ribbers d7c7786947 main/postmarketos-ui-plasma-bigscreen: re-enable
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8141>
2026-03-31 17:48:41 +00:00
Bart Ribbers fb3aeb4232 temp/plasma-bigscreen: new aport
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8141>
2026-03-31 17:48:41 +00:00
Bart Ribbers 412d560cc9 temp/aura-browser: new aport
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8141>
2026-03-31 17:48:41 +00:00
Bart Ribbers 4de24c56ce temp/plank-player: new aport
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8141>
2026-03-31 17:48:41 +00:00
Duje Mihanović e2a6787183 linux-samsung-coreprimevelte: upgrade to 6.19.10
Many of the patches were upstreamed in 6.19, so they are dropped here.

Besides that, there are two new QoL patches (to be upstreamed
eventually) and kconfig fixes.

Signed-off-by: Duje Mihanović <duje@dujemihanovic.xyz>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8249>
2026-03-31 17:46:41 +00:00
Stefan Hansson 6ff3ee9670 main/dint: upgrade to 0.2.0
Signed-off-by: Stefan Hansson <newbyte@postmarketos.org>
2026-03-31 17:28:23 +02:00
Achill Gilgenast 59012769cc */*: rebuild against python 3.14
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8239>
2026-03-31 14:25:42 +00:00
Aelin 55b87766a6 linux-postmarketos-qcom-sc7280: Add co-maintainers, pass kconfigcheck
As discussed with Luca, Federico and me are maintainers of other devices using
the kernel package (Nothing Phone 1, Radxa Dragon Q6A, RUBIK Pi 3) and would
like to help maintain the kernel package in pmaports.

While we're at it, update the kernel configuration to pass kconfigcheck
again.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8245>
2026-03-31 11:25:49 +00:00
Oliver Smith cb6f7f0ef1 device-clockworkpi-uconsole-rpi: depend on gcc
Fix that building this package fails with:
  ccache: error: Could not find compiler "aarch64-alpine-linux-musl-gcc" in PATH

dtc tries to call gcc, so we must add it to the makedepends. It doesn't
seem possible to use clang instead with dtc, and even if, let's get the
package building with GCC first to unblock the queue in BPO and then
look into doing that.

This has probably worked in the past because pmbootstrap used to
pre-install more dependencies in the past during builds and this package
hasn't been built in a long time.

[ci:skip-vercheck]: code wasn't changed, just fixing the build

Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8241>
2026-03-31 00:35:24 +00:00
Clayton Craft 71c5137654 systemd/dbus-broker: skip tests on all archs except x86_64
Some tests under qemu take >10minutes each and time out. x86_64 is the
only arch that's native in gitlab CI AND bpo, so only run tests if on
that arch.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
[ci:skip-build]: already built successfully in CI (except aarch64,
 because runners are broken currently)

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8246>
2026-03-30 15:38:09 -07:00
Aelin 0b99b960d6 device-google-flame: drop dependency on hexagonfs-firmware-loader
We no longer want device packages to use this approach, they should
instead package their HexagonFS firmware files.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8163>
2026-03-30 22:04:04 +00:00
Aelin eef05be974 systemd/postmarketos-base-systemd: drop hexagonfs-firmware-loader from preset
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8163>
2026-03-30 22:04:04 +00:00
Aelin 4997cbff8c main/hexagonfs-firmware-loader: drop
Back in the days, hexagonrpcd was not suitable for generic device
packages and we had to hack around it with this service / script. Now
that hexagonrpcd can guess the HexagonFS directory location at runtime,
we can and should get rid of this service to align with our (future)
firmware packaging guidelines.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8163>
2026-03-30 22:04:04 +00:00
Aelin e00763cf34 device-qcom-qcs6490: move from testing to community
[ci:skip-vercheck]: moving between categories
[ci:skip-kconfigcheck]: moving between categories

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8210>
2026-03-30 21:57:23 +00:00
Clayton Craft 7143cf4f51 systemd/postmarketos-base-systemd: depend on dbus-broker
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8223>
2026-03-30 21:30:49 +00:00
Clayton Craft 08c6345879 systemd/dbus-broker: fork aport from Alpine to support systemd
This enables launcher support so that dbus-broker can run dbus services
via systemd units (either packaged units, or as a transient unit). The
benefit of doing this is that we no longer have to use a setuid binary
(dbus-daemon-launch-helper).

Fixes https://gitlab.postmarketos.org/postmarketOS/duranium/-/work_items/40

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8223>
2026-03-30 21:30:49 +00:00
Dzmitry 936675272d review fix: add !spdx
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8219>
2026-03-30 13:26:55 +00:00
Dzmitry Sankouski f36f478cbf device-samsung-starqltechn: replace firmware dependency
Replace hexagonfs-loader dependency with firmware-samsung-sdm845.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8219>
2026-03-30 13:26:55 +00:00
Dzmitry Sankouski 417afab791 firmware-samsung-sdm845: add package
Provides firmware for Samsung Galaxy S9 phone series based on SDM845 SoC.
This replaces hexagonfw-loader, which doesn't comply with firmware
packaging policy.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8219>
2026-03-30 13:26:55 +00:00
Vishwas Rajashekar b7f50c3dd8 device-samsung-lt03lte: add maintainer
Signed-off-by: Vishwas Rajashekar <dev@vrajashkr.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8238>
2026-03-30 07:57:50 +05:30
Achill Gilgenast 08c2bc39df temp/mbwl: use wlroots0.18
Removed wlroots0.17 in https://gitlab.alpinelinux.org/alpine/aports/-/commit/8b739ef72ca7fee5c75b0d4effa465b142a4ae50

Ideally this would use the latest stable wlroots version which is 0.20
already (and live in Alpine), but looking at
https://codeberg.org/mediaberry/mbwl/issues/2, we can consider mbwl a
short-term solution anyway.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8232>
2026-03-29 15:31:15 +00:00
Oliver Smith a82d50bb51 docs: device-categorization: new main requirements
Featuring a minor wording tweak as suggested by Newbyte.

Related: https://docs.postmarketos.org/pmcr/main/0009-new-main-device-category.html
Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8237>
2026-03-29 16:47:50 +02:00
Oliver Smith 4846a3a575 community/device-qemu-*: move from main
[ci:skip-vercheck]: moving packages

Related: https://docs.postmarketos.org/pmcr/main/0009-new-main-device-category.html
Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8237>
2026-03-29 16:10:08 +02:00
Clayton Craft 4c89aa7dc7 linux-postmarketos-asahi: upgrade to 6.19.10-1
Asahi fragment synced with upstream

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8233>
2026-03-28 15:16:44 +00:00
Clayton Craft 465764ee31 device-apple-mac-aarch64: add dwc3-apple module to initramfs
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8233>
2026-03-28 15:16:44 +00:00
Pablo Correa Gómez 6399bd2a4a main/gesture: drop
This is now upstream in Alpine.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7499>
2026-03-28 10:58:46 +00:00
Pablo Correa Gómez 6671b8deea main/shelli: drop
This is now upstream in Alpine

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7499>
2026-03-28 10:58:46 +00:00
Jana Steuernagel dc5f770d8a main/postmarketos-config-nftables: add rule for rdp
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8231>
2026-03-27 15:54:13 +00:00
Aster Boese edfb9c96a3 device/downstream/*: /etc/X11/xorg.conf.d -> /usr/share/X11/xorg.conf.d
Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7805>
2026-03-27 13:42:53 +00:00
Aster Boese e8adc41966 device/testing/*: /etc/X11/xorg.conf.d -> /usr/share/X11/xorg.conf.d
Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7805>
2026-03-27 13:42:53 +00:00
Aster Boese adb832c1ee device/community/*: /etc/X11/xorg.conf.d -> /usr/share/X11/xorg.conf.d
Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7805>
2026-03-27 13:42:53 +00:00
Aelin 5f395b2705 linux-postmarketos-lts: Upgrade to 6.18.20
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8225>
2026-03-27 12:43:39 +00:00
Aelin 9e1fd8f1dd linux-postmarketos-stable: Upgrade to 6.19.10
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8224>
2026-03-27 12:41:23 +00:00
bluebunny c0ad83a183 linux-xiaomi-pipa: upgrade to 6.19.10
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8199>
2026-03-26 22:05:37 +00:00
Aster Boese f16ca169e0 linux-powkiddy-x55: upgrade to 6.19.0
linux-powkiddy-x55 is just the kernel dot org repo with a single
patch applied. Originally, this was meant to be a port to use LLVM,
but too much of compilation was broken by newer clang optimizations,
so porting to the newest release made more sense.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8132>
2026-03-26 07:05:45 +00:00
Clayton Craft 7d77c762fb linux-postmarketos-asahi: upgrade to 6.19.9-2
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8229>
2026-03-25 16:37:32 -07:00
Oliver Smith 4560f99bd1 systemd/gnome-keyring: upgrade to 50.0
Related: https://gitlab.alpinelinux.org/alpine/aports/-/commit/63c502e654b8c5db7921eb039ffc77d8894c518c
Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8227>
2026-03-25 22:19:21 +01:00
Aelin e86582ddce cross/systemd-boot-x86: upgrade to 260.1
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8222>
2026-03-25 12:31:40 +00:00
Aelin c305c349c0 systemd/systemd: upgrade to 260.1
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8221>
2026-03-25 12:29:08 +00:00
Aelin 60a55ea194 systemd/systemd-stage0: upgrade to 260.1
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8221>
2026-03-25 12:29:08 +00:00
polyfloyd 8d21f0418e linux-postmarketos-qcom-sdm845: Enable new container kconfig flags
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8191>
2026-03-25 05:28:34 +00:00
Antoine Martin 72884e7a8a linux-postmarketos-rockchip: enable EFI ZBOOT
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8213>
2026-03-25 04:45:56 +00:00
Antoine Martin eb35a1d6e2 linux-postmarketos-rockchip: take maintainership
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8213>
2026-03-25 04:45:56 +00:00
Antoine Martin 3d3be43901 linux-postmarketos-rockchip: upgrade to 6.19.9
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8213>
2026-03-25 04:45:53 +00:00
Aster Boese fcd19400d9 systemd/systemd: build static libsystemd and libudev
Useful for things like Rust.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8216>
2026-03-25 02:45:41 +00:00
Aelin 0dd4e4108c cross/musl-*: upgrade to 1.2.6-r0
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8220>
2026-03-24 19:41:22 +01:00
Aelin 821b1f9926 linux-postmarketos-mainline: Upgrade to 7.0_rc5
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8218>
2026-03-23 18:01:01 +01:00
Aster Boese 21f0afb162 kconfig-generic: add, amdgpu, intel, nouveau, and nvme configs
Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8208>
2026-03-23 17:49:06 +01:00
Aster Boese 55b0571bc9 xiaomi-fire: move to archived
The git repo of the firmware files was deleted and there doesn't seem
to be a backup anywhere.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8025>
2026-03-22 14:38:56 +01:00
Aelin f05269f4c4 linux-postmarketos-lts: Upgrade to 6.18.19
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8201>
2026-03-21 21:12:13 +00:00
Aelin f7d27d9c2d linux-postmarketos-stable: Upgrade to 6.19.9
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8200>
2026-03-21 21:09:53 +00:00
Bart Ribbers e27f41f0c2 systemd/plasma*: upgrade to 6.6.3
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8206>
2026-03-21 15:29:42 +00:00
Clayton Craft 324d7b1385 deviceinfo_schema: update reference to configfs mount point
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8175>
2026-03-20 17:05:42 -07:00
Clayton Craft 97d87482ba temp/usb-moded: update configfs mount point
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8175>
2026-03-20 17:05:42 -07:00
Clayton Craft 278d75c7d1 device/downstream/samsung-*: update configfs mount pt in initramfs hook
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8175>
2026-03-20 17:05:42 -07:00
Clayton Craft 0a1cf811db main/postmarketos-usb-moded: improve systemd unit override
This changes the override to:

1) use /sys/kernel/config for the configfs location
2) depend on the sys-kernel-config.mount unit, which will automatically
mount configfs
3) depend on modprobing libcomposite
4) create the g1/configs/c.1 path automatically in case it's not created
yet

The configfs.ini file is also updated with the path

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8175>
2026-03-20 17:05:42 -07:00
Clayton Craft 24184654b2 main/postmarketos-initramfs: change configfs mount point
This matches the path that systemd's sys-kernel-config.mount unit uses,
and imho it's a lot nicer to tuck the mount point under /sys/kernel
(like for debugfs) than to have it in /

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8175>
2026-03-20 17:05:42 -07:00
Scott C a204d8e335 linux-postmarketos-omap: barnesnoble-encore: Add pinctrls, update panel section, enable touchscreen, wifi, poweroff, and more
Get touchscreen going by using correct hex value as i2c address

Update display panel / DSS sections:
- Add comment to 'dss' section to explain need for a kernel configuration setting
  which in an ideal world could be set in devicetree
- Set rotation property, panel-timing values, and comment on panel section in mcspi4

Set pinctrl entries for the device:
- Entries initially based on older u-boot and kernel board files and code, then
  revised based on similar devices
- Add pinctrl values in &omap3_pmx_core and &omap3_pmx_core2 sections
- add pinctrl-names and pinctrl-0 entries for most devices

Start to get sound card / codec set up, although not working yet:
- Set correct codec compatible entry.
  Device uses 'ti,tlv320dac3100', not 'ti,tlv320aic310x'
- Attempt to set sys_clkout2 clock for audio codec, but this is not working yet
- Add 'simple-audio-card' section
- Add &mcbsp2 section
- Add two regulators

Enable/ revise wifi section (mmc3 -> wifi)

Add vaux2 regulator section, used by mmc3/wifi
- Other devices have more comprehensive entries for the vmmc-supply and
  vqmmc-supply values for wifi which should likely be used for this device as
  well, but not implemented yet.

Allow device to actually turn off by setting system-power-controller property on
twl4030
- Add power ("ti,twl4030-power-idle-osc-off") section in twl, this seems to set
  suspend/low power commands

Add/ update some items based on similar devices, such as:
- hfclk_26m - set on twl4030
- vpll2 - set regulator to always-on, supposedly for dss/dpi

Set some unused components as disabled: gpmc, mcspi1, mcspi2, mcspi3, uart3, uart4
- uart2 is disabled since bluetooth hasn't been tested. Device does not have
  antenna for bluetooth

Many smaller updates:
- add pclk-sample property to lvds-encoder
- Correct accelerometer mount-matrix
- Set max8903_charger as power-supply for max17042 fuel gauge
- corrected touchscreen-size-.. properties to match 'native' orientation
- Add manufacturer model number to model string
- Revise max8903_charger section/ comments

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8144>
2026-03-20 11:31:06 -04:00
Clayton Craft d2ad485b51 systemd/systemd: disable BPF
Not all kernels have CONFIG_DEBUG_INFO_BTF=y, which means we can hit a
deadlock on boot if this is enabled. I haven't seen or heard of anyone
hitting this on mutable pmOS, since /boot is IIRC mounted via fstab,
but this is hit in Duranium where /boot is mounted on-demand via a
boot.automount unit

Since CONFIG_DEBUG_INFO_BTF isn't enabled broadly, enabling BPF support
in systemd probably doesn't make any sense for now?

See:
- https://github.com/systemd/systemd/issues/41162
- https://gitlab.postmarketos.org/postmarketOS/pmaports/-/issues/4411

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8198>
2026-03-20 06:32:51 +00:00
Clayton Craft f935f6329b systemd/systemd-stage0: upgrade to 260
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8198>
2026-03-20 06:32:51 +00:00
Clayton Craft de93133170 systemd/systemd: upgrade to 260
This also adds some helper functions to finding dlopened dependencies.
They're printed out during package(), and useful for figuring out which
packages to depend on when adding dependencies manually to the APKBUILD.
They're also quite gross (e.g. invoking apk) so it's commented out by
default.

Trigger change is because `reload-or-restart ---marked` is now
deprecated:

    * --marked is deprecated. Please use 'systemctl enqueue-marked' instead.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8198>
2026-03-20 06:32:51 +00:00
Luca Weiss 1ab8eefdd5 CI: Run dint job on all files on deviceinfo_schema.toml change
Similar to kconfigcheck.toml, let's run the dint job on all deviceinfo
files when the spec itself is changed. This allows to catch possible new
warnings and errors early and fix them.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8139>
2026-03-20 01:57:32 +00:00
Luca Weiss acf264e262 deviceinfo_schema: Document default of boot_filesystem
Looking at pmbootstrap, the default value is 'ext2'. Document that.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8139>
2026-03-20 01:57:32 +00:00
Aster Boese 5e58825ad3 kconfigcheck: version gate DRM_FBDEV_EMULATION
DRM_FBDEV_EMULATION was added in kernel version 4.3, but we have kernels older than that.
Version gating the option fixes kconfigcheck on these kernels.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8202>
2026-03-19 22:21:03 +01:00
Aster Boese 30e5479de2 main/postmarketos-base: switch from doas to sudo-rs
The version of OpenBSD's doas packaged by Alpine had its last commit
21-02-2022. This in itself is not bad, but the issue is that in that time,
there have been many MRs and issues filed to the repo that see no action.
One major MR, that being a hardening patch against rowhammer attacks,
has layed stale since 03-03-2024. After Natanael Copa asked if the repo
was still maintained, the response was that it is low-priority.

As such switching to sudo-rs, despite its larger size and attack surface, makes
sense due to more users and thus more eyes on it performing analysis and fixing
security issues quicker. OpenBSD doas does not have this itself, and a low-usage
fork of it definitely does not. While there are snazzier, more modern
alternatives like run0, capsudo, or s6-sudo, none of these are in a state where
they can fully replace all the features that sudo provides.

sudo-rs was chosen over the original sudo due to a few factors. The first is
memory safety, as Rust generally solves that issue in the codebase, so a whole
class of possible vulns are eliminated. Second is that sudo-rs is already in
use by larger distributions like Canonical's Ubuntu, meaning that the user base
is already quite large, leading to similar amounts of eyes on the source code.
Third, sudo-rs has had support from the original authors of sudo, allowing the
project to avoid the pitfalls of the legacy C codebase. Finally, sudo-rs has
already had two fairly recent independent security audits, meaning that their
security posture is diligent enough to be trusted.

See https://github.com/trifectatechfoundation/sudo-rs/tree/main/docs/audit

In the future, any further switch in the privilege-escalation tool should keep
the sudo command, be it through a symlink, shim, or a binary itself. This is
maintained currently due to having installed doas-sudo-shim by default, but
more care should be taken in the future to not break user workflows.

Partially reverts 0f327af853

See https://gitlab.postmarketos.org/postmarketOS/pmaports/-/issues/4144

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7967>
2026-03-18 17:36:30 +00:00
Ingo Reitz e96de8dd47 main/cros-keyboard-map: update to 0_git20251218
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8174>
2026-03-18 17:22:28 +00:00
Federico Amedeo Izzo 25b69f8ce3 firmware-nothing-spacewar: Change hexagonfs files path to fix bootloop.
The bootloop on spacewar was caused by ADSP crash due to hexagonfs files
being installed in the wrong path ("nothing" instead of "Nothing").
The path is derived by hexagonfs based on dts properties, we should
match that.

Additionally this makes sensors work on the phone.

See https://github.com/mainlining/firmware-nothing-spacewar/pull/1

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8196>
2026-03-18 17:53:24 +01:00
TuxMan af799f41e5 sony-tulip: move from downstream to testing and make myself as the maintainer
[ci:skip-vercheck]

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8185>
2026-03-18 14:46:41 +01:00
Antoine Martin 078b5564c4 linux-pine64-pinenote: upgrade to 6.19.8, enable ultra suspend
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8190>
2026-03-18 06:31:14 +00:00
Achill Gilgenast 2478dbed46 main/postmarketos-base-ui-gnome: remove fractional scaling override
Has been stablized and enabled by default in upstream GNOME 50, which is
in pmOS edge. GNOME Mobile which is on 48, had it enabled anyway.

Ref: <https://gitlab.gnome.org/GNOME/mutter/-/commit/74965cdb047df0f2159d53cb12770949924c60e9>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8194>
2026-03-17 11:31:57 +00:00
Achill Gilgenast 5a60da6d16 {temp,systemd}/gnome-shell-mobile: backport some GNOME 50 patches to GNOME 48
Closes: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/issues/4409
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8193>
2026-03-17 12:17:02 +01:00
Aelin 09e0c6f079 linux-postmarketos-mainline: Upgrade to 7.0_rc4
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8187>
2026-03-16 20:46:16 +00:00
Achill Gilgenast d15637099c systemd/gdm: fix logging into user-mode
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8189>
2026-03-16 14:58:42 +01:00
Aelin 49b4848ae3 systemd/systemd-stage0: upgrade to 259.5
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8176>
2026-03-16 00:44:33 +00:00
Aelin 13ba50b337 systemd/systemd: upgrade to 259.5
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8176>
2026-03-16 00:44:33 +00:00
Achill Gilgenast 605969d5b5 main/postmarketos-base-ui-gnome: recommend gnome-user-share & rygel
Enables the "Sharing"-panel in g-c-c for file & media sharing between
local computers.

Don't need a user preset, since they should be disabled by default, but
can be enabled in g-c-c.

Might need more configuration for mDNS/Avahi/zeroconf to work, but can be done
seperately, see
<https://gitlab.postmarketos.org/postmarketOS/pmaports/-/issues/1380> &
<https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8102>

Closes: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/issues/3256

[ci:skip-vercheck]: pmb_recommends

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8184>
2026-03-15 18:23:53 +00:00
TuxMan 442d503ae5 device-sony-yuga: fix DTB file path with mainline kernel
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8179>
2026-03-15 18:05:08 +00:00
Aster Boese fc9ba9b787 .gitlab: update issue template to reflect new default branch
Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8183>
2026-03-15 17:47:41 +00:00
Aster Boese 5da1b74db0 ci: replace master strings with main
Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8183>
2026-03-15 17:47:40 +00:00
Achill Gilgenast 9ca92f0d6d systemd/gnome-settings-daemon: remove
- user units are upstream
- sharing-panel is fine if linked against elogind

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8178>
2026-03-15 16:25:20 +00:00
Achill Gilgenast 1de8e0bc48 systemd/gdm: upgrade to 50.0
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8178>
2026-03-15 16:25:20 +00:00
Achill Gilgenast ffc5605453 systemd/gnome-shell: upgrade to 50.0
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8178>
2026-03-15 16:25:20 +00:00
Achill Gilgenast afdfedf26d systemd/mutter: upgrade to 50.0
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8178>
2026-03-15 16:25:20 +00:00
Achill Gilgenast a00bb2161b systemd/gnome-session: upgrade to 50.0
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8178>
2026-03-15 16:25:20 +00:00
Aster Boese 7d8b935704 treewide: change pmaports-specific master strings to main
Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7566>
2026-03-15 13:54:37 +00:00
1879 changed files with 87502 additions and 42621 deletions

No files matched your search

+1 -1
View File
@@ -89,7 +89,7 @@ update_linux_next() {
git remote add gitlab https://pmos-ci:"$PMAPORTS_PUSH_TOKEN"@gitlab.postmarketos.org/postmarketOS/pmaports.git
git fetch gitlab
git checkout --track gitlab/master
git checkout --track gitlab/main
for pkg in $PKGS; do
case "$pkg" in
+1 -1
View File
@@ -11,7 +11,7 @@
if [ "$(id -u)" = 0 ]; then
set -x
apk -q add py3-pip make git
apk add dint --allow-untrusted --repository=https://mirror.postmarketos.org/postmarketos/master
apk add dint --allow-untrusted --repository=https://mirror.postmarketos.org/postmarketos/main
exec su "${TESTUSER:-build}" -c "sh -e $0"
fi
+1 -1
View File
@@ -1,4 +1,4 @@
image: registry.alpinelinux.org/img/alpine:latest
image: registry.alpinelinux.org/img/alpine:3.23
stages:
- build
- hardware tests
+29
View File
@@ -0,0 +1,29 @@
#!/bin/sh -e
# Description: Ensure that we're not depending on a too new pmbootstrap version.
# https://postmarketos.org/pmb-ci
if [ "$(id -u)" = 0 ]; then
set -x
apk -q add coreutils curl jq
exec su "${TESTUSER:-build}" -c "sh -e $0"
fi
pmbootstrap_min_age_days="30"
pmbootstrap_min_version_field="$(grep pmbootstrap_min_version= pmaports.cfg)"
pmbootstrap_min_version="${pmbootstrap_min_version_field#*=}"
tag_date=$(curl -s "https://gitlab.postmarketos.org/api/v4/projects/postmarketOS%2Fpmbootstrap/repository/tags/$pmbootstrap_min_version" \
| jq -r ".created_at")
tag_age_timestamp=$(date -d "$tag_date" +"%s")
acceptable_age_timestamp=$(date -d "$pmbootstrap_min_age_days days ago" +"%s")
echo "NOTE: pmbootstrap versions must be at least $pmbootstrap_min_age_days days old to be the minimum required version"
if [ "$tag_age_timestamp" -ge "$acceptable_age_timestamp" ]; then
echo "ERROR: pmbootstrap version '$pmbootstrap_min_version' is too new!"
exit 1
else
echo "PASS: pmbootstrap version '$pmbootstrap_min_version' is acceptable"
exit 0
fi
+1 -1
View File
@@ -6,7 +6,7 @@
if [ "$(id -u)" = 0 ]; then
set -x
apk add git python3
apk add dint --allow-untrusted --repository=https://mirror.postmarketos.org/postmarketos/master
apk add dint --allow-untrusted --repository=https://mirror.postmarketos.org/postmarketos/main
exec su "${TESTUSER:-build}" -c "sh -e $0"
fi
+40
View File
@@ -1,4 +1,7 @@
#!/bin/sh -e
# shellcheck shell=busybox
# Description: check various bad patterns with grep
# https://postmarketos.org/pmb-ci
@@ -130,6 +133,34 @@ if [ -n "$CI_MERGE_REQUEST_DIFF_BASE_SHA" ]; then
fi
fi
# Find all moved, added, or generally modified kernel APKBUILDs
MODIFIED_KERNEL_PACKAGES=$(git show --pretty="" --name-only --diff-filter=AMR "$CI_MERGE_REQUEST_DIFF_BASE_SHA"..HEAD | grep "device/\(main\|community\|testing\|downstream\)/linux-.*/APKBUILD" || true)
if [ -n "$MODIFIED_KERNEL_PACKAGES" ]; then
# Disallow installing kernel modules outside /usr/
_bad_module_path_packages=""
for package in $MODIFIED_KERNEL_PACKAGES; do
# Check for INSTALL_MOD_PATH being set
if grep -qr 'INSTALL_MOD_PATH="$pkgdir"' "$package"; then
# Check if INSTALL_MOD_PATH is set to install to usr
if ! grep -qr 'INSTALL_MOD_PATH="$pkgdir"/usr' "$package"; then
# If INSTALL_MOD_PATH doesn't include usr, add package to list and
# setup failure
_bad_module_path_packages="$_bad_module_path_packages $package"
_module_error=1
fi
fi
done
# Fail with error and pretty print bad packages for logging
if [ -n "$_module_error" ]; then
echo "ERROR: Please set INSTALL_MOD_PATH to '\"\$pkgdir\"/usr'."
for package in $_bad_module_path_packages; do
printf "$package\n"
done
exit_code=1
fi
fi
# Disallow adding packages without a maintainer set
NEW_APKBUILDS=$(git show --pretty="" --name-only --diff-filter=A "$CI_MERGE_REQUEST_DIFF_BASE_SHA"..HEAD | grep APKBUILD || true)
@@ -140,6 +171,15 @@ if [ -n "$CI_MERGE_REQUEST_DIFF_BASE_SHA" ]; then
exit_code=1
fi
fi
# Get latest commit message in MR
case "$CI_COMMIT_DESCRIPTION" in
*"[ci:skip-grep]"*)
echo "WARNING: not checking packages with grep"
echo " ([ci:skip-grep])!"
exit_code=0
;;
esac
fi
exit "$exit_code"
+21 -4
View File
@@ -38,6 +38,10 @@ def get_kconfigcheck_categories() -> list [str]:
if __name__ == "__main__":
if common.commit_message_has_string("[ci:skip-apkbuild-lint]"):
print("WARNING: not linting deviceinfo files ([ci:skip-apkbuild-lint])")
exit(0)
kconfigcheck_categories = get_kconfigcheck_categories()
custom_valid_options += kconfigcheck_categories
os.environ["CUSTOM_VALID_OPTIONS"] = " ".join(custom_valid_options)
@@ -57,7 +61,20 @@ if __name__ == "__main__":
if len(apkbuilds_filtered) < 1:
print("No APKBUILDs to lint")
sys.exit(0)
try:
subprocess.run(["apkbuild-lint", *apkbuilds_filtered], text=True, check=True)
except subprocess.CalledProcessError as exception:
sys.exit(exception.returncode)
print("Running apkbuild-lint...")
print("")
ret = 0
for apkbuild in apkbuilds_filtered:
try:
cmd = ["apkbuild-lint", apkbuild]
subprocess.run(cmd, text=True, check=True)
except subprocess.CalledProcessError as exception:
ret = exception.returncode
print("")
if ret == 0:
print("Success")
sys.exit(ret)
+7 -23
View File
@@ -24,7 +24,7 @@ def get_package_contents(package, revision, check=True):
if not check:
stderr = subprocess.DEVNULL
# Run something like "git show upstream/master:main/hello-world/APKBUILD"
# Run something like "git show upstream/main:main/hello-world/APKBUILD"
pmaports_dir = common.get_pmaports_dir()
pattern = pmaports_dir + "/**/" + package + "/APKBUILD"
path = glob.glob(pattern, recursive=True)[0][len(pmaports_dir + "/"):]
@@ -137,7 +137,7 @@ def check_versions(packages):
pkgver = head.rpartition('-r')[0]
if package.startswith('device-') and not pkgver.isdigit():
print(f" - {package}: invalid pkgver \"{pkgver}\""
"See: https://wiki.postmarketos.org/wiki/Packaging#device_packages_and_other_packages_without_sources")
"See: https://docs.postmarketos.org/pmaports/main/packaging-guidelines.html#package-versioning-pkgver-pkgrel")
error = True
# Additional checks for device packages
@@ -145,27 +145,11 @@ def check_versions(packages):
head_parsed = get_package_contents(package, "HEAD", False)
upstream_parsed = get_package_contents(package, commit, False)
# checksums did not change
if head_parsed["sha512sums"] == upstream_parsed["sha512sums"]:
# Check that pkgver did not change
if head_parsed["pkgver"] != upstream_parsed["pkgver"]:
print(f" - {package}: pkgver should not change when package source checksums did not change."
"See: https://wiki.postmarketos.org/wiki/Packaging#device_packages_and_other_packages_without_sources")
error = True
# We do not check for a bumped pkgrel, because not everything
# needs it, e.g: pmb_recommends
# checksums changed
else:
# Check that pkgrel was reset to 0
if head_parsed["pkgrel"] != "0":
print(f" - {package}: pkgrel should be 0 when package source checksums change."
"See: https://wiki.postmarketos.org/wiki/Packaging#device_packages_and_other_packages_without_sources")
error = True
# Check that pkgver was changed
if head_parsed["pkgver"] == upstream_parsed["pkgver"]:
print(f" - {package}: pkgver should change when package source checksums change."
"See: https://wiki.postmarketos.org/wiki/Packaging#device_packages_and_other_packages_without_sources")
error = True
# Check that pkgrel was reset to 0 when pkgver was changed
if head_parsed["pkgver"] != upstream_parsed["pkgver"] and head_parsed["pkgrel"] != "0":
print(f" - {package}: pkgrel should be 0 when pkgver changes."
"See: https://docs.postmarketos.org/pmaports/main/packaging-guidelines.html#package-versioning-pkgver-pkgrel")
error = True
# Compare head and upstream versions
result = pmb.parse.version.compare(head, upstream)
+1 -1
View File
@@ -90,7 +90,7 @@ def main() -> int:
parser = argparse.ArgumentParser()
parser.add_argument("--booting", help="devices must be in the upper table,"
" being in the 'not booting' table below is not"
" enough (all devices in pmaports master and stable"
" enough (all devices in pmaports main and stable"
" branches and should be in the upper table)",
action="store_true")
parser.add_argument("--path", help="instead of downloading the devices"
+2 -2
View File
@@ -48,7 +48,7 @@ def run_pmbootstrap(parameters):
@cache
def get_upstream_branch():
""" Use pmaports.cfg from current branch (e.g. "v20.05_fix-ci") and
channels.cfg from master to retrieve the upstream branch.
channels.cfg from main to retrieve the upstream branch.
:returns: branch name, e.g. "v20.05" """
@@ -65,7 +65,7 @@ def get_upstream_branch():
# Get branch_pmaports (e.g. "v20.05") from channels.cfg
# https://postmarketos.org/channels.cfg
channels_cfg_str = run_git(["show", "upstream/master:channels.cfg"])
channels_cfg_str = run_git(["show", "upstream/main:channels.cfg"])
channels_cfg = configparser.ConfigParser()
channels_cfg.read_string(channels_cfg_str)
assert channel in channels_cfg, \
+10 -3
View File
@@ -3,6 +3,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
import common
import glob
import os.path
import subprocess
import sys
@@ -11,9 +12,15 @@ if __name__ == "__main__":
if common.commit_message_has_string("[ci:skip-dint]"):
print("WARNING: not linting deviceinfo files ([ci:skip-dint])")
exit(0)
# only lint deviceinfo files in the devices repo
deviceinfo_files = {file for file in common.get_changed_files()
if os.path.basename(file) == "deviceinfo" and file.startswith("device/")}
if "deviceinfo_schema.toml" in common.get_changed_files():
print("deviceinfo_schema.toml changed -> checking all deviceinfo files")
pmaports_dir = common.get_pmaports_dir()
deviceinfo_files = set(glob.glob(pmaports_dir + "/device/*/*/deviceinfo"))
else:
# only lint deviceinfo files in the devices repo
deviceinfo_files = {file for file in common.get_changed_files()
if os.path.basename(file) == "deviceinfo" and file.startswith("device/")}
try:
subprocess.run(["dint", "check", *deviceinfo_files], text=True, check=True)
+3 -3
View File
@@ -211,9 +211,9 @@ if __name__ == "__main__":
archtag={
Arch.x86_64: "shared",
Arch.x86: "shared",
Arch.aarch64: "arm64",
Arch.armv7: "qemu",
Arch.armhf: "qemu",
Arch.aarch64: "aarch64",
Arch.armv7: "armv7",
Arch.armhf: "armhf",
Arch.riscv64: "qemu",
Arch.ppc64le: "ppc64le",
Arch.loongarch64: "loongarch64",
+12 -1
View File
@@ -36,17 +36,28 @@ if __name__ == "__main__":
# aports later. We might be given a changed aport from e.g. extra-repos/systemd when
# that repo is not enabled
buildable_pkgs = set()
archived = set()
for path in pmb.core.pkgrepo.pkgrepo_iter_package_dirs():
# Store archived packages for matching later
if os.path.split(os.path.split(path)[0])[1] == 'archived':
archived.add(os.path.basename(path))
continue
buildable_pkgs.add(os.path.basename(path))
# To store a list of packages from extra-repos/systemd for special handling
# later:
systemd_pkgs = list()
# Filter out packages are not found in enabled repos
# Filter out packages are not found in enabled repos or are in archived
# (Iterate over copy of packages, because we modify it in this loop)
for package in packages.copy():
if package not in buildable_pkgs:
# Specifically handle archived since it could include packages
# who's sources are dead
if package in archived:
print(f"{package}: archived, skipping")
packages.remove(package)
continue
print(f"{package}: not in current repo, skipping")
packages.remove(package)
# FIXME: this should probably be more generic, if other repos are added
+3
View File
@@ -16,6 +16,9 @@ fi
sh_files="
./main/mdss-fb-init-hack/mdss-fb-init-hack.sh
./main/postmarketos-base-ui/rootfs-usr-lib-NetworkManager-dispatcher.d-50-dns-filter.sh
./main/postmarketos-duranium/rootfs-usr-bin-duranium-set-channel
./main/postmarketos-duranium/rootfs-usr-libexec-duranium-first-boot
./main/postmarketos-duranium/rootfs-usr-libexec-duranium-usb-gadget-setup
./main/postmarketos-installkernel/installkernel-pmos
./main/postmarketos-initramfs/init.sh
./main/postmarketos-initramfs/init_functions.sh
+1 -1
View File
@@ -67,7 +67,7 @@ instance/
# Documentation
public
docs/deviceinfo-reference.md
docs/packaging/device-packages/deviceinfo-reference.md
# PyBuilder
target/
+16
View File
@@ -111,6 +111,9 @@ pytest-commits:
# APKBUILD linting
aport-lint:
# alpine:latest doesn't have the most recent atools-go, which means we would
# miss some linting rules that were added upstream. Use alpine:edge instead.
image: alpine:edge
stage: lint
rules:
- if: *mr_rule
@@ -128,6 +131,7 @@ dint:
- .ci/**/*
- .gitlab-ci.yml
- device/*/device-*/deviceinfo
- deviceinfo_schema.toml
script:
- .ci/lib/gitlab_prepare_ci.sh
- .ci/dint.sh
@@ -171,6 +175,18 @@ mr-settings:
- wget -q "https://gitlab.postmarketos.org/postmarketOS/ci-common/-/raw/main/check_mr_settings.py"
- python3 ./check_mr_settings.py
pmbootstrap minimum version:
stage: lint
rules:
- if: *mr_rule
changes:
- .ci/check-pmbootstrap-min-version.sh
- .gitlab-ci.yml
- pmaports.cfg
script:
- .ci/lib/gitlab_prepare_ci.sh
- .ci/check-pmbootstrap-min-version.sh
# Calculate build of changed aports using a dynamic downstream pipelines:
# https://docs.gitlab.com/ci/pipelines/downstream_pipelines/#dynamic-child-pipelines
# For those to work, we need two jobs:
+3 -2
View File
@@ -26,8 +26,9 @@
<!--
Replace space inside `[ ]` with `x` to fill the checkbox
-->
* [ ] edge (`master` branch)
* [ ] edge (`main` branch)
* [ ] `v25.12`
* [ ] `v26.06`
* [ ] I confirm that the issue still is present after running `sudo apk upgrade -a`
@@ -35,7 +36,7 @@
#### Environments
* [ ] COSMIC
* [ ] GNOME Shell on Mobile
* [ ] Phosh
* [ ] Phosh (*Please attach the debug information of the Mobile settings app, see [this video](https://peertube.debian.social/w/4GwDjCJNcAmp8cb7dqXz1T) or use `phosh-mobile-settings -d`*)
* [ ] Plasma Mobile
* [ ] Sxmo (Wayland/Sway) **Please post the output of `sxmo_version.sh`**
* [ ] Other: **Please fill out**
@@ -8,4 +8,8 @@
* Maintainers of the package:
* MR that had no maintainer response, if applicable:
If the maintainers don't reply within two weeks of opening this issue, the
package is considered orphaned and, in the case of device packages, the devices
will be moved to the archived category.
/label ~maintainership-status
@@ -0,0 +1,25 @@
<!-- Use this template to notify community kernel maintainers that their
kernels are out-of-date and start the timer for moving them to testing.
Please title the issue:
Current community kernels not meeting version requirement (yyyy-mm-dd)
-->
Hi, as per our
[device categorization requirements for the community category](https://docs.postmarketos.org/pmaports/main/device-categorization.html#community),
devices in the community category may not use a kernel version older than 6
months.
As of today (yyyy-mm-dd), the following kernels do not meet this requirement:
* kernel-pkgname: kernel-pkgver, version-release-date (maintainers: @ ...)
This issue is an attempt to notify you (the maintainers) of the situation so
that you can update the packages. As per the rules, you have two weeks to
update the packages or reply with a request for more time, up to one month
of time from the moment this issue is opened. If that time passes and the
devices still no longer meet the requirements, they will be moved to testing.
/label ~"device-category::community"
/label ~kernel
/label ~"type::policy"
+29
View File
@@ -0,0 +1,29 @@
<!--
This template is for marking a postmarketOS stable release as EOL.
Name this issue "vYY.MM EOL".
-->
When the release has reached its EOL date:
- [ ] `postmarketos-base-ui`: let it depend on
`postmarketos-release-upgrade-notification` and bump pkgrel
- [ ] ensure it builds locally with pmbootstrap
- [ ] push it to the branch
- [ ] make sure bpo built and released the updated packages
- [ ] drop the old release from
[monitoring](https://gitlab.postmarketos.org/postmarketOS/monitoring)
- [ ] drop the "oldold -> old" release check from
[postmarketos-release-upgrade](https://gitlab.postmarketos.org/postmarketOS/postmarketos-release-upgrade/)
CI
- [ ] bpo: configure images so they don't get built for the old release anymore
- [ ] bpo: configure branches so we don't try to build packages for old
branches anymore
- e.g. on startup all branches are checked for new packages, we should keep
the amount of branches that get checked minimal
- [ ] pmaports.git channels.cfg: change description:
- "Old release (unsupported)"
- [ ] Update the [Releases](https://docs.postmarketos.org/pmaports/main/releases.html) page
- Move the release from active to old
- [ ] Consider removing images for the previous releases to save disk space
(people can build their own images with pmbootstrap if needed)
@@ -0,0 +1,234 @@
<!--
This template is for creating a new postmarketOS stable release.
Name this issue "vYY.MM Infrastructure".
-->
Person in charge of the release (doesn't have to do all the work, but has to
push it forward):
<!-- Put your usename here and assign yourself to this issue -->
### 0. Preparation
- [ ] Create the gitlab milestone for the release
- [ ] Add this infrastructure issue to the milestone
- [ ] Update the
[timeline](https://docs.postmarketos.org/policies-and-processes/development/releases/current-timeline.html)
for the next release
### 1. Pre-Build phase
This phase is to get some extra time for building packages. The branch will be rebased once in the branch phase.
#### Requirements
- [ ] Alpine's main repository must be built and published
- [ ] Alpine's community repository must be built and published
<small>Without this, bpo won't be able to build packages but steps before
that can be done already.</small>
#### pmbootstrap: adjust config
- [ ] Update `pmb/config/__init__.py:apk_tools_min_version`. This should be a
trivial change, push it directly to main.
- [ ] (can be done later, at start of test phase) make a new [pmbootstrap
release](https://wiki.postmarketos.org/wiki/Pmbootstrap_release) <small>bpo
uses the main branch, so it will be fine without a release, however users
will want to try out the new release and may not run main.</small>
#### pmaports: create branch and initial changes
- [ ] `git checkout -b vYY.MM main`
- [ ] Create a `=== Branch vYY.MM from main ===` commit
- Remove channels.cfg (should only be in main)
- Adjust `pmaports.cfg`: Change `channel=edge` to `channel=vYY.MM`
- Adjust `pmaports.cfg`: Change `supported_arches` to `x86_64,aarch64,armv7`
- Delete `.ci/build-*` scripts for other arches
<small>`pmbootstrap ci` reads these</small>
- [ ] `git push`
- [ ] Ensure the branch is protected in the
[repository settings](https://gitlab.postmarketos.org/postmarketOS/pmaports/-/settings/repository)
#### pmaports: update main branch
- [ ] `git checkout main`
- [ ] Add the new branch to
[channels.cfg](https://wiki.postmarketos.org/wiki/Channels.cfg_reference):
- [Example](https://gitlab.postmarketos.org/postmarketOS/pmaports/-/commit/c43571ceaf9b8155519bc9fb760bdeccd96e7e9c)
- Check if you need to set `branch_aports=master` initially if the stable
branch does not exist yet.
- [ ] `git push`
#### pmaports: update os-release / remove packages / aportgen
- [ ] `git checkout vYY.MM`
- [ ] Update `postmarketos-base`:
- [ ] Set version info for `/usr/lib/os-release` in
`main/postmarketos-base/rootfs-usr-lib-os-release`
(`PRETTY_NAME="postmarketOS vYY.MM"`, `VERSION_ID="vYY.MM"`,
`VERSION="vYY.MM"`)
- `pmbootstrap pkgrel_bump postmarketos-base`
- `pmbootstrap config mirrors.pmaports none`
- `pmbootstrap config mirrors.systemd none`
- `pmbootstrap checksum postmarketos-base`
- `git commit -s` (`Remove packages that we don't have in stable`)
- [ ] Remove packages:
- `cross/*-armhf` and other unsupported arches in cross dir (keep `gcc-x86` and `musl-dev-x86`, `systemd-boot-x86`)
- `gcc4*` and `gcc6*` from main and cross dirs
- `device/downstream`, `device/archived`
- `extra-repos/systemd/postmarketos-repo-nightly`
- [ ] Run `pmbootstrap aportgen` for packages in cross:
- `cd cross; PMB_APK_FORCE_MISSING_REPOSITORIES=1 pmbootstrap aportgen musl-* grub-efi-x86`
- `git commit -s` (`cross: regenerate for vYY.MM`)
- [ ] `git push`
#### bpo: adjust config
- [ ] Add the branch to the
[build.postmarketos.org](https://gitlab.postmarketos.org/postmarketOS/build.postmarketos.org)
config in `bpo/config/const/__init__.py:branches` below `branches["main"]`,
so it builds with lower priority than main until it's released. Set `ignore_errors` to `True`.
- [ ] Make a merge request, wait until CI passes, merge it (or if you can directly push to main that's also fine since it's a trivial change)
- [ ] Roll it out/ask somebody who can do that
- [ ] Restart bpo, it will start building `x86_64` packages
#### Bootstrap of binary packages
- [ ] Fix all failing `x86_64` packages (Remember: patches need to go through
edge first, then get backported to the stable branch!)
- Try to get build fixes merged to edge quickly, ask for reviews in
#postmarketos-devel, and consider merging trivial fixes right after they
pass CI.
- Devices in testing and archived categories that don't build: consider
trying to fix them, or just delete them from the branch
- [ ] Wait until all packages for `x86_64` (main repository, we don't need to
wait for the systemd repository before continuing) are built and
published
- [ ] Enable arm repositories in the BPO config
- [ ] Get all packages to build without errors
#### Wallpaper poll
- [ ] Team meeting: make a short list of 4 wallpapers from [the
pool](https://gitlab.postmarketos.org/postmarketOS/artwork/-/tree/main/wallpapers/2024)
- [ ] Make a poll on the wallpapers on mastodon
([example](https://fosstodon.org/@postmarketOS/113624366198561582))
- Make sure to thank the wallpaper authors (usually dikasp) for the amazing
work on the wallpapers
- Put the names of the wallpapers on top of the wallpapers for easier voting
and as alt text
- Create a comment with poll options
#### Adjust CI
- [ ] Make sure pmaports.git CI runs through on the new branch (run
`pmbootstrap ci`). Examples of why it might fail:
- One postmarketos-ui package has a package from alpine testing in their
_pmb_recommends.
- Remove the UI if it is not used much (can bring it back on demand) or
fork the package to the new branch
- Consider fixing it in edge, so we don't run into this with the next
release
- [ ] Adjust
[upstream-compat](https://gitlab.postmarketos.org/postmarketOS/continuous-testing/upstream-compat)
to run on the new release and make sure it passes
([example](https://gitlab.postmarketos.org/postmarketOS/continuous-testing/upstream-compat/-/merge_requests/10))
#### Adjust release upgrade script
- [ ] Add the new release to `upgrade.sh` in [postmarketos-release-upgrade](https://gitlab.postmarketos.org/postmarketOS/postmarketos-release-upgrade/)
- [ ] Bump `SCRIPT_VERSION`, tag a new release
- [ ] Package it for edge (make MR), backport it to the new release, but NOT to
the old release yet (otherwise users may upgrade by accident, without
realizing that the new version is not out yet!)
- [ ] Adjust CI of postmarketos-release-upgrade to test the new release too
(`git grep` for the previous release to see what needs to be adjusted)
#### Update the wallpaper
- [ ] Set the wallpaper that won in the poll in edge, backport this change to
the stable release branch
### 2. Branch phase
#### Rebase on main
- [ ] `git checkout vYY.MM`
- [ ] `git rebase -i origin/main`
- [ ] Temporarily enable force-push for the `vYY.MM` branch
- [ ] `git push --force-with-lease`
- [ ] Disable force-push for the `vYY.MM` branch again
#### Update BPO config
- [ ] Update bpo's images config to build images for the new branch for all
devices in community and main
- [ ] bpo: configure the new branch to be not WIP anymore
- [ ] Roll-out bpo changes
#### pmb release done?
- [ ] Ensure that a pmbootstrap release been made with the apk-tools min
version change
#### aports stable branch set?
* [ ] Check if a stable branch exists in `aports` for the new release, and that
it is being used in `channels.cfg` (might still be set to `master` if it
did not exist during the Pre-Branch phase).
### 3. Test phase
- [ ] Create an issue in pmaports with a checklist of devices and UIs in main
and community (see previous issue for reference)
- Tag the testers of each device and UI
- Ask to verify that the images work as expected
- Release upgrade script: when coming from the previous release, grab it from
main: `wget https://gitlab.postmarketos.org/postmarketOS/postmarketos-release-upgrade/-/raw/main/upgrade.sh`
- [ ] Announce the new phase in the testing chat - and ask them to do the
testing within one week, as in the timeline.
- Prioritize merging fixes from maintainers (they do the heavy lifting in the
testing and fixing phase, see timetable)
- Make sure to properly cherry pick fixes from MRs to edge, if they are
intended for the upcoming release
- [ ] Add new version to the pmaports gitlab issue template (.gitlab dir)
### 4. Release phase
- [ ] Did a reasonable amount of devices get tested? (we may consider dropping
devices that were not tested)
- [ ] Make sure all fixes are in
- [ ] Make sure new images are generated *with* the fixes (unless it's a fix
for something that doesn't impact the experience much and is fine to get with
the first update after installing)
- [ ] Announce the new phase in the testing chat, together with the planned
date of blog post release (and testing)
#### Write blog post
- [ ] Write a blog post for the new release in `postmarketos.org.git`:
- Look at the previous release blog post and try to make the new one
consistent with it
- Highlight major changes since the last release
(see the release notes issue)
- Mention new devices, and total list of devices
- Count devices that have their own wiki page as separate device
- E.g. OnePlus 6, 6T are two devices (two wiki pages), but variants of
"Samsung Galaxy A3 (2015)" are one device (one wiki page)
- Don't count/list devices for which we don't build images (e.g.
qemu-amd64)
- Adjust the homepage config to point to the new release in the downloads
page
- update `config/download.py`:
- `latest_release`
- update devices and categories. only list the ones where we actually build images.
- Add some cool photos
- Submit the blog post as MR to postmarketos.org.git.
- Let the blog post MR close the current release notes issue.
- Ask for reviews.
#### Release!
- [ ] Backport the new postmarketos-release-upgrade version that allows
upgrading to the new release, to the previous release (don't do this before
the release is tested and ready! During the testing phase, we can use
postmarketos-release-upgrade from main directly: `wget
https://gitlab.postmarketos.org/postmarketOS/postmarketos-release-upgrade/-/raw/main/upgrade.sh`)
- [ ] Add the branch to pkgs.postmarketos.org
- [ ] Merge the blog post
- [ ] Edit channels.cfg, change descriptions:
- New release: "Latest release / Recommended for best stability"
- Old release: "Old release (supported until YYYY-MM-DD)" (one month from date of the release)
- [ ] Create a milestone for the next release
- [ ] Create an issue for the next release notes and attach it to that milestone
- [ ] Update the [Releases](https://docs.postmarketos.org/pmaports/main/releases.html) page
- Move the new release to the list of active releases, link to the blog post
- Update the announcement and title for the release
- Add a new upcoming release below
- [ ] Update [Template:Latest stable release](https://wiki.postmarketos.org/wiki/Template:Latest_stable_release) on the wiki with the new version
- [ ] Update "Default description template for issues" in pmaports (.gitlab dir)
- In "On what postmarketOS version did you encounter the issue?", change:
- previous release: add " (supported until YYYY-MM-DD)"
- add the new release
- [ ] Put a reminder in recurring-admin-tasks to drop support for the old release
+2
View File
@@ -3,3 +3,5 @@ Casey Connolly <kcxt@postmarketos.org> <caleb@postmarketos.org>
Achill Gilgenast <achill@achill.org> <fossdd@pwned.life>
Aelin <aelin@postmarketos.org> <adrian@postmarketos.org>
Aelin <aelin@postmarketos.org> <adrian@travitia.xyz>
Stefan Hansson <newbyte@postmarketos.org> <newbie13xd@gmail.com>
Stefan Hansson <newbyte@postmarketos.org> <newbyte@postmarketos.org>
+4 -4
View File
@@ -1,4 +1,4 @@
# Policy for commits in pmaports
# Commit Style
This document defines policy for organising and titling commits for
inclusion in pmaports.
@@ -16,9 +16,9 @@ target device.
## General policy
We follow Alpine's aports commit style with some minor exceptions
and additions. Alpine's commit style can be found here:
https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/COMMITSTYLE.md
We follow
[Alpine's aports commit style](https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/COMMITSTYLE.md)
with some minor exceptions and additions.
## Exceptions
+3 -1
View File
@@ -5,10 +5,12 @@ This repository contains the APKBUILD files for postmarketOS-specific packages,
There are many more packages defined in the [Alpine Linux aports](https://gitlab.alpinelinux.org/alpine/aports/) on which these packages depend.
Helpful resources:
* [Issues](https://gitlab.postmarketos.org/postmarketOS/pmaports/-/work_items)
* [How to create a package](https://wiki.postmarketos.org/wiki/Create_a_package)
* [APKBUILD reference](https://wiki.alpinelinux.org/wiki/APKBUILD_Reference)
* [pmaports commit style](./COMMITSTYLE.md)
* [Review and merging guidelines](./docs/modules/ROOT/pages/merging-rules.adoc)
* [Approval rules](docs/approval-rules.md)
* [Alpine Linux aports](https://gitlab.alpinelinux.org/alpine/aports/)
* [Alpine Linux package search](https://pkgs.alpinelinux.org/packages)
* [postmarketOS package search](https://pkgs.postmarketos.org/packages)
+6
View File
@@ -8,6 +8,12 @@ branch_pmaports=main
branch_aports=master
mirrordir_alpine=edge
[v26.06]
description=Upcoming stable release (DO NOT USE)
branch_pmaports=v26.06
branch_aports=3.24-stable
mirrordir_alpine=v3.24
[v25.12]
description=Latest release / Recommended for best stability
branch_pmaports=v25.12
-43
View File
@@ -1,43 +0,0 @@
# This package gets installed in the native and foreign arch chroots.
# It creates files like /usr/lib/arch-bin-masquerade/armhf/gcc, which
# point in the native chroot to the armhf-cross-compiler, and in the
# armhf chroot to /usr/bin/gcc. That way compilation works fine, even
# when distcc gets the absolute path to the compiler passed (ccache does
# that).
maintainer=""
pkgname=arch-bin-masquerade
pkgver=2
pkgrel=0
pkgdesc="Wrappers for ccache + distcc (native and foreign chroots)"
url="https://postmarketOS.org"
arch="all"
license="MIT"
options="!check !tracedeps pmb:cross-native"
package() {
# Architectures and binaries
_archs="x86_64 armhf armv7 aarch64"
_bins="c++ cc cpp g++ gcc"
# Iterate over architectures
for _arch in $_archs; do
# Create the arch-specific bin folder
_hostspec="$(arch_to_hostspec $_arch)"
_bindir="$pkgdir/usr/lib/arch-bin-masquerade/$_arch"
mkdir -p "$_bindir"
cd "$_bindir"
# Iterate over binaries and create wrappers
for _bin in $_bins; do
{
echo "#!/bin/sh"
if [ "$_arch" == "$CARCH" ]; then
echo "exec /usr/bin/${_bin} \"\$@\""
else
echo "exec /usr/bin/${_hostspec}-${_bin} \"\$@\""
fi
} > "$_bin"
chmod +x "$_bin"
done
done
}
@@ -0,0 +1,31 @@
Provide struct_sock_fprog_sz on Linux, rather than on Linux+glibc.
With `#include <linux/filter.h>` `struct sock_fprog` is available when
linux headers are available. It seems that glibc is just including that header
as an implementation detail, while musl does not.
--- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp 2025-08-08 08:51:45.621434001 +0200
+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp 2026-02-25 20:29:28.519492722 +0100
@@ -74,6 +74,7 @@
#include <sys/vt.h>
#include <linux/cdrom.h>
#include <linux/fd.h>
+#include <linux/filter.h>
#if SANITIZER_ANDROID
#include <linux/fs.h>
#endif
@@ -507,6 +508,7 @@ unsigned struct_ElfW_Phdr_sz = sizeof(El
unsigned struct_seq_event_rec_sz = sizeof(struct seq_event_rec);
unsigned struct_synth_info_sz = sizeof(struct synth_info);
unsigned struct_vt_mode_sz = sizeof(struct vt_mode);
+ unsigned struct_sock_fprog_sz = sizeof(struct sock_fprog);
#endif // SANITIZER_LINUX
#if SANITIZER_GLIBC
@@ -534,7 +536,6 @@ unsigned struct_ElfW_Phdr_sz = sizeof(El
unsigned struct_audio_buf_info_sz = sizeof(struct audio_buf_info);
unsigned struct_ppp_stats_sz = sizeof(struct ppp_stats);
- unsigned struct_sock_fprog_sz = sizeof(struct sock_fprog);
# endif // SANITIZER_GLIBC
# if !SANITIZER_ANDROID && !SANITIZER_APPLE
+33 -6
View File
@@ -1,7 +1,6 @@
# Automatically generated aport, do not edit!
# Generator: pmbootstrap aportgen gcc-aarch64
# Based on: main/gcc (from Alpine)
CTARGET_ARCH=aarch64
CTARGET="$(arch_to_hostspec ${CTARGET_ARCH})"
LANG_D=false
@@ -23,6 +22,7 @@ CBUILDROOT="/"
_cross_configure="--disable-bootstrap --with-sysroot=/usr/$CTARGET"
maintainer="Oliver Smith <ollieparanoid@postmarketos.org>"
pkgname=gcc-aarch64
pkgver=15.2.0
# i.e. 13.2.1, must match gcc/BASE-VER
@@ -34,19 +34,23 @@ _pkgsnap="${pkgver##*_git}"
[ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target=""
pkgname=gcc-aarch64
pkgrel=2
pkgrel=6
pkgdesc="Stage2 cross-compiler for aarch64"
url="https://gcc.gnu.org"
arch="x86_64"
license="GPL-2.0-or-later AND LGPL-2.1-or-later"
_gccrel=$pkgver-r$pkgrel
depends="binutils-aarch64 mpc1 so:libc.musl-x86_64.so.1 so:libgcc_s.so.1 so:libgmp.so.10 so:libisl.so.23 so:libmpc.so.3 so:libmpfr.so.6 so:libstdc++.so.6 so:libz.so.1"
depends="binutils-aarch64 mpc1 so:libgcc_s.so.1 so:libgmp.so.10 so:libisl.so.23 so:libmpc.so.3 so:libmpfr.so.6 so:libstdc++.so.6 so:libz.so.1"
case "$CARCH" in
x86_64) depends="$depends so:libc.musl-x86_64.so.1" ;;
esac
makedepends_build="gcc g++ bison flex texinfo gawk zip gmp-dev mpfr-dev mpc1-dev zlib-dev"
makedepends_host="linux-headers gmp-dev mpfr-dev mpc1-dev isl-dev zlib-dev musl-dev-aarch64 binutils-aarch64"
subpackages="g++-aarch64:gpp libstdc++-dev-aarch64:libcxx_dev"
[ "$CHOST" = "$CTARGET" ] && subpackages="gcc-gdb gcc-doc"
replaces="libstdc++ binutils"
options="!strip !tracedeps"
options="!strip !tracedeps toolchain"
: "${LANG_CXX:=true}"
: "${LANG_D:=true}"
@@ -175,7 +179,10 @@ esac
# libatomic is a dependency for openvswitch
$_libatomic && subpackages="$subpackages libatomic::$CTARGET_ARCH"
$_libgcc && subpackages="$subpackages libgcc::$CTARGET_ARCH"
if $_libgcc; then
depends="$depends libgcc-static$_target"
subpackages="$subpackages libgcc::$CTARGET_ARCH libgcc-static$_target:libgccstatic:$CTARGET_ARCH"
fi
$_libquadmath && subpackages="$subpackages libquadmath::$CTARGET_ARCH"
if $_libgomp; then
depends="$depends libgomp=$_gccrel"
@@ -279,6 +286,7 @@ source="https://gcc.gnu.org/pub/gcc/releases/gcc-$_pkgbase/gcc-$_pkgbase.tar.xz
0039-except-Don-t-use-the-cached-value-of-the-gcc_except_.patch
0040-ada-libgnat-use-stub-symbolic-module-name-functions.patch
0041-ada-libgnat-recognize-linux-musleabi-and-linux-muslg.patch
0042-libsanitizer-struct_sock_fprog_sz.patch
0001-tree-object-size.cc-Fix-assert-constant-offset-in-ch.patch
0001-LoongArch-Only-allow-valid-binary-op-when-optimize-c.patch
@@ -580,7 +588,11 @@ gpp() {
depends="libstdc++-dev$_target=$_gccrel gcc$_target=$_gccrel musl-dev"
[ "$CHOST" = "$CTARGET" ] && depends="$depends libstdc++=$_gccrel"
depends="$depends so:libc.musl-x86_64.so.1 so:libgmp.so.10 so:libisl.so.23 so:libmpc.so.3 so:libmpfr.so.6 so:libz.so.1"
depends="$depends so:libgmp.so.10 so:libisl.so.23 so:libmpc.so.3 so:libmpfr.so.6 so:libz.so.1"
case "$CARCH" in
x86_64) depends="$depends so:libc.musl-x86_64.so.1" ;;
esac
amove $_gcclibexec/cc1plus
amove usr/bin/*++
@@ -622,6 +634,20 @@ libgcc() {
depends=
amove usr/lib/libgcc_s.so.*
# Symlink for Clang to find the library. Gets overwritten by the real
# library if gcc is installed.
ln -s /usr/lib/libgcc_s.so.1 \
"$subpkgdir"/usr/lib/libgcc_s.so
}
libgccstatic() {
pkgdesc="GNU C compiler runtime libraries"
depends=
amove usr/lib/gcc/"$CTARGET"/"$pkgver"/crtbegin.o
amove usr/lib/gcc/"$CTARGET"/"$pkgver"/crtbeginS.o
amove usr/lib/gcc/"$CTARGET"/"$pkgver"/crtendS.o
amove usr/lib/gcc/"$CTARGET"/"$pkgver"/libgcc.a
}
libgomp() {
@@ -796,6 +822,7 @@ eecc77e2a9cf956fd752693ad7f8ff8253a7bb557e00564bb488bbc1deac895e63104cc1182a0bdd
9f4c3fa0d17cfcd72626bdbaf51992ff3018f878d673ab19b9056047ee2630b581e5a5a4d4857444f08ba9bcdb0fc94f90dcda6180816e39690d1652843f0d8a 0039-except-Don-t-use-the-cached-value-of-the-gcc_except_.patch
d166475e340c91bbb24cf257240aab37129b04f2609e5ce323b530ab83853a4c34c525e0072c15732717f1681db07e6b3b0a4d268720c31f460435ccf4c99b7f 0040-ada-libgnat-use-stub-symbolic-module-name-functions.patch
c717764ef52c0226a23cbf434654cdefa6cbf38ec625648575d9143c5513b16d8914c25015db743033b8a46ac5b2c33ab75e1b67076128d67bb1319e5a83dd85 0041-ada-libgnat-recognize-linux-musleabi-and-linux-muslg.patch
5dd452a80c496a587a8826b04a4917045e4028631606e85cabd8e87e0460642d188a2156c4e0cf37a5d88e66ebd08a08393d48a6065045178c69eaba2edd063e 0042-libsanitizer-struct_sock_fprog_sz.patch
c3b64b05332bd4dd7fad3fff3cacd4f9de0512943f1548c6f1205fab1a74c83622024f30471805f57d625198cc32f647b32172914528fd5605d0bf61cb0c3ff1 0001-tree-object-size.cc-Fix-assert-constant-offset-in-ch.patch
e91873055550eba051d9297bec5c6acd27abb9ee6ce8911cdd04b5faf37d77b6b2a7607ec588d2863f13f14b48af9398cb4ac42443d8567bfa5037dc6bd50404 0001-LoongArch-Only-allow-valid-binary-op-when-optimize-c.patch
"
@@ -0,0 +1,31 @@
Provide struct_sock_fprog_sz on Linux, rather than on Linux+glibc.
With `#include <linux/filter.h>` `struct sock_fprog` is available when
linux headers are available. It seems that glibc is just including that header
as an implementation detail, while musl does not.
--- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp 2025-08-08 08:51:45.621434001 +0200
+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp 2026-02-25 20:29:28.519492722 +0100
@@ -74,6 +74,7 @@
#include <sys/vt.h>
#include <linux/cdrom.h>
#include <linux/fd.h>
+#include <linux/filter.h>
#if SANITIZER_ANDROID
#include <linux/fs.h>
#endif
@@ -507,6 +508,7 @@ unsigned struct_ElfW_Phdr_sz = sizeof(El
unsigned struct_seq_event_rec_sz = sizeof(struct seq_event_rec);
unsigned struct_synth_info_sz = sizeof(struct synth_info);
unsigned struct_vt_mode_sz = sizeof(struct vt_mode);
+ unsigned struct_sock_fprog_sz = sizeof(struct sock_fprog);
#endif // SANITIZER_LINUX
#if SANITIZER_GLIBC
@@ -534,7 +536,6 @@ unsigned struct_ElfW_Phdr_sz = sizeof(El
unsigned struct_audio_buf_info_sz = sizeof(struct audio_buf_info);
unsigned struct_ppp_stats_sz = sizeof(struct ppp_stats);
- unsigned struct_sock_fprog_sz = sizeof(struct sock_fprog);
# endif // SANITIZER_GLIBC
# if !SANITIZER_ANDROID && !SANITIZER_APPLE
+36 -7
View File
@@ -1,7 +1,6 @@
# Automatically generated aport, do not edit!
# Generator: pmbootstrap aportgen gcc-armhf
# Based on: main/gcc (from Alpine)
CTARGET_ARCH=armhf
CTARGET="$(arch_to_hostspec ${CTARGET_ARCH})"
LANG_D=false
@@ -23,6 +22,7 @@ CBUILDROOT="/"
_cross_configure="--disable-bootstrap --with-sysroot=/usr/$CTARGET"
maintainer="Oliver Smith <ollieparanoid@postmarketos.org>"
pkgname=gcc-armhf
pkgver=15.2.0
# i.e. 13.2.1, must match gcc/BASE-VER
@@ -34,19 +34,24 @@ _pkgsnap="${pkgver##*_git}"
[ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target=""
pkgname=gcc-armhf
pkgrel=2
pkgrel=6
pkgdesc="Stage2 cross-compiler for armhf"
url="https://gcc.gnu.org"
arch="x86_64"
arch="aarch64 x86_64"
license="GPL-2.0-or-later AND LGPL-2.1-or-later"
_gccrel=$pkgver-r$pkgrel
depends="binutils-armhf mpc1 so:libc.musl-x86_64.so.1 so:libgcc_s.so.1 so:libgmp.so.10 so:libisl.so.23 so:libmpc.so.3 so:libmpfr.so.6 so:libstdc++.so.6 so:libz.so.1"
depends="binutils-armhf mpc1 so:libgcc_s.so.1 so:libgmp.so.10 so:libisl.so.23 so:libmpc.so.3 so:libmpfr.so.6 so:libstdc++.so.6 so:libz.so.1"
case "$CARCH" in
aarch64) depends="$depends so:libc.musl-aarch64.so.1" ;;
x86_64) depends="$depends so:libc.musl-x86_64.so.1" ;;
esac
makedepends_build="gcc g++ bison flex texinfo gawk zip gmp-dev mpfr-dev mpc1-dev zlib-dev"
makedepends_host="linux-headers gmp-dev mpfr-dev mpc1-dev isl-dev zlib-dev musl-dev-armhf binutils-armhf"
subpackages="g++-armhf:gpp libstdc++-dev-armhf:libcxx_dev"
[ "$CHOST" = "$CTARGET" ] && subpackages="gcc-gdb gcc-doc"
replaces="libstdc++ binutils"
options="!strip !tracedeps"
options="!strip !tracedeps toolchain"
: "${LANG_CXX:=true}"
: "${LANG_D:=true}"
@@ -175,7 +180,10 @@ esac
# libatomic is a dependency for openvswitch
$_libatomic && subpackages="$subpackages libatomic::$CTARGET_ARCH"
$_libgcc && subpackages="$subpackages libgcc::$CTARGET_ARCH"
if $_libgcc; then
depends="$depends libgcc-static$_target"
subpackages="$subpackages libgcc::$CTARGET_ARCH libgcc-static$_target:libgccstatic:$CTARGET_ARCH"
fi
$_libquadmath && subpackages="$subpackages libquadmath::$CTARGET_ARCH"
if $_libgomp; then
depends="$depends libgomp=$_gccrel"
@@ -279,6 +287,7 @@ source="https://gcc.gnu.org/pub/gcc/releases/gcc-$_pkgbase/gcc-$_pkgbase.tar.xz
0039-except-Don-t-use-the-cached-value-of-the-gcc_except_.patch
0040-ada-libgnat-use-stub-symbolic-module-name-functions.patch
0041-ada-libgnat-recognize-linux-musleabi-and-linux-muslg.patch
0042-libsanitizer-struct_sock_fprog_sz.patch
0001-tree-object-size.cc-Fix-assert-constant-offset-in-ch.patch
0001-LoongArch-Only-allow-valid-binary-op-when-optimize-c.patch
@@ -580,7 +589,12 @@ gpp() {
depends="libstdc++-dev$_target=$_gccrel gcc$_target=$_gccrel musl-dev"
[ "$CHOST" = "$CTARGET" ] && depends="$depends libstdc++=$_gccrel"
depends="$depends so:libc.musl-x86_64.so.1 so:libgmp.so.10 so:libisl.so.23 so:libmpc.so.3 so:libmpfr.so.6 so:libz.so.1"
depends="$depends so:libgmp.so.10 so:libisl.so.23 so:libmpc.so.3 so:libmpfr.so.6 so:libz.so.1"
case "$CARCH" in
aarch64) depends="$depends so:libc.musl-aarch64.so.1" ;;
x86_64) depends="$depends so:libc.musl-x86_64.so.1" ;;
esac
amove $_gcclibexec/cc1plus
amove usr/bin/*++
@@ -622,6 +636,20 @@ libgcc() {
depends=
amove usr/lib/libgcc_s.so.*
# Symlink for Clang to find the library. Gets overwritten by the real
# library if gcc is installed.
ln -s /usr/lib/libgcc_s.so.1 \
"$subpkgdir"/usr/lib/libgcc_s.so
}
libgccstatic() {
pkgdesc="GNU C compiler runtime libraries"
depends=
amove usr/lib/gcc/"$CTARGET"/"$pkgver"/crtbegin.o
amove usr/lib/gcc/"$CTARGET"/"$pkgver"/crtbeginS.o
amove usr/lib/gcc/"$CTARGET"/"$pkgver"/crtendS.o
amove usr/lib/gcc/"$CTARGET"/"$pkgver"/libgcc.a
}
libgomp() {
@@ -796,6 +824,7 @@ eecc77e2a9cf956fd752693ad7f8ff8253a7bb557e00564bb488bbc1deac895e63104cc1182a0bdd
9f4c3fa0d17cfcd72626bdbaf51992ff3018f878d673ab19b9056047ee2630b581e5a5a4d4857444f08ba9bcdb0fc94f90dcda6180816e39690d1652843f0d8a 0039-except-Don-t-use-the-cached-value-of-the-gcc_except_.patch
d166475e340c91bbb24cf257240aab37129b04f2609e5ce323b530ab83853a4c34c525e0072c15732717f1681db07e6b3b0a4d268720c31f460435ccf4c99b7f 0040-ada-libgnat-use-stub-symbolic-module-name-functions.patch
c717764ef52c0226a23cbf434654cdefa6cbf38ec625648575d9143c5513b16d8914c25015db743033b8a46ac5b2c33ab75e1b67076128d67bb1319e5a83dd85 0041-ada-libgnat-recognize-linux-musleabi-and-linux-muslg.patch
5dd452a80c496a587a8826b04a4917045e4028631606e85cabd8e87e0460642d188a2156c4e0cf37a5d88e66ebd08a08393d48a6065045178c69eaba2edd063e 0042-libsanitizer-struct_sock_fprog_sz.patch
c3b64b05332bd4dd7fad3fff3cacd4f9de0512943f1548c6f1205fab1a74c83622024f30471805f57d625198cc32f647b32172914528fd5605d0bf61cb0c3ff1 0001-tree-object-size.cc-Fix-assert-constant-offset-in-ch.patch
e91873055550eba051d9297bec5c6acd27abb9ee6ce8911cdd04b5faf37d77b6b2a7607ec588d2863f13f14b48af9398cb4ac42443d8567bfa5037dc6bd50404 0001-LoongArch-Only-allow-valid-binary-op-when-optimize-c.patch
"
@@ -0,0 +1,31 @@
Provide struct_sock_fprog_sz on Linux, rather than on Linux+glibc.
With `#include <linux/filter.h>` `struct sock_fprog` is available when
linux headers are available. It seems that glibc is just including that header
as an implementation detail, while musl does not.
--- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp 2025-08-08 08:51:45.621434001 +0200
+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp 2026-02-25 20:29:28.519492722 +0100
@@ -74,6 +74,7 @@
#include <sys/vt.h>
#include <linux/cdrom.h>
#include <linux/fd.h>
+#include <linux/filter.h>
#if SANITIZER_ANDROID
#include <linux/fs.h>
#endif
@@ -507,6 +508,7 @@ unsigned struct_ElfW_Phdr_sz = sizeof(El
unsigned struct_seq_event_rec_sz = sizeof(struct seq_event_rec);
unsigned struct_synth_info_sz = sizeof(struct synth_info);
unsigned struct_vt_mode_sz = sizeof(struct vt_mode);
+ unsigned struct_sock_fprog_sz = sizeof(struct sock_fprog);
#endif // SANITIZER_LINUX
#if SANITIZER_GLIBC
@@ -534,7 +536,6 @@ unsigned struct_ElfW_Phdr_sz = sizeof(El
unsigned struct_audio_buf_info_sz = sizeof(struct audio_buf_info);
unsigned struct_ppp_stats_sz = sizeof(struct ppp_stats);
- unsigned struct_sock_fprog_sz = sizeof(struct sock_fprog);
# endif // SANITIZER_GLIBC
# if !SANITIZER_ANDROID && !SANITIZER_APPLE
+36 -7
View File
@@ -1,7 +1,6 @@
# Automatically generated aport, do not edit!
# Generator: pmbootstrap aportgen gcc-armv7
# Based on: main/gcc (from Alpine)
CTARGET_ARCH=armv7
CTARGET="$(arch_to_hostspec ${CTARGET_ARCH})"
LANG_D=false
@@ -23,6 +22,7 @@ CBUILDROOT="/"
_cross_configure="--disable-bootstrap --with-sysroot=/usr/$CTARGET"
maintainer="Oliver Smith <ollieparanoid@postmarketos.org>"
pkgname=gcc-armv7
pkgver=15.2.0
# i.e. 13.2.1, must match gcc/BASE-VER
@@ -34,19 +34,24 @@ _pkgsnap="${pkgver##*_git}"
[ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target=""
pkgname=gcc-armv7
pkgrel=2
pkgrel=6
pkgdesc="Stage2 cross-compiler for armv7"
url="https://gcc.gnu.org"
arch="x86_64"
arch="aarch64 x86_64"
license="GPL-2.0-or-later AND LGPL-2.1-or-later"
_gccrel=$pkgver-r$pkgrel
depends="binutils-armv7 mpc1 so:libc.musl-x86_64.so.1 so:libgcc_s.so.1 so:libgmp.so.10 so:libisl.so.23 so:libmpc.so.3 so:libmpfr.so.6 so:libstdc++.so.6 so:libz.so.1"
depends="binutils-armv7 mpc1 so:libgcc_s.so.1 so:libgmp.so.10 so:libisl.so.23 so:libmpc.so.3 so:libmpfr.so.6 so:libstdc++.so.6 so:libz.so.1"
case "$CARCH" in
aarch64) depends="$depends so:libc.musl-aarch64.so.1" ;;
x86_64) depends="$depends so:libc.musl-x86_64.so.1" ;;
esac
makedepends_build="gcc g++ bison flex texinfo gawk zip gmp-dev mpfr-dev mpc1-dev zlib-dev"
makedepends_host="linux-headers gmp-dev mpfr-dev mpc1-dev isl-dev zlib-dev musl-dev-armv7 binutils-armv7"
subpackages="g++-armv7:gpp libstdc++-dev-armv7:libcxx_dev"
[ "$CHOST" = "$CTARGET" ] && subpackages="gcc-gdb gcc-doc"
replaces="libstdc++ binutils"
options="!strip !tracedeps"
options="!strip !tracedeps toolchain"
: "${LANG_CXX:=true}"
: "${LANG_D:=true}"
@@ -175,7 +180,10 @@ esac
# libatomic is a dependency for openvswitch
$_libatomic && subpackages="$subpackages libatomic::$CTARGET_ARCH"
$_libgcc && subpackages="$subpackages libgcc::$CTARGET_ARCH"
if $_libgcc; then
depends="$depends libgcc-static$_target"
subpackages="$subpackages libgcc::$CTARGET_ARCH libgcc-static$_target:libgccstatic:$CTARGET_ARCH"
fi
$_libquadmath && subpackages="$subpackages libquadmath::$CTARGET_ARCH"
if $_libgomp; then
depends="$depends libgomp=$_gccrel"
@@ -279,6 +287,7 @@ source="https://gcc.gnu.org/pub/gcc/releases/gcc-$_pkgbase/gcc-$_pkgbase.tar.xz
0039-except-Don-t-use-the-cached-value-of-the-gcc_except_.patch
0040-ada-libgnat-use-stub-symbolic-module-name-functions.patch
0041-ada-libgnat-recognize-linux-musleabi-and-linux-muslg.patch
0042-libsanitizer-struct_sock_fprog_sz.patch
0001-tree-object-size.cc-Fix-assert-constant-offset-in-ch.patch
0001-LoongArch-Only-allow-valid-binary-op-when-optimize-c.patch
@@ -580,7 +589,12 @@ gpp() {
depends="libstdc++-dev$_target=$_gccrel gcc$_target=$_gccrel musl-dev"
[ "$CHOST" = "$CTARGET" ] && depends="$depends libstdc++=$_gccrel"
depends="$depends so:libc.musl-x86_64.so.1 so:libgmp.so.10 so:libisl.so.23 so:libmpc.so.3 so:libmpfr.so.6 so:libz.so.1"
depends="$depends so:libgmp.so.10 so:libisl.so.23 so:libmpc.so.3 so:libmpfr.so.6 so:libz.so.1"
case "$CARCH" in
aarch64) depends="$depends so:libc.musl-aarch64.so.1" ;;
x86_64) depends="$depends so:libc.musl-x86_64.so.1" ;;
esac
amove $_gcclibexec/cc1plus
amove usr/bin/*++
@@ -622,6 +636,20 @@ libgcc() {
depends=
amove usr/lib/libgcc_s.so.*
# Symlink for Clang to find the library. Gets overwritten by the real
# library if gcc is installed.
ln -s /usr/lib/libgcc_s.so.1 \
"$subpkgdir"/usr/lib/libgcc_s.so
}
libgccstatic() {
pkgdesc="GNU C compiler runtime libraries"
depends=
amove usr/lib/gcc/"$CTARGET"/"$pkgver"/crtbegin.o
amove usr/lib/gcc/"$CTARGET"/"$pkgver"/crtbeginS.o
amove usr/lib/gcc/"$CTARGET"/"$pkgver"/crtendS.o
amove usr/lib/gcc/"$CTARGET"/"$pkgver"/libgcc.a
}
libgomp() {
@@ -796,6 +824,7 @@ eecc77e2a9cf956fd752693ad7f8ff8253a7bb557e00564bb488bbc1deac895e63104cc1182a0bdd
9f4c3fa0d17cfcd72626bdbaf51992ff3018f878d673ab19b9056047ee2630b581e5a5a4d4857444f08ba9bcdb0fc94f90dcda6180816e39690d1652843f0d8a 0039-except-Don-t-use-the-cached-value-of-the-gcc_except_.patch
d166475e340c91bbb24cf257240aab37129b04f2609e5ce323b530ab83853a4c34c525e0072c15732717f1681db07e6b3b0a4d268720c31f460435ccf4c99b7f 0040-ada-libgnat-use-stub-symbolic-module-name-functions.patch
c717764ef52c0226a23cbf434654cdefa6cbf38ec625648575d9143c5513b16d8914c25015db743033b8a46ac5b2c33ab75e1b67076128d67bb1319e5a83dd85 0041-ada-libgnat-recognize-linux-musleabi-and-linux-muslg.patch
5dd452a80c496a587a8826b04a4917045e4028631606e85cabd8e87e0460642d188a2156c4e0cf37a5d88e66ebd08a08393d48a6065045178c69eaba2edd063e 0042-libsanitizer-struct_sock_fprog_sz.patch
c3b64b05332bd4dd7fad3fff3cacd4f9de0512943f1548c6f1205fab1a74c83622024f30471805f57d625198cc32f647b32172914528fd5605d0bf61cb0c3ff1 0001-tree-object-size.cc-Fix-assert-constant-offset-in-ch.patch
e91873055550eba051d9297bec5c6acd27abb9ee6ce8911cdd04b5faf37d77b6b2a7607ec588d2863f13f14b48af9398cb4ac42443d8567bfa5037dc6bd50404 0001-LoongArch-Only-allow-valid-binary-op-when-optimize-c.patch
"
@@ -0,0 +1,31 @@
Provide struct_sock_fprog_sz on Linux, rather than on Linux+glibc.
With `#include <linux/filter.h>` `struct sock_fprog` is available when
linux headers are available. It seems that glibc is just including that header
as an implementation detail, while musl does not.
--- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp 2025-08-08 08:51:45.621434001 +0200
+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp 2026-02-25 20:29:28.519492722 +0100
@@ -74,6 +74,7 @@
#include <sys/vt.h>
#include <linux/cdrom.h>
#include <linux/fd.h>
+#include <linux/filter.h>
#if SANITIZER_ANDROID
#include <linux/fs.h>
#endif
@@ -507,6 +508,7 @@ unsigned struct_ElfW_Phdr_sz = sizeof(El
unsigned struct_seq_event_rec_sz = sizeof(struct seq_event_rec);
unsigned struct_synth_info_sz = sizeof(struct synth_info);
unsigned struct_vt_mode_sz = sizeof(struct vt_mode);
+ unsigned struct_sock_fprog_sz = sizeof(struct sock_fprog);
#endif // SANITIZER_LINUX
#if SANITIZER_GLIBC
@@ -534,7 +536,6 @@ unsigned struct_ElfW_Phdr_sz = sizeof(El
unsigned struct_audio_buf_info_sz = sizeof(struct audio_buf_info);
unsigned struct_ppp_stats_sz = sizeof(struct ppp_stats);
- unsigned struct_sock_fprog_sz = sizeof(struct sock_fprog);
# endif // SANITIZER_GLIBC
# if !SANITIZER_ANDROID && !SANITIZER_APPLE
+36 -7
View File
@@ -1,7 +1,6 @@
# Automatically generated aport, do not edit!
# Generator: pmbootstrap aportgen gcc-loongarch64
# Based on: main/gcc (from Alpine)
CTARGET_ARCH=loongarch64
CTARGET="$(arch_to_hostspec ${CTARGET_ARCH})"
LANG_D=false
@@ -23,6 +22,7 @@ CBUILDROOT="/"
_cross_configure="--disable-bootstrap --with-sysroot=/usr/$CTARGET"
maintainer="Oliver Smith <ollieparanoid@postmarketos.org>"
pkgname=gcc-loongarch64
pkgver=15.2.0
# i.e. 13.2.1, must match gcc/BASE-VER
@@ -34,19 +34,24 @@ _pkgsnap="${pkgver##*_git}"
[ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target=""
pkgname=gcc-loongarch64
pkgrel=2
pkgrel=6
pkgdesc="Stage2 cross-compiler for loongarch64"
url="https://gcc.gnu.org"
arch="x86_64"
arch="aarch64 x86_64"
license="GPL-2.0-or-later AND LGPL-2.1-or-later"
_gccrel=$pkgver-r$pkgrel
depends="binutils-loongarch64 mpc1 so:libc.musl-x86_64.so.1 so:libgcc_s.so.1 so:libgmp.so.10 so:libisl.so.23 so:libmpc.so.3 so:libmpfr.so.6 so:libstdc++.so.6 so:libz.so.1"
depends="binutils-loongarch64 mpc1 so:libgcc_s.so.1 so:libgmp.so.10 so:libisl.so.23 so:libmpc.so.3 so:libmpfr.so.6 so:libstdc++.so.6 so:libz.so.1"
case "$CARCH" in
aarch64) depends="$depends so:libc.musl-aarch64.so.1" ;;
x86_64) depends="$depends so:libc.musl-x86_64.so.1" ;;
esac
makedepends_build="gcc g++ bison flex texinfo gawk zip gmp-dev mpfr-dev mpc1-dev zlib-dev"
makedepends_host="linux-headers gmp-dev mpfr-dev mpc1-dev isl-dev zlib-dev musl-dev-loongarch64 binutils-loongarch64"
subpackages="g++-loongarch64:gpp libstdc++-dev-loongarch64:libcxx_dev"
[ "$CHOST" = "$CTARGET" ] && subpackages="gcc-gdb gcc-doc"
replaces="libstdc++ binutils"
options="!strip !tracedeps"
options="!strip !tracedeps toolchain"
: "${LANG_CXX:=true}"
: "${LANG_D:=true}"
@@ -175,7 +180,10 @@ esac
# libatomic is a dependency for openvswitch
$_libatomic && subpackages="$subpackages libatomic::$CTARGET_ARCH"
$_libgcc && subpackages="$subpackages libgcc::$CTARGET_ARCH"
if $_libgcc; then
depends="$depends libgcc-static$_target"
subpackages="$subpackages libgcc::$CTARGET_ARCH libgcc-static$_target:libgccstatic:$CTARGET_ARCH"
fi
$_libquadmath && subpackages="$subpackages libquadmath::$CTARGET_ARCH"
if $_libgomp; then
depends="$depends libgomp=$_gccrel"
@@ -279,6 +287,7 @@ source="https://gcc.gnu.org/pub/gcc/releases/gcc-$_pkgbase/gcc-$_pkgbase.tar.xz
0039-except-Don-t-use-the-cached-value-of-the-gcc_except_.patch
0040-ada-libgnat-use-stub-symbolic-module-name-functions.patch
0041-ada-libgnat-recognize-linux-musleabi-and-linux-muslg.patch
0042-libsanitizer-struct_sock_fprog_sz.patch
0001-tree-object-size.cc-Fix-assert-constant-offset-in-ch.patch
0001-LoongArch-Only-allow-valid-binary-op-when-optimize-c.patch
@@ -580,7 +589,12 @@ gpp() {
depends="libstdc++-dev$_target=$_gccrel gcc$_target=$_gccrel musl-dev"
[ "$CHOST" = "$CTARGET" ] && depends="$depends libstdc++=$_gccrel"
depends="$depends so:libc.musl-x86_64.so.1 so:libgmp.so.10 so:libisl.so.23 so:libmpc.so.3 so:libmpfr.so.6 so:libz.so.1"
depends="$depends so:libgmp.so.10 so:libisl.so.23 so:libmpc.so.3 so:libmpfr.so.6 so:libz.so.1"
case "$CARCH" in
aarch64) depends="$depends so:libc.musl-aarch64.so.1" ;;
x86_64) depends="$depends so:libc.musl-x86_64.so.1" ;;
esac
amove $_gcclibexec/cc1plus
amove usr/bin/*++
@@ -622,6 +636,20 @@ libgcc() {
depends=
amove usr/lib/libgcc_s.so.*
# Symlink for Clang to find the library. Gets overwritten by the real
# library if gcc is installed.
ln -s /usr/lib/libgcc_s.so.1 \
"$subpkgdir"/usr/lib/libgcc_s.so
}
libgccstatic() {
pkgdesc="GNU C compiler runtime libraries"
depends=
amove usr/lib/gcc/"$CTARGET"/"$pkgver"/crtbegin.o
amove usr/lib/gcc/"$CTARGET"/"$pkgver"/crtbeginS.o
amove usr/lib/gcc/"$CTARGET"/"$pkgver"/crtendS.o
amove usr/lib/gcc/"$CTARGET"/"$pkgver"/libgcc.a
}
libgomp() {
@@ -796,6 +824,7 @@ eecc77e2a9cf956fd752693ad7f8ff8253a7bb557e00564bb488bbc1deac895e63104cc1182a0bdd
9f4c3fa0d17cfcd72626bdbaf51992ff3018f878d673ab19b9056047ee2630b581e5a5a4d4857444f08ba9bcdb0fc94f90dcda6180816e39690d1652843f0d8a 0039-except-Don-t-use-the-cached-value-of-the-gcc_except_.patch
d166475e340c91bbb24cf257240aab37129b04f2609e5ce323b530ab83853a4c34c525e0072c15732717f1681db07e6b3b0a4d268720c31f460435ccf4c99b7f 0040-ada-libgnat-use-stub-symbolic-module-name-functions.patch
c717764ef52c0226a23cbf434654cdefa6cbf38ec625648575d9143c5513b16d8914c25015db743033b8a46ac5b2c33ab75e1b67076128d67bb1319e5a83dd85 0041-ada-libgnat-recognize-linux-musleabi-and-linux-muslg.patch
5dd452a80c496a587a8826b04a4917045e4028631606e85cabd8e87e0460642d188a2156c4e0cf37a5d88e66ebd08a08393d48a6065045178c69eaba2edd063e 0042-libsanitizer-struct_sock_fprog_sz.patch
c3b64b05332bd4dd7fad3fff3cacd4f9de0512943f1548c6f1205fab1a74c83622024f30471805f57d625198cc32f647b32172914528fd5605d0bf61cb0c3ff1 0001-tree-object-size.cc-Fix-assert-constant-offset-in-ch.patch
e91873055550eba051d9297bec5c6acd27abb9ee6ce8911cdd04b5faf37d77b6b2a7607ec588d2863f13f14b48af9398cb4ac42443d8567bfa5037dc6bd50404 0001-LoongArch-Only-allow-valid-binary-op-when-optimize-c.patch
"
@@ -0,0 +1,31 @@
Provide struct_sock_fprog_sz on Linux, rather than on Linux+glibc.
With `#include <linux/filter.h>` `struct sock_fprog` is available when
linux headers are available. It seems that glibc is just including that header
as an implementation detail, while musl does not.
--- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp 2025-08-08 08:51:45.621434001 +0200
+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp 2026-02-25 20:29:28.519492722 +0100
@@ -74,6 +74,7 @@
#include <sys/vt.h>
#include <linux/cdrom.h>
#include <linux/fd.h>
+#include <linux/filter.h>
#if SANITIZER_ANDROID
#include <linux/fs.h>
#endif
@@ -507,6 +508,7 @@ unsigned struct_ElfW_Phdr_sz = sizeof(El
unsigned struct_seq_event_rec_sz = sizeof(struct seq_event_rec);
unsigned struct_synth_info_sz = sizeof(struct synth_info);
unsigned struct_vt_mode_sz = sizeof(struct vt_mode);
+ unsigned struct_sock_fprog_sz = sizeof(struct sock_fprog);
#endif // SANITIZER_LINUX
#if SANITIZER_GLIBC
@@ -534,7 +536,6 @@ unsigned struct_ElfW_Phdr_sz = sizeof(El
unsigned struct_audio_buf_info_sz = sizeof(struct audio_buf_info);
unsigned struct_ppp_stats_sz = sizeof(struct ppp_stats);
- unsigned struct_sock_fprog_sz = sizeof(struct sock_fprog);
# endif // SANITIZER_GLIBC
# if !SANITIZER_ANDROID && !SANITIZER_APPLE
+36 -7
View File
@@ -1,7 +1,6 @@
# Automatically generated aport, do not edit!
# Generator: pmbootstrap aportgen gcc-ppc64le
# Based on: main/gcc (from Alpine)
CTARGET_ARCH=ppc64le
CTARGET="$(arch_to_hostspec ${CTARGET_ARCH})"
LANG_D=false
@@ -23,6 +22,7 @@ CBUILDROOT="/"
_cross_configure="--disable-bootstrap --with-sysroot=/usr/$CTARGET"
maintainer="Oliver Smith <ollieparanoid@postmarketos.org>"
pkgname=gcc-ppc64le
pkgver=15.2.0
# i.e. 13.2.1, must match gcc/BASE-VER
@@ -34,19 +34,24 @@ _pkgsnap="${pkgver##*_git}"
[ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target=""
pkgname=gcc-ppc64le
pkgrel=2
pkgrel=6
pkgdesc="Stage2 cross-compiler for ppc64le"
url="https://gcc.gnu.org"
arch="x86_64"
arch="aarch64 x86_64"
license="GPL-2.0-or-later AND LGPL-2.1-or-later"
_gccrel=$pkgver-r$pkgrel
depends="binutils-ppc64le mpc1 so:libc.musl-x86_64.so.1 so:libgcc_s.so.1 so:libgmp.so.10 so:libisl.so.23 so:libmpc.so.3 so:libmpfr.so.6 so:libstdc++.so.6 so:libz.so.1"
depends="binutils-ppc64le mpc1 so:libgcc_s.so.1 so:libgmp.so.10 so:libisl.so.23 so:libmpc.so.3 so:libmpfr.so.6 so:libstdc++.so.6 so:libz.so.1"
case "$CARCH" in
aarch64) depends="$depends so:libc.musl-aarch64.so.1" ;;
x86_64) depends="$depends so:libc.musl-x86_64.so.1" ;;
esac
makedepends_build="gcc g++ bison flex texinfo gawk zip gmp-dev mpfr-dev mpc1-dev zlib-dev"
makedepends_host="linux-headers gmp-dev mpfr-dev mpc1-dev isl-dev zlib-dev musl-dev-ppc64le binutils-ppc64le"
subpackages="g++-ppc64le:gpp libstdc++-dev-ppc64le:libcxx_dev"
[ "$CHOST" = "$CTARGET" ] && subpackages="gcc-gdb gcc-doc"
replaces="libstdc++ binutils"
options="!strip !tracedeps"
options="!strip !tracedeps toolchain"
: "${LANG_CXX:=true}"
: "${LANG_D:=true}"
@@ -175,7 +180,10 @@ esac
# libatomic is a dependency for openvswitch
$_libatomic && subpackages="$subpackages libatomic::$CTARGET_ARCH"
$_libgcc && subpackages="$subpackages libgcc::$CTARGET_ARCH"
if $_libgcc; then
depends="$depends libgcc-static$_target"
subpackages="$subpackages libgcc::$CTARGET_ARCH libgcc-static$_target:libgccstatic:$CTARGET_ARCH"
fi
$_libquadmath && subpackages="$subpackages libquadmath::$CTARGET_ARCH"
if $_libgomp; then
depends="$depends libgomp=$_gccrel"
@@ -279,6 +287,7 @@ source="https://gcc.gnu.org/pub/gcc/releases/gcc-$_pkgbase/gcc-$_pkgbase.tar.xz
0039-except-Don-t-use-the-cached-value-of-the-gcc_except_.patch
0040-ada-libgnat-use-stub-symbolic-module-name-functions.patch
0041-ada-libgnat-recognize-linux-musleabi-and-linux-muslg.patch
0042-libsanitizer-struct_sock_fprog_sz.patch
0001-tree-object-size.cc-Fix-assert-constant-offset-in-ch.patch
0001-LoongArch-Only-allow-valid-binary-op-when-optimize-c.patch
@@ -580,7 +589,12 @@ gpp() {
depends="libstdc++-dev$_target=$_gccrel gcc$_target=$_gccrel musl-dev"
[ "$CHOST" = "$CTARGET" ] && depends="$depends libstdc++=$_gccrel"
depends="$depends so:libc.musl-x86_64.so.1 so:libgmp.so.10 so:libisl.so.23 so:libmpc.so.3 so:libmpfr.so.6 so:libz.so.1"
depends="$depends so:libgmp.so.10 so:libisl.so.23 so:libmpc.so.3 so:libmpfr.so.6 so:libz.so.1"
case "$CARCH" in
aarch64) depends="$depends so:libc.musl-aarch64.so.1" ;;
x86_64) depends="$depends so:libc.musl-x86_64.so.1" ;;
esac
amove $_gcclibexec/cc1plus
amove usr/bin/*++
@@ -622,6 +636,20 @@ libgcc() {
depends=
amove usr/lib/libgcc_s.so.*
# Symlink for Clang to find the library. Gets overwritten by the real
# library if gcc is installed.
ln -s /usr/lib/libgcc_s.so.1 \
"$subpkgdir"/usr/lib/libgcc_s.so
}
libgccstatic() {
pkgdesc="GNU C compiler runtime libraries"
depends=
amove usr/lib/gcc/"$CTARGET"/"$pkgver"/crtbegin.o
amove usr/lib/gcc/"$CTARGET"/"$pkgver"/crtbeginS.o
amove usr/lib/gcc/"$CTARGET"/"$pkgver"/crtendS.o
amove usr/lib/gcc/"$CTARGET"/"$pkgver"/libgcc.a
}
libgomp() {
@@ -796,6 +824,7 @@ eecc77e2a9cf956fd752693ad7f8ff8253a7bb557e00564bb488bbc1deac895e63104cc1182a0bdd
9f4c3fa0d17cfcd72626bdbaf51992ff3018f878d673ab19b9056047ee2630b581e5a5a4d4857444f08ba9bcdb0fc94f90dcda6180816e39690d1652843f0d8a 0039-except-Don-t-use-the-cached-value-of-the-gcc_except_.patch
d166475e340c91bbb24cf257240aab37129b04f2609e5ce323b530ab83853a4c34c525e0072c15732717f1681db07e6b3b0a4d268720c31f460435ccf4c99b7f 0040-ada-libgnat-use-stub-symbolic-module-name-functions.patch
c717764ef52c0226a23cbf434654cdefa6cbf38ec625648575d9143c5513b16d8914c25015db743033b8a46ac5b2c33ab75e1b67076128d67bb1319e5a83dd85 0041-ada-libgnat-recognize-linux-musleabi-and-linux-muslg.patch
5dd452a80c496a587a8826b04a4917045e4028631606e85cabd8e87e0460642d188a2156c4e0cf37a5d88e66ebd08a08393d48a6065045178c69eaba2edd063e 0042-libsanitizer-struct_sock_fprog_sz.patch
c3b64b05332bd4dd7fad3fff3cacd4f9de0512943f1548c6f1205fab1a74c83622024f30471805f57d625198cc32f647b32172914528fd5605d0bf61cb0c3ff1 0001-tree-object-size.cc-Fix-assert-constant-offset-in-ch.patch
e91873055550eba051d9297bec5c6acd27abb9ee6ce8911cdd04b5faf37d77b6b2a7607ec588d2863f13f14b48af9398cb4ac42443d8567bfa5037dc6bd50404 0001-LoongArch-Only-allow-valid-binary-op-when-optimize-c.patch
"
@@ -0,0 +1,31 @@
Provide struct_sock_fprog_sz on Linux, rather than on Linux+glibc.
With `#include <linux/filter.h>` `struct sock_fprog` is available when
linux headers are available. It seems that glibc is just including that header
as an implementation detail, while musl does not.
--- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp 2025-08-08 08:51:45.621434001 +0200
+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp 2026-02-25 20:29:28.519492722 +0100
@@ -74,6 +74,7 @@
#include <sys/vt.h>
#include <linux/cdrom.h>
#include <linux/fd.h>
+#include <linux/filter.h>
#if SANITIZER_ANDROID
#include <linux/fs.h>
#endif
@@ -507,6 +508,7 @@ unsigned struct_ElfW_Phdr_sz = sizeof(El
unsigned struct_seq_event_rec_sz = sizeof(struct seq_event_rec);
unsigned struct_synth_info_sz = sizeof(struct synth_info);
unsigned struct_vt_mode_sz = sizeof(struct vt_mode);
+ unsigned struct_sock_fprog_sz = sizeof(struct sock_fprog);
#endif // SANITIZER_LINUX
#if SANITIZER_GLIBC
@@ -534,7 +536,6 @@ unsigned struct_ElfW_Phdr_sz = sizeof(El
unsigned struct_audio_buf_info_sz = sizeof(struct audio_buf_info);
unsigned struct_ppp_stats_sz = sizeof(struct ppp_stats);
- unsigned struct_sock_fprog_sz = sizeof(struct sock_fprog);
# endif // SANITIZER_GLIBC
# if !SANITIZER_ANDROID && !SANITIZER_APPLE
+36 -7
View File
@@ -1,7 +1,6 @@
# Automatically generated aport, do not edit!
# Generator: pmbootstrap aportgen gcc-riscv64
# Based on: main/gcc (from Alpine)
CTARGET_ARCH=riscv64
CTARGET="$(arch_to_hostspec ${CTARGET_ARCH})"
LANG_D=false
@@ -23,6 +22,7 @@ CBUILDROOT="/"
_cross_configure="--disable-bootstrap --with-sysroot=/usr/$CTARGET"
maintainer="Oliver Smith <ollieparanoid@postmarketos.org>"
pkgname=gcc-riscv64
pkgver=15.2.0
# i.e. 13.2.1, must match gcc/BASE-VER
@@ -34,19 +34,24 @@ _pkgsnap="${pkgver##*_git}"
[ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target=""
pkgname=gcc-riscv64
pkgrel=2
pkgrel=6
pkgdesc="Stage2 cross-compiler for riscv64"
url="https://gcc.gnu.org"
arch="x86_64"
arch="aarch64 x86_64"
license="GPL-2.0-or-later AND LGPL-2.1-or-later"
_gccrel=$pkgver-r$pkgrel
depends="binutils-riscv64 mpc1 so:libc.musl-x86_64.so.1 so:libgcc_s.so.1 so:libgmp.so.10 so:libisl.so.23 so:libmpc.so.3 so:libmpfr.so.6 so:libstdc++.so.6 so:libz.so.1"
depends="binutils-riscv64 mpc1 so:libgcc_s.so.1 so:libgmp.so.10 so:libisl.so.23 so:libmpc.so.3 so:libmpfr.so.6 so:libstdc++.so.6 so:libz.so.1"
case "$CARCH" in
aarch64) depends="$depends so:libc.musl-aarch64.so.1" ;;
x86_64) depends="$depends so:libc.musl-x86_64.so.1" ;;
esac
makedepends_build="gcc g++ bison flex texinfo gawk zip gmp-dev mpfr-dev mpc1-dev zlib-dev"
makedepends_host="linux-headers gmp-dev mpfr-dev mpc1-dev isl-dev zlib-dev musl-dev-riscv64 binutils-riscv64"
subpackages="g++-riscv64:gpp libstdc++-dev-riscv64:libcxx_dev"
[ "$CHOST" = "$CTARGET" ] && subpackages="gcc-gdb gcc-doc"
replaces="libstdc++ binutils"
options="!strip !tracedeps"
options="!strip !tracedeps toolchain"
: "${LANG_CXX:=true}"
: "${LANG_D:=true}"
@@ -175,7 +180,10 @@ esac
# libatomic is a dependency for openvswitch
$_libatomic && subpackages="$subpackages libatomic::$CTARGET_ARCH"
$_libgcc && subpackages="$subpackages libgcc::$CTARGET_ARCH"
if $_libgcc; then
depends="$depends libgcc-static$_target"
subpackages="$subpackages libgcc::$CTARGET_ARCH libgcc-static$_target:libgccstatic:$CTARGET_ARCH"
fi
$_libquadmath && subpackages="$subpackages libquadmath::$CTARGET_ARCH"
if $_libgomp; then
depends="$depends libgomp=$_gccrel"
@@ -279,6 +287,7 @@ source="https://gcc.gnu.org/pub/gcc/releases/gcc-$_pkgbase/gcc-$_pkgbase.tar.xz
0039-except-Don-t-use-the-cached-value-of-the-gcc_except_.patch
0040-ada-libgnat-use-stub-symbolic-module-name-functions.patch
0041-ada-libgnat-recognize-linux-musleabi-and-linux-muslg.patch
0042-libsanitizer-struct_sock_fprog_sz.patch
0001-tree-object-size.cc-Fix-assert-constant-offset-in-ch.patch
0001-LoongArch-Only-allow-valid-binary-op-when-optimize-c.patch
@@ -580,7 +589,12 @@ gpp() {
depends="libstdc++-dev$_target=$_gccrel gcc$_target=$_gccrel musl-dev"
[ "$CHOST" = "$CTARGET" ] && depends="$depends libstdc++=$_gccrel"
depends="$depends so:libc.musl-x86_64.so.1 so:libgmp.so.10 so:libisl.so.23 so:libmpc.so.3 so:libmpfr.so.6 so:libz.so.1"
depends="$depends so:libgmp.so.10 so:libisl.so.23 so:libmpc.so.3 so:libmpfr.so.6 so:libz.so.1"
case "$CARCH" in
aarch64) depends="$depends so:libc.musl-aarch64.so.1" ;;
x86_64) depends="$depends so:libc.musl-x86_64.so.1" ;;
esac
amove $_gcclibexec/cc1plus
amove usr/bin/*++
@@ -622,6 +636,20 @@ libgcc() {
depends=
amove usr/lib/libgcc_s.so.*
# Symlink for Clang to find the library. Gets overwritten by the real
# library if gcc is installed.
ln -s /usr/lib/libgcc_s.so.1 \
"$subpkgdir"/usr/lib/libgcc_s.so
}
libgccstatic() {
pkgdesc="GNU C compiler runtime libraries"
depends=
amove usr/lib/gcc/"$CTARGET"/"$pkgver"/crtbegin.o
amove usr/lib/gcc/"$CTARGET"/"$pkgver"/crtbeginS.o
amove usr/lib/gcc/"$CTARGET"/"$pkgver"/crtendS.o
amove usr/lib/gcc/"$CTARGET"/"$pkgver"/libgcc.a
}
libgomp() {
@@ -796,6 +824,7 @@ eecc77e2a9cf956fd752693ad7f8ff8253a7bb557e00564bb488bbc1deac895e63104cc1182a0bdd
9f4c3fa0d17cfcd72626bdbaf51992ff3018f878d673ab19b9056047ee2630b581e5a5a4d4857444f08ba9bcdb0fc94f90dcda6180816e39690d1652843f0d8a 0039-except-Don-t-use-the-cached-value-of-the-gcc_except_.patch
d166475e340c91bbb24cf257240aab37129b04f2609e5ce323b530ab83853a4c34c525e0072c15732717f1681db07e6b3b0a4d268720c31f460435ccf4c99b7f 0040-ada-libgnat-use-stub-symbolic-module-name-functions.patch
c717764ef52c0226a23cbf434654cdefa6cbf38ec625648575d9143c5513b16d8914c25015db743033b8a46ac5b2c33ab75e1b67076128d67bb1319e5a83dd85 0041-ada-libgnat-recognize-linux-musleabi-and-linux-muslg.patch
5dd452a80c496a587a8826b04a4917045e4028631606e85cabd8e87e0460642d188a2156c4e0cf37a5d88e66ebd08a08393d48a6065045178c69eaba2edd063e 0042-libsanitizer-struct_sock_fprog_sz.patch
c3b64b05332bd4dd7fad3fff3cacd4f9de0512943f1548c6f1205fab1a74c83622024f30471805f57d625198cc32f647b32172914528fd5605d0bf61cb0c3ff1 0001-tree-object-size.cc-Fix-assert-constant-offset-in-ch.patch
e91873055550eba051d9297bec5c6acd27abb9ee6ce8911cdd04b5faf37d77b6b2a7607ec588d2863f13f14b48af9398cb4ac42443d8567bfa5037dc6bd50404 0001-LoongArch-Only-allow-valid-binary-op-when-optimize-c.patch
"
@@ -0,0 +1,31 @@
Provide struct_sock_fprog_sz on Linux, rather than on Linux+glibc.
With `#include <linux/filter.h>` `struct sock_fprog` is available when
linux headers are available. It seems that glibc is just including that header
as an implementation detail, while musl does not.
--- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp 2025-08-08 08:51:45.621434001 +0200
+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp 2026-02-25 20:29:28.519492722 +0100
@@ -74,6 +74,7 @@
#include <sys/vt.h>
#include <linux/cdrom.h>
#include <linux/fd.h>
+#include <linux/filter.h>
#if SANITIZER_ANDROID
#include <linux/fs.h>
#endif
@@ -507,6 +508,7 @@ unsigned struct_ElfW_Phdr_sz = sizeof(El
unsigned struct_seq_event_rec_sz = sizeof(struct seq_event_rec);
unsigned struct_synth_info_sz = sizeof(struct synth_info);
unsigned struct_vt_mode_sz = sizeof(struct vt_mode);
+ unsigned struct_sock_fprog_sz = sizeof(struct sock_fprog);
#endif // SANITIZER_LINUX
#if SANITIZER_GLIBC
@@ -534,7 +536,6 @@ unsigned struct_ElfW_Phdr_sz = sizeof(El
unsigned struct_audio_buf_info_sz = sizeof(struct audio_buf_info);
unsigned struct_ppp_stats_sz = sizeof(struct ppp_stats);
- unsigned struct_sock_fprog_sz = sizeof(struct sock_fprog);
# endif // SANITIZER_GLIBC
# if !SANITIZER_ANDROID && !SANITIZER_APPLE
+36 -7
View File
@@ -1,7 +1,6 @@
# Automatically generated aport, do not edit!
# Generator: pmbootstrap aportgen gcc-x86
# Based on: main/gcc (from Alpine)
CTARGET_ARCH=x86
CTARGET="$(arch_to_hostspec ${CTARGET_ARCH})"
LANG_D=false
@@ -23,6 +22,7 @@ CBUILDROOT="/"
_cross_configure="--disable-bootstrap --with-sysroot=/usr/$CTARGET"
maintainer="Oliver Smith <ollieparanoid@postmarketos.org>"
pkgname=gcc-x86
pkgver=15.2.0
# i.e. 13.2.1, must match gcc/BASE-VER
@@ -34,19 +34,24 @@ _pkgsnap="${pkgver##*_git}"
[ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target=""
pkgname=gcc-x86
pkgrel=2
pkgrel=6
pkgdesc="Stage2 cross-compiler for x86"
url="https://gcc.gnu.org"
arch="x86_64"
arch="aarch64 x86_64"
license="GPL-2.0-or-later AND LGPL-2.1-or-later"
_gccrel=$pkgver-r$pkgrel
depends="binutils-x86 mpc1 so:libc.musl-x86_64.so.1 so:libgcc_s.so.1 so:libgmp.so.10 so:libisl.so.23 so:libmpc.so.3 so:libmpfr.so.6 so:libstdc++.so.6 so:libz.so.1"
depends="binutils-x86 mpc1 so:libgcc_s.so.1 so:libgmp.so.10 so:libisl.so.23 so:libmpc.so.3 so:libmpfr.so.6 so:libstdc++.so.6 so:libz.so.1"
case "$CARCH" in
aarch64) depends="$depends so:libc.musl-aarch64.so.1" ;;
x86_64) depends="$depends so:libc.musl-x86_64.so.1" ;;
esac
makedepends_build="gcc g++ bison flex texinfo gawk zip gmp-dev mpfr-dev mpc1-dev zlib-dev"
makedepends_host="linux-headers gmp-dev mpfr-dev mpc1-dev isl-dev zlib-dev musl-dev-x86 binutils-x86"
subpackages="g++-x86:gpp libstdc++-dev-x86:libcxx_dev"
[ "$CHOST" = "$CTARGET" ] && subpackages="gcc-gdb gcc-doc"
replaces="libstdc++ binutils"
options="!strip !tracedeps"
options="!strip !tracedeps toolchain"
: "${LANG_CXX:=true}"
: "${LANG_D:=true}"
@@ -175,7 +180,10 @@ esac
# libatomic is a dependency for openvswitch
$_libatomic && subpackages="$subpackages libatomic::$CTARGET_ARCH"
$_libgcc && subpackages="$subpackages libgcc::$CTARGET_ARCH"
if $_libgcc; then
depends="$depends libgcc-static$_target"
subpackages="$subpackages libgcc::$CTARGET_ARCH libgcc-static$_target:libgccstatic:$CTARGET_ARCH"
fi
$_libquadmath && subpackages="$subpackages libquadmath::$CTARGET_ARCH"
if $_libgomp; then
depends="$depends libgomp=$_gccrel"
@@ -279,6 +287,7 @@ source="https://gcc.gnu.org/pub/gcc/releases/gcc-$_pkgbase/gcc-$_pkgbase.tar.xz
0039-except-Don-t-use-the-cached-value-of-the-gcc_except_.patch
0040-ada-libgnat-use-stub-symbolic-module-name-functions.patch
0041-ada-libgnat-recognize-linux-musleabi-and-linux-muslg.patch
0042-libsanitizer-struct_sock_fprog_sz.patch
0001-tree-object-size.cc-Fix-assert-constant-offset-in-ch.patch
0001-LoongArch-Only-allow-valid-binary-op-when-optimize-c.patch
@@ -580,7 +589,12 @@ gpp() {
depends="libstdc++-dev$_target=$_gccrel gcc$_target=$_gccrel musl-dev"
[ "$CHOST" = "$CTARGET" ] && depends="$depends libstdc++=$_gccrel"
depends="$depends so:libc.musl-x86_64.so.1 so:libgmp.so.10 so:libisl.so.23 so:libmpc.so.3 so:libmpfr.so.6 so:libz.so.1"
depends="$depends so:libgmp.so.10 so:libisl.so.23 so:libmpc.so.3 so:libmpfr.so.6 so:libz.so.1"
case "$CARCH" in
aarch64) depends="$depends so:libc.musl-aarch64.so.1" ;;
x86_64) depends="$depends so:libc.musl-x86_64.so.1" ;;
esac
amove $_gcclibexec/cc1plus
amove usr/bin/*++
@@ -622,6 +636,20 @@ libgcc() {
depends=
amove usr/lib/libgcc_s.so.*
# Symlink for Clang to find the library. Gets overwritten by the real
# library if gcc is installed.
ln -s /usr/lib/libgcc_s.so.1 \
"$subpkgdir"/usr/lib/libgcc_s.so
}
libgccstatic() {
pkgdesc="GNU C compiler runtime libraries"
depends=
amove usr/lib/gcc/"$CTARGET"/"$pkgver"/crtbegin.o
amove usr/lib/gcc/"$CTARGET"/"$pkgver"/crtbeginS.o
amove usr/lib/gcc/"$CTARGET"/"$pkgver"/crtendS.o
amove usr/lib/gcc/"$CTARGET"/"$pkgver"/libgcc.a
}
libgomp() {
@@ -796,6 +824,7 @@ eecc77e2a9cf956fd752693ad7f8ff8253a7bb557e00564bb488bbc1deac895e63104cc1182a0bdd
9f4c3fa0d17cfcd72626bdbaf51992ff3018f878d673ab19b9056047ee2630b581e5a5a4d4857444f08ba9bcdb0fc94f90dcda6180816e39690d1652843f0d8a 0039-except-Don-t-use-the-cached-value-of-the-gcc_except_.patch
d166475e340c91bbb24cf257240aab37129b04f2609e5ce323b530ab83853a4c34c525e0072c15732717f1681db07e6b3b0a4d268720c31f460435ccf4c99b7f 0040-ada-libgnat-use-stub-symbolic-module-name-functions.patch
c717764ef52c0226a23cbf434654cdefa6cbf38ec625648575d9143c5513b16d8914c25015db743033b8a46ac5b2c33ab75e1b67076128d67bb1319e5a83dd85 0041-ada-libgnat-recognize-linux-musleabi-and-linux-muslg.patch
5dd452a80c496a587a8826b04a4917045e4028631606e85cabd8e87e0460642d188a2156c4e0cf37a5d88e66ebd08a08393d48a6065045178c69eaba2edd063e 0042-libsanitizer-struct_sock_fprog_sz.patch
c3b64b05332bd4dd7fad3fff3cacd4f9de0512943f1548c6f1205fab1a74c83622024f30471805f57d625198cc32f647b32172914528fd5605d0bf61cb0c3ff1 0001-tree-object-size.cc-Fix-assert-constant-offset-in-ch.patch
e91873055550eba051d9297bec5c6acd27abb9ee6ce8911cdd04b5faf37d77b6b2a7607ec588d2863f13f14b48af9398cb4ac42443d8567bfa5037dc6bd50404 0001-LoongArch-Only-allow-valid-binary-op-when-optimize-c.patch
"
@@ -0,0 +1,31 @@
Provide struct_sock_fprog_sz on Linux, rather than on Linux+glibc.
With `#include <linux/filter.h>` `struct sock_fprog` is available when
linux headers are available. It seems that glibc is just including that header
as an implementation detail, while musl does not.
--- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp 2025-08-08 08:51:45.621434001 +0200
+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp 2026-02-25 20:29:28.519492722 +0100
@@ -74,6 +74,7 @@
#include <sys/vt.h>
#include <linux/cdrom.h>
#include <linux/fd.h>
+#include <linux/filter.h>
#if SANITIZER_ANDROID
#include <linux/fs.h>
#endif
@@ -507,6 +508,7 @@ unsigned struct_ElfW_Phdr_sz = sizeof(El
unsigned struct_seq_event_rec_sz = sizeof(struct seq_event_rec);
unsigned struct_synth_info_sz = sizeof(struct synth_info);
unsigned struct_vt_mode_sz = sizeof(struct vt_mode);
+ unsigned struct_sock_fprog_sz = sizeof(struct sock_fprog);
#endif // SANITIZER_LINUX
#if SANITIZER_GLIBC
@@ -534,7 +536,6 @@ unsigned struct_ElfW_Phdr_sz = sizeof(El
unsigned struct_audio_buf_info_sz = sizeof(struct audio_buf_info);
unsigned struct_ppp_stats_sz = sizeof(struct ppp_stats);
- unsigned struct_sock_fprog_sz = sizeof(struct sock_fprog);
# endif // SANITIZER_GLIBC
# if !SANITIZER_ANDROID && !SANITIZER_APPLE
+33 -6
View File
@@ -1,7 +1,6 @@
# Automatically generated aport, do not edit!
# Generator: pmbootstrap aportgen gcc-x86_64
# Based on: main/gcc (from Alpine)
CTARGET_ARCH=x86_64
CTARGET="$(arch_to_hostspec ${CTARGET_ARCH})"
LANG_D=false
@@ -23,6 +22,7 @@ CBUILDROOT="/"
_cross_configure="--disable-bootstrap --with-sysroot=/usr/$CTARGET"
maintainer="Oliver Smith <ollieparanoid@postmarketos.org>"
pkgname=gcc-x86_64
pkgver=15.2.0
# i.e. 13.2.1, must match gcc/BASE-VER
@@ -34,19 +34,23 @@ _pkgsnap="${pkgver##*_git}"
[ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target=""
pkgname=gcc-x86_64
pkgrel=2
pkgrel=6
pkgdesc="Stage2 cross-compiler for x86_64"
url="https://gcc.gnu.org"
arch="aarch64"
license="GPL-2.0-or-later AND LGPL-2.1-or-later"
_gccrel=$pkgver-r$pkgrel
depends="binutils-x86_64 mpc1 so:libc.musl-aarch64.so.1 so:libgcc_s.so.1 so:libgmp.so.10 so:libisl.so.23 so:libmpc.so.3 so:libmpfr.so.6 so:libstdc++.so.6 so:libz.so.1"
depends="binutils-x86_64 mpc1 so:libgcc_s.so.1 so:libgmp.so.10 so:libisl.so.23 so:libmpc.so.3 so:libmpfr.so.6 so:libstdc++.so.6 so:libz.so.1"
case "$CARCH" in
aarch64) depends="$depends so:libc.musl-aarch64.so.1" ;;
esac
makedepends_build="gcc g++ bison flex texinfo gawk zip gmp-dev mpfr-dev mpc1-dev zlib-dev"
makedepends_host="linux-headers gmp-dev mpfr-dev mpc1-dev isl-dev zlib-dev musl-dev-x86_64 binutils-x86_64"
subpackages="g++-x86_64:gpp libstdc++-dev-x86_64:libcxx_dev"
[ "$CHOST" = "$CTARGET" ] && subpackages="gcc-gdb gcc-doc"
replaces="libstdc++ binutils"
options="!strip !tracedeps"
options="!strip !tracedeps toolchain"
: "${LANG_CXX:=true}"
: "${LANG_D:=true}"
@@ -175,7 +179,10 @@ esac
# libatomic is a dependency for openvswitch
$_libatomic && subpackages="$subpackages libatomic::$CTARGET_ARCH"
$_libgcc && subpackages="$subpackages libgcc::$CTARGET_ARCH"
if $_libgcc; then
depends="$depends libgcc-static$_target"
subpackages="$subpackages libgcc::$CTARGET_ARCH libgcc-static$_target:libgccstatic:$CTARGET_ARCH"
fi
$_libquadmath && subpackages="$subpackages libquadmath::$CTARGET_ARCH"
if $_libgomp; then
depends="$depends libgomp=$_gccrel"
@@ -279,6 +286,7 @@ source="https://gcc.gnu.org/pub/gcc/releases/gcc-$_pkgbase/gcc-$_pkgbase.tar.xz
0039-except-Don-t-use-the-cached-value-of-the-gcc_except_.patch
0040-ada-libgnat-use-stub-symbolic-module-name-functions.patch
0041-ada-libgnat-recognize-linux-musleabi-and-linux-muslg.patch
0042-libsanitizer-struct_sock_fprog_sz.patch
0001-tree-object-size.cc-Fix-assert-constant-offset-in-ch.patch
0001-LoongArch-Only-allow-valid-binary-op-when-optimize-c.patch
@@ -580,7 +588,11 @@ gpp() {
depends="libstdc++-dev$_target=$_gccrel gcc$_target=$_gccrel musl-dev"
[ "$CHOST" = "$CTARGET" ] && depends="$depends libstdc++=$_gccrel"
depends="$depends so:libc.musl-aarch64.so.1 so:libgmp.so.10 so:libisl.so.23 so:libmpc.so.3 so:libmpfr.so.6 so:libz.so.1"
depends="$depends so:libgmp.so.10 so:libisl.so.23 so:libmpc.so.3 so:libmpfr.so.6 so:libz.so.1"
case "$CARCH" in
aarch64) depends="$depends so:libc.musl-aarch64.so.1" ;;
esac
amove $_gcclibexec/cc1plus
amove usr/bin/*++
@@ -622,6 +634,20 @@ libgcc() {
depends=
amove usr/lib/libgcc_s.so.*
# Symlink for Clang to find the library. Gets overwritten by the real
# library if gcc is installed.
ln -s /usr/lib/libgcc_s.so.1 \
"$subpkgdir"/usr/lib/libgcc_s.so
}
libgccstatic() {
pkgdesc="GNU C compiler runtime libraries"
depends=
amove usr/lib/gcc/"$CTARGET"/"$pkgver"/crtbegin.o
amove usr/lib/gcc/"$CTARGET"/"$pkgver"/crtbeginS.o
amove usr/lib/gcc/"$CTARGET"/"$pkgver"/crtendS.o
amove usr/lib/gcc/"$CTARGET"/"$pkgver"/libgcc.a
}
libgomp() {
@@ -796,6 +822,7 @@ eecc77e2a9cf956fd752693ad7f8ff8253a7bb557e00564bb488bbc1deac895e63104cc1182a0bdd
9f4c3fa0d17cfcd72626bdbaf51992ff3018f878d673ab19b9056047ee2630b581e5a5a4d4857444f08ba9bcdb0fc94f90dcda6180816e39690d1652843f0d8a 0039-except-Don-t-use-the-cached-value-of-the-gcc_except_.patch
d166475e340c91bbb24cf257240aab37129b04f2609e5ce323b530ab83853a4c34c525e0072c15732717f1681db07e6b3b0a4d268720c31f460435ccf4c99b7f 0040-ada-libgnat-use-stub-symbolic-module-name-functions.patch
c717764ef52c0226a23cbf434654cdefa6cbf38ec625648575d9143c5513b16d8914c25015db743033b8a46ac5b2c33ab75e1b67076128d67bb1319e5a83dd85 0041-ada-libgnat-recognize-linux-musleabi-and-linux-muslg.patch
5dd452a80c496a587a8826b04a4917045e4028631606e85cabd8e87e0460642d188a2156c4e0cf37a5d88e66ebd08a08393d48a6065045178c69eaba2edd063e 0042-libsanitizer-struct_sock_fprog_sz.patch
c3b64b05332bd4dd7fad3fff3cacd4f9de0512943f1548c6f1205fab1a74c83622024f30471805f57d625198cc32f647b32172914528fd5605d0bf61cb0c3ff1 0001-tree-object-size.cc-Fix-assert-constant-offset-in-ch.patch
e91873055550eba051d9297bec5c6acd27abb9ee6ce8911cdd04b5faf37d77b6b2a7607ec588d2863f13f14b48af9398cb4ac42443d8567bfa5037dc6bd50404 0001-LoongArch-Only-allow-valid-binary-op-when-optimize-c.patch
"
@@ -1,31 +0,0 @@
Enable -D_FORTIFY_SOURCE=2 by default.
Original patch from:
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo/src/patchsets/gcc/4.9.2/gentoo/10_all_default-fortify-source.patch
--- a/gcc/c-family/c-cppbuiltin.c
+++ b/gcc/c-family/c-cppbuiltin.c
@@ -951,6 +951,9 @@ c_cpp_builtins (cpp_reader *pfile)
builtin_define_with_value ("__REGISTER_PREFIX__", REGISTER_PREFIX, 0);
builtin_define_with_value ("__USER_LABEL_PREFIX__", user_label_prefix, 0);
+ /* Fortify Source enabled by default w/optimization. */
+ cpp_define (pfile, "_FORTIFY_SOURCE=((defined __OPTIMIZE__ && __OPTIMIZE__ > 0) ? 2 : 0)");
+
/* Misc. */
if (flag_gnu89_inline)
cpp_define (pfile, "__GNUC_GNU_INLINE__");
--- a/gcc/doc/gcc.info
+++ b/gcc/doc/gcc.info
@@ -6255,6 +6255,11 @@ find out the exact set of optimizations that are enabled at each level.
Please note the warning under '-fgcse' about invoking '-O2' on
programs that use computed gotos.
+ NOTE: In Alpine Linux, `-D_FORTIFY_SOURCE=2' is set by default, and is
+ activated when `-Os' or `-O1' or higher is used. This enables additional
+ compile-time and run-time checks for several libc functions. To disable,
+ specify either `-U_FORTIFY_SOURCE' or `-D_FORTIFY_SOURCE=0'.
+
'-O3'
Optimize yet more. '-O3' turns on all optimizations specified by
'-O2' and also turns on the '-finline-functions',
+63 -17
View File
@@ -1,7 +1,6 @@
# Automatically generated aport, do not edit!
# Generator: pmbootstrap aportgen gcc4-aarch64
# Based on: main/gcc4 (from postmarketOS)
CTARGET_ARCH=aarch64
CTARGET="$(arch_to_hostspec ${CTARGET_ARCH})"
LANG_D=false
@@ -23,19 +22,22 @@ CBUILDROOT="/"
_cross_configure="--disable-bootstrap --with-sysroot=/usr/$CTARGET"
maintainer=""
pkgname=gcc4-aarch64
pkgver=9999
_pkgver=4.9.2
pkgrel=7
_pkgver=4.9.4
pkgrel=10
pkgdesc="Stage2 cross-compiler for aarch64"
url="http://gcc.gnu.org"
# loongarch64: not supported
# ppc64le, riscv64: doesn't build
arch="x86_64"
license="GPL LGPL"
license="GPL-2.0-or-later AND LGPL-2.1-or-later"
_gccrel=$_pkgver-r$pkgrel
depends="binutils-aarch64 mpc1"
depends="binutils-aarch64 mpc1 so:libc.musl-x86_64.so.1 so:libgcc_s.so.1 so:libgmp.so.10 so:libisl.so.23 so:libmpc.so.3 so:libmpfr.so.6 so:libstdc++.so.6 so:libz.so.1"
makedepends_build="gcc g++ bison flex texinfo gawk zip gmp-dev mpfr-dev mpc1-dev zlib-dev"
makedepends_host="linux-headers gmp-dev mpfr-dev mpc1-dev isl-dev zlib-dev musl-dev-aarch64 binutils-aarch64"
options="!strip"
options="!strip !tracedeps toolchain"
# We only care about C, so we can compile old Linux kernels
LANG_CXX=false
@@ -67,11 +69,23 @@ if [ "$CHOST" != "$CTARGET" ]; then
LIBATOMIC=false
LIBITM=false
# format-sec: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100431
CFLAGS="${CFLAGS/-Werror=format-security/}"
CXXFLAGS="${CXXFLAGS/-Werror=format-security/}"
CPPFLAGS="${CPPFLAGS/-Werror=format-security/}"
# fstack-clash-protection is not known to GCC 4
CFLAGS="${CFLAGS/-fstack-clash-protection/}"
CXXFLAGS="${CXXFLAGS/-fstack-clash-protection/}"
CPPFLAGS="${CPPFLAGS/-fstack-clash-protection/}"
# and neither is -fno-plt
CFLAGS="${CFLAGS/-fno-plt/}"
CXXFLAGS="${CXXFLAGS/-fno-plt/}"
CPPFLAGS="${CPPFLAGS/-fno-plt/}"
# reset target flags (should be set in crosscreate abuild)
# fixup flags. seems gcc treats CPPFLAGS as global without
# _FOR_xxx variants. wrap it in CFLAGS and CXXFLAGS.
export CFLAGS="$CPPFLAGS $CFLAGS"
export CXXFLAGS="$CPPFLAGS $CXXFLAGS"
export CFLAGS="$CPPFLAGS -g0 $CFLAGS"
export CXXFLAGS="$CPPFLAGS -g0 $CXXFLAGS"
unset CPPFLAGS
export CFLAGS_FOR_TARGET=" "
export CXXFLAGS_FOR_TARGET=" "
@@ -79,10 +93,23 @@ if [ "$CHOST" != "$CTARGET" ]; then
STRIP_FOR_TARGET="$CTARGET-strip"
elif [ "$CBUILD" != "$CHOST" ]; then
# format-sec: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100431
CFLAGS="${CFLAGS/-Werror=format-security/}"
CXXFLAGS="${CXXFLAGS/-Werror=format-security/}"
CPPFLAGS="${CPPFLAGS/-Werror=format-security/}"
# fstack-clash-protection is not known to GCC 4
CFLAGS="${CFLAGS/-fstack-clash-protection/}"
CXXFLAGS="${CXXFLAGS/-fstack-clash-protection/}"
CPPFLAGS="${CPPFLAGS/-fstack-clash-protection/}"
# and neither is -fno-plt
CFLAGS="${CFLAGS/-fno-plt/}"
CXXFLAGS="${CXXFLAGS/-fno-plt/}"
CPPFLAGS="${CPPFLAGS/-fno-plt/}"
# reset target flags (should be set in crosscreate abuild)
# fixup flags. seems gcc treats CPPFLAGS as global without
# _FOR_xxx variants. wrap it in CFLAGS and CXXFLAGS.
export CFLAGS="$CPPFLAGS $CFLAGS"
export CXXFLAGS="$CPPFLAGS $CXXFLAGS"
export CFLAGS="$CPPFLAGS -g0 $CFLAGS"
export CXXFLAGS="$CPPFLAGS -g0 $CXXFLAGS"
unset CPPFLAGS
# reset flags and cc for build
@@ -106,6 +133,31 @@ elif [ "$CBUILD" != "$CHOST" ]; then
else
STRIP_FOR_TARGET=${CROSS_COMPILE}strip
_builddir="$srcdir/build"
# format-sec: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100431
CFLAGS="${CFLAGS/-Werror=format-security/}"
CXXFLAGS="${CXXFLAGS/-Werror=format-security/}"
CPPFLAGS="${CPPFLAGS/-Werror=format-security/}"
# fstack-clash-protection is not known to GCC 4
CFLAGS="${CFLAGS/-fstack-clash-protection/}"
CXXFLAGS="${CXXFLAGS/-fstack-clash-protection/}"
CPPFLAGS="${CPPFLAGS/-fstack-clash-protection/}"
# and neither is -fno-plt
CFLAGS="${CFLAGS/-fno-plt/}"
CXXFLAGS="${CXXFLAGS/-fno-plt/}"
CPPFLAGS="${CPPFLAGS/-fno-plt/}"
# reset target flags (should be set in crosscreate abuild)
# fixup flags. seems gcc treats CPPFLAGS as global without
# _FOR_xxx variants. wrap it in CFLAGS and CXXFLAGS.
export CFLAGS="$CPPFLAGS -g0 $CFLAGS -O2"
export CXXFLAGS="$CPPFLAGS -g0 $CXXFLAGS -O2"
unset CPPFLAGS
# https://gcc.gnu.org/install/build.html
export CFLAGS_FOR_TARGET="$CFLAGS"
export CXXFLAGS_FOR_TARGET="$CXXFLAGS"
export LDFLAGS_FOR_TARGET="$LDFLAGS"
export BOOT_CFLAGS="$CFLAGS"
export BOOT_LDFLAGS="$LDFLAGS"
fi
# Go needs {set,make,swap}context, unimplemented in musl
@@ -176,7 +228,6 @@ source="http://gcc.gnu.org/pub/gcc/releases/gcc-${_pkgbase:-$_pkgver}/gcc-${_pkg
40_all_gcc49_config_esp.patch
41_all_gcc49_config_esp_alpine.patch
10_all_default-fortify-source.patch
12_all_default-warn-trampolines.patch
15_all_libgfortran-Werror.patch
16_all_libgomp-Werror.patch
@@ -193,7 +244,6 @@ source="http://gcc.gnu.org/pub/gcc/releases/gcc-${_pkgbase:-$_pkgver}/gcc-${_pkg
gcc-4.9-musl.patch
gcc-4.8-musl-fix-iteratephdr.patch
gcc-4.8-musl-libssp.patch
gcc-4.9-musl-fortify.patch
boehm-gc-uclibc.patch
boehm-gc-musl.patch
gcc-pure64.patch
@@ -201,7 +251,6 @@ source="http://gcc.gnu.org/pub/gcc/releases/gcc-${_pkgbase:-$_pkgver}/gcc-${_pkg
fix-gcj-iconv-musl.patch
musl-posix_memalign-c++.patch
pr63740.patch
pr64037.patch
gcc-4.8-build-args.patch
fix-cxxflags-passing.patch
@@ -435,7 +484,7 @@ package() {
}
sha512sums="
35a1386ae2b8629cd464383fbb3c61e94a07f3691f48b8029b97cc62a60c792ffb870aad2343b2ad8185bf46f77e1e1dd62309ecdadc42f919874c6e2c58b936 gcc-4.9.2.tar.gz
ca0f589f33987755195e81a9c7a83f797cfe5775fca908d025eb3ddbe8857edd666d272c2e97088c1808b268c5785326b72f2a340a277f6aa2c9bfe22c02ad69 gcc-4.9.4.tar.gz
28f8c6fdbcb19e950b1d0bafb3bcc7a8cba87bc673aa6027cece116599cdee80f0cf5e95a1440544890239f5c754e8a93ab46d9daedd937faef445d7ea33b226 ecj-4.9.jar
618a8d037ccad15e60182acc9c85ba844cb9b5800a22ece0b814e43541b01b4e390a2847f86debb351f4b05580241747fde87e86a17060744e7bb2b9a3dc5bd4 01_all_gcc49_configure.patch
21770259c7916e55568027926e4a543eea468b04436cc61c28f749be5a6635c48e68b7924a8eb19a76733a9d2f00921ba06faddaedbf14b1cdad5ab1810cc6c6 02_all_gcc48_config.in.patch
@@ -448,7 +497,6 @@ dd5b9b30eb7716cb3c010ca79a83ed6219ff6e6f2557deb4e1d26cecac0f2b14c4ef7bf4dc5c2aec
8829f85323d8b11e26e3c19ced4a51875fc63f1483cfdc4d0f579a6cb37e1b6e23fcf33a87a574a6e0007250374ea46d117a136e73a40fbe43f0e39d9b2dd1a8 35_all_gcc48_config_arm.patch
976994900d20a448b97fa91e1d758b6da6d8ad9121b3dbc2e8f66ff8006d8e496cd3dddc41394db6c4d20366d56fe12375b97f494d6fb9abb8e64ab626acc2ef 40_all_gcc49_config_esp.patch
e2d027be2e76a64a607ae44566d163bcc2a03c9e14d5bd20cd8bb15c2e9e395d8964b747a6a9c49541a5d1613d721855b73d60cce7c834427b44788fa92d44dc 41_all_gcc49_config_esp_alpine.patch
6cdac0741568b418af1e267a69b487e48a98e319f5ec8ab2bad293f2520ceced40c7df7ddef84963f5b101b94f34e441574c501ef3993ded097beb7c9d3b205f 10_all_default-fortify-source.patch
5069e4b741488913a646a9b5d871af8e7f7a606158ea09305d0ddd46257c5b659770627bc2ca3abeaae039da1717b3ba6c9cd90554a441da74eb4ecf24c13074 12_all_default-warn-trampolines.patch
c18a99b7303a734fe4dca9d4e90e21d18e5bd71c7d91e1a26c86b1354c73f567590a875941bfe64ce59f0393023b91c606c96b30885c55b98a790c3ab0c84ca7 15_all_libgfortran-Werror.patch
433404fd9bfa172d69fff4a5505e8648cbbbf5f052d2b4235608ff7af0c4063d557d25d80c85c5bd0d1e1ed64b568e7bbc0cdbce11cc74db4c0189af3a01634a 16_all_libgomp-Werror.patch
@@ -464,7 +512,6 @@ d08d7ead2de0429e5c9055d5b029ec2be9a8c821d22cecaf9b51f633652c493333f98963d9267fa2
e2be926c0ed4d67587857652678253a2a4e42294009a0c4b9fc420e53b0e6d44d1a2c6c2c62db837bc010470e9e62eb4af1ba7f51ff507c41e40922cd022dd26 gcc-4.9-musl.patch
b5b0210dfaccfe0b06f0a9090666b1fae2a3faa4140b7930146b29531f0da9beb1f2c1f7e7bc2bd29179f9fe05dc30e246e96220b8ff75a90f75e8350c9058a1 gcc-4.8-musl-fix-iteratephdr.patch
e6d9b103c128e5d4eca515b1496d78b05708de770597c883daddd95ea41e77b5ef1be613b989357cc870a7efd9e43b011022c2d302e7056cff7b69e764906ff2 gcc-4.8-musl-libssp.patch
600fe5098dc54edaa9808fd5717af9dec058953f9ad37d49cfba1db4f7e9a7a8f02019342f75157fc575946fa693259422184de27b7ecc8386d9f3ecc0f7cc5d gcc-4.9-musl-fortify.patch
e1d6a450dfb40b134ad7f759c4c10174d2490b0093fe47cb33479245f26a3a8c54ebcf6255943c0ccfcb5095600d1c05e530baeed35609c8ffe75caac8e57c49 boehm-gc-uclibc.patch
bda845a6aa1854d2c883910b115f79ccfa93dfc2b5eac69a3a236d83eb34cadc140731d616ffc24698c7abc8878dd15f231bcc5119f1860e575a120b311706c7 boehm-gc-musl.patch
4a5aeff0399782c752e6e3f2f48d984b2056dfb5d229b23a24eee1562d241339989b2203f139821cfc03c9b25c9bd7da6ccbbdc7a09d242e4de7f0d606c6f63c gcc-pure64.patch
@@ -472,7 +519,6 @@ f89ddeb21bc8f97e6a850a6b70b4501a8f3e49a4bc8cc82897488decda5d98ad01cb7f6c8b392d45
54d67cc008b735e47771314171930c5d8b8f5f5dc97fcf4214824c105c808f3e75d22d5a4fdf5068ed0457fa0d46c60cfb442e276259a4a5e9b8722a027d18e6 fix-gcj-iconv-musl.patch
7de81fc8c7eb36690949eb30082515454978440a8f389b12407ac5e9125ef6824d6059ffb5b063ab1ccc6c4827b1a6a0984b538f056b85e3171800a6f723ec8b musl-posix_memalign-c++.patch
095281d940ad7504ed7071cc9800d81db33eb4aa5465696ef7b12bf1213dbdfa701f4392095c5167b331c38219b19d25a0798524b319f1c77aa8522d76d8c92c pr63740.patch
efc04b179d41b484eddddc56d0e442634995d56c994e6295ae09b9856ab46649d5f45f51ea84494ab39df41c213772d0e68aee67e66fdf340f0a647b55629ced pr64037.patch
abe9aaf9aa956058d0386a4396a511d176a46bb3906b90e952383646cdc158cbeb0a5dc616a1ccb1ca7d49fd0b5e351532aa15a3b13362abbf1ca4266f54a687 gcc-4.8-build-args.patch
35d6d59f0b7b968f282f56767c9e0823a7bdc5aa0d450aca50fbd802649a7ca608b47671244a3faa208a9b0d6832cabb5a22724157dc817b2c0ad63d09f93282 fix-cxxflags-passing.patch
c731f4aaaa65c8950e1b2bd9331410f92d378fd8c7e718532dccaa27ee11984d51d74216c3611e89a802325b81d7f184116839dce2dab50cae9b643c20a82fe7 fix-cxxflags-for-target.patch
@@ -1,11 +0,0 @@
--- gcc-4.9.2/gcc/config/linux.h.orig 2015-03-09 13:27:13.289736710 +0000
+++ gcc-4.9.2/gcc/config/linux.h 2015-03-09 13:29:32.295625046 +0000
@@ -146,6 +146,8 @@
#ifdef NATIVE_SYSTEM_HEADER_DIR
#define INCLUDE_DEFAULTS_MUSL_NATIVE \
+ { NATIVE_SYSTEM_HEADER_DIR "/fortify", 0, 0, 0, 1, 2 }, \
+ { NATIVE_SYSTEM_HEADER_DIR "/fortify", 0, 0, 0, 1, 0 }, \
{ NATIVE_SYSTEM_HEADER_DIR, 0, 0, 0, 1, 2 }, \
{ NATIVE_SYSTEM_HEADER_DIR, 0, 0, 0, 1, 0 },
#else
-83
View File
@@ -1,83 +0,0 @@
https://gcc.gnu.org/git/?p=gcc.git;a=patch;h=0817dc6f0e6b973e0e3671eb72d3758a8f042324
(changelog changes removed)
From 0817dc6f0e6b973e0e3671eb72d3758a8f042324 Mon Sep 17 00:00:00 2001
From: hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Sun, 14 Dec 2014 16:07:03 +0000
Subject: [PATCH] Pass unpromoted argument to promote_function_mode
This patch updates setup_incoming_promotions in combine.c to match what
is actually passed in assign_parm_setup_reg in function.c.
Backported from mainline:
gcc/
PR rtl-optimization/64037
* combine.c (setup_incoming_promotions): Pass the argument
before any promotions happen to promote_function_mode.
gcc/testsuite/
PR rtl-optimization/64037
* g++.dg/pr64037.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@218721 138bc75d-0d04-0410-961f-82ee72b054a4
---
gcc/combine.c | 4 ++--
gcc/testsuite/g++.dg/pr64037.C | 27 +++++++++++++++++++++++++++
4 files changed, 46 insertions(+), 2 deletions(-)
create mode 100644 gcc/testsuite/g++.dg/pr64037.C
diff --git a/gcc/combine.c b/gcc/combine.c
index 7c00452..adea2c1 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -1529,8 +1529,8 @@ setup_incoming_promotions (rtx first)
uns3 = TYPE_UNSIGNED (DECL_ARG_TYPE (arg));
/* The mode and signedness of the argument as it is actually passed,
- after any TARGET_PROMOTE_FUNCTION_ARGS-driven ABI promotions. */
- mode3 = promote_function_mode (DECL_ARG_TYPE (arg), mode2, &uns3,
+ see assign_parm_setup_reg in function.c. */
+ mode3 = promote_function_mode (TREE_TYPE (arg), mode1, &uns3,
TREE_TYPE (cfun->decl), 0);
/* The mode of the register in which the argument is being passed. */
diff --git a/gcc/testsuite/g++.dg/pr64037.C b/gcc/testsuite/g++.dg/pr64037.C
new file mode 100644
index 0000000..e5cd0e2
--- /dev/null
+++ b/gcc/testsuite/g++.dg/pr64037.C
@@ -0,0 +1,27 @@
+// { dg-do run { target i?86-*-* x86_64-*-* } }
+// { dg-options "-std=c++11 -Os" }
+
+enum class X : unsigned char {
+ V = 2,
+};
+
+static void
+__attribute__((noinline,noclone))
+foo(unsigned &out, unsigned a, X b)
+{
+ out = static_cast<unsigned>(b);
+}
+
+int main()
+{
+ unsigned deadbeef = 0xDEADBEEF;
+ asm volatile ("" : "+d" (deadbeef), "+c" (deadbeef));
+
+ unsigned out;
+ foo(out, 2, X::V);
+
+ if (out != 2)
+ __builtin_abort ();
+
+ return 0;
+}
--
1.7.1
@@ -1,31 +0,0 @@
Enable -D_FORTIFY_SOURCE=2 by default.
Original patch from:
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo/src/patchsets/gcc/4.9.2/gentoo/10_all_default-fortify-source.patch
--- a/gcc/c-family/c-cppbuiltin.c
+++ b/gcc/c-family/c-cppbuiltin.c
@@ -951,6 +951,9 @@ c_cpp_builtins (cpp_reader *pfile)
builtin_define_with_value ("__REGISTER_PREFIX__", REGISTER_PREFIX, 0);
builtin_define_with_value ("__USER_LABEL_PREFIX__", user_label_prefix, 0);
+ /* Fortify Source enabled by default w/optimization. */
+ cpp_define (pfile, "_FORTIFY_SOURCE=((defined __OPTIMIZE__ && __OPTIMIZE__ > 0) ? 2 : 0)");
+
/* Misc. */
if (flag_gnu89_inline)
cpp_define (pfile, "__GNUC_GNU_INLINE__");
--- a/gcc/doc/gcc.info
+++ b/gcc/doc/gcc.info
@@ -6255,6 +6255,11 @@ find out the exact set of optimizations that are enabled at each level.
Please note the warning under '-fgcse' about invoking '-O2' on
programs that use computed gotos.
+ NOTE: In Alpine Linux, `-D_FORTIFY_SOURCE=2' is set by default, and is
+ activated when `-Os' or `-O1' or higher is used. This enables additional
+ compile-time and run-time checks for several libc functions. To disable,
+ specify either `-U_FORTIFY_SOURCE' or `-D_FORTIFY_SOURCE=0'.
+
'-O3'
Optimize yet more. '-O3' turns on all optimizations specified by
'-O2' and also turns on the '-finline-functions',
+63 -17
View File
@@ -1,7 +1,6 @@
# Automatically generated aport, do not edit!
# Generator: pmbootstrap aportgen gcc4-armhf
# Based on: main/gcc4 (from postmarketOS)
CTARGET_ARCH=armhf
CTARGET="$(arch_to_hostspec ${CTARGET_ARCH})"
LANG_D=false
@@ -23,19 +22,22 @@ CBUILDROOT="/"
_cross_configure="--disable-bootstrap --with-sysroot=/usr/$CTARGET"
maintainer=""
pkgname=gcc4-armhf
pkgver=9999
_pkgver=4.9.2
pkgrel=7
_pkgver=4.9.4
pkgrel=10
pkgdesc="Stage2 cross-compiler for armhf"
url="http://gcc.gnu.org"
# loongarch64: not supported
# ppc64le, riscv64: doesn't build
arch="x86_64"
license="GPL LGPL"
license="GPL-2.0-or-later AND LGPL-2.1-or-later"
_gccrel=$_pkgver-r$pkgrel
depends="binutils-armhf mpc1"
depends="binutils-armhf mpc1 so:libc.musl-x86_64.so.1 so:libgcc_s.so.1 so:libgmp.so.10 so:libisl.so.23 so:libmpc.so.3 so:libmpfr.so.6 so:libstdc++.so.6 so:libz.so.1"
makedepends_build="gcc g++ bison flex texinfo gawk zip gmp-dev mpfr-dev mpc1-dev zlib-dev"
makedepends_host="linux-headers gmp-dev mpfr-dev mpc1-dev isl-dev zlib-dev musl-dev-armhf binutils-armhf"
options="!strip"
options="!strip !tracedeps toolchain"
# We only care about C, so we can compile old Linux kernels
LANG_CXX=false
@@ -67,11 +69,23 @@ if [ "$CHOST" != "$CTARGET" ]; then
LIBATOMIC=false
LIBITM=false
# format-sec: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100431
CFLAGS="${CFLAGS/-Werror=format-security/}"
CXXFLAGS="${CXXFLAGS/-Werror=format-security/}"
CPPFLAGS="${CPPFLAGS/-Werror=format-security/}"
# fstack-clash-protection is not known to GCC 4
CFLAGS="${CFLAGS/-fstack-clash-protection/}"
CXXFLAGS="${CXXFLAGS/-fstack-clash-protection/}"
CPPFLAGS="${CPPFLAGS/-fstack-clash-protection/}"
# and neither is -fno-plt
CFLAGS="${CFLAGS/-fno-plt/}"
CXXFLAGS="${CXXFLAGS/-fno-plt/}"
CPPFLAGS="${CPPFLAGS/-fno-plt/}"
# reset target flags (should be set in crosscreate abuild)
# fixup flags. seems gcc treats CPPFLAGS as global without
# _FOR_xxx variants. wrap it in CFLAGS and CXXFLAGS.
export CFLAGS="$CPPFLAGS $CFLAGS"
export CXXFLAGS="$CPPFLAGS $CXXFLAGS"
export CFLAGS="$CPPFLAGS -g0 $CFLAGS"
export CXXFLAGS="$CPPFLAGS -g0 $CXXFLAGS"
unset CPPFLAGS
export CFLAGS_FOR_TARGET=" "
export CXXFLAGS_FOR_TARGET=" "
@@ -79,10 +93,23 @@ if [ "$CHOST" != "$CTARGET" ]; then
STRIP_FOR_TARGET="$CTARGET-strip"
elif [ "$CBUILD" != "$CHOST" ]; then
# format-sec: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100431
CFLAGS="${CFLAGS/-Werror=format-security/}"
CXXFLAGS="${CXXFLAGS/-Werror=format-security/}"
CPPFLAGS="${CPPFLAGS/-Werror=format-security/}"
# fstack-clash-protection is not known to GCC 4
CFLAGS="${CFLAGS/-fstack-clash-protection/}"
CXXFLAGS="${CXXFLAGS/-fstack-clash-protection/}"
CPPFLAGS="${CPPFLAGS/-fstack-clash-protection/}"
# and neither is -fno-plt
CFLAGS="${CFLAGS/-fno-plt/}"
CXXFLAGS="${CXXFLAGS/-fno-plt/}"
CPPFLAGS="${CPPFLAGS/-fno-plt/}"
# reset target flags (should be set in crosscreate abuild)
# fixup flags. seems gcc treats CPPFLAGS as global without
# _FOR_xxx variants. wrap it in CFLAGS and CXXFLAGS.
export CFLAGS="$CPPFLAGS $CFLAGS"
export CXXFLAGS="$CPPFLAGS $CXXFLAGS"
export CFLAGS="$CPPFLAGS -g0 $CFLAGS"
export CXXFLAGS="$CPPFLAGS -g0 $CXXFLAGS"
unset CPPFLAGS
# reset flags and cc for build
@@ -106,6 +133,31 @@ elif [ "$CBUILD" != "$CHOST" ]; then
else
STRIP_FOR_TARGET=${CROSS_COMPILE}strip
_builddir="$srcdir/build"
# format-sec: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100431
CFLAGS="${CFLAGS/-Werror=format-security/}"
CXXFLAGS="${CXXFLAGS/-Werror=format-security/}"
CPPFLAGS="${CPPFLAGS/-Werror=format-security/}"
# fstack-clash-protection is not known to GCC 4
CFLAGS="${CFLAGS/-fstack-clash-protection/}"
CXXFLAGS="${CXXFLAGS/-fstack-clash-protection/}"
CPPFLAGS="${CPPFLAGS/-fstack-clash-protection/}"
# and neither is -fno-plt
CFLAGS="${CFLAGS/-fno-plt/}"
CXXFLAGS="${CXXFLAGS/-fno-plt/}"
CPPFLAGS="${CPPFLAGS/-fno-plt/}"
# reset target flags (should be set in crosscreate abuild)
# fixup flags. seems gcc treats CPPFLAGS as global without
# _FOR_xxx variants. wrap it in CFLAGS and CXXFLAGS.
export CFLAGS="$CPPFLAGS -g0 $CFLAGS -O2"
export CXXFLAGS="$CPPFLAGS -g0 $CXXFLAGS -O2"
unset CPPFLAGS
# https://gcc.gnu.org/install/build.html
export CFLAGS_FOR_TARGET="$CFLAGS"
export CXXFLAGS_FOR_TARGET="$CXXFLAGS"
export LDFLAGS_FOR_TARGET="$LDFLAGS"
export BOOT_CFLAGS="$CFLAGS"
export BOOT_LDFLAGS="$LDFLAGS"
fi
# Go needs {set,make,swap}context, unimplemented in musl
@@ -176,7 +228,6 @@ source="http://gcc.gnu.org/pub/gcc/releases/gcc-${_pkgbase:-$_pkgver}/gcc-${_pkg
40_all_gcc49_config_esp.patch
41_all_gcc49_config_esp_alpine.patch
10_all_default-fortify-source.patch
12_all_default-warn-trampolines.patch
15_all_libgfortran-Werror.patch
16_all_libgomp-Werror.patch
@@ -193,7 +244,6 @@ source="http://gcc.gnu.org/pub/gcc/releases/gcc-${_pkgbase:-$_pkgver}/gcc-${_pkg
gcc-4.9-musl.patch
gcc-4.8-musl-fix-iteratephdr.patch
gcc-4.8-musl-libssp.patch
gcc-4.9-musl-fortify.patch
boehm-gc-uclibc.patch
boehm-gc-musl.patch
gcc-pure64.patch
@@ -201,7 +251,6 @@ source="http://gcc.gnu.org/pub/gcc/releases/gcc-${_pkgbase:-$_pkgver}/gcc-${_pkg
fix-gcj-iconv-musl.patch
musl-posix_memalign-c++.patch
pr63740.patch
pr64037.patch
gcc-4.8-build-args.patch
fix-cxxflags-passing.patch
@@ -435,7 +484,7 @@ package() {
}
sha512sums="
35a1386ae2b8629cd464383fbb3c61e94a07f3691f48b8029b97cc62a60c792ffb870aad2343b2ad8185bf46f77e1e1dd62309ecdadc42f919874c6e2c58b936 gcc-4.9.2.tar.gz
ca0f589f33987755195e81a9c7a83f797cfe5775fca908d025eb3ddbe8857edd666d272c2e97088c1808b268c5785326b72f2a340a277f6aa2c9bfe22c02ad69 gcc-4.9.4.tar.gz
28f8c6fdbcb19e950b1d0bafb3bcc7a8cba87bc673aa6027cece116599cdee80f0cf5e95a1440544890239f5c754e8a93ab46d9daedd937faef445d7ea33b226 ecj-4.9.jar
618a8d037ccad15e60182acc9c85ba844cb9b5800a22ece0b814e43541b01b4e390a2847f86debb351f4b05580241747fde87e86a17060744e7bb2b9a3dc5bd4 01_all_gcc49_configure.patch
21770259c7916e55568027926e4a543eea468b04436cc61c28f749be5a6635c48e68b7924a8eb19a76733a9d2f00921ba06faddaedbf14b1cdad5ab1810cc6c6 02_all_gcc48_config.in.patch
@@ -448,7 +497,6 @@ dd5b9b30eb7716cb3c010ca79a83ed6219ff6e6f2557deb4e1d26cecac0f2b14c4ef7bf4dc5c2aec
8829f85323d8b11e26e3c19ced4a51875fc63f1483cfdc4d0f579a6cb37e1b6e23fcf33a87a574a6e0007250374ea46d117a136e73a40fbe43f0e39d9b2dd1a8 35_all_gcc48_config_arm.patch
976994900d20a448b97fa91e1d758b6da6d8ad9121b3dbc2e8f66ff8006d8e496cd3dddc41394db6c4d20366d56fe12375b97f494d6fb9abb8e64ab626acc2ef 40_all_gcc49_config_esp.patch
e2d027be2e76a64a607ae44566d163bcc2a03c9e14d5bd20cd8bb15c2e9e395d8964b747a6a9c49541a5d1613d721855b73d60cce7c834427b44788fa92d44dc 41_all_gcc49_config_esp_alpine.patch
6cdac0741568b418af1e267a69b487e48a98e319f5ec8ab2bad293f2520ceced40c7df7ddef84963f5b101b94f34e441574c501ef3993ded097beb7c9d3b205f 10_all_default-fortify-source.patch
5069e4b741488913a646a9b5d871af8e7f7a606158ea09305d0ddd46257c5b659770627bc2ca3abeaae039da1717b3ba6c9cd90554a441da74eb4ecf24c13074 12_all_default-warn-trampolines.patch
c18a99b7303a734fe4dca9d4e90e21d18e5bd71c7d91e1a26c86b1354c73f567590a875941bfe64ce59f0393023b91c606c96b30885c55b98a790c3ab0c84ca7 15_all_libgfortran-Werror.patch
433404fd9bfa172d69fff4a5505e8648cbbbf5f052d2b4235608ff7af0c4063d557d25d80c85c5bd0d1e1ed64b568e7bbc0cdbce11cc74db4c0189af3a01634a 16_all_libgomp-Werror.patch
@@ -464,7 +512,6 @@ d08d7ead2de0429e5c9055d5b029ec2be9a8c821d22cecaf9b51f633652c493333f98963d9267fa2
e2be926c0ed4d67587857652678253a2a4e42294009a0c4b9fc420e53b0e6d44d1a2c6c2c62db837bc010470e9e62eb4af1ba7f51ff507c41e40922cd022dd26 gcc-4.9-musl.patch
b5b0210dfaccfe0b06f0a9090666b1fae2a3faa4140b7930146b29531f0da9beb1f2c1f7e7bc2bd29179f9fe05dc30e246e96220b8ff75a90f75e8350c9058a1 gcc-4.8-musl-fix-iteratephdr.patch
e6d9b103c128e5d4eca515b1496d78b05708de770597c883daddd95ea41e77b5ef1be613b989357cc870a7efd9e43b011022c2d302e7056cff7b69e764906ff2 gcc-4.8-musl-libssp.patch
600fe5098dc54edaa9808fd5717af9dec058953f9ad37d49cfba1db4f7e9a7a8f02019342f75157fc575946fa693259422184de27b7ecc8386d9f3ecc0f7cc5d gcc-4.9-musl-fortify.patch
e1d6a450dfb40b134ad7f759c4c10174d2490b0093fe47cb33479245f26a3a8c54ebcf6255943c0ccfcb5095600d1c05e530baeed35609c8ffe75caac8e57c49 boehm-gc-uclibc.patch
bda845a6aa1854d2c883910b115f79ccfa93dfc2b5eac69a3a236d83eb34cadc140731d616ffc24698c7abc8878dd15f231bcc5119f1860e575a120b311706c7 boehm-gc-musl.patch
4a5aeff0399782c752e6e3f2f48d984b2056dfb5d229b23a24eee1562d241339989b2203f139821cfc03c9b25c9bd7da6ccbbdc7a09d242e4de7f0d606c6f63c gcc-pure64.patch
@@ -472,7 +519,6 @@ f89ddeb21bc8f97e6a850a6b70b4501a8f3e49a4bc8cc82897488decda5d98ad01cb7f6c8b392d45
54d67cc008b735e47771314171930c5d8b8f5f5dc97fcf4214824c105c808f3e75d22d5a4fdf5068ed0457fa0d46c60cfb442e276259a4a5e9b8722a027d18e6 fix-gcj-iconv-musl.patch
7de81fc8c7eb36690949eb30082515454978440a8f389b12407ac5e9125ef6824d6059ffb5b063ab1ccc6c4827b1a6a0984b538f056b85e3171800a6f723ec8b musl-posix_memalign-c++.patch
095281d940ad7504ed7071cc9800d81db33eb4aa5465696ef7b12bf1213dbdfa701f4392095c5167b331c38219b19d25a0798524b319f1c77aa8522d76d8c92c pr63740.patch
efc04b179d41b484eddddc56d0e442634995d56c994e6295ae09b9856ab46649d5f45f51ea84494ab39df41c213772d0e68aee67e66fdf340f0a647b55629ced pr64037.patch
abe9aaf9aa956058d0386a4396a511d176a46bb3906b90e952383646cdc158cbeb0a5dc616a1ccb1ca7d49fd0b5e351532aa15a3b13362abbf1ca4266f54a687 gcc-4.8-build-args.patch
35d6d59f0b7b968f282f56767c9e0823a7bdc5aa0d450aca50fbd802649a7ca608b47671244a3faa208a9b0d6832cabb5a22724157dc817b2c0ad63d09f93282 fix-cxxflags-passing.patch
c731f4aaaa65c8950e1b2bd9331410f92d378fd8c7e718532dccaa27ee11984d51d74216c3611e89a802325b81d7f184116839dce2dab50cae9b643c20a82fe7 fix-cxxflags-for-target.patch
@@ -1,11 +0,0 @@
--- gcc-4.9.2/gcc/config/linux.h.orig 2015-03-09 13:27:13.289736710 +0000
+++ gcc-4.9.2/gcc/config/linux.h 2015-03-09 13:29:32.295625046 +0000
@@ -146,6 +146,8 @@
#ifdef NATIVE_SYSTEM_HEADER_DIR
#define INCLUDE_DEFAULTS_MUSL_NATIVE \
+ { NATIVE_SYSTEM_HEADER_DIR "/fortify", 0, 0, 0, 1, 2 }, \
+ { NATIVE_SYSTEM_HEADER_DIR "/fortify", 0, 0, 0, 1, 0 }, \
{ NATIVE_SYSTEM_HEADER_DIR, 0, 0, 0, 1, 2 }, \
{ NATIVE_SYSTEM_HEADER_DIR, 0, 0, 0, 1, 0 },
#else
-83
View File
@@ -1,83 +0,0 @@
https://gcc.gnu.org/git/?p=gcc.git;a=patch;h=0817dc6f0e6b973e0e3671eb72d3758a8f042324
(changelog changes removed)
From 0817dc6f0e6b973e0e3671eb72d3758a8f042324 Mon Sep 17 00:00:00 2001
From: hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Sun, 14 Dec 2014 16:07:03 +0000
Subject: [PATCH] Pass unpromoted argument to promote_function_mode
This patch updates setup_incoming_promotions in combine.c to match what
is actually passed in assign_parm_setup_reg in function.c.
Backported from mainline:
gcc/
PR rtl-optimization/64037
* combine.c (setup_incoming_promotions): Pass the argument
before any promotions happen to promote_function_mode.
gcc/testsuite/
PR rtl-optimization/64037
* g++.dg/pr64037.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@218721 138bc75d-0d04-0410-961f-82ee72b054a4
---
gcc/combine.c | 4 ++--
gcc/testsuite/g++.dg/pr64037.C | 27 +++++++++++++++++++++++++++
4 files changed, 46 insertions(+), 2 deletions(-)
create mode 100644 gcc/testsuite/g++.dg/pr64037.C
diff --git a/gcc/combine.c b/gcc/combine.c
index 7c00452..adea2c1 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -1529,8 +1529,8 @@ setup_incoming_promotions (rtx first)
uns3 = TYPE_UNSIGNED (DECL_ARG_TYPE (arg));
/* The mode and signedness of the argument as it is actually passed,
- after any TARGET_PROMOTE_FUNCTION_ARGS-driven ABI promotions. */
- mode3 = promote_function_mode (DECL_ARG_TYPE (arg), mode2, &uns3,
+ see assign_parm_setup_reg in function.c. */
+ mode3 = promote_function_mode (TREE_TYPE (arg), mode1, &uns3,
TREE_TYPE (cfun->decl), 0);
/* The mode of the register in which the argument is being passed. */
diff --git a/gcc/testsuite/g++.dg/pr64037.C b/gcc/testsuite/g++.dg/pr64037.C
new file mode 100644
index 0000000..e5cd0e2
--- /dev/null
+++ b/gcc/testsuite/g++.dg/pr64037.C
@@ -0,0 +1,27 @@
+// { dg-do run { target i?86-*-* x86_64-*-* } }
+// { dg-options "-std=c++11 -Os" }
+
+enum class X : unsigned char {
+ V = 2,
+};
+
+static void
+__attribute__((noinline,noclone))
+foo(unsigned &out, unsigned a, X b)
+{
+ out = static_cast<unsigned>(b);
+}
+
+int main()
+{
+ unsigned deadbeef = 0xDEADBEEF;
+ asm volatile ("" : "+d" (deadbeef), "+c" (deadbeef));
+
+ unsigned out;
+ foo(out, 2, X::V);
+
+ if (out != 2)
+ __builtin_abort ();
+
+ return 0;
+}
--
1.7.1
@@ -1,31 +0,0 @@
Enable -D_FORTIFY_SOURCE=2 by default.
Original patch from:
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo/src/patchsets/gcc/4.9.2/gentoo/10_all_default-fortify-source.patch
--- a/gcc/c-family/c-cppbuiltin.c
+++ b/gcc/c-family/c-cppbuiltin.c
@@ -951,6 +951,9 @@ c_cpp_builtins (cpp_reader *pfile)
builtin_define_with_value ("__REGISTER_PREFIX__", REGISTER_PREFIX, 0);
builtin_define_with_value ("__USER_LABEL_PREFIX__", user_label_prefix, 0);
+ /* Fortify Source enabled by default w/optimization. */
+ cpp_define (pfile, "_FORTIFY_SOURCE=((defined __OPTIMIZE__ && __OPTIMIZE__ > 0) ? 2 : 0)");
+
/* Misc. */
if (flag_gnu89_inline)
cpp_define (pfile, "__GNUC_GNU_INLINE__");
--- a/gcc/doc/gcc.info
+++ b/gcc/doc/gcc.info
@@ -6255,6 +6255,11 @@ find out the exact set of optimizations that are enabled at each level.
Please note the warning under '-fgcse' about invoking '-O2' on
programs that use computed gotos.
+ NOTE: In Alpine Linux, `-D_FORTIFY_SOURCE=2' is set by default, and is
+ activated when `-Os' or `-O1' or higher is used. This enables additional
+ compile-time and run-time checks for several libc functions. To disable,
+ specify either `-U_FORTIFY_SOURCE' or `-D_FORTIFY_SOURCE=0'.
+
'-O3'
Optimize yet more. '-O3' turns on all optimizations specified by
'-O2' and also turns on the '-finline-functions',
+63 -17
View File
@@ -1,7 +1,6 @@
# Automatically generated aport, do not edit!
# Generator: pmbootstrap aportgen gcc4-armv7
# Based on: main/gcc4 (from postmarketOS)
CTARGET_ARCH=armv7
CTARGET="$(arch_to_hostspec ${CTARGET_ARCH})"
LANG_D=false
@@ -23,19 +22,22 @@ CBUILDROOT="/"
_cross_configure="--disable-bootstrap --with-sysroot=/usr/$CTARGET"
maintainer=""
pkgname=gcc4-armv7
pkgver=9999
_pkgver=4.9.2
pkgrel=7
_pkgver=4.9.4
pkgrel=10
pkgdesc="Stage2 cross-compiler for armv7"
url="http://gcc.gnu.org"
# loongarch64: not supported
# ppc64le, riscv64: doesn't build
arch="x86_64"
license="GPL LGPL"
license="GPL-2.0-or-later AND LGPL-2.1-or-later"
_gccrel=$_pkgver-r$pkgrel
depends="binutils-armv7 mpc1"
depends="binutils-armv7 mpc1 so:libc.musl-x86_64.so.1 so:libgcc_s.so.1 so:libgmp.so.10 so:libisl.so.23 so:libmpc.so.3 so:libmpfr.so.6 so:libstdc++.so.6 so:libz.so.1"
makedepends_build="gcc g++ bison flex texinfo gawk zip gmp-dev mpfr-dev mpc1-dev zlib-dev"
makedepends_host="linux-headers gmp-dev mpfr-dev mpc1-dev isl-dev zlib-dev musl-dev-armv7 binutils-armv7"
options="!strip"
options="!strip !tracedeps toolchain"
# We only care about C, so we can compile old Linux kernels
LANG_CXX=false
@@ -67,11 +69,23 @@ if [ "$CHOST" != "$CTARGET" ]; then
LIBATOMIC=false
LIBITM=false
# format-sec: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100431
CFLAGS="${CFLAGS/-Werror=format-security/}"
CXXFLAGS="${CXXFLAGS/-Werror=format-security/}"
CPPFLAGS="${CPPFLAGS/-Werror=format-security/}"
# fstack-clash-protection is not known to GCC 4
CFLAGS="${CFLAGS/-fstack-clash-protection/}"
CXXFLAGS="${CXXFLAGS/-fstack-clash-protection/}"
CPPFLAGS="${CPPFLAGS/-fstack-clash-protection/}"
# and neither is -fno-plt
CFLAGS="${CFLAGS/-fno-plt/}"
CXXFLAGS="${CXXFLAGS/-fno-plt/}"
CPPFLAGS="${CPPFLAGS/-fno-plt/}"
# reset target flags (should be set in crosscreate abuild)
# fixup flags. seems gcc treats CPPFLAGS as global without
# _FOR_xxx variants. wrap it in CFLAGS and CXXFLAGS.
export CFLAGS="$CPPFLAGS $CFLAGS"
export CXXFLAGS="$CPPFLAGS $CXXFLAGS"
export CFLAGS="$CPPFLAGS -g0 $CFLAGS"
export CXXFLAGS="$CPPFLAGS -g0 $CXXFLAGS"
unset CPPFLAGS
export CFLAGS_FOR_TARGET=" "
export CXXFLAGS_FOR_TARGET=" "
@@ -79,10 +93,23 @@ if [ "$CHOST" != "$CTARGET" ]; then
STRIP_FOR_TARGET="$CTARGET-strip"
elif [ "$CBUILD" != "$CHOST" ]; then
# format-sec: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100431
CFLAGS="${CFLAGS/-Werror=format-security/}"
CXXFLAGS="${CXXFLAGS/-Werror=format-security/}"
CPPFLAGS="${CPPFLAGS/-Werror=format-security/}"
# fstack-clash-protection is not known to GCC 4
CFLAGS="${CFLAGS/-fstack-clash-protection/}"
CXXFLAGS="${CXXFLAGS/-fstack-clash-protection/}"
CPPFLAGS="${CPPFLAGS/-fstack-clash-protection/}"
# and neither is -fno-plt
CFLAGS="${CFLAGS/-fno-plt/}"
CXXFLAGS="${CXXFLAGS/-fno-plt/}"
CPPFLAGS="${CPPFLAGS/-fno-plt/}"
# reset target flags (should be set in crosscreate abuild)
# fixup flags. seems gcc treats CPPFLAGS as global without
# _FOR_xxx variants. wrap it in CFLAGS and CXXFLAGS.
export CFLAGS="$CPPFLAGS $CFLAGS"
export CXXFLAGS="$CPPFLAGS $CXXFLAGS"
export CFLAGS="$CPPFLAGS -g0 $CFLAGS"
export CXXFLAGS="$CPPFLAGS -g0 $CXXFLAGS"
unset CPPFLAGS
# reset flags and cc for build
@@ -106,6 +133,31 @@ elif [ "$CBUILD" != "$CHOST" ]; then
else
STRIP_FOR_TARGET=${CROSS_COMPILE}strip
_builddir="$srcdir/build"
# format-sec: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100431
CFLAGS="${CFLAGS/-Werror=format-security/}"
CXXFLAGS="${CXXFLAGS/-Werror=format-security/}"
CPPFLAGS="${CPPFLAGS/-Werror=format-security/}"
# fstack-clash-protection is not known to GCC 4
CFLAGS="${CFLAGS/-fstack-clash-protection/}"
CXXFLAGS="${CXXFLAGS/-fstack-clash-protection/}"
CPPFLAGS="${CPPFLAGS/-fstack-clash-protection/}"
# and neither is -fno-plt
CFLAGS="${CFLAGS/-fno-plt/}"
CXXFLAGS="${CXXFLAGS/-fno-plt/}"
CPPFLAGS="${CPPFLAGS/-fno-plt/}"
# reset target flags (should be set in crosscreate abuild)
# fixup flags. seems gcc treats CPPFLAGS as global without
# _FOR_xxx variants. wrap it in CFLAGS and CXXFLAGS.
export CFLAGS="$CPPFLAGS -g0 $CFLAGS -O2"
export CXXFLAGS="$CPPFLAGS -g0 $CXXFLAGS -O2"
unset CPPFLAGS
# https://gcc.gnu.org/install/build.html
export CFLAGS_FOR_TARGET="$CFLAGS"
export CXXFLAGS_FOR_TARGET="$CXXFLAGS"
export LDFLAGS_FOR_TARGET="$LDFLAGS"
export BOOT_CFLAGS="$CFLAGS"
export BOOT_LDFLAGS="$LDFLAGS"
fi
# Go needs {set,make,swap}context, unimplemented in musl
@@ -176,7 +228,6 @@ source="http://gcc.gnu.org/pub/gcc/releases/gcc-${_pkgbase:-$_pkgver}/gcc-${_pkg
40_all_gcc49_config_esp.patch
41_all_gcc49_config_esp_alpine.patch
10_all_default-fortify-source.patch
12_all_default-warn-trampolines.patch
15_all_libgfortran-Werror.patch
16_all_libgomp-Werror.patch
@@ -193,7 +244,6 @@ source="http://gcc.gnu.org/pub/gcc/releases/gcc-${_pkgbase:-$_pkgver}/gcc-${_pkg
gcc-4.9-musl.patch
gcc-4.8-musl-fix-iteratephdr.patch
gcc-4.8-musl-libssp.patch
gcc-4.9-musl-fortify.patch
boehm-gc-uclibc.patch
boehm-gc-musl.patch
gcc-pure64.patch
@@ -201,7 +251,6 @@ source="http://gcc.gnu.org/pub/gcc/releases/gcc-${_pkgbase:-$_pkgver}/gcc-${_pkg
fix-gcj-iconv-musl.patch
musl-posix_memalign-c++.patch
pr63740.patch
pr64037.patch
gcc-4.8-build-args.patch
fix-cxxflags-passing.patch
@@ -435,7 +484,7 @@ package() {
}
sha512sums="
35a1386ae2b8629cd464383fbb3c61e94a07f3691f48b8029b97cc62a60c792ffb870aad2343b2ad8185bf46f77e1e1dd62309ecdadc42f919874c6e2c58b936 gcc-4.9.2.tar.gz
ca0f589f33987755195e81a9c7a83f797cfe5775fca908d025eb3ddbe8857edd666d272c2e97088c1808b268c5785326b72f2a340a277f6aa2c9bfe22c02ad69 gcc-4.9.4.tar.gz
28f8c6fdbcb19e950b1d0bafb3bcc7a8cba87bc673aa6027cece116599cdee80f0cf5e95a1440544890239f5c754e8a93ab46d9daedd937faef445d7ea33b226 ecj-4.9.jar
618a8d037ccad15e60182acc9c85ba844cb9b5800a22ece0b814e43541b01b4e390a2847f86debb351f4b05580241747fde87e86a17060744e7bb2b9a3dc5bd4 01_all_gcc49_configure.patch
21770259c7916e55568027926e4a543eea468b04436cc61c28f749be5a6635c48e68b7924a8eb19a76733a9d2f00921ba06faddaedbf14b1cdad5ab1810cc6c6 02_all_gcc48_config.in.patch
@@ -448,7 +497,6 @@ dd5b9b30eb7716cb3c010ca79a83ed6219ff6e6f2557deb4e1d26cecac0f2b14c4ef7bf4dc5c2aec
8829f85323d8b11e26e3c19ced4a51875fc63f1483cfdc4d0f579a6cb37e1b6e23fcf33a87a574a6e0007250374ea46d117a136e73a40fbe43f0e39d9b2dd1a8 35_all_gcc48_config_arm.patch
976994900d20a448b97fa91e1d758b6da6d8ad9121b3dbc2e8f66ff8006d8e496cd3dddc41394db6c4d20366d56fe12375b97f494d6fb9abb8e64ab626acc2ef 40_all_gcc49_config_esp.patch
e2d027be2e76a64a607ae44566d163bcc2a03c9e14d5bd20cd8bb15c2e9e395d8964b747a6a9c49541a5d1613d721855b73d60cce7c834427b44788fa92d44dc 41_all_gcc49_config_esp_alpine.patch
6cdac0741568b418af1e267a69b487e48a98e319f5ec8ab2bad293f2520ceced40c7df7ddef84963f5b101b94f34e441574c501ef3993ded097beb7c9d3b205f 10_all_default-fortify-source.patch
5069e4b741488913a646a9b5d871af8e7f7a606158ea09305d0ddd46257c5b659770627bc2ca3abeaae039da1717b3ba6c9cd90554a441da74eb4ecf24c13074 12_all_default-warn-trampolines.patch
c18a99b7303a734fe4dca9d4e90e21d18e5bd71c7d91e1a26c86b1354c73f567590a875941bfe64ce59f0393023b91c606c96b30885c55b98a790c3ab0c84ca7 15_all_libgfortran-Werror.patch
433404fd9bfa172d69fff4a5505e8648cbbbf5f052d2b4235608ff7af0c4063d557d25d80c85c5bd0d1e1ed64b568e7bbc0cdbce11cc74db4c0189af3a01634a 16_all_libgomp-Werror.patch
@@ -464,7 +512,6 @@ d08d7ead2de0429e5c9055d5b029ec2be9a8c821d22cecaf9b51f633652c493333f98963d9267fa2
e2be926c0ed4d67587857652678253a2a4e42294009a0c4b9fc420e53b0e6d44d1a2c6c2c62db837bc010470e9e62eb4af1ba7f51ff507c41e40922cd022dd26 gcc-4.9-musl.patch
b5b0210dfaccfe0b06f0a9090666b1fae2a3faa4140b7930146b29531f0da9beb1f2c1f7e7bc2bd29179f9fe05dc30e246e96220b8ff75a90f75e8350c9058a1 gcc-4.8-musl-fix-iteratephdr.patch
e6d9b103c128e5d4eca515b1496d78b05708de770597c883daddd95ea41e77b5ef1be613b989357cc870a7efd9e43b011022c2d302e7056cff7b69e764906ff2 gcc-4.8-musl-libssp.patch
600fe5098dc54edaa9808fd5717af9dec058953f9ad37d49cfba1db4f7e9a7a8f02019342f75157fc575946fa693259422184de27b7ecc8386d9f3ecc0f7cc5d gcc-4.9-musl-fortify.patch
e1d6a450dfb40b134ad7f759c4c10174d2490b0093fe47cb33479245f26a3a8c54ebcf6255943c0ccfcb5095600d1c05e530baeed35609c8ffe75caac8e57c49 boehm-gc-uclibc.patch
bda845a6aa1854d2c883910b115f79ccfa93dfc2b5eac69a3a236d83eb34cadc140731d616ffc24698c7abc8878dd15f231bcc5119f1860e575a120b311706c7 boehm-gc-musl.patch
4a5aeff0399782c752e6e3f2f48d984b2056dfb5d229b23a24eee1562d241339989b2203f139821cfc03c9b25c9bd7da6ccbbdc7a09d242e4de7f0d606c6f63c gcc-pure64.patch
@@ -472,7 +519,6 @@ f89ddeb21bc8f97e6a850a6b70b4501a8f3e49a4bc8cc82897488decda5d98ad01cb7f6c8b392d45
54d67cc008b735e47771314171930c5d8b8f5f5dc97fcf4214824c105c808f3e75d22d5a4fdf5068ed0457fa0d46c60cfb442e276259a4a5e9b8722a027d18e6 fix-gcj-iconv-musl.patch
7de81fc8c7eb36690949eb30082515454978440a8f389b12407ac5e9125ef6824d6059ffb5b063ab1ccc6c4827b1a6a0984b538f056b85e3171800a6f723ec8b musl-posix_memalign-c++.patch
095281d940ad7504ed7071cc9800d81db33eb4aa5465696ef7b12bf1213dbdfa701f4392095c5167b331c38219b19d25a0798524b319f1c77aa8522d76d8c92c pr63740.patch
efc04b179d41b484eddddc56d0e442634995d56c994e6295ae09b9856ab46649d5f45f51ea84494ab39df41c213772d0e68aee67e66fdf340f0a647b55629ced pr64037.patch
abe9aaf9aa956058d0386a4396a511d176a46bb3906b90e952383646cdc158cbeb0a5dc616a1ccb1ca7d49fd0b5e351532aa15a3b13362abbf1ca4266f54a687 gcc-4.8-build-args.patch
35d6d59f0b7b968f282f56767c9e0823a7bdc5aa0d450aca50fbd802649a7ca608b47671244a3faa208a9b0d6832cabb5a22724157dc817b2c0ad63d09f93282 fix-cxxflags-passing.patch
c731f4aaaa65c8950e1b2bd9331410f92d378fd8c7e718532dccaa27ee11984d51d74216c3611e89a802325b81d7f184116839dce2dab50cae9b643c20a82fe7 fix-cxxflags-for-target.patch
@@ -1,11 +0,0 @@
--- gcc-4.9.2/gcc/config/linux.h.orig 2015-03-09 13:27:13.289736710 +0000
+++ gcc-4.9.2/gcc/config/linux.h 2015-03-09 13:29:32.295625046 +0000
@@ -146,6 +146,8 @@
#ifdef NATIVE_SYSTEM_HEADER_DIR
#define INCLUDE_DEFAULTS_MUSL_NATIVE \
+ { NATIVE_SYSTEM_HEADER_DIR "/fortify", 0, 0, 0, 1, 2 }, \
+ { NATIVE_SYSTEM_HEADER_DIR "/fortify", 0, 0, 0, 1, 0 }, \
{ NATIVE_SYSTEM_HEADER_DIR, 0, 0, 0, 1, 2 }, \
{ NATIVE_SYSTEM_HEADER_DIR, 0, 0, 0, 1, 0 },
#else
-83
View File
@@ -1,83 +0,0 @@
https://gcc.gnu.org/git/?p=gcc.git;a=patch;h=0817dc6f0e6b973e0e3671eb72d3758a8f042324
(changelog changes removed)
From 0817dc6f0e6b973e0e3671eb72d3758a8f042324 Mon Sep 17 00:00:00 2001
From: hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Sun, 14 Dec 2014 16:07:03 +0000
Subject: [PATCH] Pass unpromoted argument to promote_function_mode
This patch updates setup_incoming_promotions in combine.c to match what
is actually passed in assign_parm_setup_reg in function.c.
Backported from mainline:
gcc/
PR rtl-optimization/64037
* combine.c (setup_incoming_promotions): Pass the argument
before any promotions happen to promote_function_mode.
gcc/testsuite/
PR rtl-optimization/64037
* g++.dg/pr64037.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@218721 138bc75d-0d04-0410-961f-82ee72b054a4
---
gcc/combine.c | 4 ++--
gcc/testsuite/g++.dg/pr64037.C | 27 +++++++++++++++++++++++++++
4 files changed, 46 insertions(+), 2 deletions(-)
create mode 100644 gcc/testsuite/g++.dg/pr64037.C
diff --git a/gcc/combine.c b/gcc/combine.c
index 7c00452..adea2c1 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -1529,8 +1529,8 @@ setup_incoming_promotions (rtx first)
uns3 = TYPE_UNSIGNED (DECL_ARG_TYPE (arg));
/* The mode and signedness of the argument as it is actually passed,
- after any TARGET_PROMOTE_FUNCTION_ARGS-driven ABI promotions. */
- mode3 = promote_function_mode (DECL_ARG_TYPE (arg), mode2, &uns3,
+ see assign_parm_setup_reg in function.c. */
+ mode3 = promote_function_mode (TREE_TYPE (arg), mode1, &uns3,
TREE_TYPE (cfun->decl), 0);
/* The mode of the register in which the argument is being passed. */
diff --git a/gcc/testsuite/g++.dg/pr64037.C b/gcc/testsuite/g++.dg/pr64037.C
new file mode 100644
index 0000000..e5cd0e2
--- /dev/null
+++ b/gcc/testsuite/g++.dg/pr64037.C
@@ -0,0 +1,27 @@
+// { dg-do run { target i?86-*-* x86_64-*-* } }
+// { dg-options "-std=c++11 -Os" }
+
+enum class X : unsigned char {
+ V = 2,
+};
+
+static void
+__attribute__((noinline,noclone))
+foo(unsigned &out, unsigned a, X b)
+{
+ out = static_cast<unsigned>(b);
+}
+
+int main()
+{
+ unsigned deadbeef = 0xDEADBEEF;
+ asm volatile ("" : "+d" (deadbeef), "+c" (deadbeef));
+
+ unsigned out;
+ foo(out, 2, X::V);
+
+ if (out != 2)
+ __builtin_abort ();
+
+ return 0;
+}
--
1.7.1
@@ -1,40 +0,0 @@
# DP: Turn on -D_FORTIFY_SOURCE=2 by default for C, C++, ObjC, ObjC++,
# DP: if the optimization level is > 0
---
gcc/doc/invoke.texi | 6 ++++++
gcc/c-family/c-cppbuiltin.c | 3 +
2 files changed, 9 insertions(+), 0 deletions(-)
Index: b/gcc/doc/invoke.texi
===================================================================
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -7840,6 +7840,12 @@ also turns on the following optimization
Please note the warning under @option{-fgcse} about
invoking @option{-O2} on programs that use computed gotos.
+NOTE: In Alpine Linux, @option{-D_FORTIFY_SOURCE=2} is
+set by default, and is activated when @option{-O} is set to 2 or higher.
+This enables additional compile-time and run-time checks for several libc
+functions. To disable, specify either @option{-U_FORTIFY_SOURCE} or
+@option{-D_FORTIFY_SOURCE=0}.
+
@item -O3
@opindex O3
Optimize yet more. @option{-O3} turns on all optimizations specified
Index: b/gcc/c-family/c-cppbuiltin.c
===================================================================
--- a/gcc/c-family/c-cppbuiltin.c
+++ b/gcc/c-family/c-cppbuiltin.c
@@ -1176,6 +1176,10 @@ c_cpp_builtins (cpp_reader *pfile)
builtin_define_with_value ("__REGISTER_PREFIX__", REGISTER_PREFIX, 0);
builtin_define_with_value ("__USER_LABEL_PREFIX__", user_label_prefix, 0);
+ /* Fortify Source enabled by default for optimization levels > 0 */
+ if (optimize)
+ builtin_define_with_int_value ("_FORTIFY_SOURCE", 2);
+
/* Misc. */
if (flag_gnu89_inline)
cpp_define (pfile, "__GNUC_GNU_INLINE__");
+65 -13
View File
@@ -1,7 +1,6 @@
# Automatically generated aport, do not edit!
# Generator: pmbootstrap aportgen gcc6-aarch64
# Based on: main/gcc6 (from postmarketOS)
CTARGET_ARCH=aarch64
CTARGET="$(arch_to_hostspec ${CTARGET_ARCH})"
LANG_D=false
@@ -23,19 +22,23 @@ CBUILDROOT="/"
_cross_configure="--disable-bootstrap --with-sysroot=/usr/$CTARGET"
maintainer=""
pkgname=gcc6-aarch64
pkgver=9999
_pkgver=6.4.0
pkgrel=12
pkgrel=15
pkgdesc="Stage2 cross-compiler for aarch64"
url="http://gcc.gnu.org"
# loongarch64: not relevant
# ppc64le: not relevant
# riscv64: doesn't build
arch="x86_64"
license="GPL LGPL"
license="GPL-2.0-or-later AND LGPL-2.1-or-later"
_gccrel=$_pkgver-r$pkgrel
depends="binutils-aarch64 mpc1"
depends="binutils-aarch64 mpc1 so:libc.musl-x86_64.so.1 so:libgcc_s.so.1 so:libgmp.so.10 so:libisl.so.23 so:libmpc.so.3 so:libmpfr.so.6 so:libstdc++.so.6 so:libz.so.1"
makedepends_build="gcc g++ bison flex texinfo gawk zip gmp-dev mpfr-dev mpc1-dev zlib-dev"
makedepends_host="linux-headers gmp-dev mpfr-dev mpc1-dev isl-dev zlib-dev musl-dev-aarch64 binutils-aarch64"
options="!strip"
options="!strip !tracedeps toolchain"
# We only care about C, so we can compile old Linux kernels
LANG_CXX=false
@@ -67,11 +70,23 @@ if [ "$CHOST" != "$CTARGET" ]; then
LIBATOMIC=false
LIBITM=false
# format-sec: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100431
CFLAGS="${CFLAGS/-Werror=format-security/}"
CXXFLAGS="${CXXFLAGS/-Werror=format-security/}"
CPPFLAGS="${CPPFLAGS/-Werror=format-security/}"
# fstack-clash-protection is not known to GCC 6
CFLAGS="${CFLAGS/-fstack-clash-protection/}"
CXXFLAGS="${CXXFLAGS/-fstack-clash-protection/}"
CPPFLAGS="${CPPFLAGS/-fstack-clash-protection/}"
# and neither is -fno-plt
CFLAGS="${CFLAGS/-fno-plt/}"
CXXFLAGS="${CXXFLAGS/-fno-plt/}"
CPPFLAGS="${CPPFLAGS/-fno-plt/}"
# reset target flags (should be set in crosscreate abuild)
# fixup flags. seems gcc treats CPPFLAGS as global without
# _FOR_xxx variants. wrap it in CFLAGS and CXXFLAGS.
export CFLAGS="$CPPFLAGS $CFLAGS"
export CXXFLAGS="$CPPFLAGS $CXXFLAGS"
export CFLAGS="$CPPFLAGS -g0 $CFLAGS"
export CXXFLAGS="$CPPFLAGS -g0 $CXXFLAGS"
unset CPPFLAGS
export CFLAGS_FOR_TARGET=" "
export CXXFLAGS_FOR_TARGET=" "
@@ -79,10 +94,23 @@ if [ "$CHOST" != "$CTARGET" ]; then
STRIP_FOR_TARGET="$CTARGET-strip"
elif [ "$CBUILD" != "$CHOST" ]; then
# format-sec: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100431
CFLAGS="${CFLAGS/-Werror=format-security/}"
CXXFLAGS="${CXXFLAGS/-Werror=format-security/}"
CPPFLAGS="${CPPFLAGS/-Werror=format-security/}"
# fstack-clash-protection is not known to GCC 6
CFLAGS="${CFLAGS/-fstack-clash-protection/}"
CXXFLAGS="${CXXFLAGS/-fstack-clash-protection/}"
CPPFLAGS="${CPPFLAGS/-fstack-clash-protection/}"
# and neither is -fno-plt
CFLAGS="${CFLAGS/-fno-plt/}"
CXXFLAGS="${CXXFLAGS/-fno-plt/}"
CPPFLAGS="${CPPFLAGS/-fno-plt/}"
# reset target flags (should be set in crosscreate abuild)
# fixup flags. seems gcc treats CPPFLAGS as global without
# _FOR_xxx variants. wrap it in CFLAGS and CXXFLAGS.
export CFLAGS="$CPPFLAGS $CFLAGS"
export CXXFLAGS="$CPPFLAGS $CXXFLAGS"
export CFLAGS="$CPPFLAGS -g0 $CFLAGS"
export CXXFLAGS="$CPPFLAGS -g0 $CXXFLAGS"
unset CPPFLAGS
# reset flags and cc for build
@@ -106,6 +134,31 @@ elif [ "$CBUILD" != "$CHOST" ]; then
else
STRIP_FOR_TARGET=${CROSS_COMPILE}strip
_builddir="$srcdir/build"
# format-sec: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100431
CFLAGS="${CFLAGS/-Werror=format-security/}"
CXXFLAGS="${CXXFLAGS/-Werror=format-security/}"
CPPFLAGS="${CPPFLAGS/-Werror=format-security/}"
# fstack-clash-protection is not known to GCC 6
CFLAGS="${CFLAGS/-fstack-clash-protection/}"
CXXFLAGS="${CXXFLAGS/-fstack-clash-protection/}"
CPPFLAGS="${CPPFLAGS/-fstack-clash-protection/}"
# and neither is -fno-plt
CFLAGS="${CFLAGS/-fno-plt/}"
CXXFLAGS="${CXXFLAGS/-fno-plt/}"
CPPFLAGS="${CPPFLAGS/-fno-plt/}"
# reset target flags (should be set in crosscreate abuild)
# fixup flags. seems gcc treats CPPFLAGS as global without
# _FOR_xxx variants. wrap it in CFLAGS and CXXFLAGS.
export CFLAGS="$CPPFLAGS -g0 $CFLAGS -O2"
export CXXFLAGS="$CPPFLAGS -g0 $CXXFLAGS -O2"
unset CPPFLAGS
# https://gcc.gnu.org/install/build.html
export CFLAGS_FOR_TARGET="$CFLAGS"
export CXXFLAGS_FOR_TARGET="$CXXFLAGS"
export LDFLAGS_FOR_TARGET="$LDFLAGS"
export BOOT_CFLAGS="$CFLAGS"
export BOOT_LDFLAGS="$LDFLAGS"
fi
# Go needs {set,make,swap}context, unimplemented in musl
@@ -166,7 +219,6 @@ source="http://gcc.gnu.org/pub/gcc/releases/gcc-${_pkgbase:-$_pkgver}/gcc-${_pkg
001_all_default-ssp-strong.patch
002_all_default-relro.patch
003_all_default-fortify-source.patch
005_all_default-as-needed.patch
011_all_default-warn-format-security.patch
012_all_default-warn-trampolines.patch
@@ -184,7 +236,6 @@ source="http://gcc.gnu.org/pub/gcc/releases/gcc-${_pkgbase:-$_pkgver}/gcc-${_pkg
207-static-pie.patch
libgcc-always-build-gcceh.a.patch
gcc-4.9-musl-fortify.patch
gcc-6.1-musl-libssp.patch
boehm-gc-musl.patch
gcc-pure64.patch
@@ -208,6 +259,8 @@ source="http://gcc.gnu.org/pub/gcc/releases/gcc-${_pkgbase:-$_pkgver}/gcc-${_pkg
gcc-pure64-mips.patch
ada-mips64.patch
gcc-6.4-isl.patch
0001-i386-Move-struct-ix86_frame-to-machine_function.patch
0002-i386-Use-reference-of-struct-ix86_frame-to-avoid-cop.patch
0003-i386-Use-const-reference-of-struct-ix86_frame-to-avo.patch
@@ -446,7 +499,6 @@ sha512sums="
28f8c6fdbcb19e950b1d0bafb3bcc7a8cba87bc673aa6027cece116599cdee80f0cf5e95a1440544890239f5c754e8a93ab46d9daedd937faef445d7ea33b226 ecj-4.9.jar
a1335adc2fbee98e36c4437ff2587771b98ed4180726779020f65039498235626a411cdb0100dbd20cd19d12f0d94f9a21af179ff624676c28cead9d60598b5d 001_all_default-ssp-strong.patch
e36e95b81489163abd6fe9d58f7867bdca43e61143afacbfb17f4698c0b16ec5fd0061d8fab7b2ae615540bebd721c2e2227f80401b4e7fc253da9da62e6b513 002_all_default-relro.patch
f86466c62b8291fac46f9c250c7ad8fa5ab7b1cce2504442fd07ddc4543665b317ae28951f244e39aba29aeaf3fff252ec4f6a147aa16adb2b7aed747dd89188 003_all_default-fortify-source.patch
51282fea54c7e616367bbeb2479ba13fec6f24eb47bd04e2071907b3b36273b2ff24676f46ef8d22f241c8ab4857307861eee076eab66797c3a50a8ecaa1809a 005_all_default-as-needed.patch
3398386dd1e079d6545dd9799adc799c6b80e3984fac6899d0e1a7ee21b66d0c7e53cddf17a65d590c883db750f9f79aaedd857355a8b9f7fb9476c906237919 011_all_default-warn-format-security.patch
9adb0d2b9b67dd957df6c609b8714c7c078efb52cd88770905c37c67827be8fc83d1125037b9c29d77db21ce78756aa2bb0bacdb0b98d869ac126da76a298e21 012_all_default-warn-trampolines.patch
@@ -462,7 +514,6 @@ fc0de05b36613b732a0222ea005c90653c6a40d6761b6894af2419272f4e74875f37e26af33a9b99
98473bcaa77903a223ca9b0d2087c0921b287a2816d308cc32c8fe009e6cbf5dd1ae7fba27794ab8d9c09e117fe534413d91a464d1218474fc123ce0adfdc2c1 205-nopie.patch
3287d5b443bea8ec64132bcabe869c738ae98ea8f1a86df1c5d18c927f8816edbfcefeefc47792dbbb2bcacf50319af00e01b3735d34525913b64350770ad453 207-static-pie.patch
d08d7ead2de0429e5c9055d5b029ec2be9a8c821d22cecaf9b51f633652c493333f98963d9267fa2fa63850c50ae5eefd5f59e5910ec10d20044dac082182a8b libgcc-always-build-gcceh.a.patch
600fe5098dc54edaa9808fd5717af9dec058953f9ad37d49cfba1db4f7e9a7a8f02019342f75157fc575946fa693259422184de27b7ecc8386d9f3ecc0f7cc5d gcc-4.9-musl-fortify.patch
dbe0ee917fc7668571722364ab7c806731e3a31e8bfa30b4941b28b16b877d2a32b4a3897ef533399a28f82d43cac9b28e92de0493f0e779046db56584e07fa4 gcc-6.1-musl-libssp.patch
bda845a6aa1854d2c883910b115f79ccfa93dfc2b5eac69a3a236d83eb34cadc140731d616ffc24698c7abc8878dd15f231bcc5119f1860e575a120b311706c7 boehm-gc-musl.patch
fa62556719449caec6b2b434355bfbcaa5ae55ffe017b3e1f827f66a2aae21b79c571ee7a4ce723ea69169bc3a6447e73650991a200cc372adf2f102677518d7 gcc-pure64.patch
@@ -482,6 +533,7 @@ f4ef08454e28c8732db69115e4998ec153399e8d229dd27f923dbdcf57b68128a65640d026cc7f45
34a818d5be67eb1f34e44a80b83c28a9b9c17d37fc9fac639f490d6bb5b53ebe3318140d09c236a17d7c98f5a7792ae3d6cefccda8067a5e942d6305b9d1f87c fix-linux-header-use-in-libgcc.patch
86be3338cc9c33089608bc4c5e3b7918c4e500a345c338f361b18c342119a6ed69af5495d72950de7106d760f003528b46ad14795e805f8a3331e206dcb234e3 gcc-pure64-mips.patch
508f3bca214d88531d739d761d07affc953689b1540905c73420b34c246e1e6b72588cf89f0e1462752633f8ddc88da8c0238be2a1b6e1c213829cecee7924cf ada-mips64.patch
80084d4f5984ea1c62f813c3c1fe7ce033d41d6cd5e6df3b10c649c0bbc2544ad0a58e7076fa28bf71d691df0211b07fc11eb0d5c9f462ef28eed4c3fbeeb9ee gcc-6.4-isl.patch
7912964bf3a985e9f870250d6e068f715582a4fb04270849d697a50e6aad0cf50df3d483ff80a0eb777d9940fd85526dd8d0b85da9bc71a5f2fbc07616263866 0001-i386-Move-struct-ix86_frame-to-machine_function.patch
baa27a4b912d8e27cd65a556b09cf45289a0e00e86dae3925f2923d1f3752080e80d80e159c996ef4156c4df1dfc3069114810a846672170ef3ae461ae0ab7e1 0002-i386-Use-reference-of-struct-ix86_frame-to-avoid-cop.patch
6701d15000bdd7c4c98a8fece8c814f5e4e73603eecf84fe4dc5ac10f79b3074afba7c2cc9e51d08b2abade1c34cb0c944c08ead7a85db94e97158c752fd1aac 0003-i386-Use-const-reference-of-struct-ix86_frame-to-avo.patch
@@ -1,11 +0,0 @@
--- gcc-4.9.2/gcc/config/linux.h.orig 2015-03-09 13:27:13.289736710 +0000
+++ gcc-4.9.2/gcc/config/linux.h 2015-03-09 13:29:32.295625046 +0000
@@ -146,6 +146,8 @@
#ifdef NATIVE_SYSTEM_HEADER_DIR
#define INCLUDE_DEFAULTS_MUSL_NATIVE \
+ { NATIVE_SYSTEM_HEADER_DIR "/fortify", 0, 0, 0, 1, 2 }, \
+ { NATIVE_SYSTEM_HEADER_DIR "/fortify", 0, 0, 0, 1, 0 }, \
{ NATIVE_SYSTEM_HEADER_DIR, 0, 0, 0, 1, 2 }, \
{ NATIVE_SYSTEM_HEADER_DIR, 0, 0, 0, 1, 0 },
#else
+251
View File
@@ -0,0 +1,251 @@
From cc46a51d4ff8bc1c42b7e6ae472494733bed5c49 Mon Sep 17 00:00:00 2001
From: Richard Biener <rguenther@suse.de>
Date: Thu, 16 Feb 2017 07:53:53 +0000
Subject: [PATCH] graphite.h: Do not include isl/isl_val_gmp.h, instead include
isl/isl_val.h.
2017-02-16 Richard Biener <rguenther@suse.de>
* graphite.h: Do not include isl/isl_val_gmp.h, instead include
isl/isl_val.h.
* graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
(gcc_expression_from_isl_expr_int): Use generic isl_val interface.
* graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
(isl_val_int_from_wi): New function.
(extract_affine_gmp): Rename to ...
(extract_affine_wi): ... this, take a widest_int.
(extract_affine_int): Just wrap extract_affine_wi.
(add_param_constraints): Use isl_val_int_from_wi.
(add_loop_constraints): Likewise, and extract_affine_wi.
From-SVN: r245501
---
gcc/ChangeLog | 14 ++++++++
gcc/graphite-isl-ast-to-gimple.c | 30 +++++------------
gcc/graphite-sese-to-poly.c | 58 ++++++++++++++------------------
gcc/graphite.h | 2 +-
4 files changed, 50 insertions(+), 54 deletions(-)
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 24d9c1589f456..5fc6142eaa03f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,17 @@
+2017-02-16 Richard Biener <rguenther@suse.de>
+
+ * graphite.h: Do not include isl/isl_val_gmp.h, instead include
+ isl/isl_val.h.
+ * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
+ (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
+ * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
+ (isl_val_int_from_wi): New function.
+ (extract_affine_gmp): Rename to ...
+ (extract_affine_wi): ... this, take a widest_int.
+ (extract_affine_int): Just wrap extract_affine_wi.
+ (add_param_constraints): Use isl_val_int_from_wi.
+ (add_loop_constraints): Likewise, and extract_affine_wi.
+
2017-02-15 Jeff Law <law@redhat.com>
PR middle-end/79521
diff --git a/gcc/graphite-isl-ast-to-gimple.c b/gcc/graphite-isl-ast-to-gimple.c
index dbdae7a7c155d..ec5fb73d9b2bc 100644
--- a/gcc/graphite-isl-ast-to-gimple.c
+++ b/gcc/graphite-isl-ast-to-gimple.c
@@ -73,22 +73,6 @@ struct ast_build_info
bool is_parallelizable;
};
-/* Converts a GMP constant VAL to a tree and returns it. */
-
-static tree
-gmp_cst_to_tree (tree type, mpz_t val)
-{
- tree t = type ? type : integer_type_node;
- mpz_t tmp;
-
- mpz_init (tmp);
- mpz_set (tmp, val);
- wide_int wi = wi::from_mpz (t, tmp, true);
- mpz_clear (tmp);
-
- return wide_int_to_tree (t, wi);
-}
-
/* Verifies properties that GRAPHITE should maintain during translation. */
static inline void
@@ -325,16 +309,20 @@ gcc_expression_from_isl_expr_int (tree type, __isl_take isl_ast_expr *expr)
{
gcc_assert (isl_ast_expr_get_type (expr) == isl_ast_expr_int);
isl_val *val = isl_ast_expr_get_val (expr);
- mpz_t val_mpz_t;
- mpz_init (val_mpz_t);
+ size_t n = isl_val_n_abs_num_chunks (val, sizeof (HOST_WIDE_INT));
+ HOST_WIDE_INT *chunks = XALLOCAVEC (HOST_WIDE_INT, n);
tree res;
- if (isl_val_get_num_gmp (val, val_mpz_t) == -1)
+ if (isl_val_get_abs_num_chunks (val, sizeof (HOST_WIDE_INT), chunks) == -1)
res = NULL_TREE;
else
- res = gmp_cst_to_tree (type, val_mpz_t);
+ {
+ widest_int wi = widest_int::from_array (chunks, n, true);
+ if (isl_val_is_neg (val))
+ wi = -wi;
+ res = wide_int_to_tree (type, wi);
+ }
isl_val_free (val);
isl_ast_expr_free (expr);
- mpz_clear (val_mpz_t);
return res;
}
diff --git a/gcc/graphite-sese-to-poly.c b/gcc/graphite-sese-to-poly.c
index ede96e5a3c299..8ff9a22e12916 100644
--- a/gcc/graphite-sese-to-poly.c
+++ b/gcc/graphite-sese-to-poly.c
@@ -55,7 +55,6 @@ along with GCC; see the file COPYING3. If not see
#include <isl/constraint.h>
#include <isl/aff.h>
#include <isl/val.h>
-#include <isl/val_gmp.h>
#include "graphite.h"
@@ -154,16 +153,32 @@ extract_affine_name (scop_p s, tree e, __isl_take isl_space *space)
return isl_pw_aff_alloc (dom, aff);
}
+/* Convert WI to a isl_val with CTX. */
+
+static __isl_give isl_val *
+isl_val_int_from_wi (isl_ctx *ctx, const widest_int &wi)
+{
+ if (wi::neg_p (wi, SIGNED))
+ {
+ widest_int mwi = -wi;
+ return isl_val_neg (isl_val_int_from_chunks (ctx, mwi.get_len (),
+ sizeof (HOST_WIDE_INT),
+ mwi.get_val ()));
+ }
+ return isl_val_int_from_chunks (ctx, wi.get_len (), sizeof (HOST_WIDE_INT),
+ wi.get_val ());
+}
+
/* Extract an affine expression from the gmp constant G. */
static isl_pw_aff *
-extract_affine_gmp (mpz_t g, __isl_take isl_space *space)
+extract_affine_wi (const widest_int &g, __isl_take isl_space *space)
{
isl_local_space *ls = isl_local_space_from_space (isl_space_copy (space));
isl_aff *aff = isl_aff_zero_on_domain (ls);
isl_set *dom = isl_set_universe (space);
isl_ctx *ct = isl_aff_get_ctx (aff);
- isl_val *v = isl_val_int_from_gmp (ct, g);
+ isl_val *v = isl_val_int_from_wi (ct, g);
aff = isl_aff_add_constant_val (aff, v);
return isl_pw_aff_alloc (dom, aff);
@@ -174,13 +189,7 @@ extract_affine_gmp (mpz_t g, __isl_take isl_space *space)
static isl_pw_aff *
extract_affine_int (tree e, __isl_take isl_space *space)
{
- mpz_t g;
-
- mpz_init (g);
- tree_int_to_gmp (e, g);
- isl_pw_aff *res = extract_affine_gmp (g, space);
- mpz_clear (g);
-
+ isl_pw_aff *res = extract_affine_wi (wi::to_widest (e), space);
return res;
}
@@ -411,15 +420,11 @@ add_param_constraints (scop_p scop, graphite_dim_t p)
{
isl_space *space = isl_set_get_space (scop->param_context);
isl_constraint *c;
- mpz_t g;
isl_val *v;
c = isl_inequality_alloc (isl_local_space_from_space (space));
- mpz_init (g);
- tree_int_to_gmp (lb, g);
- v = isl_val_int_from_gmp (scop->isl_context, g);
+ v = isl_val_int_from_wi (scop->isl_context, wi::to_widest (lb));
v = isl_val_neg (v);
- mpz_clear (g);
c = isl_constraint_set_constant_val (c, v);
c = isl_constraint_set_coefficient_si (c, isl_dim_param, p, 1);
@@ -431,15 +436,11 @@ add_param_constraints (scop_p scop, graphite_dim_t p)
{
isl_space *space = isl_set_get_space (scop->param_context);
isl_constraint *c;
- mpz_t g;
isl_val *v;
c = isl_inequality_alloc (isl_local_space_from_space (space));
- mpz_init (g);
- tree_int_to_gmp (ub, g);
- v = isl_val_int_from_gmp (scop->isl_context, g);
- mpz_clear (g);
+ v = isl_val_int_from_wi (scop->isl_context, wi::to_widest (ub));
c = isl_constraint_set_constant_val (c, v);
c = isl_constraint_set_coefficient_si (c, isl_dim_param, p, -1);
@@ -773,11 +774,8 @@ add_loop_constraints (scop_p scop, __isl_take isl_set *domain, loop_p loop,
isl_local_space *ls = isl_local_space_from_space (space);
isl_constraint *c = isl_inequality_alloc (ls);
c = isl_constraint_set_coefficient_si (c, isl_dim_set, loop_index, -1);
- mpz_t g;
- mpz_init (g);
- tree_int_to_gmp (nb_iters, g);
- isl_val *v = isl_val_int_from_gmp (scop->isl_context, g);
- mpz_clear (g);
+ isl_val *v
+ = isl_val_int_from_wi (scop->isl_context, wi::to_widest (nb_iters));
c = isl_constraint_set_constant_val (c, v);
return isl_set_add_constraint (domain, c);
}
@@ -817,12 +815,9 @@ add_loop_constraints (scop_p scop, __isl_take isl_set *domain, loop_p loop,
/* NIT is an upper bound to NB_ITERS: "NIT >= NB_ITERS", although we
do not know whether the loop executes at least once. */
- mpz_t g;
- mpz_init (g);
- wi::to_mpz (nit, g, SIGNED);
- mpz_sub_ui (g, g, 1);
+ --nit;
- isl_pw_aff *approx = extract_affine_gmp (g, isl_space_copy (space));
+ isl_pw_aff *approx = extract_affine_wi (nit, isl_space_copy (space));
isl_set *x = isl_pw_aff_ge_set (approx, aff_nb_iters);
x = isl_set_project_out (x, isl_dim_set, 0,
isl_set_dim (x, isl_dim_set));
@@ -831,8 +826,7 @@ add_loop_constraints (scop_p scop, __isl_take isl_set *domain, loop_p loop,
ls = isl_local_space_from_space (space);
c = isl_inequality_alloc (ls);
c = isl_constraint_set_coefficient_si (c, isl_dim_set, loop_index, -1);
- isl_val *v = isl_val_int_from_gmp (scop->isl_context, g);
- mpz_clear (g);
+ isl_val *v = isl_val_int_from_wi (scop->isl_context, nit);
c = isl_constraint_set_constant_val (c, v);
if (dump_file)
diff --git a/gcc/graphite.h b/gcc/graphite.h
index 5103c614ff140..d22c4f2693f52 100644
--- a/gcc/graphite.h
+++ b/gcc/graphite.h
@@ -25,7 +25,7 @@ along with GCC; see the file COPYING3. If not see
#include "sese.h"
#include <isl/options.h>
#include <isl/ctx.h>
-#include <isl/val_gmp.h>
+#include <isl/val.h>
#include <isl/set.h>
#include <isl/union_set.h>
#include <isl/map.h>
@@ -1,40 +0,0 @@
# DP: Turn on -D_FORTIFY_SOURCE=2 by default for C, C++, ObjC, ObjC++,
# DP: if the optimization level is > 0
---
gcc/doc/invoke.texi | 6 ++++++
gcc/c-family/c-cppbuiltin.c | 3 +
2 files changed, 9 insertions(+), 0 deletions(-)
Index: b/gcc/doc/invoke.texi
===================================================================
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -7840,6 +7840,12 @@ also turns on the following optimization
Please note the warning under @option{-fgcse} about
invoking @option{-O2} on programs that use computed gotos.
+NOTE: In Alpine Linux, @option{-D_FORTIFY_SOURCE=2} is
+set by default, and is activated when @option{-O} is set to 2 or higher.
+This enables additional compile-time and run-time checks for several libc
+functions. To disable, specify either @option{-U_FORTIFY_SOURCE} or
+@option{-D_FORTIFY_SOURCE=0}.
+
@item -O3
@opindex O3
Optimize yet more. @option{-O3} turns on all optimizations specified
Index: b/gcc/c-family/c-cppbuiltin.c
===================================================================
--- a/gcc/c-family/c-cppbuiltin.c
+++ b/gcc/c-family/c-cppbuiltin.c
@@ -1176,6 +1176,10 @@ c_cpp_builtins (cpp_reader *pfile)
builtin_define_with_value ("__REGISTER_PREFIX__", REGISTER_PREFIX, 0);
builtin_define_with_value ("__USER_LABEL_PREFIX__", user_label_prefix, 0);
+ /* Fortify Source enabled by default for optimization levels > 0 */
+ if (optimize)
+ builtin_define_with_int_value ("_FORTIFY_SOURCE", 2);
+
/* Misc. */
if (flag_gnu89_inline)
cpp_define (pfile, "__GNUC_GNU_INLINE__");
+65 -13
View File
@@ -1,7 +1,6 @@
# Automatically generated aport, do not edit!
# Generator: pmbootstrap aportgen gcc6-armhf
# Based on: main/gcc6 (from postmarketOS)
CTARGET_ARCH=armhf
CTARGET="$(arch_to_hostspec ${CTARGET_ARCH})"
LANG_D=false
@@ -23,19 +22,23 @@ CBUILDROOT="/"
_cross_configure="--disable-bootstrap --with-sysroot=/usr/$CTARGET"
maintainer=""
pkgname=gcc6-armhf
pkgver=9999
_pkgver=6.4.0
pkgrel=12
pkgrel=15
pkgdesc="Stage2 cross-compiler for armhf"
url="http://gcc.gnu.org"
# loongarch64: not relevant
# ppc64le: not relevant
# riscv64: doesn't build
arch="x86_64"
license="GPL LGPL"
license="GPL-2.0-or-later AND LGPL-2.1-or-later"
_gccrel=$_pkgver-r$pkgrel
depends="binutils-armhf mpc1"
depends="binutils-armhf mpc1 so:libc.musl-x86_64.so.1 so:libgcc_s.so.1 so:libgmp.so.10 so:libisl.so.23 so:libmpc.so.3 so:libmpfr.so.6 so:libstdc++.so.6 so:libz.so.1"
makedepends_build="gcc g++ bison flex texinfo gawk zip gmp-dev mpfr-dev mpc1-dev zlib-dev"
makedepends_host="linux-headers gmp-dev mpfr-dev mpc1-dev isl-dev zlib-dev musl-dev-armhf binutils-armhf"
options="!strip"
options="!strip !tracedeps toolchain"
# We only care about C, so we can compile old Linux kernels
LANG_CXX=false
@@ -67,11 +70,23 @@ if [ "$CHOST" != "$CTARGET" ]; then
LIBATOMIC=false
LIBITM=false
# format-sec: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100431
CFLAGS="${CFLAGS/-Werror=format-security/}"
CXXFLAGS="${CXXFLAGS/-Werror=format-security/}"
CPPFLAGS="${CPPFLAGS/-Werror=format-security/}"
# fstack-clash-protection is not known to GCC 6
CFLAGS="${CFLAGS/-fstack-clash-protection/}"
CXXFLAGS="${CXXFLAGS/-fstack-clash-protection/}"
CPPFLAGS="${CPPFLAGS/-fstack-clash-protection/}"
# and neither is -fno-plt
CFLAGS="${CFLAGS/-fno-plt/}"
CXXFLAGS="${CXXFLAGS/-fno-plt/}"
CPPFLAGS="${CPPFLAGS/-fno-plt/}"
# reset target flags (should be set in crosscreate abuild)
# fixup flags. seems gcc treats CPPFLAGS as global without
# _FOR_xxx variants. wrap it in CFLAGS and CXXFLAGS.
export CFLAGS="$CPPFLAGS $CFLAGS"
export CXXFLAGS="$CPPFLAGS $CXXFLAGS"
export CFLAGS="$CPPFLAGS -g0 $CFLAGS"
export CXXFLAGS="$CPPFLAGS -g0 $CXXFLAGS"
unset CPPFLAGS
export CFLAGS_FOR_TARGET=" "
export CXXFLAGS_FOR_TARGET=" "
@@ -79,10 +94,23 @@ if [ "$CHOST" != "$CTARGET" ]; then
STRIP_FOR_TARGET="$CTARGET-strip"
elif [ "$CBUILD" != "$CHOST" ]; then
# format-sec: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100431
CFLAGS="${CFLAGS/-Werror=format-security/}"
CXXFLAGS="${CXXFLAGS/-Werror=format-security/}"
CPPFLAGS="${CPPFLAGS/-Werror=format-security/}"
# fstack-clash-protection is not known to GCC 6
CFLAGS="${CFLAGS/-fstack-clash-protection/}"
CXXFLAGS="${CXXFLAGS/-fstack-clash-protection/}"
CPPFLAGS="${CPPFLAGS/-fstack-clash-protection/}"
# and neither is -fno-plt
CFLAGS="${CFLAGS/-fno-plt/}"
CXXFLAGS="${CXXFLAGS/-fno-plt/}"
CPPFLAGS="${CPPFLAGS/-fno-plt/}"
# reset target flags (should be set in crosscreate abuild)
# fixup flags. seems gcc treats CPPFLAGS as global without
# _FOR_xxx variants. wrap it in CFLAGS and CXXFLAGS.
export CFLAGS="$CPPFLAGS $CFLAGS"
export CXXFLAGS="$CPPFLAGS $CXXFLAGS"
export CFLAGS="$CPPFLAGS -g0 $CFLAGS"
export CXXFLAGS="$CPPFLAGS -g0 $CXXFLAGS"
unset CPPFLAGS
# reset flags and cc for build
@@ -106,6 +134,31 @@ elif [ "$CBUILD" != "$CHOST" ]; then
else
STRIP_FOR_TARGET=${CROSS_COMPILE}strip
_builddir="$srcdir/build"
# format-sec: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100431
CFLAGS="${CFLAGS/-Werror=format-security/}"
CXXFLAGS="${CXXFLAGS/-Werror=format-security/}"
CPPFLAGS="${CPPFLAGS/-Werror=format-security/}"
# fstack-clash-protection is not known to GCC 6
CFLAGS="${CFLAGS/-fstack-clash-protection/}"
CXXFLAGS="${CXXFLAGS/-fstack-clash-protection/}"
CPPFLAGS="${CPPFLAGS/-fstack-clash-protection/}"
# and neither is -fno-plt
CFLAGS="${CFLAGS/-fno-plt/}"
CXXFLAGS="${CXXFLAGS/-fno-plt/}"
CPPFLAGS="${CPPFLAGS/-fno-plt/}"
# reset target flags (should be set in crosscreate abuild)
# fixup flags. seems gcc treats CPPFLAGS as global without
# _FOR_xxx variants. wrap it in CFLAGS and CXXFLAGS.
export CFLAGS="$CPPFLAGS -g0 $CFLAGS -O2"
export CXXFLAGS="$CPPFLAGS -g0 $CXXFLAGS -O2"
unset CPPFLAGS
# https://gcc.gnu.org/install/build.html
export CFLAGS_FOR_TARGET="$CFLAGS"
export CXXFLAGS_FOR_TARGET="$CXXFLAGS"
export LDFLAGS_FOR_TARGET="$LDFLAGS"
export BOOT_CFLAGS="$CFLAGS"
export BOOT_LDFLAGS="$LDFLAGS"
fi
# Go needs {set,make,swap}context, unimplemented in musl
@@ -166,7 +219,6 @@ source="http://gcc.gnu.org/pub/gcc/releases/gcc-${_pkgbase:-$_pkgver}/gcc-${_pkg
001_all_default-ssp-strong.patch
002_all_default-relro.patch
003_all_default-fortify-source.patch
005_all_default-as-needed.patch
011_all_default-warn-format-security.patch
012_all_default-warn-trampolines.patch
@@ -184,7 +236,6 @@ source="http://gcc.gnu.org/pub/gcc/releases/gcc-${_pkgbase:-$_pkgver}/gcc-${_pkg
207-static-pie.patch
libgcc-always-build-gcceh.a.patch
gcc-4.9-musl-fortify.patch
gcc-6.1-musl-libssp.patch
boehm-gc-musl.patch
gcc-pure64.patch
@@ -208,6 +259,8 @@ source="http://gcc.gnu.org/pub/gcc/releases/gcc-${_pkgbase:-$_pkgver}/gcc-${_pkg
gcc-pure64-mips.patch
ada-mips64.patch
gcc-6.4-isl.patch
0001-i386-Move-struct-ix86_frame-to-machine_function.patch
0002-i386-Use-reference-of-struct-ix86_frame-to-avoid-cop.patch
0003-i386-Use-const-reference-of-struct-ix86_frame-to-avo.patch
@@ -446,7 +499,6 @@ sha512sums="
28f8c6fdbcb19e950b1d0bafb3bcc7a8cba87bc673aa6027cece116599cdee80f0cf5e95a1440544890239f5c754e8a93ab46d9daedd937faef445d7ea33b226 ecj-4.9.jar
a1335adc2fbee98e36c4437ff2587771b98ed4180726779020f65039498235626a411cdb0100dbd20cd19d12f0d94f9a21af179ff624676c28cead9d60598b5d 001_all_default-ssp-strong.patch
e36e95b81489163abd6fe9d58f7867bdca43e61143afacbfb17f4698c0b16ec5fd0061d8fab7b2ae615540bebd721c2e2227f80401b4e7fc253da9da62e6b513 002_all_default-relro.patch
f86466c62b8291fac46f9c250c7ad8fa5ab7b1cce2504442fd07ddc4543665b317ae28951f244e39aba29aeaf3fff252ec4f6a147aa16adb2b7aed747dd89188 003_all_default-fortify-source.patch
51282fea54c7e616367bbeb2479ba13fec6f24eb47bd04e2071907b3b36273b2ff24676f46ef8d22f241c8ab4857307861eee076eab66797c3a50a8ecaa1809a 005_all_default-as-needed.patch
3398386dd1e079d6545dd9799adc799c6b80e3984fac6899d0e1a7ee21b66d0c7e53cddf17a65d590c883db750f9f79aaedd857355a8b9f7fb9476c906237919 011_all_default-warn-format-security.patch
9adb0d2b9b67dd957df6c609b8714c7c078efb52cd88770905c37c67827be8fc83d1125037b9c29d77db21ce78756aa2bb0bacdb0b98d869ac126da76a298e21 012_all_default-warn-trampolines.patch
@@ -462,7 +514,6 @@ fc0de05b36613b732a0222ea005c90653c6a40d6761b6894af2419272f4e74875f37e26af33a9b99
98473bcaa77903a223ca9b0d2087c0921b287a2816d308cc32c8fe009e6cbf5dd1ae7fba27794ab8d9c09e117fe534413d91a464d1218474fc123ce0adfdc2c1 205-nopie.patch
3287d5b443bea8ec64132bcabe869c738ae98ea8f1a86df1c5d18c927f8816edbfcefeefc47792dbbb2bcacf50319af00e01b3735d34525913b64350770ad453 207-static-pie.patch
d08d7ead2de0429e5c9055d5b029ec2be9a8c821d22cecaf9b51f633652c493333f98963d9267fa2fa63850c50ae5eefd5f59e5910ec10d20044dac082182a8b libgcc-always-build-gcceh.a.patch
600fe5098dc54edaa9808fd5717af9dec058953f9ad37d49cfba1db4f7e9a7a8f02019342f75157fc575946fa693259422184de27b7ecc8386d9f3ecc0f7cc5d gcc-4.9-musl-fortify.patch
dbe0ee917fc7668571722364ab7c806731e3a31e8bfa30b4941b28b16b877d2a32b4a3897ef533399a28f82d43cac9b28e92de0493f0e779046db56584e07fa4 gcc-6.1-musl-libssp.patch
bda845a6aa1854d2c883910b115f79ccfa93dfc2b5eac69a3a236d83eb34cadc140731d616ffc24698c7abc8878dd15f231bcc5119f1860e575a120b311706c7 boehm-gc-musl.patch
fa62556719449caec6b2b434355bfbcaa5ae55ffe017b3e1f827f66a2aae21b79c571ee7a4ce723ea69169bc3a6447e73650991a200cc372adf2f102677518d7 gcc-pure64.patch
@@ -482,6 +533,7 @@ f4ef08454e28c8732db69115e4998ec153399e8d229dd27f923dbdcf57b68128a65640d026cc7f45
34a818d5be67eb1f34e44a80b83c28a9b9c17d37fc9fac639f490d6bb5b53ebe3318140d09c236a17d7c98f5a7792ae3d6cefccda8067a5e942d6305b9d1f87c fix-linux-header-use-in-libgcc.patch
86be3338cc9c33089608bc4c5e3b7918c4e500a345c338f361b18c342119a6ed69af5495d72950de7106d760f003528b46ad14795e805f8a3331e206dcb234e3 gcc-pure64-mips.patch
508f3bca214d88531d739d761d07affc953689b1540905c73420b34c246e1e6b72588cf89f0e1462752633f8ddc88da8c0238be2a1b6e1c213829cecee7924cf ada-mips64.patch
80084d4f5984ea1c62f813c3c1fe7ce033d41d6cd5e6df3b10c649c0bbc2544ad0a58e7076fa28bf71d691df0211b07fc11eb0d5c9f462ef28eed4c3fbeeb9ee gcc-6.4-isl.patch
7912964bf3a985e9f870250d6e068f715582a4fb04270849d697a50e6aad0cf50df3d483ff80a0eb777d9940fd85526dd8d0b85da9bc71a5f2fbc07616263866 0001-i386-Move-struct-ix86_frame-to-machine_function.patch
baa27a4b912d8e27cd65a556b09cf45289a0e00e86dae3925f2923d1f3752080e80d80e159c996ef4156c4df1dfc3069114810a846672170ef3ae461ae0ab7e1 0002-i386-Use-reference-of-struct-ix86_frame-to-avoid-cop.patch
6701d15000bdd7c4c98a8fece8c814f5e4e73603eecf84fe4dc5ac10f79b3074afba7c2cc9e51d08b2abade1c34cb0c944c08ead7a85db94e97158c752fd1aac 0003-i386-Use-const-reference-of-struct-ix86_frame-to-avo.patch
@@ -1,11 +0,0 @@
--- gcc-4.9.2/gcc/config/linux.h.orig 2015-03-09 13:27:13.289736710 +0000
+++ gcc-4.9.2/gcc/config/linux.h 2015-03-09 13:29:32.295625046 +0000
@@ -146,6 +146,8 @@
#ifdef NATIVE_SYSTEM_HEADER_DIR
#define INCLUDE_DEFAULTS_MUSL_NATIVE \
+ { NATIVE_SYSTEM_HEADER_DIR "/fortify", 0, 0, 0, 1, 2 }, \
+ { NATIVE_SYSTEM_HEADER_DIR "/fortify", 0, 0, 0, 1, 0 }, \
{ NATIVE_SYSTEM_HEADER_DIR, 0, 0, 0, 1, 2 }, \
{ NATIVE_SYSTEM_HEADER_DIR, 0, 0, 0, 1, 0 },
#else
+251
View File
@@ -0,0 +1,251 @@
From cc46a51d4ff8bc1c42b7e6ae472494733bed5c49 Mon Sep 17 00:00:00 2001
From: Richard Biener <rguenther@suse.de>
Date: Thu, 16 Feb 2017 07:53:53 +0000
Subject: [PATCH] graphite.h: Do not include isl/isl_val_gmp.h, instead include
isl/isl_val.h.
2017-02-16 Richard Biener <rguenther@suse.de>
* graphite.h: Do not include isl/isl_val_gmp.h, instead include
isl/isl_val.h.
* graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
(gcc_expression_from_isl_expr_int): Use generic isl_val interface.
* graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
(isl_val_int_from_wi): New function.
(extract_affine_gmp): Rename to ...
(extract_affine_wi): ... this, take a widest_int.
(extract_affine_int): Just wrap extract_affine_wi.
(add_param_constraints): Use isl_val_int_from_wi.
(add_loop_constraints): Likewise, and extract_affine_wi.
From-SVN: r245501
---
gcc/ChangeLog | 14 ++++++++
gcc/graphite-isl-ast-to-gimple.c | 30 +++++------------
gcc/graphite-sese-to-poly.c | 58 ++++++++++++++------------------
gcc/graphite.h | 2 +-
4 files changed, 50 insertions(+), 54 deletions(-)
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 24d9c1589f456..5fc6142eaa03f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,17 @@
+2017-02-16 Richard Biener <rguenther@suse.de>
+
+ * graphite.h: Do not include isl/isl_val_gmp.h, instead include
+ isl/isl_val.h.
+ * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
+ (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
+ * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
+ (isl_val_int_from_wi): New function.
+ (extract_affine_gmp): Rename to ...
+ (extract_affine_wi): ... this, take a widest_int.
+ (extract_affine_int): Just wrap extract_affine_wi.
+ (add_param_constraints): Use isl_val_int_from_wi.
+ (add_loop_constraints): Likewise, and extract_affine_wi.
+
2017-02-15 Jeff Law <law@redhat.com>
PR middle-end/79521
diff --git a/gcc/graphite-isl-ast-to-gimple.c b/gcc/graphite-isl-ast-to-gimple.c
index dbdae7a7c155d..ec5fb73d9b2bc 100644
--- a/gcc/graphite-isl-ast-to-gimple.c
+++ b/gcc/graphite-isl-ast-to-gimple.c
@@ -73,22 +73,6 @@ struct ast_build_info
bool is_parallelizable;
};
-/* Converts a GMP constant VAL to a tree and returns it. */
-
-static tree
-gmp_cst_to_tree (tree type, mpz_t val)
-{
- tree t = type ? type : integer_type_node;
- mpz_t tmp;
-
- mpz_init (tmp);
- mpz_set (tmp, val);
- wide_int wi = wi::from_mpz (t, tmp, true);
- mpz_clear (tmp);
-
- return wide_int_to_tree (t, wi);
-}
-
/* Verifies properties that GRAPHITE should maintain during translation. */
static inline void
@@ -325,16 +309,20 @@ gcc_expression_from_isl_expr_int (tree type, __isl_take isl_ast_expr *expr)
{
gcc_assert (isl_ast_expr_get_type (expr) == isl_ast_expr_int);
isl_val *val = isl_ast_expr_get_val (expr);
- mpz_t val_mpz_t;
- mpz_init (val_mpz_t);
+ size_t n = isl_val_n_abs_num_chunks (val, sizeof (HOST_WIDE_INT));
+ HOST_WIDE_INT *chunks = XALLOCAVEC (HOST_WIDE_INT, n);
tree res;
- if (isl_val_get_num_gmp (val, val_mpz_t) == -1)
+ if (isl_val_get_abs_num_chunks (val, sizeof (HOST_WIDE_INT), chunks) == -1)
res = NULL_TREE;
else
- res = gmp_cst_to_tree (type, val_mpz_t);
+ {
+ widest_int wi = widest_int::from_array (chunks, n, true);
+ if (isl_val_is_neg (val))
+ wi = -wi;
+ res = wide_int_to_tree (type, wi);
+ }
isl_val_free (val);
isl_ast_expr_free (expr);
- mpz_clear (val_mpz_t);
return res;
}
diff --git a/gcc/graphite-sese-to-poly.c b/gcc/graphite-sese-to-poly.c
index ede96e5a3c299..8ff9a22e12916 100644
--- a/gcc/graphite-sese-to-poly.c
+++ b/gcc/graphite-sese-to-poly.c
@@ -55,7 +55,6 @@ along with GCC; see the file COPYING3. If not see
#include <isl/constraint.h>
#include <isl/aff.h>
#include <isl/val.h>
-#include <isl/val_gmp.h>
#include "graphite.h"
@@ -154,16 +153,32 @@ extract_affine_name (scop_p s, tree e, __isl_take isl_space *space)
return isl_pw_aff_alloc (dom, aff);
}
+/* Convert WI to a isl_val with CTX. */
+
+static __isl_give isl_val *
+isl_val_int_from_wi (isl_ctx *ctx, const widest_int &wi)
+{
+ if (wi::neg_p (wi, SIGNED))
+ {
+ widest_int mwi = -wi;
+ return isl_val_neg (isl_val_int_from_chunks (ctx, mwi.get_len (),
+ sizeof (HOST_WIDE_INT),
+ mwi.get_val ()));
+ }
+ return isl_val_int_from_chunks (ctx, wi.get_len (), sizeof (HOST_WIDE_INT),
+ wi.get_val ());
+}
+
/* Extract an affine expression from the gmp constant G. */
static isl_pw_aff *
-extract_affine_gmp (mpz_t g, __isl_take isl_space *space)
+extract_affine_wi (const widest_int &g, __isl_take isl_space *space)
{
isl_local_space *ls = isl_local_space_from_space (isl_space_copy (space));
isl_aff *aff = isl_aff_zero_on_domain (ls);
isl_set *dom = isl_set_universe (space);
isl_ctx *ct = isl_aff_get_ctx (aff);
- isl_val *v = isl_val_int_from_gmp (ct, g);
+ isl_val *v = isl_val_int_from_wi (ct, g);
aff = isl_aff_add_constant_val (aff, v);
return isl_pw_aff_alloc (dom, aff);
@@ -174,13 +189,7 @@ extract_affine_gmp (mpz_t g, __isl_take isl_space *space)
static isl_pw_aff *
extract_affine_int (tree e, __isl_take isl_space *space)
{
- mpz_t g;
-
- mpz_init (g);
- tree_int_to_gmp (e, g);
- isl_pw_aff *res = extract_affine_gmp (g, space);
- mpz_clear (g);
-
+ isl_pw_aff *res = extract_affine_wi (wi::to_widest (e), space);
return res;
}
@@ -411,15 +420,11 @@ add_param_constraints (scop_p scop, graphite_dim_t p)
{
isl_space *space = isl_set_get_space (scop->param_context);
isl_constraint *c;
- mpz_t g;
isl_val *v;
c = isl_inequality_alloc (isl_local_space_from_space (space));
- mpz_init (g);
- tree_int_to_gmp (lb, g);
- v = isl_val_int_from_gmp (scop->isl_context, g);
+ v = isl_val_int_from_wi (scop->isl_context, wi::to_widest (lb));
v = isl_val_neg (v);
- mpz_clear (g);
c = isl_constraint_set_constant_val (c, v);
c = isl_constraint_set_coefficient_si (c, isl_dim_param, p, 1);
@@ -431,15 +436,11 @@ add_param_constraints (scop_p scop, graphite_dim_t p)
{
isl_space *space = isl_set_get_space (scop->param_context);
isl_constraint *c;
- mpz_t g;
isl_val *v;
c = isl_inequality_alloc (isl_local_space_from_space (space));
- mpz_init (g);
- tree_int_to_gmp (ub, g);
- v = isl_val_int_from_gmp (scop->isl_context, g);
- mpz_clear (g);
+ v = isl_val_int_from_wi (scop->isl_context, wi::to_widest (ub));
c = isl_constraint_set_constant_val (c, v);
c = isl_constraint_set_coefficient_si (c, isl_dim_param, p, -1);
@@ -773,11 +774,8 @@ add_loop_constraints (scop_p scop, __isl_take isl_set *domain, loop_p loop,
isl_local_space *ls = isl_local_space_from_space (space);
isl_constraint *c = isl_inequality_alloc (ls);
c = isl_constraint_set_coefficient_si (c, isl_dim_set, loop_index, -1);
- mpz_t g;
- mpz_init (g);
- tree_int_to_gmp (nb_iters, g);
- isl_val *v = isl_val_int_from_gmp (scop->isl_context, g);
- mpz_clear (g);
+ isl_val *v
+ = isl_val_int_from_wi (scop->isl_context, wi::to_widest (nb_iters));
c = isl_constraint_set_constant_val (c, v);
return isl_set_add_constraint (domain, c);
}
@@ -817,12 +815,9 @@ add_loop_constraints (scop_p scop, __isl_take isl_set *domain, loop_p loop,
/* NIT is an upper bound to NB_ITERS: "NIT >= NB_ITERS", although we
do not know whether the loop executes at least once. */
- mpz_t g;
- mpz_init (g);
- wi::to_mpz (nit, g, SIGNED);
- mpz_sub_ui (g, g, 1);
+ --nit;
- isl_pw_aff *approx = extract_affine_gmp (g, isl_space_copy (space));
+ isl_pw_aff *approx = extract_affine_wi (nit, isl_space_copy (space));
isl_set *x = isl_pw_aff_ge_set (approx, aff_nb_iters);
x = isl_set_project_out (x, isl_dim_set, 0,
isl_set_dim (x, isl_dim_set));
@@ -831,8 +826,7 @@ add_loop_constraints (scop_p scop, __isl_take isl_set *domain, loop_p loop,
ls = isl_local_space_from_space (space);
c = isl_inequality_alloc (ls);
c = isl_constraint_set_coefficient_si (c, isl_dim_set, loop_index, -1);
- isl_val *v = isl_val_int_from_gmp (scop->isl_context, g);
- mpz_clear (g);
+ isl_val *v = isl_val_int_from_wi (scop->isl_context, nit);
c = isl_constraint_set_constant_val (c, v);
if (dump_file)
diff --git a/gcc/graphite.h b/gcc/graphite.h
index 5103c614ff140..d22c4f2693f52 100644
--- a/gcc/graphite.h
+++ b/gcc/graphite.h
@@ -25,7 +25,7 @@ along with GCC; see the file COPYING3. If not see
#include "sese.h"
#include <isl/options.h>
#include <isl/ctx.h>
-#include <isl/val_gmp.h>
+#include <isl/val.h>
#include <isl/set.h>
#include <isl/union_set.h>
#include <isl/map.h>
@@ -1,40 +0,0 @@
# DP: Turn on -D_FORTIFY_SOURCE=2 by default for C, C++, ObjC, ObjC++,
# DP: if the optimization level is > 0
---
gcc/doc/invoke.texi | 6 ++++++
gcc/c-family/c-cppbuiltin.c | 3 +
2 files changed, 9 insertions(+), 0 deletions(-)
Index: b/gcc/doc/invoke.texi
===================================================================
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -7840,6 +7840,12 @@ also turns on the following optimization
Please note the warning under @option{-fgcse} about
invoking @option{-O2} on programs that use computed gotos.
+NOTE: In Alpine Linux, @option{-D_FORTIFY_SOURCE=2} is
+set by default, and is activated when @option{-O} is set to 2 or higher.
+This enables additional compile-time and run-time checks for several libc
+functions. To disable, specify either @option{-U_FORTIFY_SOURCE} or
+@option{-D_FORTIFY_SOURCE=0}.
+
@item -O3
@opindex O3
Optimize yet more. @option{-O3} turns on all optimizations specified
Index: b/gcc/c-family/c-cppbuiltin.c
===================================================================
--- a/gcc/c-family/c-cppbuiltin.c
+++ b/gcc/c-family/c-cppbuiltin.c
@@ -1176,6 +1176,10 @@ c_cpp_builtins (cpp_reader *pfile)
builtin_define_with_value ("__REGISTER_PREFIX__", REGISTER_PREFIX, 0);
builtin_define_with_value ("__USER_LABEL_PREFIX__", user_label_prefix, 0);
+ /* Fortify Source enabled by default for optimization levels > 0 */
+ if (optimize)
+ builtin_define_with_int_value ("_FORTIFY_SOURCE", 2);
+
/* Misc. */
if (flag_gnu89_inline)
cpp_define (pfile, "__GNUC_GNU_INLINE__");
+65 -13
View File
@@ -1,7 +1,6 @@
# Automatically generated aport, do not edit!
# Generator: pmbootstrap aportgen gcc6-armv7
# Based on: main/gcc6 (from postmarketOS)
CTARGET_ARCH=armv7
CTARGET="$(arch_to_hostspec ${CTARGET_ARCH})"
LANG_D=false
@@ -23,19 +22,23 @@ CBUILDROOT="/"
_cross_configure="--disable-bootstrap --with-sysroot=/usr/$CTARGET"
maintainer=""
pkgname=gcc6-armv7
pkgver=9999
_pkgver=6.4.0
pkgrel=12
pkgrel=15
pkgdesc="Stage2 cross-compiler for armv7"
url="http://gcc.gnu.org"
# loongarch64: not relevant
# ppc64le: not relevant
# riscv64: doesn't build
arch="x86_64"
license="GPL LGPL"
license="GPL-2.0-or-later AND LGPL-2.1-or-later"
_gccrel=$_pkgver-r$pkgrel
depends="binutils-armv7 mpc1"
depends="binutils-armv7 mpc1 so:libc.musl-x86_64.so.1 so:libgcc_s.so.1 so:libgmp.so.10 so:libisl.so.23 so:libmpc.so.3 so:libmpfr.so.6 so:libstdc++.so.6 so:libz.so.1"
makedepends_build="gcc g++ bison flex texinfo gawk zip gmp-dev mpfr-dev mpc1-dev zlib-dev"
makedepends_host="linux-headers gmp-dev mpfr-dev mpc1-dev isl-dev zlib-dev musl-dev-armv7 binutils-armv7"
options="!strip"
options="!strip !tracedeps toolchain"
# We only care about C, so we can compile old Linux kernels
LANG_CXX=false
@@ -67,11 +70,23 @@ if [ "$CHOST" != "$CTARGET" ]; then
LIBATOMIC=false
LIBITM=false
# format-sec: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100431
CFLAGS="${CFLAGS/-Werror=format-security/}"
CXXFLAGS="${CXXFLAGS/-Werror=format-security/}"
CPPFLAGS="${CPPFLAGS/-Werror=format-security/}"
# fstack-clash-protection is not known to GCC 6
CFLAGS="${CFLAGS/-fstack-clash-protection/}"
CXXFLAGS="${CXXFLAGS/-fstack-clash-protection/}"
CPPFLAGS="${CPPFLAGS/-fstack-clash-protection/}"
# and neither is -fno-plt
CFLAGS="${CFLAGS/-fno-plt/}"
CXXFLAGS="${CXXFLAGS/-fno-plt/}"
CPPFLAGS="${CPPFLAGS/-fno-plt/}"
# reset target flags (should be set in crosscreate abuild)
# fixup flags. seems gcc treats CPPFLAGS as global without
# _FOR_xxx variants. wrap it in CFLAGS and CXXFLAGS.
export CFLAGS="$CPPFLAGS $CFLAGS"
export CXXFLAGS="$CPPFLAGS $CXXFLAGS"
export CFLAGS="$CPPFLAGS -g0 $CFLAGS"
export CXXFLAGS="$CPPFLAGS -g0 $CXXFLAGS"
unset CPPFLAGS
export CFLAGS_FOR_TARGET=" "
export CXXFLAGS_FOR_TARGET=" "
@@ -79,10 +94,23 @@ if [ "$CHOST" != "$CTARGET" ]; then
STRIP_FOR_TARGET="$CTARGET-strip"
elif [ "$CBUILD" != "$CHOST" ]; then
# format-sec: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100431
CFLAGS="${CFLAGS/-Werror=format-security/}"
CXXFLAGS="${CXXFLAGS/-Werror=format-security/}"
CPPFLAGS="${CPPFLAGS/-Werror=format-security/}"
# fstack-clash-protection is not known to GCC 6
CFLAGS="${CFLAGS/-fstack-clash-protection/}"
CXXFLAGS="${CXXFLAGS/-fstack-clash-protection/}"
CPPFLAGS="${CPPFLAGS/-fstack-clash-protection/}"
# and neither is -fno-plt
CFLAGS="${CFLAGS/-fno-plt/}"
CXXFLAGS="${CXXFLAGS/-fno-plt/}"
CPPFLAGS="${CPPFLAGS/-fno-plt/}"
# reset target flags (should be set in crosscreate abuild)
# fixup flags. seems gcc treats CPPFLAGS as global without
# _FOR_xxx variants. wrap it in CFLAGS and CXXFLAGS.
export CFLAGS="$CPPFLAGS $CFLAGS"
export CXXFLAGS="$CPPFLAGS $CXXFLAGS"
export CFLAGS="$CPPFLAGS -g0 $CFLAGS"
export CXXFLAGS="$CPPFLAGS -g0 $CXXFLAGS"
unset CPPFLAGS
# reset flags and cc for build
@@ -106,6 +134,31 @@ elif [ "$CBUILD" != "$CHOST" ]; then
else
STRIP_FOR_TARGET=${CROSS_COMPILE}strip
_builddir="$srcdir/build"
# format-sec: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100431
CFLAGS="${CFLAGS/-Werror=format-security/}"
CXXFLAGS="${CXXFLAGS/-Werror=format-security/}"
CPPFLAGS="${CPPFLAGS/-Werror=format-security/}"
# fstack-clash-protection is not known to GCC 6
CFLAGS="${CFLAGS/-fstack-clash-protection/}"
CXXFLAGS="${CXXFLAGS/-fstack-clash-protection/}"
CPPFLAGS="${CPPFLAGS/-fstack-clash-protection/}"
# and neither is -fno-plt
CFLAGS="${CFLAGS/-fno-plt/}"
CXXFLAGS="${CXXFLAGS/-fno-plt/}"
CPPFLAGS="${CPPFLAGS/-fno-plt/}"
# reset target flags (should be set in crosscreate abuild)
# fixup flags. seems gcc treats CPPFLAGS as global without
# _FOR_xxx variants. wrap it in CFLAGS and CXXFLAGS.
export CFLAGS="$CPPFLAGS -g0 $CFLAGS -O2"
export CXXFLAGS="$CPPFLAGS -g0 $CXXFLAGS -O2"
unset CPPFLAGS
# https://gcc.gnu.org/install/build.html
export CFLAGS_FOR_TARGET="$CFLAGS"
export CXXFLAGS_FOR_TARGET="$CXXFLAGS"
export LDFLAGS_FOR_TARGET="$LDFLAGS"
export BOOT_CFLAGS="$CFLAGS"
export BOOT_LDFLAGS="$LDFLAGS"
fi
# Go needs {set,make,swap}context, unimplemented in musl
@@ -166,7 +219,6 @@ source="http://gcc.gnu.org/pub/gcc/releases/gcc-${_pkgbase:-$_pkgver}/gcc-${_pkg
001_all_default-ssp-strong.patch
002_all_default-relro.patch
003_all_default-fortify-source.patch
005_all_default-as-needed.patch
011_all_default-warn-format-security.patch
012_all_default-warn-trampolines.patch
@@ -184,7 +236,6 @@ source="http://gcc.gnu.org/pub/gcc/releases/gcc-${_pkgbase:-$_pkgver}/gcc-${_pkg
207-static-pie.patch
libgcc-always-build-gcceh.a.patch
gcc-4.9-musl-fortify.patch
gcc-6.1-musl-libssp.patch
boehm-gc-musl.patch
gcc-pure64.patch
@@ -208,6 +259,8 @@ source="http://gcc.gnu.org/pub/gcc/releases/gcc-${_pkgbase:-$_pkgver}/gcc-${_pkg
gcc-pure64-mips.patch
ada-mips64.patch
gcc-6.4-isl.patch
0001-i386-Move-struct-ix86_frame-to-machine_function.patch
0002-i386-Use-reference-of-struct-ix86_frame-to-avoid-cop.patch
0003-i386-Use-const-reference-of-struct-ix86_frame-to-avo.patch
@@ -446,7 +499,6 @@ sha512sums="
28f8c6fdbcb19e950b1d0bafb3bcc7a8cba87bc673aa6027cece116599cdee80f0cf5e95a1440544890239f5c754e8a93ab46d9daedd937faef445d7ea33b226 ecj-4.9.jar
a1335adc2fbee98e36c4437ff2587771b98ed4180726779020f65039498235626a411cdb0100dbd20cd19d12f0d94f9a21af179ff624676c28cead9d60598b5d 001_all_default-ssp-strong.patch
e36e95b81489163abd6fe9d58f7867bdca43e61143afacbfb17f4698c0b16ec5fd0061d8fab7b2ae615540bebd721c2e2227f80401b4e7fc253da9da62e6b513 002_all_default-relro.patch
f86466c62b8291fac46f9c250c7ad8fa5ab7b1cce2504442fd07ddc4543665b317ae28951f244e39aba29aeaf3fff252ec4f6a147aa16adb2b7aed747dd89188 003_all_default-fortify-source.patch
51282fea54c7e616367bbeb2479ba13fec6f24eb47bd04e2071907b3b36273b2ff24676f46ef8d22f241c8ab4857307861eee076eab66797c3a50a8ecaa1809a 005_all_default-as-needed.patch
3398386dd1e079d6545dd9799adc799c6b80e3984fac6899d0e1a7ee21b66d0c7e53cddf17a65d590c883db750f9f79aaedd857355a8b9f7fb9476c906237919 011_all_default-warn-format-security.patch
9adb0d2b9b67dd957df6c609b8714c7c078efb52cd88770905c37c67827be8fc83d1125037b9c29d77db21ce78756aa2bb0bacdb0b98d869ac126da76a298e21 012_all_default-warn-trampolines.patch
@@ -462,7 +514,6 @@ fc0de05b36613b732a0222ea005c90653c6a40d6761b6894af2419272f4e74875f37e26af33a9b99
98473bcaa77903a223ca9b0d2087c0921b287a2816d308cc32c8fe009e6cbf5dd1ae7fba27794ab8d9c09e117fe534413d91a464d1218474fc123ce0adfdc2c1 205-nopie.patch
3287d5b443bea8ec64132bcabe869c738ae98ea8f1a86df1c5d18c927f8816edbfcefeefc47792dbbb2bcacf50319af00e01b3735d34525913b64350770ad453 207-static-pie.patch
d08d7ead2de0429e5c9055d5b029ec2be9a8c821d22cecaf9b51f633652c493333f98963d9267fa2fa63850c50ae5eefd5f59e5910ec10d20044dac082182a8b libgcc-always-build-gcceh.a.patch
600fe5098dc54edaa9808fd5717af9dec058953f9ad37d49cfba1db4f7e9a7a8f02019342f75157fc575946fa693259422184de27b7ecc8386d9f3ecc0f7cc5d gcc-4.9-musl-fortify.patch
dbe0ee917fc7668571722364ab7c806731e3a31e8bfa30b4941b28b16b877d2a32b4a3897ef533399a28f82d43cac9b28e92de0493f0e779046db56584e07fa4 gcc-6.1-musl-libssp.patch
bda845a6aa1854d2c883910b115f79ccfa93dfc2b5eac69a3a236d83eb34cadc140731d616ffc24698c7abc8878dd15f231bcc5119f1860e575a120b311706c7 boehm-gc-musl.patch
fa62556719449caec6b2b434355bfbcaa5ae55ffe017b3e1f827f66a2aae21b79c571ee7a4ce723ea69169bc3a6447e73650991a200cc372adf2f102677518d7 gcc-pure64.patch
@@ -482,6 +533,7 @@ f4ef08454e28c8732db69115e4998ec153399e8d229dd27f923dbdcf57b68128a65640d026cc7f45
34a818d5be67eb1f34e44a80b83c28a9b9c17d37fc9fac639f490d6bb5b53ebe3318140d09c236a17d7c98f5a7792ae3d6cefccda8067a5e942d6305b9d1f87c fix-linux-header-use-in-libgcc.patch
86be3338cc9c33089608bc4c5e3b7918c4e500a345c338f361b18c342119a6ed69af5495d72950de7106d760f003528b46ad14795e805f8a3331e206dcb234e3 gcc-pure64-mips.patch
508f3bca214d88531d739d761d07affc953689b1540905c73420b34c246e1e6b72588cf89f0e1462752633f8ddc88da8c0238be2a1b6e1c213829cecee7924cf ada-mips64.patch
80084d4f5984ea1c62f813c3c1fe7ce033d41d6cd5e6df3b10c649c0bbc2544ad0a58e7076fa28bf71d691df0211b07fc11eb0d5c9f462ef28eed4c3fbeeb9ee gcc-6.4-isl.patch
7912964bf3a985e9f870250d6e068f715582a4fb04270849d697a50e6aad0cf50df3d483ff80a0eb777d9940fd85526dd8d0b85da9bc71a5f2fbc07616263866 0001-i386-Move-struct-ix86_frame-to-machine_function.patch
baa27a4b912d8e27cd65a556b09cf45289a0e00e86dae3925f2923d1f3752080e80d80e159c996ef4156c4df1dfc3069114810a846672170ef3ae461ae0ab7e1 0002-i386-Use-reference-of-struct-ix86_frame-to-avoid-cop.patch
6701d15000bdd7c4c98a8fece8c814f5e4e73603eecf84fe4dc5ac10f79b3074afba7c2cc9e51d08b2abade1c34cb0c944c08ead7a85db94e97158c752fd1aac 0003-i386-Use-const-reference-of-struct-ix86_frame-to-avo.patch
@@ -1,11 +0,0 @@
--- gcc-4.9.2/gcc/config/linux.h.orig 2015-03-09 13:27:13.289736710 +0000
+++ gcc-4.9.2/gcc/config/linux.h 2015-03-09 13:29:32.295625046 +0000
@@ -146,6 +146,8 @@
#ifdef NATIVE_SYSTEM_HEADER_DIR
#define INCLUDE_DEFAULTS_MUSL_NATIVE \
+ { NATIVE_SYSTEM_HEADER_DIR "/fortify", 0, 0, 0, 1, 2 }, \
+ { NATIVE_SYSTEM_HEADER_DIR "/fortify", 0, 0, 0, 1, 0 }, \
{ NATIVE_SYSTEM_HEADER_DIR, 0, 0, 0, 1, 2 }, \
{ NATIVE_SYSTEM_HEADER_DIR, 0, 0, 0, 1, 0 },
#else
+251
View File
@@ -0,0 +1,251 @@
From cc46a51d4ff8bc1c42b7e6ae472494733bed5c49 Mon Sep 17 00:00:00 2001
From: Richard Biener <rguenther@suse.de>
Date: Thu, 16 Feb 2017 07:53:53 +0000
Subject: [PATCH] graphite.h: Do not include isl/isl_val_gmp.h, instead include
isl/isl_val.h.
2017-02-16 Richard Biener <rguenther@suse.de>
* graphite.h: Do not include isl/isl_val_gmp.h, instead include
isl/isl_val.h.
* graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
(gcc_expression_from_isl_expr_int): Use generic isl_val interface.
* graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
(isl_val_int_from_wi): New function.
(extract_affine_gmp): Rename to ...
(extract_affine_wi): ... this, take a widest_int.
(extract_affine_int): Just wrap extract_affine_wi.
(add_param_constraints): Use isl_val_int_from_wi.
(add_loop_constraints): Likewise, and extract_affine_wi.
From-SVN: r245501
---
gcc/ChangeLog | 14 ++++++++
gcc/graphite-isl-ast-to-gimple.c | 30 +++++------------
gcc/graphite-sese-to-poly.c | 58 ++++++++++++++------------------
gcc/graphite.h | 2 +-
4 files changed, 50 insertions(+), 54 deletions(-)
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 24d9c1589f456..5fc6142eaa03f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,17 @@
+2017-02-16 Richard Biener <rguenther@suse.de>
+
+ * graphite.h: Do not include isl/isl_val_gmp.h, instead include
+ isl/isl_val.h.
+ * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
+ (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
+ * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
+ (isl_val_int_from_wi): New function.
+ (extract_affine_gmp): Rename to ...
+ (extract_affine_wi): ... this, take a widest_int.
+ (extract_affine_int): Just wrap extract_affine_wi.
+ (add_param_constraints): Use isl_val_int_from_wi.
+ (add_loop_constraints): Likewise, and extract_affine_wi.
+
2017-02-15 Jeff Law <law@redhat.com>
PR middle-end/79521
diff --git a/gcc/graphite-isl-ast-to-gimple.c b/gcc/graphite-isl-ast-to-gimple.c
index dbdae7a7c155d..ec5fb73d9b2bc 100644
--- a/gcc/graphite-isl-ast-to-gimple.c
+++ b/gcc/graphite-isl-ast-to-gimple.c
@@ -73,22 +73,6 @@ struct ast_build_info
bool is_parallelizable;
};
-/* Converts a GMP constant VAL to a tree and returns it. */
-
-static tree
-gmp_cst_to_tree (tree type, mpz_t val)
-{
- tree t = type ? type : integer_type_node;
- mpz_t tmp;
-
- mpz_init (tmp);
- mpz_set (tmp, val);
- wide_int wi = wi::from_mpz (t, tmp, true);
- mpz_clear (tmp);
-
- return wide_int_to_tree (t, wi);
-}
-
/* Verifies properties that GRAPHITE should maintain during translation. */
static inline void
@@ -325,16 +309,20 @@ gcc_expression_from_isl_expr_int (tree type, __isl_take isl_ast_expr *expr)
{
gcc_assert (isl_ast_expr_get_type (expr) == isl_ast_expr_int);
isl_val *val = isl_ast_expr_get_val (expr);
- mpz_t val_mpz_t;
- mpz_init (val_mpz_t);
+ size_t n = isl_val_n_abs_num_chunks (val, sizeof (HOST_WIDE_INT));
+ HOST_WIDE_INT *chunks = XALLOCAVEC (HOST_WIDE_INT, n);
tree res;
- if (isl_val_get_num_gmp (val, val_mpz_t) == -1)
+ if (isl_val_get_abs_num_chunks (val, sizeof (HOST_WIDE_INT), chunks) == -1)
res = NULL_TREE;
else
- res = gmp_cst_to_tree (type, val_mpz_t);
+ {
+ widest_int wi = widest_int::from_array (chunks, n, true);
+ if (isl_val_is_neg (val))
+ wi = -wi;
+ res = wide_int_to_tree (type, wi);
+ }
isl_val_free (val);
isl_ast_expr_free (expr);
- mpz_clear (val_mpz_t);
return res;
}
diff --git a/gcc/graphite-sese-to-poly.c b/gcc/graphite-sese-to-poly.c
index ede96e5a3c299..8ff9a22e12916 100644
--- a/gcc/graphite-sese-to-poly.c
+++ b/gcc/graphite-sese-to-poly.c
@@ -55,7 +55,6 @@ along with GCC; see the file COPYING3. If not see
#include <isl/constraint.h>
#include <isl/aff.h>
#include <isl/val.h>
-#include <isl/val_gmp.h>
#include "graphite.h"
@@ -154,16 +153,32 @@ extract_affine_name (scop_p s, tree e, __isl_take isl_space *space)
return isl_pw_aff_alloc (dom, aff);
}
+/* Convert WI to a isl_val with CTX. */
+
+static __isl_give isl_val *
+isl_val_int_from_wi (isl_ctx *ctx, const widest_int &wi)
+{
+ if (wi::neg_p (wi, SIGNED))
+ {
+ widest_int mwi = -wi;
+ return isl_val_neg (isl_val_int_from_chunks (ctx, mwi.get_len (),
+ sizeof (HOST_WIDE_INT),
+ mwi.get_val ()));
+ }
+ return isl_val_int_from_chunks (ctx, wi.get_len (), sizeof (HOST_WIDE_INT),
+ wi.get_val ());
+}
+
/* Extract an affine expression from the gmp constant G. */
static isl_pw_aff *
-extract_affine_gmp (mpz_t g, __isl_take isl_space *space)
+extract_affine_wi (const widest_int &g, __isl_take isl_space *space)
{
isl_local_space *ls = isl_local_space_from_space (isl_space_copy (space));
isl_aff *aff = isl_aff_zero_on_domain (ls);
isl_set *dom = isl_set_universe (space);
isl_ctx *ct = isl_aff_get_ctx (aff);
- isl_val *v = isl_val_int_from_gmp (ct, g);
+ isl_val *v = isl_val_int_from_wi (ct, g);
aff = isl_aff_add_constant_val (aff, v);
return isl_pw_aff_alloc (dom, aff);
@@ -174,13 +189,7 @@ extract_affine_gmp (mpz_t g, __isl_take isl_space *space)
static isl_pw_aff *
extract_affine_int (tree e, __isl_take isl_space *space)
{
- mpz_t g;
-
- mpz_init (g);
- tree_int_to_gmp (e, g);
- isl_pw_aff *res = extract_affine_gmp (g, space);
- mpz_clear (g);
-
+ isl_pw_aff *res = extract_affine_wi (wi::to_widest (e), space);
return res;
}
@@ -411,15 +420,11 @@ add_param_constraints (scop_p scop, graphite_dim_t p)
{
isl_space *space = isl_set_get_space (scop->param_context);
isl_constraint *c;
- mpz_t g;
isl_val *v;
c = isl_inequality_alloc (isl_local_space_from_space (space));
- mpz_init (g);
- tree_int_to_gmp (lb, g);
- v = isl_val_int_from_gmp (scop->isl_context, g);
+ v = isl_val_int_from_wi (scop->isl_context, wi::to_widest (lb));
v = isl_val_neg (v);
- mpz_clear (g);
c = isl_constraint_set_constant_val (c, v);
c = isl_constraint_set_coefficient_si (c, isl_dim_param, p, 1);
@@ -431,15 +436,11 @@ add_param_constraints (scop_p scop, graphite_dim_t p)
{
isl_space *space = isl_set_get_space (scop->param_context);
isl_constraint *c;
- mpz_t g;
isl_val *v;
c = isl_inequality_alloc (isl_local_space_from_space (space));
- mpz_init (g);
- tree_int_to_gmp (ub, g);
- v = isl_val_int_from_gmp (scop->isl_context, g);
- mpz_clear (g);
+ v = isl_val_int_from_wi (scop->isl_context, wi::to_widest (ub));
c = isl_constraint_set_constant_val (c, v);
c = isl_constraint_set_coefficient_si (c, isl_dim_param, p, -1);
@@ -773,11 +774,8 @@ add_loop_constraints (scop_p scop, __isl_take isl_set *domain, loop_p loop,
isl_local_space *ls = isl_local_space_from_space (space);
isl_constraint *c = isl_inequality_alloc (ls);
c = isl_constraint_set_coefficient_si (c, isl_dim_set, loop_index, -1);
- mpz_t g;
- mpz_init (g);
- tree_int_to_gmp (nb_iters, g);
- isl_val *v = isl_val_int_from_gmp (scop->isl_context, g);
- mpz_clear (g);
+ isl_val *v
+ = isl_val_int_from_wi (scop->isl_context, wi::to_widest (nb_iters));
c = isl_constraint_set_constant_val (c, v);
return isl_set_add_constraint (domain, c);
}
@@ -817,12 +815,9 @@ add_loop_constraints (scop_p scop, __isl_take isl_set *domain, loop_p loop,
/* NIT is an upper bound to NB_ITERS: "NIT >= NB_ITERS", although we
do not know whether the loop executes at least once. */
- mpz_t g;
- mpz_init (g);
- wi::to_mpz (nit, g, SIGNED);
- mpz_sub_ui (g, g, 1);
+ --nit;
- isl_pw_aff *approx = extract_affine_gmp (g, isl_space_copy (space));
+ isl_pw_aff *approx = extract_affine_wi (nit, isl_space_copy (space));
isl_set *x = isl_pw_aff_ge_set (approx, aff_nb_iters);
x = isl_set_project_out (x, isl_dim_set, 0,
isl_set_dim (x, isl_dim_set));
@@ -831,8 +826,7 @@ add_loop_constraints (scop_p scop, __isl_take isl_set *domain, loop_p loop,
ls = isl_local_space_from_space (space);
c = isl_inequality_alloc (ls);
c = isl_constraint_set_coefficient_si (c, isl_dim_set, loop_index, -1);
- isl_val *v = isl_val_int_from_gmp (scop->isl_context, g);
- mpz_clear (g);
+ isl_val *v = isl_val_int_from_wi (scop->isl_context, nit);
c = isl_constraint_set_constant_val (c, v);
if (dump_file)
diff --git a/gcc/graphite.h b/gcc/graphite.h
index 5103c614ff140..d22c4f2693f52 100644
--- a/gcc/graphite.h
+++ b/gcc/graphite.h
@@ -25,7 +25,7 @@ along with GCC; see the file COPYING3. If not see
#include "sese.h"
#include <isl/options.h>
#include <isl/ctx.h>
-#include <isl/val_gmp.h>
+#include <isl/val.h>
#include <isl/set.h>
#include <isl/union_set.h>
#include <isl/map.h>
+3 -3
View File
@@ -3,8 +3,8 @@
maintainer=""
pkgname=grub-efi-x86
pkgver=2.12
pkgrel=9
pkgver=2.14
pkgrel=0
_arch="x86"
_mirror="http://dl-4.alpinelinux.org/alpine/"
@@ -23,5 +23,5 @@ package() {
}
sha512sums="
ef8dd1fde9db54c71dd5024be62d09bf4f19dbdd2faf9772780373816050f23c594c6eefdc367f5b8cd93e97ae2f10dbd73cf7979377b72deb77acf8a3e37f71 grub-efi-2.12-r9-x86-edge.apk
a092d829a6726702f7c21047c2b3bc27b5ef50ab928f60831a4107659a0ea0d670cc81e0d5b7ed047e06f990bffa9c032633b4f0b15a6920c9fcff37cd39e465 grub-efi-2.14-r0-x86-edge.apk
"
+5 -4
View File
@@ -6,9 +6,10 @@ if [ -z "$(type -t arch_to_hostspec)" ]; then
arch_to_hostspec() { :; }
fi
maintainer=""
pkgname=musl-aarch64
pkgver=1.2.5
pkgrel=21
pkgver=1.2.6
pkgrel=2
arch="x86_64"
subpackages="musl-dev-aarch64:package_dev"
@@ -57,6 +58,6 @@ package_dev() {
}
sha512sums="
dce3b131910f7596f8f1d7c2662805b619a151313c7822cf56a7529b6a8b3baf708bfab649be42d920b173dbd7caf33c667ab120779728b9c271439e1190d4ce musl-1.2.5-r21-aarch64-edge.apk
e635424ca037e3d949f793de68218e43fc25f0633aa27d1c330d96d97a8473643683f37bd545022bcb25c8298b8ed54288cf48ccc9633b6dda849cfa187d1019 musl-dev-1.2.5-r21-aarch64-edge.apk
03134d5e7b840db09a10f1f34254840dd86d69f960f3eb38a0944df06d897cc603a1a82af380f0ee975a10708c51430d77618debc8ae500d1bbef705fd77681b musl-1.2.6-r2-aarch64-edge.apk
d95f9907bd7c0e818ffde40481bf0a8c23ca038e83f260f4ecb583fe164a581c978f76df3623be312400d75e23e2ca4b0742d59855cd908a9d411829ac017de7 musl-dev-1.2.6-r2-aarch64-edge.apk
"
+6 -5
View File
@@ -6,10 +6,11 @@ if [ -z "$(type -t arch_to_hostspec)" ]; then
arch_to_hostspec() { :; }
fi
maintainer=""
pkgname=musl-armhf
pkgver=1.2.5
pkgrel=21
arch="x86_64"
pkgver=1.2.6
pkgrel=2
arch="aarch64 x86_64"
subpackages="musl-dev-armhf:package_dev"
_arch="armhf"
@@ -57,6 +58,6 @@ package_dev() {
}
sha512sums="
b5411d6b4e03c1c8767906733d091e3438b5ca61959395e5de969a311c131d460052d6ad0c776740bce51a57ea7956ceb11e76355ddc9cc7b045804dfea9927e musl-1.2.5-r21-armhf-edge.apk
cb52d3a273cfe102f1c782412d0fa5cb24d735527c99e6702aa456d04655bb09f2939c8c64db86c7e256579cc4179c5fbf1f56b6461596a5e298494c4464c35d musl-dev-1.2.5-r21-armhf-edge.apk
0f2a24ee0f23612adfb578ccda1b9dccd24a37f78c90d1ba655cdcf0e094dd95f4ec34288c87f98804714cb8fc0865bf0fe079c7a1902b39c4d992bb46e10e64 musl-1.2.6-r2-armhf-edge.apk
8b5175848776267bee95be058595e538eaa06cb63522d519b6760920faac40c16fa59a57a6be545c121f1e4d1c7cd2e4b2b8fdded57cbdb7e8585b08ca349d86 musl-dev-1.2.6-r2-armhf-edge.apk
"
+6 -5
View File
@@ -6,10 +6,11 @@ if [ -z "$(type -t arch_to_hostspec)" ]; then
arch_to_hostspec() { :; }
fi
maintainer=""
pkgname=musl-armv7
pkgver=1.2.5
pkgrel=21
arch="x86_64"
pkgver=1.2.6
pkgrel=2
arch="aarch64 x86_64"
subpackages="musl-dev-armv7:package_dev"
_arch="armv7"
@@ -57,6 +58,6 @@ package_dev() {
}
sha512sums="
440fa575b03ca4253d9d25fbe5a59ae3164ba945c012d12224ef829786afa14c654a2ff3868fedbd200bbbadd5789539f6d88def7831ca207e63a1d753021e5e musl-1.2.5-r21-armv7-edge.apk
3b7ce82a7ab3c02cb302614898ca68356ed18512f37f3632b1ef8df44b242b40b528c60c42cc19cb6b31c1e197019bf712713eb3b7998b4efbf96dc2aac29723 musl-dev-1.2.5-r21-armv7-edge.apk
a5847eb6b71a52d8b348e8ef09953bf9df858f3d3a141a75bba8db7525a83b3143e7ead4b00bdddffad0a21af6a9c01e4d4c8bb27aa8d69ce13dceb58eb43309 musl-1.2.6-r2-armv7-edge.apk
01ed9d094bee237e8794678572769ec456709e9f58511be2e301f495518ab82f86ceedc2ad03727fe43925c5e3a5a0f18a1d7b244f57107c3f7593edd14e84c4 musl-dev-1.2.6-r2-armv7-edge.apk
"
+6 -5
View File
@@ -6,10 +6,11 @@ if [ -z "$(type -t arch_to_hostspec)" ]; then
arch_to_hostspec() { :; }
fi
maintainer=""
pkgname=musl-loongarch64
pkgver=1.2.5
pkgrel=21
arch="x86_64"
pkgver=1.2.6
pkgrel=2
arch="aarch64 x86_64"
subpackages="musl-dev-loongarch64:package_dev"
_arch="loongarch64"
@@ -57,6 +58,6 @@ package_dev() {
}
sha512sums="
ec3cafd077ad5d07aadd75fdefadb6bcb625979eec47f2ac4ac675471c4d57c956c563bbcb1a455fe30b72212047cff8a1d7f4e4d143ad681a1f3c71c98614fd musl-1.2.5-r21-loongarch64-edge.apk
6bfff1beebaa45f409e414e3213c1260a98fc6a1345e11f41d23dcc1a7d37380ae21c538e28e72ab1c4ce5370f3e776dad6e827f741358ce85888bf5ab4e027c musl-dev-1.2.5-r21-loongarch64-edge.apk
112265a3a4c20cbc03a67fe23c69338332e127d51d3a4ad137547fcc8554a8878425f74f46765a032ba1c36c2782a1f3dcf3102e7bbb3c93a671fb85eba4e000 musl-1.2.6-r2-loongarch64-edge.apk
45a0953693e6eaa3434e799bc79608dccedfb711cf816ac7dc1bb7ab15ed4a934dfbd0b2ad0b286ac8b8b00f901b99c8e4b06b9f7e50fb69e2d96cc83bbc0304 musl-dev-1.2.6-r2-loongarch64-edge.apk
"
+6 -5
View File
@@ -6,10 +6,11 @@ if [ -z "$(type -t arch_to_hostspec)" ]; then
arch_to_hostspec() { :; }
fi
maintainer=""
pkgname=musl-ppc64le
pkgver=1.2.5
pkgrel=21
arch="x86_64"
pkgver=1.2.6
pkgrel=2
arch="aarch64 x86_64"
subpackages="musl-dev-ppc64le:package_dev"
_arch="ppc64le"
@@ -57,6 +58,6 @@ package_dev() {
}
sha512sums="
0e2720a11cd9c4417c96301d71f97dcc65ebe990e0115628aa30fe95debce12db75a716def86b4326074110c5e515f5f6876691c693c72ae211d641a43ba73cf musl-1.2.5-r21-ppc64le-edge.apk
fcea40a1616b49350f90fb1f0ba99ea8e7cf40544044133553ef4d70f24376d489fa5ff85c15aa4550e4283915eb172c14429ef439a51cd1ec7e08f3a231ce04 musl-dev-1.2.5-r21-ppc64le-edge.apk
fa1484bf04b70b27bf6540d8b3f506a334623a160c7d86dd5c58f418dd751eb641c35a0166b485c8ba1bba57f4e929b277352eae5e55cd740a0b73e741f72cc7 musl-1.2.6-r2-ppc64le-edge.apk
4ea8db19500bcc05e31c1e9c37e43742b150e9218ba585f98b4cde918abd1896431797921f19ff6a82f42d2db245ccfe368ab552c01637d17f19a8ff33db0396 musl-dev-1.2.6-r2-ppc64le-edge.apk
"
+6 -5
View File
@@ -6,10 +6,11 @@ if [ -z "$(type -t arch_to_hostspec)" ]; then
arch_to_hostspec() { :; }
fi
maintainer=""
pkgname=musl-riscv64
pkgver=1.2.5
pkgrel=21
arch="x86_64"
pkgver=1.2.6
pkgrel=2
arch="aarch64 x86_64"
subpackages="musl-dev-riscv64:package_dev"
_arch="riscv64"
@@ -57,6 +58,6 @@ package_dev() {
}
sha512sums="
c3f9b76c99bd9c1426f4f87b1d60405e3b4fc6c93451d08b72338496b4cefae6692ef0b0ab9f09b78317d944289060b38c0a7072737d92b3f75fbb0fd8e81132 musl-1.2.5-r21-riscv64-edge.apk
2b28646a759b54c3b2846499c04df7d9b8195da8892a004cbefb69625bbbb874bbc1748ce3d49738931e1e321ab5d90482b08783d07efe28f55d8d1657d451dd musl-dev-1.2.5-r21-riscv64-edge.apk
3113c288563199b52e9fbb93a34e16eb87bfe4b7e0872ba0349eec1fc532ea8583565f862b82130fcf416fc006ff661afad1bf549e25d688aa6b055287089c39 musl-1.2.6-r2-riscv64-edge.apk
8bf4503998a50581af7965407bd25aa41c2716526e6db7683dfb9cce134d9cf401bdeeafd060fd6e5d83ac52852e745c6eafdd406dd59d8f5eea256445f21a3d musl-dev-1.2.6-r2-riscv64-edge.apk
"
+6 -5
View File
@@ -6,10 +6,11 @@ if [ -z "$(type -t arch_to_hostspec)" ]; then
arch_to_hostspec() { :; }
fi
maintainer=""
pkgname=musl-x86
pkgver=1.2.5
pkgrel=21
arch="x86_64"
pkgver=1.2.6
pkgrel=2
arch="aarch64 x86_64"
subpackages="musl-dev-x86:package_dev"
_arch="x86"
@@ -57,6 +58,6 @@ package_dev() {
}
sha512sums="
6b0da8df450dc4f9b15851a0cdcfc8249f5cc6bedf91ce0d04d6b810b6d2970337345bb8ea83d6b66927be24b88395779b0f660c3511ac2adedbbae76e5c2dc2 musl-1.2.5-r21-x86-edge.apk
771c4002ede113c134bc00586dcafba4004c3860ca715723d680c5d8916d42a0a888094276d24405a8e6a39ff79e4690f0021fff075909398ae3f7379cdb6c25 musl-dev-1.2.5-r21-x86-edge.apk
f731bafa153e7b3ea212cc4e13d5c843227374a13530188131184c32f13907057f66af65ff7889a01f7c2b46bae7087f712b09e97ff879e2ed263ebec37432bf musl-1.2.6-r2-x86-edge.apk
afc7894a31de08bcfa6b28604625ad7e6cf8cd61394d34bd2ed50ea07c9d4e7ad212cb668439f51599ce2c946a326e196ee01503fe196a4a8dce973ae51d57ef musl-dev-1.2.6-r2-x86-edge.apk
"
+5 -4
View File
@@ -6,9 +6,10 @@ if [ -z "$(type -t arch_to_hostspec)" ]; then
arch_to_hostspec() { :; }
fi
maintainer=""
pkgname=musl-x86_64
pkgver=1.2.5
pkgrel=21
pkgver=1.2.6
pkgrel=2
arch="aarch64"
subpackages="musl-dev-x86_64:package_dev"
@@ -57,6 +58,6 @@ package_dev() {
}
sha512sums="
a378f3015c9222161aaa8ffd34038880f923e7a86cb400dac886d1c1adcf691e55798844f8fa6a4ee3ca9ee4d1a1a5d5ea616a550ac0d99933e64a68c2d65332 musl-1.2.5-r21-x86_64-edge.apk
87296e7eb778ba4153c6fb27f596561ea7997ee5aa67346aeee9b42687ccb6a5d45e1c1faa2f13d1742e45f47898d78629db3320f640ef8700b55f710584662a musl-dev-1.2.5-r21-x86_64-edge.apk
5a10449984203c8f1c3f243310cec43aad11023bf83f5e08f9a15771a6c3545e678ab98a57f9f9b9528f4096d2efa1cda5620006eacef3feb459156588f5b44a musl-1.2.6-r2-x86_64-edge.apk
2454ee23df3c3b93aaa366554692a0ab7258b7c9865247c0acde3903ebbe796e4dda982d11f7556b635b3b9cf7cf238628b276f95eabc426d5045c24830c3b2d musl-dev-1.2.6-r2-x86_64-edge.apk
"
+2 -2
View File
@@ -2,7 +2,7 @@
maintainer=""
pkgname=systemd-boot-x86
_pkgname=systemd-boot # for monitoring
pkgver=259.5
pkgver=260.2
pkgrel=0
pkgdesc="systemd's EFI boot manager for x86 EFI on x86_64."
url="https://systemd.io/"
@@ -118,7 +118,7 @@ efistub() {
}
sha512sums="
cb76b3a11b400fea94de2be74bcd9178b2e986c1965cbc19824114fe14fdd9b6aed43ae325cf5bc505efa1333adc71e131e0a8b54519e6741baa090392bf0a98 systemd-259.5.tar.gz
63d15da49e7580952a48a0b50df20c1b398e4b77edf259510b0cdb9022e919387baadf2190194a50f1f582b83e0768c13997a4189cf0fb6a61b65015496d9c80 systemd-260.2.tar.gz
8ecb5e25c0d8b01c406fa3084b0910d517cabbf12894958b4d3d77462cb0924f0a52fe2bf1aa39af29b16fd78fe080a6a99daa18015c6059fb2e52c971d83ba9 0001-meson-disable-libintl-check-if-pam-is-disabled.patch
ad54e2c7e7a21bfa9b5f9e8db1b6af6a6d78a3e5dfe2dafcec77488f6224865ab4d4c8a8c8ee1c54c99d1741361e9fb3a51e5d36bcbc7a1c3fdcc4d0c1672132 cross-x86.meson
"
@@ -0,0 +1,34 @@
From c977b184350479b8c43a0e002eaf2b13b510ba4f Mon Sep 17 00:00:00 2001
From: Michal Suchanek <msuchanek@suse.de>
Date: Thu, 13 Oct 2022 22:39:51 +0200
Subject: [PATCH] libfdt: Fix invalid version warning
python does not like the u-boot- prefix in the version, drop it.
/usr/lib/python3.10/site-packages/setuptools/dist.py:544: UserWarning:
The version specified ('u-boot-2022.10') is an invalid version, this may
not work as expected with newer versions of setuptools, pip, and PyPI.
Please see PEP 440 for more details.
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Link: https://github.com/u-boot/u-boot/commit/c977b184350479b8c43a0e002eaf2b13b510ba4f
Note by ollieparanoid: this isn't just a warning anymore, but causes
builds to fail with more recent python tooling.
---
scripts/dtc/pylibfdt/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/dtc/pylibfdt/Makefile b/scripts/dtc/pylibfdt/Makefile
index 493995e30384..a7579f0c5f67 100644
--- a/scripts/dtc/pylibfdt/Makefile
+++ b/scripts/dtc/pylibfdt/Makefile
@@ -17,7 +17,7 @@ quiet_cmd_pymod = PYMOD $@
cmd_pymod = unset CROSS_COMPILE; unset CFLAGS; \
CC="$(HOSTCC)" LDSHARED="$(HOSTCC) -shared " \
LDFLAGS="$(HOSTLDFLAGS)" \
- VERSION="u-boot-$(UBOOTVERSION)" \
+ VERSION="$(UBOOTVERSION)" \
CPPFLAGS="$(HOSTCFLAGS) -I$(LIBFDT_srcdir)" OBJDIR=$(obj) \
SOURCES="$(PYLIBFDT_srcs)" \
SWIG_OPTS="-I$(LIBFDT_srcdir) -I$(LIBFDT_srcdir)/.." \
@@ -0,0 +1,55 @@
From 78a3943b752afa9321bd4d87626cf44b5fdeeb63 Mon Sep 17 00:00:00 2001
From: Oliver Smith <ollieparanoid@postmarketos.org>
Date: Sun, 31 May 2026 10:51:08 +0200
Subject: [PATCH] python 3.13: binman: migrate from pkg_resources to importlib
Fix for:
File "/home/pmos/build/src/uboot-imx-c4960dade272da9d6a7f53f6956d4d6747d573e9/tools/binman/control.py", line 11, in <module>
import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'
Patch based on:
https://github.com/u-boot/u-boot/commit/538719cb6a77934d069e0e64f264457a59a9ebfc
Signed-off-by: Oliver Smith <ollieparanoid@postmarketos.org>
---
tools/binman/control.py | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/tools/binman/control.py b/tools/binman/control.py
index bfe63a1520..e77e433ae4 100644
--- a/tools/binman/control.py
+++ b/tools/binman/control.py
@@ -8,7 +8,7 @@
from collections import OrderedDict
import glob
import os
-import pkg_resources
+import importlib.resources as importlib_resources
import re
import sys
@@ -89,7 +89,7 @@ def _ReadMissingBlobHelp():
msg = ''
return tag, msg
- my_data = pkg_resources.resource_string(__name__, 'missing-blob-help')
+ my_data = importlib_resources.files(__package__).joinpath('missing-blob-help').read_bytes()
re_tag = re.compile('^([-a-z0-9]+):$')
result = {}
tag = None
@@ -136,8 +136,9 @@ def GetEntryModules(include_testing=True):
Returns:
Set of paths to entry class filenames
"""
- glob_list = pkg_resources.resource_listdir(__name__, 'etype')
- glob_list = [fname for fname in glob_list if fname.endswith('.py')]
+ entries = importlib_resources.files(__package__).joinpath('etype')
+ glob_list = [entry.name for entry in entries.iterdir()
+ if entry.name.endswith('.py') and entry.is_file()]
return set([os.path.splitext(os.path.basename(item))[0]
for item in glob_list
if include_testing or '_testing' not in item])
--
2.54.0
@@ -1,5 +1,6 @@
# Archived: Downstream port, only for testing. Use mainline port (alcatel-idol347)!
# Reference: <https://postmarketos.org/devicepkg>
maintainer=""
pkgname=device-alcatel-idol347-downstream
pkgdesc="Alcatel OneTouch Idol 3 (4.7) (Downstream)"
pkgver=5
@@ -1,5 +1,6 @@
# Archived: Kernel does not build anymore
# Reference: <https://postmarketos.org/devicepkg>
maintainer=""
pkgname=device-amazon-mantis
pkgdesc="Amazon Fire TV Stick 4K"
pkgver=4
@@ -1,6 +1,7 @@
# Archived: Replaced by apple-idevice
# Reference: <https://postmarketos.org/devicepkg>
maintainer=""
pkgname=device-apple-d22
pkgdesc="Apple iPhone X (Global)"
pkgver=3
@@ -1,6 +1,7 @@
# Archived: Downstream port, only for testing. Use mainline port (asus-x00td)!
# This kernel is mostly used for bringing up new features on mainline, thus unmaintained
# Reference: <https://postmarketos.org/devicepkg>
maintainer=""
pkgname=device-asus-x00td-downstream
pkgdesc="Asus Zenfone Max Pro M1 downstream"
pkgver=4
@@ -1,5 +1,6 @@
# Archived: Downstream port, only for testing. Use mainline port (bq-paella)!
# Reference: <https://postmarketos.org/devicepkg>
maintainer=""
pkgname=device-bq-paella-downstream
pkgdesc="BQ Aquaris X5 (Downstream)"
pkgver=4
@@ -1,5 +1,6 @@
# Archived: unmaintained port, only for testing. Use generic/mainline port (qcom-msm8916)
# Reference: <https://postmarketos.org/devicepkg>
maintainer=""
pkgname=device-bq-piccolo
pkgdesc="BQ Aquaris M5"
pkgver=10
@@ -1,5 +1,6 @@
# Archived: Kernel does not build anymore
# Reference: <https://postmarketos.org/devicepkg>
maintainer=""
pkgname=device-bq-vegetahd
pkgdesc="BQ Aquaris E5 HD"
pkgver=4
@@ -1,3 +1,4 @@
# Archived: linux-postmarketos-allwinner-d1 moved to archived
# Reference: <https://postmarketos.org/devicepkg>
maintainer=""
pkgname=device-dongshanpi-nezhastu
@@ -1,5 +1,6 @@
# Archived: Downstream port, only for testing. Use mainline port!
# Reference: <https://postmarketos.org/devicepkg>
maintainer=""
pkgname=device-google-crosshatch-downstream
pkgdesc="Google Pixel 3 XL (Downstream)"
pkgver=4
@@ -1,5 +1,6 @@
# Archived: Kernel does not build anymore
# Reference: <https://postmarketos.org/devicepkg>
maintainer=""
pkgname=device-hisense-m470bsa
pkgdesc="Hisense Sero 7 Pro"
pkgver=4
+1
View File
@@ -1,5 +1,6 @@
# Archived: Kernel does not build anymore
# Reference: <https://postmarketos.org/devicepkg>
maintainer=""
pkgname=device-htc-a5ul
pkgdesc="HTC Desire 816"
pkgver=2
@@ -1,5 +1,6 @@
# Archived: Kernel does not build anymore
# Reference: <https://postmarketos.org/devicepkg>
maintainer=""
pkgname=device-htc-bravo
pkgver=2
pkgrel=0
@@ -1,5 +1,6 @@
# Archived: Downstream port, only for testing. Use mainline port (htc-flounder)!
# Reference: <https://postmarketos.org/devicepkg>
maintainer=""
pkgname=device-htc-flounder-downstream
pkgdesc="Google Nexus 9"
pkgver=4
@@ -1,5 +1,6 @@
# Archived: Downstream port, only for testing. Use mainline port!
# Reference: <https://postmarketos.org/devicepkg>
maintainer=""
pkgname=device-htc-m8-downstream
pkgdesc="HTC One M8 (Downstream)"
pkgver=3
@@ -1,5 +1,6 @@
# Archived: Kernel does not build anymore
# Reference: <https://postmarketos.org/devicepkg>
maintainer=""
pkgname=device-huawei-alice
pkgdesc="Huawei P8 Lite"
pkgver=5
@@ -1,5 +1,6 @@
# Archived: Downstream port, only for testing. Use mainline port!
# Reference: <https://postmarketos.org/devicepkg>
maintainer=""
pkgname=device-huawei-angler-downstream
pkgver=4
pkgrel=0
@@ -1,5 +1,6 @@
# Archived: Downstream port, only for testing. Use mainline port (huawei-kiwi)!
# Reference: <https://postmarketos.org/devicepkg>
maintainer=""
pkgname=device-huawei-kiwi-downstream
pkgdesc="Huawei Honor 5X (Downstream)"
pkgver=3
@@ -1,5 +1,6 @@
# Archived: Kernel does not build anymore
# Reference: <https://postmarketos.org/devicepkg>
maintainer=""
pkgname=device-klipad-rel
pkgdesc="KLIPAD Klipad Tablet"
pkgver=5
@@ -1,6 +1,7 @@
# Archived: Downstream port, maybe useful for EPDC performance improvement
# needs special userspace to show up anything
# Reference: <https://postmarketos.org/devicepkg>
maintainer=""
pkgname=device-kobo-clara-downstream
pkgdesc="Kobo Clara HD downstream"
pkgver=2
@@ -1,5 +1,6 @@
# Archived: unmaintained port, only for testing. Use generic/mainline port (qcom-msm8953)
# Reference: <https://postmarketos.org/devicepkg>
maintainer=""
pkgname=device-lenovo-kuntao
pkgdesc="Lenovo P2"
pkgver=7
Loaded 100 of 1879 files, more files were not shown because too many files have changed in this diff. Show more