diff --git a/debian/patches/series b/debian/patches/series index df956934..a8251ea9 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -150,3 +150,4 @@ wasm-ld-path.diff python3-scan-build.py revert-update-doc.diff fix-typo.diff +ubuntu-kinetic.patch diff --git a/debian/patches/ubuntu-kinetic.patch b/debian/patches/ubuntu-kinetic.patch new file mode 100644 index 00000000..ca71aab1 --- /dev/null +++ b/debian/patches/ubuntu-kinetic.patch @@ -0,0 +1,38 @@ +Description: Update the list of Ubuntu release names +Author: Steve Langasek +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; + }