Compare commits
No commits in common. "master" and "firefox-pwa-connector" have entirely different histories.
master
...
firefox-pw
README.md
dev-python/epc
docs
metadata/news
2023-03-29-linux-libre-fallback-urls
2023-04-14-linux-sources
2024-08-22-libre-kernel-6.x
2024-10-04-input-leap-3
2024-11-07-input-leap-latest-builds-broken
2025-04-17-input-leap-removal
sys-apps/purism_ectool
sys-kernel
libre-kernel
librem-ec-acpi
virtual
dist-kernel
dist-kernel-5.15.75.ebuilddist-kernel-5.15.80.ebuilddist-kernel-5.15.83.ebuilddist-kernel-5.15.85.ebuilddist-kernel-5.15.88.ebuilddist-kernel-5.15.94.ebuilddist-kernel-6.1.12.ebuild
linux-sources
www-plugins/firefox-pwa-connector
117
README.md
117
README.md
|
@ -1,8 +1,9 @@
|
||||||
Personal Gentoo overlay, focusing mostly on needed tools and
|
Personal Gentoo overlay, focusing mostly on needed tools and
|
||||||
compatibility for a libre version of Gentoo on the Librem 14 computer. A
|
compatibility for a libre version of Gentoo on the Librem 14 computer.
|
||||||
handful of other pacakages are also provided.
|
|
||||||
|
|
||||||
Linux-libre and Librem-related packages:
|
Available packages:
|
||||||
|
- **dev-python/ecp**: Python implementation of Emacs RPC stack. Depends
|
||||||
|
on `orjson` or `orjson-bin` from the GURU (or another) overlay.
|
||||||
- **sys-kernel/libre-kernel**: A dist-kernel built from the [Linux-libre
|
- **sys-kernel/libre-kernel**: A dist-kernel built from the [Linux-libre
|
||||||
sources][linux-libre].
|
sources][linux-libre].
|
||||||
- **media-fonts/fonts-meta**: Modified version to remove non-Free
|
- **media-fonts/fonts-meta**: Modified version to remove non-Free
|
||||||
|
@ -13,7 +14,7 @@ Linux-libre and Librem-related packages:
|
||||||
* **sys-power/librem-control**: A GTK application to control
|
* **sys-power/librem-control**: A GTK application to control
|
||||||
parameters of the Librem EC (battery charge levels, etc).
|
parameters of the Librem EC (battery charge levels, etc).
|
||||||
* **sys-apps/purism_ectool**: Tool for querying and flashing
|
* **sys-apps/purism_ectool**: Tool for querying and flashing
|
||||||
Purism EC firmware images on certain Librem laptops.v
|
Purism EC firmware images on certain Librem laptops.
|
||||||
|
|
||||||
## How to Add This Repository
|
## How to Add This Repository
|
||||||
|
|
||||||
|
@ -31,48 +32,109 @@ In `/etc/portage/package.mask`:
|
||||||
```
|
```
|
||||||
|
|
||||||
Individual packages can be unmasked (and added to
|
Individual packages can be unmasked (and added to
|
||||||
`package.accept_keywords` if necessary). For instructions on unmasking
|
`package.accept_keywords` if necessary). In `/etc/portage/package.unmask`:
|
||||||
individual packages, see the relevant documentation below.
|
```
|
||||||
|
sys-kernel/libre-kernel::projectmoon
|
||||||
|
virtual/dist-kernel::projectmoon
|
||||||
|
sec-keys/openpgp-keys-linux-libre::projectmoon
|
||||||
|
```
|
||||||
|
|
||||||
## The Linux-libre dist-kernel
|
## The Linux-libre dist-kernel
|
||||||
|
|
||||||
*See [docs/Libre-Kernel.md](docs/Libre-Kernel.md).*
|
|
||||||
|
|
||||||
This overlay provides a dist-kernel (based on
|
This overlay provides a dist-kernel (based on
|
||||||
`sys-kernel/vanilla-kernel`) using the Linux-libre kernel sources, and
|
`sys-kernel/vanilla-kernel`) using the Linux-libre kernel sources, and
|
||||||
an accompanying updated version of `virtual/dist-kernel`. It is
|
an accompanying updated version of `virtual/dist-kernel`. It is
|
||||||
maintained and tested for my personal use on amd64. The Linux-libre
|
maintained and tested for my personal use on amd64. The Linux-libre
|
||||||
kernel removes the ability for the Linux kernel to load firmware that is
|
kernel removes the ability for the Linux kernel to load firmware that
|
||||||
not [Free Software][free-software]. The ebuild roughly follows the
|
is not [Free Software][free-software]. The ebuild roughly follows the
|
||||||
current stable gentoo-kernel for amd64.
|
current stable gentoo-kernel for amd64.
|
||||||
|
|
||||||
## Purism Librem Computer Packages
|
The libre kernel can be installed alongside other dist-kernels, and
|
||||||
|
works with the `dist-kernel` and `initramfs` USE flags. The ebuild
|
||||||
|
does NOT fail if non-free firmware (i.e. `sys-kernel/linux-firmware`
|
||||||
|
with `redistributable` USE flag set) is installed, but it will warn
|
||||||
|
you if this is the case. It will also warn you if the `linux-firmware`
|
||||||
|
package is not found at all, like normal dist-kernel ebuilds.
|
||||||
|
|
||||||
*See [docs/Librem.md](docs/Librem.md).*
|
The kernel installed by this ebuild has the version suffix
|
||||||
|
`-gnu-dist`, making it easy to determine which kernel it is.
|
||||||
|
|
||||||
This overlay contains packages for Purism's Librem computers, focusing
|
|
||||||
mostly on the Librem 14.
|
|
||||||
|
|
||||||
## Input Leap
|
### Signature Verification
|
||||||
|
|
||||||
*See [docs/Input-Leap.md](docs/Input-Leap.md)*
|
It is recommended to enable GPG signature verification of
|
||||||
|
`sys-kenrel/libre-kernel` by adding the USE flag to
|
||||||
|
`/etc/portage/package.use`:
|
||||||
|
|
||||||
This overlay contains a working, updated ebuild for Input Leap, a fork
|
```
|
||||||
of Barrier (itself a fork of Synergy), which is a "virtual KVM switch",
|
sys-kernel/libre-kernel verify-sig
|
||||||
allowing you to share a keyboard and mouse between several computers
|
```
|
||||||
over the network.
|
|
||||||
|
|
||||||
The most important things about Input Leap:
|
### Keeping the Linux-libre Kernel Installed
|
||||||
|
|
||||||
- It is Maintained.
|
Portage will sometimes try to install `sys-kernel/gentoo-kernel` or
|
||||||
- It supports Wayland.
|
another dist-kernel if there is a newer stable version than
|
||||||
|
`sys-kernel/libre-kernel`. This happens because of a version bump to
|
||||||
|
`virtual/dist-kernel` before this overlay has updated its own copy of
|
||||||
|
`virtual/dist-kernel`.
|
||||||
|
|
||||||
## Other Packages
|
To prevent portage from attempting to install another dist-kernel
|
||||||
|
instead of the Linux-libre kernel, you should mask other dist-kernels in
|
||||||
|
`/etc/portage/package.mask`:
|
||||||
|
|
||||||
*More documentation coming soon.*
|
```
|
||||||
|
# stay on libre kernel
|
||||||
|
sys-kernel/gentoo-kernel
|
||||||
|
sys-kernel/gentoo-kernel-bin
|
||||||
|
sys-kernel/vanilla-kernel
|
||||||
|
```
|
||||||
|
|
||||||
|
### Linux Firmware
|
||||||
|
|
||||||
|
*Note: If you are running the Linux-libre kernel, it is unlikely (though
|
||||||
|
not impossible) that you need to install `sys-kernel/linux-firmware`.*
|
||||||
|
|
||||||
|
To install only the Linux firmware that meets the [Free Software
|
||||||
|
Definition][free-software], configure `/etc/portage/package.use`
|
||||||
|
accordingly:
|
||||||
|
|
||||||
|
```
|
||||||
|
# Install only libre firmware
|
||||||
|
sys-kernel/linux-firmware -redistributable -unknown-license
|
||||||
|
```
|
||||||
|
|
||||||
|
You can also edit `/etc/portage/profile/package.use.mask` to prevent
|
||||||
|
the linux-firmware package from ever installing the closed-source
|
||||||
|
firmware by adding this line:
|
||||||
|
|
||||||
|
```
|
||||||
|
# forcibly stop non-free firmware installation
|
||||||
|
sys-kernel/linux-firmware redistributable unknown-license
|
||||||
|
```
|
||||||
|
|
||||||
|
## Using the Librem EC ACPI kernel module
|
||||||
|
|
||||||
|
The Librem EC ACPI kernel module should install and be automatically
|
||||||
|
available (via modprobe) after installation, using `emerge
|
||||||
|
sys-kernel/librem-ec-acpi`. The module is currently installed to
|
||||||
|
`/lib/modules/<kernel>/librem/`.
|
||||||
|
|
||||||
|
This ebuild supports the `dist-kernel` USE flag, and the module will
|
||||||
|
automatically be rebuilt when installing a new dist-kernel if that
|
||||||
|
flag is enabled.
|
||||||
|
|
||||||
|
If you are not using a dist-kernel, you will need to do `emerge
|
||||||
|
@modules-rebuild` to install the module after you upgrade or install a
|
||||||
|
new kernel,
|
||||||
|
|
||||||
|
### Librem Control and the Purism EC Tool
|
||||||
|
|
||||||
|
These two appliations can be used to manipulate device-specific
|
||||||
|
features of the Librem 14, including the flashing of firmware images.
|
||||||
|
It is not recommended to use the EC tool from this overlay for
|
||||||
|
flashing a firmware image. Instead, follow the official [firmware
|
||||||
|
flashing instrutions][ec-instructions].
|
||||||
|
|
||||||
Packages must be unmasked and added to `package.accept_keywords` as
|
|
||||||
necessary.
|
|
||||||
|
|
||||||
# Disclaimer
|
# Disclaimer
|
||||||
|
|
||||||
|
@ -84,4 +146,3 @@ So there may be issues with non-Free dependencies etc in some cases.
|
||||||
[free-software]: https://www.gnu.org/philosophy/free-sw.en.html#fs-definition
|
[free-software]: https://www.gnu.org/philosophy/free-sw.en.html#fs-definition
|
||||||
[ec-acpi]: https://source.puri.sm/nicole.faerber/librem-ec-acpi-dkms
|
[ec-acpi]: https://source.puri.sm/nicole.faerber/librem-ec-acpi-dkms
|
||||||
[ec-instructions]: https://puri.sm/projects/librem-ec/
|
[ec-instructions]: https://puri.sm/projects/librem-ec/
|
||||||
[ff-pwas]: https://github.com/filips123/PWAsForFirefox
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
DIST epc-0.0.5.tar.gz 17968 BLAKE2B 45bc5aa3ac2cdeb83ad8097004838beae0a85bc68904d9a12aaa41ee291e76d92b05b0486277558456dee6d16170380d81359b8c026f804a82e225a1078a8a40 SHA512 e2b75850e39bb0f3c16f5b84f55dec675a8fe2b61ff5fd55704ef677317d698865a99fc495247cd753a2c8329729f45bc7f81f42dd4c6d27b31810c0aac831e2
|
|
@ -0,0 +1,29 @@
|
||||||
|
# Copyright 1999-2022 Gentoo Authors, projectmoon
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=setuptools
|
||||||
|
PYTHON_COMPAT=( python3_{8..11} )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="EPC (RPC stack for Emacs Lisp) implementation in Python"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://pypi.org/project/epc/
|
||||||
|
https://github.com/tkf/python-epc
|
||||||
|
"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="GPL-3+"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="amd64"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
dev-python/sexpdata[${PYTHON_USEDEP}]
|
||||||
|
|| ( dev-python/orjson-bin[${PYTHON_USEDEP}] dev-python/orjson[${PYTHON_USEDEP}] )
|
||||||
|
"
|
||||||
|
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
|
@ -1,143 +0,0 @@
|
||||||
# The Linux-libre dist-kernel
|
|
||||||
|
|
||||||
This overlay provides a dist-kernel (based on
|
|
||||||
`sys-kernel/vanilla-kernel`) using the Linux-libre kernel sources, and
|
|
||||||
an accompanying updated version of `virtual/dist-kernel`. It is
|
|
||||||
maintained and tested for my personal use on amd64. The Linux-libre
|
|
||||||
kernel removes the ability for the Linux kernel to load firmware that
|
|
||||||
is not [Free Software][free-software]. The ebuild roughly follows the
|
|
||||||
current stable 5.15.x gentoo-kernel for amd64.
|
|
||||||
|
|
||||||
The libre kernel can be installed alongside other dist-kernels, and
|
|
||||||
works with the `dist-kernel` and `initramfs` USE flags. The ebuild
|
|
||||||
does NOT fail if non-free firmware (i.e. `sys-kernel/linux-firmware`
|
|
||||||
with `redistributable` USE flag set) is installed, but it will warn
|
|
||||||
you if this is the case. It will also warn you if the `linux-firmware`
|
|
||||||
package is not found at all, like normal dist-kernel ebuilds.
|
|
||||||
|
|
||||||
The kernel installed by this ebuild has the version suffix
|
|
||||||
`-gnu-dist`, making it easy to determine which kernel it is.
|
|
||||||
|
|
||||||
## Quick Setup
|
|
||||||
|
|
||||||
This is a quick guide for setting up the system to properly install the
|
|
||||||
Linux-libre Kernel. It assumes you have set up the overlay as described
|
|
||||||
in the README.
|
|
||||||
|
|
||||||
In `/etc/portage/package.use`:
|
|
||||||
|
|
||||||
```
|
|
||||||
# Install only libre firmware
|
|
||||||
sys-kernel/linux-firmware -redistributable -unknown-license
|
|
||||||
|
|
||||||
# libre kernel with gentoo kernel patches applied
|
|
||||||
sys-kernel/libre-kernel verify-sig
|
|
||||||
|
|
||||||
# or, if you do not want gentoo patches applied
|
|
||||||
sys-kernel/libre-kernel verify-sig -gentoo
|
|
||||||
```
|
|
||||||
|
|
||||||
In `/etc/portage/package.unmask`:
|
|
||||||
|
|
||||||
```
|
|
||||||
sys-kernel/libre-kernel::projectmoon
|
|
||||||
virtual/dist-kernel::projectmoon
|
|
||||||
virtual/linux-sources::projectmoon
|
|
||||||
sec-keys/openpgp-keys-linux-libre::projectmoon
|
|
||||||
```
|
|
||||||
|
|
||||||
In `/etc/portage/package.accept_keywords`:
|
|
||||||
|
|
||||||
```
|
|
||||||
sys-kernel/librem-ec-acpi::projectmoon
|
|
||||||
sys-kernel/libre-kernel::projectmoon ~amd64
|
|
||||||
virtual/dist-kernel::projectmoon
|
|
||||||
virtual/linux-sources::projectmoon
|
|
||||||
```
|
|
||||||
|
|
||||||
In `/etc/portage/package.mask`:
|
|
||||||
|
|
||||||
```
|
|
||||||
# stay on libre kernel
|
|
||||||
sys-kernel/gentoo-kernel
|
|
||||||
sys-kernel/gentoo-kernel-bin
|
|
||||||
sys-kernel/vanilla-kernel
|
|
||||||
virtual/linux-sources::gentoo
|
|
||||||
```
|
|
||||||
|
|
||||||
## Detailed Instructions
|
|
||||||
|
|
||||||
The rest of this documentation covers the quick steps above in detail,
|
|
||||||
and extra information about the Linux firmware package, the Librem EC
|
|
||||||
ACPI module, etc.
|
|
||||||
|
|
||||||
### Signature Verification
|
|
||||||
|
|
||||||
It is recommended to enable GPG signature verification of
|
|
||||||
`sys-kenrel/libre-kernel` by adding the USE flag to
|
|
||||||
o`/etc/portage/package.use`:
|
|
||||||
|
|
||||||
```
|
|
||||||
sys-kernel/libre-kernel verify-sig
|
|
||||||
```
|
|
||||||
|
|
||||||
### Keeping the Linux-libre Kernel Installed
|
|
||||||
|
|
||||||
Portage will sometimes try to install `sys-kernel/gentoo-kernel` or
|
|
||||||
another dist-kernel if there is a newer stable version than
|
|
||||||
`sys-kernel/libre-kernel`. This happens because of a version bump to
|
|
||||||
`virtual/dist-kernel` before this overlay has updated its own copy of
|
|
||||||
`virtual/dist-kernel`.
|
|
||||||
|
|
||||||
To prevent portage from attempting to install another dist-kernel
|
|
||||||
instead of the Linux-libre kernel, you should mask other dist-kernels in
|
|
||||||
`/etc/portage/package.mask`:
|
|
||||||
|
|
||||||
```
|
|
||||||
# stay on libre kernel
|
|
||||||
sys-kernel/gentoo-kernel
|
|
||||||
sys-kernel/gentoo-kernel-bin
|
|
||||||
sys-kernel/vanilla-kernel
|
|
||||||
```
|
|
||||||
|
|
||||||
### Linux Firmware
|
|
||||||
|
|
||||||
*Note: If you are running the Linux-libre kernel, it is unlikely (though
|
|
||||||
not impossible) that you need to install `sys-kernel/linux-firmware`.*
|
|
||||||
|
|
||||||
To install only the Linux firmware that meets the [Free Software
|
|
||||||
Definition][free-software], configure `/etc/portage/package.use`
|
|
||||||
accordingly:
|
|
||||||
|
|
||||||
```
|
|
||||||
# Install only libre firmware
|
|
||||||
sys-kernel/linux-firmware -redistributable -unknown-license
|
|
||||||
```
|
|
||||||
|
|
||||||
You can also edit `/etc/portage/profile/package.use.mask` to prevent
|
|
||||||
the linux-firmware package from ever installing the closed-source
|
|
||||||
firmware by adding this line:
|
|
||||||
|
|
||||||
```
|
|
||||||
# forcibly stop non-free firmware installation
|
|
||||||
sys-kernel/linux-firmware redistributable unknown-license
|
|
||||||
```
|
|
||||||
|
|
||||||
### Using the Librem EC ACPI kernel module
|
|
||||||
|
|
||||||
The Librem EC ACPI kernel module should install and be automatically
|
|
||||||
available (via modprobe) after installation, using `emerge
|
|
||||||
sys-kernel/librem-ec-acpi`. The module is currently installed to
|
|
||||||
`/lib/modules/<kernel>/librem/`.
|
|
||||||
|
|
||||||
This ebuild supports the `dist-kernel` USE flag, and the module will
|
|
||||||
automatically be rebuilt when installing a new dist-kernel if that
|
|
||||||
flag is enabled.
|
|
||||||
|
|
||||||
If you are not using a dist-kernel, you will need to do `emerge
|
|
||||||
@modules-rebuild` to install the module after you upgrade or install a
|
|
||||||
new kernel.
|
|
||||||
|
|
||||||
[free-software]: https://www.gnu.org/philosophy/free-sw.en.html#fs-definition
|
|
||||||
[linux-libre]: https://www.fsfla.org/ikiwiki/selibre/linux-libre/
|
|
||||||
[free-software]: https://www.gnu.org/philosophy/free-sw.en.html#fs-definition
|
|
|
@ -1,58 +0,0 @@
|
||||||
# Packages for Purism Librem Computers
|
|
||||||
|
|
||||||
This overlay provides a handful of ebuilds for Purism Librem computers (particularly, the Librem 14):
|
|
||||||
- **sys-kernel/librem-ec-acpi**: An ebuild packaging the [Librem 14
|
|
||||||
EC ACPI kernel module][ec-acpi], necessary for proper functioning
|
|
||||||
of the laptop's battery charging and function keys.
|
|
||||||
* **sys-power/librem-control**: A GTK application to control
|
|
||||||
parameters of the Librem EC (battery charge levels, etc).
|
|
||||||
* **sys-apps/purism_ectool**: Tool for querying and flashing
|
|
||||||
Purism EC firmware images on certain Librem laptops.
|
|
||||||
|
|
||||||
## Quick Setup
|
|
||||||
|
|
||||||
This is a quick guide for setting up the system to properly install
|
|
||||||
Librem-related packages. It assumes you have set up the overlay as
|
|
||||||
described in the README.
|
|
||||||
|
|
||||||
In `/etc/portage/package.unmask`:
|
|
||||||
|
|
||||||
```
|
|
||||||
sys-kernel/librem-ec-acpi::projectmoone
|
|
||||||
sys-apps/purism_ectool::projectmoon
|
|
||||||
sys-power/librem-control::projectmoon
|
|
||||||
```
|
|
||||||
|
|
||||||
In `/etc/portage/package.accept_keywords`:
|
|
||||||
|
|
||||||
```
|
|
||||||
sys-kernel/librem-ec-acpi::projectmoon
|
|
||||||
sys-apps/purism_ectool::projectmoon
|
|
||||||
sys-power/librem-control::projectmoon **
|
|
||||||
```
|
|
||||||
|
|
||||||
## The Librem EC ACPI kernel module
|
|
||||||
|
|
||||||
The Librem EC ACPI kernel module should install and be automatically
|
|
||||||
available (via modprobe) after installation, using `emerge
|
|
||||||
sys-kernel/librem-ec-acpi`. The module is currently installed to
|
|
||||||
`/lib/modules/<kernel>/librem/`.
|
|
||||||
|
|
||||||
This ebuild supports the `dist-kernel` USE flag, and the module will
|
|
||||||
automatically be rebuilt when installing a new dist-kernel if that
|
|
||||||
flag is enabled.
|
|
||||||
|
|
||||||
If you are not using a dist-kernel, you will need to do `emerge
|
|
||||||
@modules-rebuild` to install the module after you upgrade or install a
|
|
||||||
new kernel.
|
|
||||||
|
|
||||||
### Librem Control and the Purism EC Tool
|
|
||||||
|
|
||||||
These two appliations can be used to manipulate device-specific
|
|
||||||
features of the Librem 14, including the flashing of firmware images.
|
|
||||||
It is not recommended to use the EC tool from this overlay for
|
|
||||||
flashing a firmware image. Instead, follow the official [firmware
|
|
||||||
flashing instrutions][ec-instructions].
|
|
||||||
|
|
||||||
[ec-acpi]: https://source.puri.sm/nicole.faerber/librem-ec-acpi-dkms
|
|
||||||
[ec-instructions]: https://puri.sm/projects/librem-ec/
|
|
|
@ -2,7 +2,7 @@ How to create new version of the Firefox PWA Connector:
|
||||||
|
|
||||||
- Check Firefox PWA repo for new version.
|
- Check Firefox PWA repo for new version.
|
||||||
- Pull latest changes of repo and check out proper tag.
|
- Pull latest changes of repo and check out proper tag.
|
||||||
- Run `cargo vendor` in the repo, under the `native/` directory.
|
- Run `cargo vendor` in the repo.
|
||||||
- Create tarball of vendored cargo deps: `tar -czvf vendor-X.Y.Z.tar.gz vendor/`.
|
- Create tarball of vendored cargo deps: `tar -czvf vendor-X.Y.Z.tar.gz vendor/`.
|
||||||
- Move vendor tarball to the overlay files repo under `www-plugins/firefox-pwa-connector`.
|
- Move vendor tarball to the overlay files repo under `www-plugins/firefox-pwa-connector`.
|
||||||
- Push vendored tarball for new version.
|
- Push vendored tarball for new version.
|
||||||
|
@ -10,5 +10,6 @@ How to create new version of the Firefox PWA Connector:
|
||||||
- Check the Cargo.toml of the connector for any new git deps, and add to
|
- Check the Cargo.toml of the connector for any new git deps, and add to
|
||||||
the git crates if necessary. Cargo.lock can be checked to find the
|
the git crates if necessary. Cargo.lock can be checked to find the
|
||||||
proper commit hashes.
|
proper commit hashes.
|
||||||
- Check repo Makefile.toml for any new installation instructions for the
|
- Run `ebuild clean install` and make sure everything ends up where its
|
||||||
Linux target. Replicate in `src_install` phase.
|
supposed to be. A sandbox violation likely indicates need for new
|
||||||
|
`sed` to patch Maefile.toml to respect `DESTDIR`.
|
||||||
|
|
|
@ -7,20 +7,19 @@ How to update the Linux-libre Kernel ebuild for a new version
|
||||||
3. Check the `gentoo-kernel` ebuild for changes to the Gentoo config and
|
3. Check the `gentoo-kernel` ebuild for changes to the Gentoo config and
|
||||||
patches versions.
|
patches versions.
|
||||||
4. If the Gentoo patchset version has changed:
|
4. If the Gentoo patchset version has changed:
|
||||||
1. Make sure the patch version offset thingy matches gentoo-kernel.
|
1. Update the patchset version in the `libre-kernel` ebuild.
|
||||||
2. Make sure config version is the same.
|
2. Extract the patchset from the `gentoo-kernel` ebuild and see if
|
||||||
3. Make sure the config hash is the same.
|
there are any new patches, or patches removed.
|
||||||
4. Make sure ebuild applies config changes with `ebuild
|
2. Most patches aside from the `1000`- series that patch the entire
|
||||||
|
kernel should work.
|
||||||
|
3. Add all new patches that apply to the patchset in the ebuild.
|
||||||
|
4. Make sure ebuild applies patches with `ebuild
|
||||||
|
libre-kernel-X.Y.Z.ebuild clean prepare`.
|
||||||
|
4. If the Gentoo config version has changed:
|
||||||
|
5. Update the config version in the `libre-kernel` ebuild.
|
||||||
|
6. Make sure ebuild applies config changes with `ebuild
|
||||||
libre-kernel-X.Y.Z.ebuild clean prepare`.
|
libre-kernel-X.Y.Z.ebuild clean prepare`.
|
||||||
5. Run `pkgdev manifest` to have portage download the libre kernel files
|
|
||||||
and update the manifest.
|
|
||||||
5. Attempt to build the kernel using `ebuild libre-kernel-X.Y.Z.ebuild
|
5. Attempt to build the kernel using `ebuild libre-kernel-X.Y.Z.ebuild
|
||||||
clean merge`. You might need to use `sudo` or `doas` for this.
|
clean merge`. You might need to use `sudo` or `doas` for this.
|
||||||
6. Update `virtual/dist-kernel` package to new version, by copying the
|
|
||||||
proper dist-kernel ebuild from the gentoo repo, and adding
|
|
||||||
`sys-kernel/libre-kernel` to its list of possible deps.
|
|
||||||
7. Make sure `virtual/linux-sources` is up to date. This package rarely
|
|
||||||
changes, but updating it follows the same procedure as
|
|
||||||
`virtual/dist-kernel`.
|
|
||||||
|
|
||||||
If the build succeeds, the new ebuilds can be pushed to the repository.
|
If the build succeeds, the new ebuild can be pushed to the repository.
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
Title: Libre Kernel Gentoo USE Flag and Fixes
|
|
||||||
Author: projectmoon <projectmoon@agnos.is>
|
|
||||||
Posted: 2023-03-29
|
|
||||||
Revision: 1
|
|
||||||
News-Item-Format: 2.0
|
|
||||||
|
|
||||||
The libre-kernel ebuilds now have the main Linux-libre release URLs as
|
|
||||||
fallback SRC_URIs, in case the mirror hosting the files is down. The
|
|
||||||
mirrors exist because sometimes the Linux-libre project removes releases
|
|
||||||
if they discover that the release violates the Free Software
|
|
||||||
Distribution guidelines. While good for freedom purity, this can make
|
|
||||||
upgrades difficult. Thus, the files are mirrored on an external for the
|
|
||||||
libre-kernel ebuilds.
|
|
|
@ -1,13 +0,0 @@
|
||||||
Title: Libre Kernel Gentoo USE Flag and Fixes
|
|
||||||
Author: projectmoon <projectmoon@agnos.is>
|
|
||||||
Posted: 2023-03-29
|
|
||||||
Revision: 1
|
|
||||||
News-Item-Format: 2.0
|
|
||||||
|
|
||||||
The libre-kernel ebuilds now have the main Linux-libre release URLs as
|
|
||||||
fallback SRC_URIs, in case the mirror hosting the files is down. The
|
|
||||||
mirrors exist because sometimes the Linux-libre project removes releases
|
|
||||||
if they discover that the release violates the Free Software
|
|
||||||
Distribution guidelines. While good for freedom purity, this can make
|
|
||||||
upgrades difficult. Thus, the files are mirrored on an external for the
|
|
||||||
libre-kernel ebuilds.
|
|
|
@ -1,15 +0,0 @@
|
||||||
Title: virtual/linux-sources unmask required
|
|
||||||
Author: projectmoon <projectmoon@agnos.is>
|
|
||||||
Posted: 2023-04-14
|
|
||||||
Revision: 1
|
|
||||||
News-Item-Format: 2.0
|
|
||||||
|
|
||||||
Changes to the linux-sources virtual have required that this overlay
|
|
||||||
patches that ebuild when using the libre-kernel. If you have set up this
|
|
||||||
overlay to only unmask specific packages, you should also add the
|
|
||||||
linux-sources package to your package.unmask file:
|
|
||||||
|
|
||||||
virtual/linux-sources::projectmoon
|
|
||||||
|
|
||||||
This will prevent portage from also installing linux sources package
|
|
||||||
like gentoo-sources when you already have the libre-kernel installed.
|
|
|
@ -1,15 +0,0 @@
|
||||||
Title: virtual/linux-sources unmask required
|
|
||||||
Author: projectmoon <projectmoon@agnos.is>
|
|
||||||
Posted: 2023-04-14
|
|
||||||
Revision: 1
|
|
||||||
News-Item-Format: 2.0
|
|
||||||
|
|
||||||
Changes to the linux-sources virtual have required that this overlay
|
|
||||||
patches that ebuild when using the libre-kernel. If you have set up this
|
|
||||||
overlay to only unmask specific packages, you should also add the
|
|
||||||
linux-sources package to your package.unmask file:
|
|
||||||
|
|
||||||
virtual/linux-sources::projectmoon
|
|
||||||
|
|
||||||
This will prevent portage from also installing linux sources package
|
|
||||||
like gentoo-sources when you already have the libre-kernel installed.
|
|
|
@ -1,9 +0,0 @@
|
||||||
Title: Libre Kernel 6.x
|
|
||||||
Author: projectmoon <projectmoon@agnos.is>
|
|
||||||
Posted: 2024-08-22
|
|
||||||
Revision: 1
|
|
||||||
News-Item-Format: 2.0
|
|
||||||
|
|
||||||
From this point, I will now be following the stable 6.x releases of
|
|
||||||
gentoo-kernel for the libre-kernel package. The last available 5.15.x
|
|
||||||
version will remain 5.15.163, for the time being.
|
|
|
@ -1,9 +0,0 @@
|
||||||
Title: Libre Kernel 6.x
|
|
||||||
Author: projectmoon <projectmoon@agnos.is>
|
|
||||||
Posted: 2024-08-22
|
|
||||||
Revision: 1
|
|
||||||
News-Item-Format: 2.0
|
|
||||||
|
|
||||||
From this point, I will now be following the stable 6.x releases of
|
|
||||||
gentoo-kernel for the libre-kernel package. The last available 5.15.x
|
|
||||||
version will remain 5.15.163, for the time being.
|
|
|
@ -1,13 +0,0 @@
|
||||||
Title: Input Leap 3.0.0
|
|
||||||
Author: projectmoon <projectmoon@agnos.is>
|
|
||||||
Posted: 2024-10-04
|
|
||||||
Revision: 1
|
|
||||||
News-Item-Format: 2.0
|
|
||||||
|
|
||||||
Input Leap 3.0 is available. The ebuild is a 9999 version, so in order
|
|
||||||
to install it, you will need to rebuild input leap manually, e.g. emerge
|
|
||||||
-1 x11-misc/input-leap. The Gentoo ebuild repository still has not
|
|
||||||
updated to libportal 0.8 at time of writing, so the custom version of
|
|
||||||
libportal from this overlay is still required. When they do update, the
|
|
||||||
ebuild of input-leap will be adjusted to require libportal >= 0.8, and
|
|
||||||
properly versioned.
|
|
|
@ -1,13 +0,0 @@
|
||||||
Title: Input Leap 3.0.0
|
|
||||||
Author: projectmoon <projectmoon@agnos.is>
|
|
||||||
Posted: 2024-10-04
|
|
||||||
Revision: 1
|
|
||||||
News-Item-Format: 2.0
|
|
||||||
|
|
||||||
Input Leap 3.0 is available. The ebuild is a 9999 version, so in order
|
|
||||||
to install it, you will need to rebuild input leap manually, e.g. emerge
|
|
||||||
-1 x11-misc/input-leap. The Gentoo ebuild repository still has not
|
|
||||||
updated to libportal 0.8 at time of writing, so the custom version of
|
|
||||||
libportal from this overlay is still required. When they do update, the
|
|
||||||
ebuild of input-leap will be adjusted to require libportal >= 0.8, and
|
|
||||||
properly versioned.
|
|
|
@ -1,12 +0,0 @@
|
||||||
Title: Input Leap Latest Builds Broken
|
|
||||||
Author: projectmoon <projectmoon@agnos.is>
|
|
||||||
Posted: 2024-08-22
|
|
||||||
Revision: 1
|
|
||||||
News-Item-Format: 2.0
|
|
||||||
|
|
||||||
The latest commits to input-leap have broken the git build. The last
|
|
||||||
known working build of a stable release is v3.0.1. To force this, create
|
|
||||||
an env configuration for input-leap:
|
|
||||||
|
|
||||||
MYCMAKEARGS="-DQT_DEFAULT_MAJOR_VERSION=5"
|
|
||||||
EGIT_OVERRIDE_COMMIT_INPUT_LEAP_INPUT_LEAP="v3.0.1"
|
|
|
@ -1,12 +0,0 @@
|
||||||
Title: Input Leap Latest Builds Broken
|
|
||||||
Author: projectmoon <projectmoon@agnos.is>
|
|
||||||
Posted: 2024-08-22
|
|
||||||
Revision: 1
|
|
||||||
News-Item-Format: 2.0
|
|
||||||
|
|
||||||
The latest commits to input-leap have broken the git build. The last
|
|
||||||
known working build of a stable release is v3.0.1. To force this, create
|
|
||||||
an env configuration for input-leap:
|
|
||||||
|
|
||||||
MYCMAKEARGS="-DQT_DEFAULT_MAJOR_VERSION=5"
|
|
||||||
EGIT_OVERRIDE_COMMIT_INPUT_LEAP_INPUT_LEAP="v3.0.1"
|
|
|
@ -1,9 +0,0 @@
|
||||||
Title: Input Leap Removal
|
|
||||||
Author: projectmoon <projectmoon@agnos.is>
|
|
||||||
Posted: 2025-04-17
|
|
||||||
Revision: 1
|
|
||||||
News-Item-Format: 2.0
|
|
||||||
|
|
||||||
Input Leap has been removed from the overlay, because the Gentoo portage
|
|
||||||
tree has an updated version of libportal, and the guru ebuild works with
|
|
||||||
wayland. Please migrate to x11-misc/input-leap::guru.
|
|
|
@ -1,9 +0,0 @@
|
||||||
Title: Input Leap Removal
|
|
||||||
Author: projectmoon <projectmoon@agnos.is>
|
|
||||||
Posted: 2025-04-17
|
|
||||||
Revision: 1
|
|
||||||
News-Item-Format: 2.0
|
|
||||||
|
|
||||||
Input Leap has been removed from the overlay, because the Gentoo portage
|
|
||||||
tree has an updated version of libportal, and the guru ebuild works with
|
|
||||||
wayland. Please migrate to x11-misc/input-leap::guru.
|
|
|
@ -8,7 +8,7 @@ DIST hermit-abi-0.1.18.crate 9936 BLAKE2B a5a1d1c9bdf83fdca8edc392f8fa7d9b9b248a
|
||||||
DIST hidapi-1.2.5.crate 130695 BLAKE2B cbc920845e1ce108741925c7c8dbc15bfa864b251abd5659acdad9b7ac60a598c16a4b822bb29bfb9b0bdb2d1f68b745398c73d74155ceea03b1319a065f95b8 SHA512 38783fcba1b3d08b86ab2a2f03a8a955de82f60111f6014b1d143d09728f95d5ef825ec4b73fd04700e6170c2634e07b50310e9745ce3259019590248c2c27b0
|
DIST hidapi-1.2.5.crate 130695 BLAKE2B cbc920845e1ce108741925c7c8dbc15bfa864b251abd5659acdad9b7ac60a598c16a4b822bb29bfb9b0bdb2d1f68b745398c73d74155ceea03b1319a065f95b8 SHA512 38783fcba1b3d08b86ab2a2f03a8a955de82f60111f6014b1d143d09728f95d5ef825ec4b73fd04700e6170c2634e07b50310e9745ce3259019590248c2c27b0
|
||||||
DIST libc-0.2.89.crate 515952 BLAKE2B f8af6016b2613ef21f83bbb47b4f2a04939ab6f2d4d525959aa90c6874348327319c7a44084f27ca52d01cca37e95e2b1c5c809e4a82fd5fcfc670d445f23ee8 SHA512 da6668611b87837532de9844bb3db18d992ebfe7e0c064646f0d24014730c9451fe74c6d9374191172c2dd091e8b9ce83a7cf56fc0644088190c8963221f5b9a
|
DIST libc-0.2.89.crate 515952 BLAKE2B f8af6016b2613ef21f83bbb47b4f2a04939ab6f2d4d525959aa90c6874348327319c7a44084f27ca52d01cca37e95e2b1c5c809e4a82fd5fcfc670d445f23ee8 SHA512 da6668611b87837532de9844bb3db18d992ebfe7e0c064646f0d24014730c9451fe74c6d9374191172c2dd091e8b9ce83a7cf56fc0644088190c8963221f5b9a
|
||||||
DIST pkg-config-0.3.19.crate 15451 BLAKE2B dc23b5ef12719b4b3d2fc5c93c087399ba954a5e127be91b26619466d5d7422e71684d02905304dca65273d69b66338d94c0642e3810a14df845ef507ddc0bfb SHA512 42bc13c4e39c8f71690db527d815884acdfd2ccf5fbfea700c6ed60257e852cdcb1c443e7774409e51da53612b0ff0aa165554b99fd0cba973f94a8df52982d9
|
DIST pkg-config-0.3.19.crate 15451 BLAKE2B dc23b5ef12719b4b3d2fc5c93c087399ba954a5e127be91b26619466d5d7422e71684d02905304dca65273d69b66338d94c0642e3810a14df845ef507ddc0bfb SHA512 42bc13c4e39c8f71690db527d815884acdfd2ccf5fbfea700c6ed60257e852cdcb1c443e7774409e51da53612b0ff0aa165554b99fd0cba973f94a8df52982d9
|
||||||
DIST purism_ectool-9999.tar.gz 232692 BLAKE2B 8025dde406aa718336ece55430151ec30acf7b29bb9f50581abfe70d469a4780e87356bf2ea3dac601277bb117b1684876debeacff23ff3961e1cf939316a1dc SHA512 edbb688535084c8d6ebe7de9d2448248c575d7448afec6078ea90f09150079a33c96ea3b18b38b62005626db9e0c1bc201e5300954380e4dd0aa14b60ea9fd97
|
DIST purism_ectool-0.3.5.tar.gz 194591 BLAKE2B 717c18ab2b9632a6bbd443df0adb781bac3db4cb75ba0790a670d667458f2940257d0eb721f3a8af1898f8de26f180db5b149381649d7d5d1aa93c1fd10b7377 SHA512 c5b9b79407f8d1851c33b16336009b976036fc8ea31316c6721b6a464343729b788e62294b5359b35894a420593c63920adfa3954932a398ce2401f5cc83ebc6
|
||||||
DIST redox_hwio-0.1.3.crate 3264 BLAKE2B e4a1f50d8f45ce3ab7a9760f070f9882930f3b0be7754854577d483e6bbd797f1f5e5ca16dc3677351572882368597ceeaad9ff7cdcc0f91195634524245c96e SHA512 d3cc726435da87dbb10adc7ce65257e0a3e9f9668b28fd4667027c9bbcad4ec9659c3fc7c91e94aac24cd8d6439036546d13e2134eaea7209c6265b3fa67bb66
|
DIST redox_hwio-0.1.3.crate 3264 BLAKE2B e4a1f50d8f45ce3ab7a9760f070f9882930f3b0be7754854577d483e6bbd797f1f5e5ca16dc3677351572882368597ceeaad9ff7cdcc0f91195634524245c96e SHA512 d3cc726435da87dbb10adc7ce65257e0a3e9f9668b28fd4667027c9bbcad4ec9659c3fc7c91e94aac24cd8d6439036546d13e2134eaea7209c6265b3fa67bb66
|
||||||
DIST strsim-0.8.0.crate 9309 BLAKE2B 40a8be506c43ee1ffe006ddc7dee98c3d418bdd205d57b78f5d1e4c9312feb57e1eaf952e02d92d4e0932db240c6fba45beb06ea8c4fc6de1cf1faa8b6a3a939 SHA512 1d55a8d946cd55f5f37d06aea536549ded95739fa58c0f2da285a0041154c181f663682bdcac643aa198b3e762d694a04f058db985c62ebe22b5c16327ba6d34
|
DIST strsim-0.8.0.crate 9309 BLAKE2B 40a8be506c43ee1ffe006ddc7dee98c3d418bdd205d57b78f5d1e4c9312feb57e1eaf952e02d92d4e0932db240c6fba45beb06ea8c4fc6de1cf1faa8b6a3a939 SHA512 1d55a8d946cd55f5f37d06aea536549ded95739fa58c0f2da285a0041154c181f663682bdcac643aa198b3e762d694a04f058db985c62ebe22b5c16327ba6d34
|
||||||
DIST textwrap-0.11.0.crate 17322 BLAKE2B 257428908342774593bbd3528fcdae710712ff54e8a711393a24356d8ba0e16e466a4b20c05f942c48ca76b3b5b5aaa90ec202f782cad892caa8b71ccf124da6 SHA512 f5c0fe4f28ff1a3a0931e8e235b5157a45f67967985bcc752418c5ec3481fca44a8ae4800088889b37e8cd0533f53d3c456d5ffd19b767b3f83a87b49a2e209a
|
DIST textwrap-0.11.0.crate 17322 BLAKE2B 257428908342774593bbd3528fcdae710712ff54e8a711393a24356d8ba0e16e466a4b20c05f942c48ca76b3b5b5aaa90ec202f782cad892caa8b71ccf124da6 SHA512 f5c0fe4f28ff1a3a0931e8e235b5157a45f67967985bcc752418c5ec3481fca44a8ae4800088889b37e8cd0533f53d3c456d5ffd19b767b3f83a87b49a2e209a
|
||||||
|
|
|
@ -0,0 +1,44 @@
|
||||||
|
# Copyright 2017-2022 Gentoo Authors, projectmoon
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
# Auto-Generated by cargo-ebuild 0.5.2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
CRATES="
|
||||||
|
ansi_term-0.11.0
|
||||||
|
atty-0.2.14
|
||||||
|
bitflags-1.2.1
|
||||||
|
cc-1.0.67
|
||||||
|
clap-2.33.3
|
||||||
|
downcast-rs-1.2.0
|
||||||
|
hermit-abi-0.1.18
|
||||||
|
hidapi-1.2.5
|
||||||
|
libc-0.2.89
|
||||||
|
pkg-config-0.3.19
|
||||||
|
redox_hwio-0.1.3
|
||||||
|
strsim-0.8.0
|
||||||
|
textwrap-0.11.0
|
||||||
|
unicode-width-0.1.8
|
||||||
|
vec_map-0.8.2
|
||||||
|
winapi-0.3.9
|
||||||
|
winapi-i686-pc-windows-gnu-0.4.0
|
||||||
|
winapi-x86_64-pc-windows-gnu-0.4.0
|
||||||
|
"
|
||||||
|
|
||||||
|
inherit cargo
|
||||||
|
|
||||||
|
EC_VERSION="1.11"
|
||||||
|
|
||||||
|
DESCRIPTION="Purism Librem EC tool"
|
||||||
|
HOMEPAGE="https://source.puri.sm/firmware/librem-ec//-/tree//tool"
|
||||||
|
SRC_URI="
|
||||||
|
$(cargo_crate_uris ${CRATES})
|
||||||
|
https://source.puri.sm/firmware/librem-ec/-/archive/${EC_VERSION}/librem-ec-${EC_VERSION}.tar.gz -> ${P}.tar.gz
|
||||||
|
"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
S="${WORKDIR}/librem-ec-${EC_VERSION}/tool"
|
||||||
|
RESTRICT="mirror"
|
|
@ -1,44 +0,0 @@
|
||||||
# Copyright 2017-2024 Gentoo Authors, projectmoon
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
# Auto-Generated by cargo-ebuild 0.5.4-r1
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
CRATES="
|
|
||||||
ansi_term@0.11.0
|
|
||||||
atty@0.2.14
|
|
||||||
bitflags@1.2.1
|
|
||||||
cc@1.0.67
|
|
||||||
clap@2.33.3
|
|
||||||
downcast-rs@1.2.0
|
|
||||||
hermit-abi@0.1.18
|
|
||||||
hidapi@1.2.5
|
|
||||||
libc@0.2.89
|
|
||||||
pkg-config@0.3.19
|
|
||||||
redox_hwio@0.1.3
|
|
||||||
strsim@0.8.0
|
|
||||||
textwrap@0.11.0
|
|
||||||
unicode-width@0.1.8
|
|
||||||
vec_map@0.8.2
|
|
||||||
winapi@0.3.9
|
|
||||||
winapi-i686-pc-windows-gnu@0.4.0
|
|
||||||
winapi-x86_64-pc-windows-gnu@0.4.0
|
|
||||||
"
|
|
||||||
|
|
||||||
inherit cargo
|
|
||||||
|
|
||||||
EC_VERSION="l14-freeze-202404-test-20240425"
|
|
||||||
|
|
||||||
DESCRIPTION="Purism Librem EC tool"
|
|
||||||
HOMEPAGE="https://source.puri.sm/firmware/librem-ec//-/tree//tool"
|
|
||||||
SRC_URI="
|
|
||||||
$(cargo_crate_uris ${CRATES})
|
|
||||||
https://source.puri.sm/firmware/librem-ec/-/archive/${EC_VERSION}/librem-ec-${EC_VERSION}.tar.gz -> ${P}.tar.gz
|
|
||||||
"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64"
|
|
||||||
S="${WORKDIR}/librem-ec-${EC_VERSION}/tool"
|
|
||||||
RESTRICT="mirror"
|
|
|
@ -15,7 +15,7 @@ CRATES="
|
||||||
|
|
||||||
inherit {% block inherit -%}cargo{%- endblock %}
|
inherit {% block inherit -%}cargo{%- endblock %}
|
||||||
|
|
||||||
EC_VERSION="l14-shutoff-202403"
|
EC_VERSION="1.11"
|
||||||
|
|
||||||
DESCRIPTION={%- block description -%}"{{ description | trim }}"{%- endblock %}
|
DESCRIPTION={%- block description -%}"{{ description | trim }}"{%- endblock %}
|
||||||
HOMEPAGE="https://source.puri.sm/firmware/librem-ec//-/tree//tool"
|
HOMEPAGE="https://source.puri.sm/firmware/librem-ec//-/tree//tool"
|
||||||
|
|
|
@ -1,18 +1,11 @@
|
||||||
DIST genpatches-5.15-175.base.tar.xz 7264676 BLAKE2B 6911fc0fcef31daa55ddeb93e121acf4a95d130866f37ac0113a8697df1996c13bbf65e14f4a5703f7bb3f4dd3ebfb29e258ca358d191c0580a7f8e61fbf7c0c SHA512 3fc49566b23ef50590a3b9f90eb99558c9e37847259e0defdfb0ca036c37b7f45c4989d58787b8488c67ea031114173319346c1c17799680ebfdc581ae7e4588
|
DIST genpatches-5.15-98.base.tar.xz 4003192 BLAKE2B 79d4fb60a5192137571109ffaefdfba23ac589102539cdde89046f627f39e65a52a44a83607232b499509b8bb4c341e2fd26ae971587c9574d4ac87d8b220893 SHA512 946a7638d19d5fd610075520e529a6c5a47aaa433b7986493f62571a7dc541278013a5006bf1e745496e4eb98de44af56f61d23679c139a719a8d5bc20c9e734
|
||||||
DIST genpatches-5.15-175.extras.tar.xz 4060 BLAKE2B 1ff5b5e69f9cb0e243d03d761c430bcb04ef698199c6a68e15c9535cf58b8fc0b12703fced2fd1e884c7c7d7b948b778f633d2a5de619de9a0acee60ef7c20a7 SHA512 8925f59f2d30f07838ca111c45496d7fa0229362065fbe6643dcf6dd0998ee747a8d8ed217a63b6e77b28d8b0775872408fdf8260e6c737db3a4aade0f299041
|
DIST genpatches-5.15-98.extras.tar.xz 3932 BLAKE2B 4e5dd4f8ba6d14764a6546cf7e64dffb3ddcc77678b7d96d2498917f30561792c904c635b0fce7191b7c0c65549fa769e89befffbea5e53a3cef64c673937c20 SHA512 337d95159432cba3b85511cf80c350a8a2f67c65b72a90b26ddc98c01d2d8de70d9b6067e0573c5c339a5bf64973d10c06b42001ee19a7add3d672e4577d0622
|
||||||
DIST genpatches-6.12-25.base.tar.xz 1528212 BLAKE2B 818643d9f5ec5f4edc3cf2360f75bcf213ca99846e2bb96721933fa1785624aef8ae5c3ecd3af4f2e13e0cc44fed86e2d1cad8b53ed45acddcb9d91fc483c20b SHA512 746f4b5523fc3ebb3c59211c7fb4a80714e6068ab769a001c044ad300621b5a4a7a0b0b06c5a689bbf382cb27098f36725962bafb4d6e4489ab44cdb19b6ed1d
|
DIST genpatches-6.1-14.base.tar.xz 774040 BLAKE2B 8e0866c762e2711b766cc75630d66c7c46221bdc47357a903c7e8506ad122b7b5ba84d102b19743d236ac5579b44d24f77b9f52f3c23695ab6a279cf7875e735 SHA512 6a753146013baf0b94d83abd690118517679d4d7dcf6e9f86cf8de35e24f80a792e9c0692f237098671c316d046d6f65f8d3512255e572daf6a8ca81853beca0
|
||||||
DIST genpatches-6.12-25.extras.tar.xz 4056 BLAKE2B 2244be3d7b4121232106ee8110cb12ab75c8ae1a15377dc87598e25a287b8ce48577945a1677b944ff5fb5ce31e7309121181effe3814d2a522250fdaf8bcaa1 SHA512 d4fffa688883298c41f0c0ceae9ebdc234ec615945165fd74f67d31ececb23a2c905c106aa63ff16ce28bab31b1e08660002b68df0e27e0b54682b2a4981bb92
|
DIST genpatches-6.1-14.extras.tar.xz 3804 BLAKE2B 7f016579b130c9a4f7a8ec946254dbd682f22e5654ae777d11b265dafe2b177a4c40c5a979a760a5bd6ed3dac057b90a3120c60b958f6b748ea4731b9a5f1ea6 SHA512 2807d359459dd11b9d3356fcac609dbfb8487e8c924cc543ef37698667b1c8b74cff7b015839ca0677cf1f96b566e0b5018c057b517275886ab500cd2ca49653
|
||||||
DIST genpatches-6.6-82.base.tar.xz 4255664 BLAKE2B 812e8caabf0a73991504a728a8abc5a61a0b51ac073be06bf18b87e6de0291fc568ce4dd2dea506ce0db648669f2341843e608d0184cfb4dc233d71d57518137 SHA512 5fe4f880baab09d51b2fb36f3501298ecdfa382f09699f64c887ac39d84788ed4c27a9f7fd1d5766dbbdf8135956f0f81b4adc09c2558682f8f7dfb1ac7ce6ca
|
DIST gentoo-kernel-config-g6.tar.gz 4562 BLAKE2B ad9e1b28f84916f12cd8b21feb2f4396d3d63f4cfae3e6b6fe93f919c98b0b4523b205711ab7acafa7121360f696eecb63b9f162dd12950e56dab1429cc13633 SHA512 d180122eb00d40126ea7d79224559904eb0ea574314f9a8d6be6b10f0f6a49f526eba1366ae8cd0a4fe23cd8ff5e292c8cab7e856a2c915d4162b75a03f8076b
|
||||||
DIST genpatches-6.6-82.extras.tar.xz 4056 BLAKE2B e2f0c26e84f51fedb421fdbaf2afad1ee5c456f3b700ae9232ed8581ba73db2e5de69f685651d8bd7e9ee547a34712367ce7515facb33c7cf4c707c5e10e6883 SHA512 36c6830ed793159fc09139b85f87abfa7c195726be667076be5c2fbebeeb75dd508db52073395b9bca3a53c3496cc3c49e59d9717db8ce53a301f17ae9deee24
|
DIST kernel-x86_64-fedora.config.5.15.19 223286 BLAKE2B 239995703c01dcb6d179133dd115bc0a57872c07d7a08afaf4d92cf6d78f0c17b19487b5b399ac7fdde5d460fa7931628147817a569fef2c3a62951c96054bdf SHA512 9bee4aff7e5ef4ada57bee7496aaf47b8fdd5c936c4c9b580660d130db0678eaecdebdbcab0dfcaf5c17a71f6419069840db10f5886806b6fc810f8a3619554f
|
||||||
DIST gentoo-kernel-config-g13.tar.gz 5759 BLAKE2B 831f89078e539c8b4ce244528dfd847c12a45b52d540eb10d85ec0d9deb1c14288d8de12456865c92d16e3523ec3595676787a8f3b79545d76870b0fb68deb5d SHA512 2a7230cce57a67e3333f9a88a311afe4a928e27ce76036747451cb77d3186569ad11d7a5b827748ad53290a17ad63637a8362ca896516f85ff0944a8d68265a6
|
DIST kernel-x86_64-fedora.config.6.1.7-gentoo 228685 BLAKE2B e68236ccc1d51b2aff850eda9f3197b7ea95b8a88716bc7b07dad30348a86fdbb99a948060300dddae73ca82267d851d357f1c9547a9dcefae1364deebdbd124 SHA512 42bec2ddb9cf7eb6e84bbdeb23eb98dc11c9cea41f6134b776010c6b36833b520a290f0ef0145379de15c7f7834398fa5e3aaabd7258d7d4e89567faa09eeb4c
|
||||||
DIST gentoo-kernel-config-g14.tar.gz 5686 BLAKE2B e5147ff4ffab92428b3e7f1b0897b997f8a298805f4f43b0a4d3047607bbb1a5ebfc268e0bb9688372a5eda561df9f256c78e00cdd7e3caf7868724214722f56 SHA512 f79638f9ff9dd0154512baf0234024216b6708d35a3c03a580ca5913286ad1ea13bdde5ea9b4722c6a7cd8d591c11ec52c1e225111a260343cd56aa1f1a88502
|
DIST linux-libre-5.15.94-gnu.tar.xz 119739516 BLAKE2B 6d7c7d624991b79a021a5aa8c3c7b829b218ce9cb146f3f508f9fe97c3d738e9c1f02e38ea5928d02a8812f294335b81a2b03ff70039b641554dbfa4569ef7d1 SHA512 02c21e2cf83bf90b2c086ba92407a80be17468f55b7e7877dbd6eb89d90d100dfdb7bfea8776f5738a1335953aeba67dc581383674c1a28f4f6c458b27f652d6
|
||||||
DIST gentoo-kernel-config-g15.tar.gz 5746 BLAKE2B 2baef40e18cbf3bb975362d71ad674604ad80338d1e6914ffa2fc03af26f1b9c9cec66d39a56077693a7327060bc29bd5eb5787549857dd3779e841192cb2016 SHA512 45d609ee25a529988868b8c99c808f4e6abbde34ae501bf35523431ee85c9f3657663d6f938f2036a5f012a55a68965b32fd41fc44d8f6ca606a6fd38f952445
|
DIST linux-libre-5.15.94-gnu.tar.xz.sign 195 BLAKE2B 84e3688cb26f529785a02a9104aa9f6dd059ff266e550340f09c7c4b916fedfbd63b80c4f634ab97c2ee6b88f864cf0a022d61eb2d30cf9b9201daee65ad5bca SHA512 35282cf99ffef053a1b05126371f70d0b24c16c95e579111f4118e4b2b1c72cbabd1393d2b8d092b62517f7c1c05ab997c2ec51ad0159701d03e715c190095c2
|
||||||
DIST kernel-x86_64-fedora.config.6.1.102-gentoo 228685 BLAKE2B e68236ccc1d51b2aff850eda9f3197b7ea95b8a88716bc7b07dad30348a86fdbb99a948060300dddae73ca82267d851d357f1c9547a9dcefae1364deebdbd124 SHA512 42bec2ddb9cf7eb6e84bbdeb23eb98dc11c9cea41f6134b776010c6b36833b520a290f0ef0145379de15c7f7834398fa5e3aaabd7258d7d4e89567faa09eeb4c
|
DIST linux-libre-6.1.12-gnu.tar.xz 127116060 BLAKE2B 2d8f457e23d954a1d2bd1c312369ca2ab6fa2c03b1758e78c82d5cc40eec8c5c3b5cb79c6fb168dca44a4ea6837801bb47a91e6b4b437ab6087adbb1b38914d1 SHA512 27c8f3e12e5f95681ef17f8fc698b7a319c69c734154c62437e43f997565f7f0fb3ccce9dd114bc23ccaa4580833a201d45ea744d568bf473b8ef76f6f91c988
|
||||||
DIST kernel-x86_64-fedora.config.6.12.8-gentoo 256210 BLAKE2B f14f7de8ae573561824df47cf94c3c0ce52a820456ebd0e618e4c1e7f5454b7d3f6f86c559a3cd98dd94c55aaeed397f3d0cee6b0e37cf6b47d3aedd920a9dea SHA512 ea87b4b45c78888e02d0288dd5844cf2d97a14e251b565c7d6451a0e62fbe0dbef38f46715467af2f869995d6bbc8be61d5b70476a86d607a5bfa27fbaf36e92
|
DIST linux-libre-6.1.12-gnu.tar.xz.sign 195 BLAKE2B 769d8c66fda4fc3da616d9ed44c37ee110c0d28dbbeed64a9b724da468ac296edc131b104eaab294798313388d6f6ce4338bd8b1f14f03e900f2f817a0fa2a53 SHA512 6b77ef90f6b3c3da21542125c2ca96c79613a16dd7edf8d855d4aa3d7e601084111a1751dceec60f6337119f016dfef19f2c81e66cdd657e69583a5c60d1d64f
|
||||||
DIST kernel-x86_64-fedora.config.6.6.12-gentoo 243607 BLAKE2B 7e670d37c6471e50aa0ba395570cd0173af0210afe63faa48d7a147327110652e3aab5c339cf10ed22a6a20e81e505aee84311beb21fda3eb577e06ea55ecac8 SHA512 c484403a60670dd006ecbe65240cb00d97e8b3fe22d1169c5b6ccb92bcdbddb3ecd474d2b57880b30baf6a38bcef11fc8d56b8b0b02fcddd859833c3640cdc9c
|
|
||||||
DIST linux-libre-5.15.165-gnu.tar.xz 119931308 BLAKE2B 312d6a2091f48fe013d9207c749ff6fd850565e1a77b8bd437167fe8b7863f2b4c39b4ee43bd00614c3b8229a6de2ae671863e1a258e8248d8dc19e5333e309d SHA512 475063e224e3fc3c9bcc64b79dc5d3e41159bbf144c7cd1dd7b024c90996d788718b1ebceb19412b357cb6b8976f7135ad202a2b36197dbb7a311c4b1be9997b
|
|
||||||
DIST linux-libre-5.15.165-gnu.tar.xz.sign 195 BLAKE2B 69c860aeb656c3207d31209ff71c8d75aab95842611500aec2c59ab222ff7e2c27535cbe952da02edfa425afb6c18cd4a29668e0a46a40ee295bfad856e26287 SHA512 7418b5312cf8a2c5f0ab00f1a3906858256a1d172adfc493d95f7e1f06ece7efa00c9bc71b9cccf447bbb6b76c42ee8201044d46fa028b49be47edcc05983c77
|
|
||||||
DIST linux-libre-6.12.21-gnu.tar.xz 138909484 BLAKE2B 536116f350e38f7395611726be26fae285009c60b318a53b58c5cd6970f7f0bfb4378a79a14865f7f6341cdc0b772b4440fde8de720a6660388ec9c437dd633a SHA512 2576d77c994f826c12fc77052ff09765bcb3f386b2aa6ceb86a902afde3dd632e9714b09255b4e75e7de9e2ba83175153c26b71447f7027f4deeec19747554f9
|
|
||||||
DIST linux-libre-6.12.21-gnu.tar.xz.sign 195 BLAKE2B 3d0272aace3d09aee0fb0b53a6d3aadb68fbcbb299933436d4aa92d3c0c3695394a8051f78ad713a9ce543126ed774ed14f20202507586bedfa3d8d0c2e246c3 SHA512 bfe25fd7ea89ff1c449902c4fb86fcf76e4cfb591604fb2ed8e629227fb851f93eaeebe58b277a69c757ed5ee5afca708d0c6a713b80289ea9fa81a3104808e7
|
|
||||||
DIST linux-libre-6.6.74-gnu.tar.xz 132058092 BLAKE2B e9163014d918b9fad67577d4fe045fbff67de8506539f61d87a0929dd1a1766eb6113231e90d0efb2266eb3aa5750d6cf9f15da4f005e1e375ffeff41438fbce SHA512 526ede433780ba24e676040634d2e9539787834c4f0b6f85b50aed71acc0f7ad2d17318714fb7dd38b793bb03b10bc13f3a1132705eca2b5034c710385eb9865
|
|
||||||
DIST linux-libre-6.6.74-gnu.tar.xz.sign 195 BLAKE2B 17034fdb58481b2d47305f2099e7a521fec18327654ad9b0ef72c23cf02e2e8eb7af0973226406e43a21e0c36c7802f740af467b2f37765fe3301e6ec6df25ce SHA512 f375c5fe63956ea07231ce8d8fc2abb217cbce2439c22a42a48fa91f710b82f80ab71edd83ad0cbfa1bb1d5485614a6da207b8b58e43f7ac1847d3eaa905c4ec
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright 2020-2024 Gentoo Authors, projectmoon
|
# Copyright 2020-2023 Gentoo Authors, projectmoon
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=8
|
EAPI=8
|
||||||
|
@ -8,23 +8,21 @@ inherit kernel-build verify-sig
|
||||||
BASE_VER="$(ver_cut 1).$(ver_cut 2).$(ver_cut 3)"
|
BASE_VER="$(ver_cut 1).$(ver_cut 2).$(ver_cut 3)"
|
||||||
RESTRICT="mirror"
|
RESTRICT="mirror"
|
||||||
|
|
||||||
GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 10 ))
|
GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 4 ))
|
||||||
CONFIG_VER=6.1.102-gentoo
|
CONFIG_VER=5.15.19
|
||||||
#CONFIG_HASH=ec69da7a42b5b7c3da91572ef22097b069ddbd01
|
CONFIG_HASH=ec69da7a42b5b7c3da91572ef22097b069ddbd01
|
||||||
GENTOO_CONFIG_VER=g13
|
GENTOO_CONFIG_VER=g6
|
||||||
|
|
||||||
DESCRIPTION="GNU Linux-libre kernel built from upstream sources"
|
DESCRIPTION="GNU Linux-libre kernel built from upstream sources"
|
||||||
HOMEPAGE="https://www.fsfla.org/ikiwiki/selibre/linux-libre/"
|
HOMEPAGE="https://www.fsfla.org/ikiwiki/selibre/linux-libre/"
|
||||||
SRC_URI+="
|
SRC_URI+="
|
||||||
https://git.agnos.is/projectmoon/projectmoon-overlay-files/media/branch/main/sys-kernel/libre-kernel/linux-libre-${BASE_VER}-gnu.tar.xz
|
https://git.agnos.is/projectmoon/projectmoon-overlay-files/media/branch/main/sys-kernel/libre-kernel/linux-libre-${BASE_VER}-gnu.tar.xz
|
||||||
https://linux-libre.fsfla.org/pub/linux-libre/releases/${BASE_VER}-gnu/linux-libre-${BASE_VER}-gnu.tar.xz
|
|
||||||
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz
|
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz
|
||||||
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz
|
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz
|
||||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||||
verify-sig? (
|
verify-sig? (
|
||||||
https://git.agnos.is/projectmoon/projectmoon-overlay-files/media/branch/main/sys-kernel/libre-kernel/linux-libre-${BASE_VER}-gnu.tar.xz.sign
|
https://git.agnos.is/projectmoon/projectmoon-overlay-files/media/branch/main/sys-kernel/libre-kernel/linux-libre-${BASE_VER}-gnu.tar.xz.sign
|
||||||
https://linux-libre.fsfla.org/pub/linux-libre/releases/${BASE_VER}-gnu/linux-libre-${BASE_VER}-gnu.tar.xz.sign
|
|
||||||
)
|
)
|
||||||
amd64? (
|
amd64? (
|
||||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||||
|
@ -98,15 +96,18 @@ src_unpack() {
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
local PATCHES
|
local PATCHES
|
||||||
if use gentoo; then
|
if use gentoo; then
|
||||||
# Fiters out the kernel incremental version upgrade patches,
|
PATCHES="
|
||||||
# leaving only the Gentoo bug fix/functionality changes. The
|
${WORKDIR}/1500_XATTR_USER_PREFIX.patch
|
||||||
# regex removes any patches starting with 10XX to 14XX.
|
${WORKDIR}/1510_fs-enable-link-security-restrictions-by-default.patch
|
||||||
MY_PATCHES=$(find "${WORKDIR}"/*.patch -printf "%f\n" | grep -v -E -e '^1[01234][[:digit:]][[:digit:]]_.+.patch')
|
${WORKDIR}/2000_BT-Check-key-sizes-only-if-Secure-Simple-Pairing-enabled.patch
|
||||||
PATCHES=$(echo "$MY_PATCHES" | sed 's|^|'"${WORKDIR}/"'|g')
|
${WORKDIR}/2900_tmp513-Fix-build-issue-by-selecting-CONFIG_REG.patch
|
||||||
|
${WORKDIR}/2920_sign-file-patch-for-libressl.patch
|
||||||
|
${WORKDIR}/2930_gcc-plugins-Reorg-gimple-incs-for-gcc-13.patch
|
||||||
|
${WORKDIR}/2940_gcc-plugins-drop-std-gnu-plus-plus-to-fix-GCC-13-build.patch
|
||||||
|
${WORKDIR}/3000_Support-printing-firmware-info.patch
|
||||||
|
${WORKDIR}/4567_distro-Gentoo-Kconfig.patch
|
||||||
|
"
|
||||||
else
|
else
|
||||||
# If no patches are to be applied, apply only the config changes
|
|
||||||
# for a Gentoo installation, as this does not change any actual
|
|
||||||
# Kernel functionality.
|
|
||||||
PATCHES="${WORKDIR}/4567_distro-Gentoo-Kconfig.patch"
|
PATCHES="${WORKDIR}/4567_distro-Gentoo-Kconfig.patch"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -119,14 +120,34 @@ src_prepare() {
|
||||||
amd64)
|
amd64)
|
||||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||||
;;
|
;;
|
||||||
|
arm)
|
||||||
|
return
|
||||||
|
;;
|
||||||
|
arm64)
|
||||||
|
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||||
|
biendian=true
|
||||||
|
;;
|
||||||
|
hppa)
|
||||||
|
return
|
||||||
|
;;
|
||||||
|
ppc)
|
||||||
|
# assume powermac/powerbook defconfig
|
||||||
|
# we still package.use.force savedconfig
|
||||||
|
cp "${WORKDIR}/${MY_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||||
|
;;
|
||||||
|
ppc64)
|
||||||
|
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||||
|
biendian=true
|
||||||
|
;;
|
||||||
|
x86)
|
||||||
|
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
die "Unsupported arch ${ARCH}"
|
die "Unsupported arch ${ARCH}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
sed -i 's/EXTRAVERSION = -gnu/EXTRAVERSION = /' "${S}"/Makefile || \
|
sed -i 's/EXTRAVERSION = -gnu/EXTRAVERSION = /' "${S}"/Makefile || die 'could not remove EXTRAVERSION'
|
||||||
die 'could not remove EXTRAVERSION'
|
|
||||||
|
|
||||||
local myversion="-gnu-dist"
|
local myversion="-gnu-dist"
|
||||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright 2020-2025 Gentoo Authors, projectmoon
|
# Copyright 2020-2023 Gentoo Authors, projectmoon
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=8
|
EAPI=8
|
||||||
|
@ -8,22 +8,21 @@ inherit kernel-build verify-sig
|
||||||
BASE_VER="$(ver_cut 1).$(ver_cut 2).$(ver_cut 3)"
|
BASE_VER="$(ver_cut 1).$(ver_cut 2).$(ver_cut 3)"
|
||||||
RESTRICT="mirror"
|
RESTRICT="mirror"
|
||||||
|
|
||||||
GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 8 ))
|
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
|
||||||
CONFIG_VER=6.6.12-gentoo
|
GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 2 ))
|
||||||
GENTOO_CONFIG_VER=g14
|
CONFIG_VER=6.1.7-gentoo
|
||||||
|
GENTOO_CONFIG_VER=g6
|
||||||
|
|
||||||
DESCRIPTION="GNU Linux-libre kernel built from upstream sources"
|
DESCRIPTION="GNU Linux-libre kernel built from upstream sources"
|
||||||
HOMEPAGE="https://www.fsfla.org/ikiwiki/selibre/linux-libre/"
|
HOMEPAGE="https://www.fsfla.org/ikiwiki/selibre/linux-libre/"
|
||||||
SRC_URI+="
|
SRC_URI+="
|
||||||
https://git.agnos.is/projectmoon/projectmoon-overlay-files/media/branch/main/sys-kernel/libre-kernel/linux-libre-${BASE_VER}-gnu.tar.xz
|
https://git.agnos.is/projectmoon/projectmoon-overlay-files/media/branch/main/sys-kernel/libre-kernel/linux-libre-${BASE_VER}-gnu.tar.xz
|
||||||
https://linux-libre.fsfla.org/pub/linux-libre/releases/${BASE_VER}-gnu/linux-libre-${BASE_VER}-gnu.tar.xz
|
|
||||||
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz
|
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz
|
||||||
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz
|
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz
|
||||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
||||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
||||||
verify-sig? (
|
verify-sig? (
|
||||||
https://git.agnos.is/projectmoon/projectmoon-overlay-files/media/branch/main/sys-kernel/libre-kernel/linux-libre-${BASE_VER}-gnu.tar.xz.sign
|
https://git.agnos.is/projectmoon/projectmoon-overlay-files/media/branch/main/sys-kernel/libre-kernel/linux-libre-${BASE_VER}-gnu.tar.xz.sign
|
||||||
https://linux-libre.fsfla.org/pub/linux-libre/releases/${BASE_VER}-gnu/linux-libre-${BASE_VER}-gnu.tar.xz.sign
|
|
||||||
)
|
)
|
||||||
amd64? (
|
amd64? (
|
||||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
||||||
|
@ -97,20 +96,19 @@ src_unpack() {
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
local PATCHES
|
local PATCHES
|
||||||
if use gentoo; then
|
if use gentoo; then
|
||||||
# Fiters out the kernel incremental version upgrade patches,
|
PATCHES="
|
||||||
# leaving only the Gentoo bug fix/functionality changes. The
|
${WORKDIR}/1500_XATTR_USER_PREFIX.patch
|
||||||
# regex removes any patches starting with 10XX to 14XX.
|
${WORKDIR}/1510_fs-enable-link-security-restrictions-by-default.patch
|
||||||
MY_PATCHES=$(find "${WORKDIR}"/*.patch -printf "%f\n" | grep -v -E -e '^1[01234][[:digit:]][[:digit:]]_.+.patch')
|
${WORKDIR}/2000_BT-Check-key-sizes-only-if-Secure-Simple-Pairing-enabled.patch
|
||||||
|
${WORKDIR}/2900_tmp513-Fix-build-issue-by-selecting-CONFIG_REG.patch
|
||||||
# Filter out additional patches that do not apply cleanly.
|
${WORKDIR}/2910_bfp-mark-get-entry-ip-as--maybe-unused.patch
|
||||||
MY_PATCHES=$(echo "$MY_PATCHES" | grep -v '2710_drm-amdgpu-resume-handling-rework.patch')
|
${WORKDIR}/2920_sign-file-patch-for-libressl.patch
|
||||||
|
${WORKDIR}/2930_gcc-plugins-Reorg-gimple-incs-for-gcc-13.patch
|
||||||
# Final assignment.
|
${WORKDIR}/2940_gcc-plugins-drop-std-gnu-plus-plus-to-fix-GCC-13-build.patch
|
||||||
PATCHES=$(echo "$MY_PATCHES" | sed 's|^|'"${WORKDIR}/"'|g')
|
${WORKDIR}/3000_Support-printing-firmware-info.patch
|
||||||
|
${WORKDIR}/4567_distro-Gentoo-Kconfig.patch
|
||||||
|
"
|
||||||
else
|
else
|
||||||
# If no patches are to be applied, apply only the config changes
|
|
||||||
# for a Gentoo installation, as this does not change any actual
|
|
||||||
# Kernel functionality.
|
|
||||||
PATCHES="${WORKDIR}/4567_distro-Gentoo-Kconfig.patch"
|
PATCHES="${WORKDIR}/4567_distro-Gentoo-Kconfig.patch"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -123,14 +121,34 @@ src_prepare() {
|
||||||
amd64)
|
amd64)
|
||||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
||||||
;;
|
;;
|
||||||
|
arm)
|
||||||
|
return
|
||||||
|
;;
|
||||||
|
arm64)
|
||||||
|
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
|
||||||
|
biendian=true
|
||||||
|
;;
|
||||||
|
hppa)
|
||||||
|
return
|
||||||
|
;;
|
||||||
|
ppc)
|
||||||
|
# assume powermac/powerbook defconfig
|
||||||
|
# we still package.use.force savedconfig
|
||||||
|
cp "${WORKDIR}/${MY_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
|
||||||
|
;;
|
||||||
|
ppc64)
|
||||||
|
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
|
||||||
|
biendian=true
|
||||||
|
;;
|
||||||
|
x86)
|
||||||
|
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
die "Unsupported arch ${ARCH}"
|
die "Unsupported arch ${ARCH}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
sed -i 's/EXTRAVERSION = -gnu/EXTRAVERSION = /' "${S}"/Makefile || \
|
sed -i 's/EXTRAVERSION = -gnu/EXTRAVERSION = /' "${S}"/Makefile || die 'could not remove EXTRAVERSION'
|
||||||
die 'could not remove EXTRAVERSION'
|
|
||||||
|
|
||||||
local myversion="-gnu-dist"
|
local myversion="-gnu-dist"
|
||||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
||||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
|
@ -1,159 +0,0 @@
|
||||||
# Copyright 2020-2025 Gentoo Authors, projectmoon
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
inherit kernel-build verify-sig
|
|
||||||
|
|
||||||
BASE_VER="$(ver_cut 1).$(ver_cut 2).$(ver_cut 3)"
|
|
||||||
RESTRICT="mirror"
|
|
||||||
|
|
||||||
GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 4 ))
|
|
||||||
CONFIG_VER=6.12.8-gentoo
|
|
||||||
GENTOO_CONFIG_VER=g15
|
|
||||||
|
|
||||||
DESCRIPTION="GNU Linux-libre kernel built from upstream sources"
|
|
||||||
HOMEPAGE="https://www.fsfla.org/ikiwiki/selibre/linux-libre/"
|
|
||||||
SRC_URI+="
|
|
||||||
https://git.agnos.is/projectmoon/projectmoon-overlay-files/media/branch/main/sys-kernel/libre-kernel/linux-libre-${BASE_VER}-gnu.tar.xz
|
|
||||||
https://linux-libre.fsfla.org/pub/linux-libre/releases/${BASE_VER}-gnu/linux-libre-${BASE_VER}-gnu.tar.xz
|
|
||||||
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz
|
|
||||||
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz
|
|
||||||
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
|
|
||||||
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
|
|
||||||
verify-sig? (
|
|
||||||
https://git.agnos.is/projectmoon/projectmoon-overlay-files/media/branch/main/sys-kernel/libre-kernel/linux-libre-${BASE_VER}-gnu.tar.xz.sign
|
|
||||||
https://linux-libre.fsfla.org/pub/linux-libre/releases/${BASE_VER}-gnu/linux-libre-${BASE_VER}-gnu.tar.xz.sign
|
|
||||||
)
|
|
||||||
amd64? (
|
|
||||||
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
|
|
||||||
-> kernel-x86_64-fedora.config.${CONFIG_VER}
|
|
||||||
)
|
|
||||||
"
|
|
||||||
|
|
||||||
# Workdir is named linux-PV.
|
|
||||||
MY_P=linux-${PV}
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
KEYWORDS="amd64"
|
|
||||||
IUSE="debug +gentoo"
|
|
||||||
|
|
||||||
BDEPEND="
|
|
||||||
debug? ( dev-util/pahole )
|
|
||||||
verify-sig? ( sec-keys/openpgp-keys-linux-libre )
|
|
||||||
"
|
|
||||||
PDEPEND="
|
|
||||||
>=virtual/dist-kernel-${PV}
|
|
||||||
"
|
|
||||||
|
|
||||||
VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/linux-libre.asc
|
|
||||||
KBUILD_CFLAGS="${KBUILD_CFLAGS} -Wno-error=format-extra-args"
|
|
||||||
KBUILD_CPPFLAGS="${KBUILD_CPPFLAGS} -Wno-error=format-extra-args"
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
if has_version -d sys-kernel/linux-firmware[redistributable]; then
|
|
||||||
ewarn "sys-kernel/linux-firmware was found installed on your system,"
|
|
||||||
ewarn "but it is configured to install non-Free firmware files."
|
|
||||||
ewarn "The non-Free firmware files may be required for some hardware"
|
|
||||||
ewarn "work. The Linux-libre kernel cannot load non-Free firmware."
|
|
||||||
ewarn "To install only the Free firmware, set the -redistributable"
|
|
||||||
ewarn "USE flag on sys-kernel/linux-firmware."
|
|
||||||
|
|
||||||
if use initramfs; then
|
|
||||||
elog
|
|
||||||
elog "If you decide to change or remove linux-firmware later, you"
|
|
||||||
elog "can rebuild the initramfs via issuing a command equivalent to:"
|
|
||||||
elog
|
|
||||||
elog " emerge --config ${CATEGORY}/${PN}:${SLOT}"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
if ! has_version -d sys-kernel/linux-firmware; then
|
|
||||||
ewarn "sys-kernel/linux-firmware[-redistributable] not found installed"
|
|
||||||
ewarn "on your system. This package provides various firmware files that"
|
|
||||||
ewarn "may be needed for your hardware to work. If in doubt, it is recommended"
|
|
||||||
ewarn "to pause or abort the build process and install it before"
|
|
||||||
ewarn "resuming."
|
|
||||||
|
|
||||||
if use initramfs; then
|
|
||||||
elog
|
|
||||||
elog "If you decide to install linux-firmware later, you can rebuild"
|
|
||||||
elog "the initramfs via issuing a command equivalent to:"
|
|
||||||
elog
|
|
||||||
elog " emerge --config ${CATEGORY}/${PN}:${SLOT}"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if use verify-sig; then
|
|
||||||
FILE="${DISTDIR}"/linux-libre-${PV}-gnu.tar.xz
|
|
||||||
SIGFILE="${DISTDIR}"/linux-libre-${PV}-gnu.tar.xz.sign
|
|
||||||
verify-sig_verify_detached $FILE $SIGFILE
|
|
||||||
fi
|
|
||||||
|
|
||||||
default
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
local PATCHES
|
|
||||||
if use gentoo; then
|
|
||||||
# Fiters out the kernel incremental version upgrade patches,
|
|
||||||
# leaving only the Gentoo bug fix/functionality changes. The
|
|
||||||
# regex removes any patches starting with 10XX to 14XX.
|
|
||||||
MY_PATCHES=$(find "${WORKDIR}"/*.patch -printf "%f\n" | grep -v -E -e '^1[01234][[:digit:]][[:digit:]]_.+.patch')
|
|
||||||
|
|
||||||
# Filter out additional patches that do not apply cleanly.
|
|
||||||
# MY_PATCHES=$(echo "$MY_PATCHES" | grep -v '2710_drm-amdgpu-resume-handling-rework.patch')
|
|
||||||
|
|
||||||
# Final assignment.
|
|
||||||
PATCHES=$(echo "$MY_PATCHES" | sed 's|^|'"${WORKDIR}/"'|g')
|
|
||||||
else
|
|
||||||
# If no patches are to be applied, apply only the config changes
|
|
||||||
# for a Gentoo installation, as this does not change any actual
|
|
||||||
# Kernel functionality.
|
|
||||||
PATCHES="${WORKDIR}/4567_distro-Gentoo-Kconfig.patch"
|
|
||||||
fi
|
|
||||||
|
|
||||||
default
|
|
||||||
|
|
||||||
local biendian=false
|
|
||||||
|
|
||||||
# prepare the default config
|
|
||||||
case ${ARCH} in
|
|
||||||
amd64)
|
|
||||||
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
die "Unsupported arch ${ARCH}"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
sed -i 's/EXTRAVERSION = -gnu/EXTRAVERSION = /' "${S}"/Makefile || \
|
|
||||||
die 'could not remove EXTRAVERSION'
|
|
||||||
|
|
||||||
local myversion="-gnu-dist"
|
|
||||||
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
|
|
||||||
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
|
|
||||||
|
|
||||||
# Required to suppress errors from deblobbing in the DRM module,
|
|
||||||
# that only started showing up in kernel 6.12+.
|
|
||||||
echo "CONFIG_DRM_WERROR=n" >> "${T}/no-warnings.config" || die
|
|
||||||
|
|
||||||
local merge_configs=(
|
|
||||||
"${T}"/version.config
|
|
||||||
"${dist_conf_path}"/base.config
|
|
||||||
"${T}"/no-warnings.config
|
|
||||||
)
|
|
||||||
use debug || merge_configs+=(
|
|
||||||
"${dist_conf_path}"/no-debug.config
|
|
||||||
)
|
|
||||||
|
|
||||||
# this covers ppc64 and aarch64_be only for now
|
|
||||||
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
|
|
||||||
merge_configs+=( "${dist_conf_path}/big-endian.config" )
|
|
||||||
fi
|
|
||||||
|
|
||||||
kernel-build_merge_configs "${merge_configs[@]}"
|
|
||||||
}
|
|
|
@ -1 +1,2 @@
|
||||||
|
DIST librem-ec-acpi-dkms-v0.9.1.tar.gz 13003 BLAKE2B 87d7988be2de75d491eaaa49918db354d426deefd57b4afa72b1447e5993d9b5b06b6964092c050ef039d7d9faa33e55137c1879a1b959e6f4f3ce877137e6db SHA512 93ee26917eddbef9aa9c0eb83007452ebf57c279f41c3061ee52756bb1f748c72935067b19c3417ed7b8a9795990b0f060241c0b7f2348d7f8ec01e9f88dcd3c
|
||||||
DIST librem-ec-acpi-dkms-v0.9.2.tar.gz 13093 BLAKE2B 0c29aeec2f4804be98f628b16c2219acf805d3659d8dd4797db2cdcc94316bfb5ab5c396d2b3584de12b573907e671b0422e89c0a774516e4b1e573032fd5843 SHA512 b5d10fcf34a8b424138f9db1b06e916d809462ea55c7ca2565f13154da4fa49736ac95fb1b131c27ee49aa5f170f3e8a1a9c9a61c69e0364bcee37669759e8f6
|
DIST librem-ec-acpi-dkms-v0.9.2.tar.gz 13093 BLAKE2B 0c29aeec2f4804be98f628b16c2219acf805d3659d8dd4797db2cdcc94316bfb5ab5c396d2b3584de12b573907e671b0422e89c0a774516e4b1e573032fd5843 SHA512 b5d10fcf34a8b424138f9db1b06e916d809462ea55c7ca2565f13154da4fa49736ac95fb1b131c27ee49aa5f170f3e8a1a9c9a61c69e0364bcee37669759e8f6
|
||||||
|
|
|
@ -1,26 +0,0 @@
|
||||||
From 13fc2a3949c30cfd8624acdbc97c7942aee588f8 Mon Sep 17 00:00:00 2001
|
|
||||||
From: primalmotion <primalmotion@pm.me>
|
|
||||||
Date: Tue, 6 Aug 2024 18:14:10 +0200
|
|
||||||
Subject: [PATCH] fixed: build on linux 6.10.3
|
|
||||||
|
|
||||||
---
|
|
||||||
librem_ec_acpi.c | 2 ++
|
|
||||||
1 file changed, 2 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/librem_ec_acpi.c b/librem_ec_acpi.c
|
|
||||||
index 4e8ebf3..d53f580 100644
|
|
||||||
--- a/librem_ec_acpi.c
|
|
||||||
+++ b/librem_ec_acpi.c
|
|
||||||
@@ -779,7 +779,9 @@ static SIMPLE_DEV_PM_OPS(librem_ec_pm, librem_ec_suspend, librem_ec_resume);
|
|
||||||
|
|
||||||
static struct acpi_driver librem_ec_driver = {
|
|
||||||
.name = "Librem EC ACPI Driver",
|
|
||||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 10, 3)
|
|
||||||
.owner = THIS_MODULE,
|
|
||||||
+#endif
|
|
||||||
.class = "hotkey",
|
|
||||||
.ids = device_ids,
|
|
||||||
// .flags = ACPI_DRIVER_ALL_NOTIFY_EVENTS,
|
|
||||||
--
|
|
||||||
GitLab
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright 2021-2023 projectmoon
|
# Copyright 2021 projectmoon
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=7
|
EAPI=7
|
||||||
|
@ -8,7 +8,6 @@ inherit linux-info linux-mod
|
||||||
DESCRIPTION="Librem EC ACPI Driver"
|
DESCRIPTION="Librem EC ACPI Driver"
|
||||||
HOMEPAGE="https://source.puri.sm/nicole.faerber/librem-ec-acpi-dkms"
|
HOMEPAGE="https://source.puri.sm/nicole.faerber/librem-ec-acpi-dkms"
|
||||||
SRC_URI="https://source.puri.sm/nicole.faerber/librem-ec-acpi-dkms/-/archive/v${PV}/librem-ec-acpi-dkms-v${PV}.tar.gz"
|
SRC_URI="https://source.puri.sm/nicole.faerber/librem-ec-acpi-dkms/-/archive/v${PV}/librem-ec-acpi-dkms-v${PV}.tar.gz"
|
||||||
RESTRICT="mirror"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
LICENSE="GPL-2"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
|
@ -30,9 +29,6 @@ src_prepare() {
|
||||||
linux-info_get_any_version
|
linux-info_get_any_version
|
||||||
sed -i "s/\$(shell uname -r)/${KV_FULL}/" Makefile \
|
sed -i "s/\$(shell uname -r)/${KV_FULL}/" Makefile \
|
||||||
|| die "could not set kernel version in makefile"
|
|| die "could not set kernel version in makefile"
|
||||||
|
|
||||||
# Apply patch to fix compilation issue on newer Linux kernels.
|
|
||||||
eapply "${FILESDIR}"/0001-kernel-6-10-3.patch
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_setup() {
|
pkg_setup() {
|
|
@ -0,0 +1,38 @@
|
||||||
|
# Copyright 2021 projectmoon
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit linux-info linux-mod
|
||||||
|
|
||||||
|
DESCRIPTION="Librem EC ACPI Driver"
|
||||||
|
HOMEPAGE="https://source.puri.sm/nicole.faerber/librem-ec-acpi-dkms"
|
||||||
|
SRC_URI="https://source.puri.sm/nicole.faerber/librem-ec-acpi-dkms/-/archive/v${PV}/librem-ec-acpi-dkms-v${PV}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
|
S="${WORKDIR}/librem-ec-acpi-dkms-v${PV}/"
|
||||||
|
MODULE_NAMES="librem_ec_acpi(librem:${S}:${S})"
|
||||||
|
BUILD_TARGETS="clean all"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
# Makefile hardcoded to point at running kernel
|
||||||
|
# but we want the user-chosen kernel.
|
||||||
|
linux-info_get_any_version
|
||||||
|
sed -i "s/\$(shell uname -r)/${KV_FULL}/" Makefile \
|
||||||
|
|| die "could not set kernel version in makefile"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
linux-mod_pkg_setup
|
||||||
|
BUILD_PARAMS="KERNELDIR=${KV_DIR}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
linux-mod_src_install
|
||||||
|
einstalldocs
|
||||||
|
}
|
|
@ -1,11 +1,15 @@
|
||||||
# Copyright 2021-2025 Gentoo Authors
|
# Copyright 2021-2022 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=8
|
EAPI=7
|
||||||
|
|
||||||
DESCRIPTION="Virtual to depend on any Distribution Kernel"
|
DESCRIPTION="Virtual to depend on any Distribution Kernel"
|
||||||
SLOT="0/${PVR}"
|
HOMEPAGE=""
|
||||||
KEYWORDS="amd64 ~arm arm64 ~hppa ~ppc ppc64 ~sparc x86"
|
SRC_URI=""
|
||||||
|
|
||||||
|
LICENSE=""
|
||||||
|
SLOT="0/${PV}"
|
||||||
|
KEYWORDS="amd64 ~arm arm64 ~hppa ~ppc ppc64 x86"
|
||||||
|
|
||||||
RDEPEND="
|
RDEPEND="
|
||||||
|| (
|
|| (
|
||||||
|
@ -13,5 +17,4 @@ RDEPEND="
|
||||||
~sys-kernel/gentoo-kernel-bin-${PV}
|
~sys-kernel/gentoo-kernel-bin-${PV}
|
||||||
~sys-kernel/vanilla-kernel-${PV}
|
~sys-kernel/vanilla-kernel-${PV}
|
||||||
~sys-kernel/libre-kernel-${PV}
|
~sys-kernel/libre-kernel-${PV}
|
||||||
)
|
)"
|
||||||
"
|
|
|
@ -1,11 +1,15 @@
|
||||||
# Copyright 2021-2025 Gentoo Authors
|
# Copyright 2021-2022 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=8
|
EAPI=7
|
||||||
|
|
||||||
DESCRIPTION="Virtual to depend on any Distribution Kernel"
|
DESCRIPTION="Virtual to depend on any Distribution Kernel"
|
||||||
SLOT="0/${PVR}"
|
HOMEPAGE=""
|
||||||
KEYWORDS="amd64 ~arm arm64 ~hppa ~ppc ppc64 ~sparc x86"
|
SRC_URI=""
|
||||||
|
|
||||||
|
LICENSE=""
|
||||||
|
SLOT="0/${PV}"
|
||||||
|
KEYWORDS="amd64 ~arm arm64 ~hppa ~ppc ppc64 x86"
|
||||||
|
|
||||||
RDEPEND="
|
RDEPEND="
|
||||||
|| (
|
|| (
|
||||||
|
@ -13,5 +17,4 @@ RDEPEND="
|
||||||
~sys-kernel/gentoo-kernel-bin-${PV}
|
~sys-kernel/gentoo-kernel-bin-${PV}
|
||||||
~sys-kernel/vanilla-kernel-${PV}
|
~sys-kernel/vanilla-kernel-${PV}
|
||||||
~sys-kernel/libre-kernel-${PV}
|
~sys-kernel/libre-kernel-${PV}
|
||||||
)
|
)"
|
||||||
"
|
|
|
@ -1,11 +1,15 @@
|
||||||
# Copyright 2021-2024 Gentoo Authors
|
# Copyright 2021-2022 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=8
|
EAPI=7
|
||||||
|
|
||||||
DESCRIPTION="Virtual to depend on any Distribution Kernel"
|
DESCRIPTION="Virtual to depend on any Distribution Kernel"
|
||||||
SLOT="0/${PVR}"
|
HOMEPAGE=""
|
||||||
KEYWORDS="amd64 ~arm arm64 ~hppa ~ppc ppc64 ~sparc x86"
|
SRC_URI=""
|
||||||
|
|
||||||
|
LICENSE=""
|
||||||
|
SLOT="0/${PV}"
|
||||||
|
KEYWORDS="amd64 ~arm arm64 ~hppa ~ppc ppc64 x86"
|
||||||
|
|
||||||
RDEPEND="
|
RDEPEND="
|
||||||
|| (
|
|| (
|
||||||
|
@ -13,5 +17,4 @@ RDEPEND="
|
||||||
~sys-kernel/gentoo-kernel-bin-${PV}
|
~sys-kernel/gentoo-kernel-bin-${PV}
|
||||||
~sys-kernel/vanilla-kernel-${PV}
|
~sys-kernel/vanilla-kernel-${PV}
|
||||||
~sys-kernel/libre-kernel-${PV}
|
~sys-kernel/libre-kernel-${PV}
|
||||||
)
|
)"
|
||||||
"
|
|
|
@ -1,11 +1,15 @@
|
||||||
# Copyright 2021-2025 Gentoo Authors
|
# Copyright 2021-2022 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=8
|
EAPI=7
|
||||||
|
|
||||||
DESCRIPTION="Virtual to depend on any Distribution Kernel"
|
DESCRIPTION="Virtual to depend on any Distribution Kernel"
|
||||||
SLOT="0/${PVR}"
|
HOMEPAGE=""
|
||||||
KEYWORDS="amd64 ~arm arm64 ~hppa ~ppc ppc64 ~sparc x86"
|
SRC_URI=""
|
||||||
|
|
||||||
|
LICENSE=""
|
||||||
|
SLOT="0/${PV}"
|
||||||
|
KEYWORDS="amd64 ~arm arm64 ~hppa ~ppc ppc64 x86"
|
||||||
|
|
||||||
RDEPEND="
|
RDEPEND="
|
||||||
|| (
|
|| (
|
||||||
|
@ -13,5 +17,4 @@ RDEPEND="
|
||||||
~sys-kernel/gentoo-kernel-bin-${PV}
|
~sys-kernel/gentoo-kernel-bin-${PV}
|
||||||
~sys-kernel/vanilla-kernel-${PV}
|
~sys-kernel/vanilla-kernel-${PV}
|
||||||
~sys-kernel/libre-kernel-${PV}
|
~sys-kernel/libre-kernel-${PV}
|
||||||
)
|
)"
|
||||||
"
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
# Copyright 2021-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
DESCRIPTION="Virtual to depend on any Distribution Kernel"
|
||||||
|
HOMEPAGE=""
|
||||||
|
SRC_URI=""
|
||||||
|
|
||||||
|
LICENSE=""
|
||||||
|
SLOT="0/${PV}"
|
||||||
|
KEYWORDS="amd64 ~arm arm64 ~hppa ~ppc ppc64 x86"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
|| (
|
||||||
|
~sys-kernel/gentoo-kernel-${PV}
|
||||||
|
~sys-kernel/gentoo-kernel-bin-${PV}
|
||||||
|
~sys-kernel/vanilla-kernel-${PV}
|
||||||
|
~sys-kernel/libre-kernel-${PV}
|
||||||
|
)"
|
|
@ -0,0 +1,20 @@
|
||||||
|
# Copyright 2021-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
DESCRIPTION="Virtual to depend on any Distribution Kernel"
|
||||||
|
HOMEPAGE=""
|
||||||
|
SRC_URI=""
|
||||||
|
|
||||||
|
LICENSE=""
|
||||||
|
SLOT="0/${PV}"
|
||||||
|
KEYWORDS="amd64 ~arm arm64 ~hppa ~ppc ppc64 x86"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
|| (
|
||||||
|
~sys-kernel/gentoo-kernel-${PV}
|
||||||
|
~sys-kernel/gentoo-kernel-bin-${PV}
|
||||||
|
~sys-kernel/vanilla-kernel-${PV}
|
||||||
|
~sys-kernel/libre-kernel-${PV}
|
||||||
|
)"
|
|
@ -0,0 +1,20 @@
|
||||||
|
# Copyright 2021-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
DESCRIPTION="Virtual to depend on any Distribution Kernel"
|
||||||
|
HOMEPAGE=""
|
||||||
|
SRC_URI=""
|
||||||
|
|
||||||
|
LICENSE=""
|
||||||
|
SLOT="0/${PV}"
|
||||||
|
KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~x86"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
|| (
|
||||||
|
~sys-kernel/gentoo-kernel-${PV}
|
||||||
|
~sys-kernel/gentoo-kernel-bin-${PV}
|
||||||
|
~sys-kernel/vanilla-kernel-${PV}
|
||||||
|
~sys-kernel/libre-kernel-${PV}
|
||||||
|
)"
|
|
@ -1,28 +0,0 @@
|
||||||
# Copyright 1999-2024 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
DESCRIPTION="Virtual for Linux kernel sources"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
|
|
||||||
IUSE="firmware"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
firmware? ( sys-kernel/linux-firmware )
|
|
||||||
|| (
|
|
||||||
sys-kernel/gentoo-sources
|
|
||||||
sys-kernel/vanilla-sources
|
|
||||||
sys-kernel/git-sources
|
|
||||||
sys-kernel/mips-sources
|
|
||||||
sys-kernel/pf-sources
|
|
||||||
sys-kernel/rt-sources
|
|
||||||
sys-kernel/zen-sources
|
|
||||||
sys-kernel/raspberrypi-sources
|
|
||||||
sys-kernel/gentoo-kernel
|
|
||||||
sys-kernel/gentoo-kernel-bin
|
|
||||||
sys-kernel/vanilla-kernel
|
|
||||||
sys-kernel/linux-next
|
|
||||||
sys-kernel/asahi-sources
|
|
||||||
sys-kernel/libre-kernel
|
|
||||||
)"
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
DIST WebAppManifestRS-89ee187e6300bbd2d6f773651a4fcc07e4e7ede6.gh.tar.gz 20964 BLAKE2B 30a1aab01c5f2a2f52e1f47edf1bd3235724fd9da699013e0cfcd4fe73edaa1410f93bc875a223b996a43026b6f96c19ac89ff43828313dba302582699fc893a SHA512 614c69fadf2cfe2a973175a2939edcaa4faeed7e8b4d5640f5eda354dc24fa375c9f9055c86e11be041abd1e6b0bd81dd47eb434896078c5a28b4400a29e4ff3
|
||||||
|
DIST firefox-pwa-connector-2.4.1.zip 735659 BLAKE2B f25bccbe74c914c37b9cccc5cb1b613c7c0789148142cb096c7f71ab72356bff23a3f936d119194d284c8193c035c43875aec05452424590374ca244ddf20d87 SHA512 e3affcb010adfd318c1385b5e58fe21a4f4b252490d5d3543a9f48131137a0dcc5856be27d0b7d01536078a2fc16d256cefea480a9b0c83731ff512633193586
|
||||||
|
DIST mime-57416f447a10c3343df7fe80deb0ae8a7c77cf0a.gh.tar.gz 22313 BLAKE2B a659e06d1316c7b5102f4a87f02bc35cb05947ff496167cc5acf9ba038c2091ef732bd43f298d9897aee2ce9e0f0e58253a5b06a1105251c0cdbb869db9410b8 SHA512 0d6726f66e34c83895b92928da4b8a1284d5e1d98bc7b01af1036fd92b0299fbc1dbcd0605c2323619db5cb807dcdcdb76da0026058c74c07e54959be1c75dde
|
||||||
|
DIST rust-url-0032b9e8328f1a7ce2773f71adf316542ee8ddc9.gh.tar.gz 384127 BLAKE2B 8ff1c840742730713494c48e2376201ab114634e5480d66d97661186dd3b218b7bf74024331af64afeec56dfce10dcb7db6349d1c2657b797cf9d199b9c98a75 SHA512 2826c77f9fe57cd5d8686e407994b5917818399f2bcb02050f08101709bf8ea0394615268e5059f2f8825c864f2ba768c3d902534ed309d0b9ad48eafe714191
|
||||||
|
DIST vendor.tar.gz 56937356 BLAKE2B f29fd480b134da2fa747548cff8aecfb55c95d24b7d33f65388b9483b025d782649b34d1eafa07c94ebdac1681eb5820c376fd597397784450fad931e4dd2f95 SHA512 0951b409d0835e8303654ed3f0c429d118ba43159342f38a02e0481c5973330fd2a50403599f2197ce40d2296423839085fe784ed9df3cb82602e9a2785894f1
|
|
@ -0,0 +1,68 @@
|
||||||
|
# Copyright 2023 Gentoo Authors, projectmoon
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
# Empty because of vendor tarball.
|
||||||
|
CRATES=" "
|
||||||
|
|
||||||
|
# This is apparently necessary even with vendor tarball?
|
||||||
|
declare -A GIT_CRATES=(
|
||||||
|
[data-url]="https://github.com/filips123/rust-url;0032b9e8328f1a7ce2773f71adf316542ee8ddc9;rust-url-%commit%/data-url"
|
||||||
|
[web_app_manifest]="https://github.com/filips123/WebAppManifestRS;89ee187e6300bbd2d6f773651a4fcc07e4e7ede6;WebAppManifestRS-%commit%/"
|
||||||
|
[mime]="https://github.com/filips123/mime;57416f447a10c3343df7fe80deb0ae8a7c77cf0a"
|
||||||
|
)
|
||||||
|
|
||||||
|
inherit cargo
|
||||||
|
|
||||||
|
DESCRIPTION="The native part of the PWAsForFirefox project"
|
||||||
|
# Double check the homepage as the cargo_metadata crate
|
||||||
|
# does not provide this value so instead repository is used
|
||||||
|
HOMEPAGE="https://github.com/filips123/PWAsForFirefox"
|
||||||
|
SRC_URI="
|
||||||
|
$(cargo_crate_uris)
|
||||||
|
https://github.com/filips123/PWAsForFirefox/archive/refs/tags/v${PV}.zip -> ${P}.zip
|
||||||
|
https://git.agnos.is/projectmoon/projectmoon-overlay-files/media/branch/main/www-plugins/firefox-pwa-connector/vendor-2.4.1.tar.gz -> vendor.tar.gz
|
||||||
|
"
|
||||||
|
|
||||||
|
LICENSE="0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD BSD-2 Boost-1.0 LGPL-3+ MIT MPL-2.0 Unicode-DFS-2016 Unlicense ZLIB"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
|
DEPEND=""
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
BDEPEND="dev-util/cargo-make" # from guru
|
||||||
|
|
||||||
|
# Needed as source is in a subdirectory
|
||||||
|
S="${WORKDIR}/PWAsForFirefox-${PV}/native"
|
||||||
|
|
||||||
|
# rust does not use *FLAGS from make.conf, silence portage warning
|
||||||
|
# update with proper path to binaries this crate installs, omit leading /
|
||||||
|
QA_FLAGS_IGNORED="usr/bin/${PN}"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# Link vendored cargo deps in.
|
||||||
|
ln -s "${WORKDIR}/vendor/"* "${CARGO_HOME}/gentoo/"
|
||||||
|
|
||||||
|
# Patch makefile according to from-source install instructions.
|
||||||
|
sed -i "s/version = \"0.0.0\"/version = \"${PV}\"/g" Cargo.toml \
|
||||||
|
|| die 'could not set Cargo.toml version'
|
||||||
|
sed -i "s/DISTRIBUTION_VERSION = '0.0.0'/DISTRIBUTION_VERSION = '${PV}'/g" \
|
||||||
|
"${S}"/userchrome/profile/chrome/pwa/chrome.jsm || die 'could not set chrome.jsm version'
|
||||||
|
|
||||||
|
sed -i 's/SUDO=$(which sudo) || $(echo "")/SUDO=""/' Makefile.toml
|
||||||
|
|
||||||
|
# patch makefile to respect DESTDIR
|
||||||
|
sed -i 's/\/usr\/bin\/firefoxpwa/$DESTDIR\/usr\/bin\/firefoxpwa/g' Makefile.toml
|
||||||
|
sed -i 's/\/usr\/libexec\/firefoxpwa-connector/$DESTDIR\/usr\/libexec\/firefoxpwa-connector/g' Makefile.toml
|
||||||
|
sed -i 's/\/usr\/lib\/mozilla\/native-messaging-hosts\/firefoxpwa.json/$DESTDIR\/usr\/lib\/mozilla\/native-messaging-hosts\/firefoxpwa.json/g' Makefile.toml
|
||||||
|
sed -i 's/\/usr\/lib64\/mozilla\/native-messaging-hosts\/firefoxpwa.json/$DESTDIR\/usr\/lib64\/mozilla\/native-messaging-hosts\/firefoxpwa.json/g' Makefile.toml
|
||||||
|
sed -i 's/\/usr\/share\/firefoxpwa\/userchrome/$DESTDIR\/usr\/share\/firefoxpwa\/userchrome/g' Makefile.toml
|
||||||
|
|
||||||
|
default
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
export DESTDIR="${D}"
|
||||||
|
makers install
|
||||||
|
}
|
Loading…
Reference in New Issue