Add support for Ubuntu kinetic

This commit is contained in:
Gianfranco Costamagna 2022-05-30 22:18:03 +02:00
parent b8e0a22e40
commit eee8322010
2 changed files with 39 additions and 0 deletions

View File

@ -150,3 +150,4 @@ wasm-ld-path.diff
python3-scan-build.py python3-scan-build.py
revert-update-doc.diff revert-update-doc.diff
fix-typo.diff fix-typo.diff
ubuntu-kinetic.patch

38
debian/patches/ubuntu-kinetic.patch vendored Normal file
View File

@ -0,0 +1,38 @@
Description: Update the list of Ubuntu release names
Author: Steve Langasek <steve.langasek@ubuntu.com>
Last-Update: 2022-05-03
Forwarded: no
Index: llvm-toolchain-14-14.0.0/clang/include/clang/Driver/Distro.h
===================================================================
--- llvm-toolchain-14-14.0.0.orig/clang/include/clang/Driver/Distro.h
+++ llvm-toolchain-14-14.0.0/clang/include/clang/Driver/Distro.h
@@ -74,6 +74,7 @@
UbuntuHirsute,
UbuntuImpish,
UbuntuJammy,
+ UbuntuKinetic,
UnknownDistro
};
@@ -125,7 +126,7 @@
}
bool IsUbuntu() const {
- return DistroVal >= UbuntuHardy && DistroVal <= UbuntuJammy;
+ return DistroVal >= UbuntuHardy && DistroVal <= UbuntuKinetic;
}
bool IsAlpineLinux() const { return DistroVal == AlpineLinux; }
Index: llvm-toolchain-14-14.0.0/clang/lib/Driver/Distro.cpp
===================================================================
--- llvm-toolchain-14-14.0.0.orig/clang/lib/Driver/Distro.cpp
+++ llvm-toolchain-14-14.0.0/clang/lib/Driver/Distro.cpp
@@ -91,6 +91,7 @@
.Case("hirsute", Distro::UbuntuHirsute)
.Case("impish", Distro::UbuntuImpish)
.Case("jammy", Distro::UbuntuJammy)
+ .Case("kinetic", Distro::UbuntuKinetic)
.Default(Distro::UnknownDistro);
return Version;
}