diff -Nru libcamera-0~git20211108+1b30992b623e/debian/changelog libcamera-0~git20211108+1b30992b623e/debian/changelog --- libcamera-0~git20211108+1b30992b623e/debian/changelog 2022-06-14 14:07:18.000000000 +0200 +++ libcamera-0~git20211108+1b30992b623e/debian/changelog 2022-10-10 10:23:29.000000000 +0200 @@ -1,3 +1,9 @@ +libcamera (0~git20211108+1b30992b623e-4ubuntu1) kinetic; urgency=medium + + * Fix FTBFS on ppc64el with GCC (LP: #1992331) + + -- Olivier Gayot Mon, 10 Oct 2022 08:23:29 +0000 + libcamera (0~git20211108+1b30992b623e-4) unstable; urgency=medium [ Christopher Obbard ] diff -Nru libcamera-0~git20211108+1b30992b623e/debian/control libcamera-0~git20211108+1b30992b623e/debian/control --- libcamera-0~git20211108+1b30992b623e/debian/control 2022-06-14 14:07:18.000000000 +0200 +++ libcamera-0~git20211108+1b30992b623e/debian/control 2022-10-10 10:23:29.000000000 +0200 @@ -1,6 +1,7 @@ Source: libcamera Priority: optional -Maintainer: Debian Multimedia Maintainers +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Debian Multimedia Maintainers Uploaders: Emmanuel Arias , IOhannes m zmölnig (Debian/GNU) , diff -Nru libcamera-0~git20211108+1b30992b623e/debian/patches/ppc64el-fix-ftbfs-gcc.patch libcamera-0~git20211108+1b30992b623e/debian/patches/ppc64el-fix-ftbfs-gcc.patch --- libcamera-0~git20211108+1b30992b623e/debian/patches/ppc64el-fix-ftbfs-gcc.patch 1970-01-01 01:00:00.000000000 +0100 +++ libcamera-0~git20211108+1b30992b623e/debian/patches/ppc64el-fix-ftbfs-gcc.patch 2022-10-10 10:23:29.000000000 +0200 @@ -0,0 +1,35 @@ +Description: fix expressions not considered constant on ppc64el with GCC + On ppc64el, GCC seems to be unable to determine the result of some long double + expressions at compile time. This makes libcamera fail to build from source on + ppc64el. + Make sure we only use constexpr on expressions that are considered constant on + all architectures. +Author: Olivier Gayot +Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/libcamera/+bug/1992331 +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1021544 +Forwarded: https://lists.libcamera.org/pipermail/libcamera-devel/2022-October/034764.html +Last-Update: 2022-10-10 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +Index: libcamera-0~git20211108+1b30992b623e/src/ipa/raspberrypi/raspberrypi.cpp +=================================================================== +--- libcamera-0~git20211108+1b30992b623e.orig/src/ipa/raspberrypi/raspberrypi.cpp 2022-10-10 08:24:22.091329072 +0000 ++++ libcamera-0~git20211108+1b30992b623e/src/ipa/raspberrypi/raspberrypi.cpp 2022-10-10 08:45:31.686454143 +0000 +@@ -61,7 +61,7 @@ + /* Configure the sensor with these values initially. */ + constexpr double defaultAnalogueGain = 1.0; + constexpr Duration defaultExposureTime = 20.0ms; +-constexpr Duration defaultMinFrameDuration = 1.0s / 30.0; ++constexpr Duration defaultMinFrameDuration = 1s / 30.0; + constexpr Duration defaultMaxFrameDuration = 250.0s; + + /* +@@ -70,7 +70,7 @@ + * we rate-limit the controller Prepare() and Process() calls to lower than or + * equal to this rate. + */ +-constexpr Duration controllerMinFrameDuration = 1.0s / 60.0; ++constexpr Duration controllerMinFrameDuration = 1s / 60.0; + + LOG_DEFINE_CATEGORY(IPARPI) + diff -Nru libcamera-0~git20211108+1b30992b623e/debian/patches/series libcamera-0~git20211108+1b30992b623e/debian/patches/series --- libcamera-0~git20211108+1b30992b623e/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 +++ libcamera-0~git20211108+1b30992b623e/debian/patches/series 2022-10-10 10:23:29.000000000 +0200 @@ -0,0 +1 @@ +ppc64el-fix-ftbfs-gcc.patch