From 408379a6c0e43b72f3b2b3f978f787067344723e Mon Sep 17 00:00:00 2001 From: Gianfranco Costamagna Date: Sun, 21 Apr 2019 22:54:57 +0200 Subject: [PATCH] Add Ubuntu eoan to supported ubuntu releases --- debian/changelog | 4 +++ debian/patches/series | 1 + debian/patches/ubuntu-eoan-distro.patch | 33 +++++++++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 debian/patches/ubuntu-eoan-distro.patch diff --git a/debian/changelog b/debian/changelog index 62e21807..de072d1e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,7 +1,11 @@ llvm-toolchain-8 (1:8.0.1-1~svn) UNRELEASED; urgency=medium + [ Sylvestre Ledru ] * New upstream release (prepare) + [ Gianfranco Costamagna ] + * Add Ubuntu eoan to supported ubuntu distro + -- Sylvestre Ledru Sun, 07 Apr 2019 13:59:46 +0200 llvm-toolchain-8 (1:8-3) unstable; urgency=medium diff --git a/debian/patches/series b/debian/patches/series index cbf0c7ab..8447ac22 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -133,3 +133,4 @@ mips64el-fix.diff OpenCL-Change-type-of-block-pointer-for-OpenCL.patch OpenCL-Simplify-LLVM-IR-generated-for-OpenCL-blocks.patch OpenCL-Fix-assertion-due-to-blocks.patch +ubuntu-eoan-distro.patch diff --git a/debian/patches/ubuntu-eoan-distro.patch b/debian/patches/ubuntu-eoan-distro.patch new file mode 100644 index 00000000..1c445088 --- /dev/null +++ b/debian/patches/ubuntu-eoan-distro.patch @@ -0,0 +1,33 @@ +Description: Add uoan as supported architecture +Author: Gianfranco Costamagna +Last-Update: 2019-04-21 + +--- llvm-toolchain-8-8.orig/clang/include/clang/Driver/Distro.h ++++ llvm-toolchain-8-8/clang/include/clang/Driver/Distro.h +@@ -64,6 +64,7 @@ public: + UbuntuBionic, + UbuntuCosmic, + UbuntuDisco, ++ UbuntuEoan, + UnknownDistro + }; + +@@ -117,7 +118,7 @@ public: + } + + bool IsUbuntu() const { +- return DistroVal >= UbuntuHardy && DistroVal <= UbuntuDisco; ++ return DistroVal >= UbuntuHardy && DistroVal <= UbuntuEoan; + } + + bool IsAlpineLinux() const { +--- llvm-toolchain-8-8.orig/clang/lib/Driver/Distro.cpp ++++ llvm-toolchain-8-8/clang/lib/Driver/Distro.cpp +@@ -52,6 +52,7 @@ static Distro::DistroType DetectDistro(l + .Case("bionic", Distro::UbuntuBionic) + .Case("cosmic", Distro::UbuntuCosmic) + .Case("disco", Distro::UbuntuDisco) ++ .Case("eoan", Distro::UbuntuEoan) + .Default(Distro::UnknownDistro); + if (Version != Distro::UnknownDistro) + return Version;