[Dev] [RFC] Linux kernel ABI versioning

André Silva emulatorman at riseup.net
Wed Mar 22 19:55:23 GMT 2017

On 03/22/2017 04:07 PM, Luke Shumaker wrote:
> I'd like to propose adding a LINUX-ABI_VERSION pseudo-package that is
> provided by each of the Linux kernel packages.
> So then a package that requires at least Linux kernel 4.7 (until
> recently, -lts was 4.4), can say
>     requires=('LINUX-ABI_VERSION>=4.7')
>     conflicts=('LINUX-ABI_VERSION<4.7')
> without having to worry about if the user uses linux-libre or
> linux-libre-lts or linux-libre-knock-lts or whatever.  The "conflicts"
> line is important because it handles the case where the user has both
> linux-libre and linux-libre-lts installed, but boots to -lts by
> default; thus breaking the dependency on the newer kernel.


> This can be accomplished by adding "LINUX-ABI_VERSION=${_pkgver%%-*}"
> to the provides=() line in the "_package()" function.

I will add it in our kernels, thanks for the suggestion. :)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.parabola.nu/pipermail/dev/attachments/20170322/288ceb92/attachment.sig>

More information about the Dev mailing list