diff -pruN 2.19.3+dfsg-1/debian/changelog 2.19.3+dfsg-1ubuntu1/debian/changelog
--- 2.19.3+dfsg-1/debian/changelog	2022-11-17 20:59:51.000000000 +0000
+++ 2.19.3+dfsg-1ubuntu1/debian/changelog	2023-03-01 16:15:22.000000000 +0000
@@ -1,3 +1,9 @@
+botan (2.19.3+dfsg-1ubuntu1) lunar; urgency=medium
+
+  * Build with -O2 on ppc64el to avoid failing tests (LP: #2008914)
+
+ -- Heinrich Schuchardt <heinrich.schuchardt@canonical.com>  Wed, 01 Mar 2023 17:15:22 +0100
+
 botan (2.19.3+dfsg-1) unstable; urgency=high
 
   * New upstream release:
diff -pruN 2.19.3+dfsg-1/debian/control 2.19.3+dfsg-1ubuntu1/debian/control
--- 2.19.3+dfsg-1/debian/control	2022-05-18 18:06:50.000000000 +0000
+++ 2.19.3+dfsg-1ubuntu1/debian/control	2023-03-01 16:15:22.000000000 +0000
@@ -1,7 +1,8 @@
 Source: botan
 Section: libs
 Priority: optional
-Maintainer: Laszlo Boszormenyi (GCS) <gcs@debian.org>
+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
+XSCB-Original-Maintainer: Laszlo Boszormenyi (GCS) <gcs@debian.org>
 Build-Depends:
  debhelper-compat (= 13),
  dh-python,
diff -pruN 2.19.3+dfsg-1/debian/rules 2.19.3+dfsg-1ubuntu1/debian/rules
--- 2.19.3+dfsg-1/debian/rules	2022-05-18 18:06:50.000000000 +0000
+++ 2.19.3+dfsg-1ubuntu1/debian/rules	2023-03-01 16:15:22.000000000 +0000
@@ -10,6 +10,12 @@ include /usr/share/dpkg/buildtools.mk
 DEVPKG = $(CURDIR)/debian/libbotan-2-dev
 DOCPKG = $(CURDIR)/debian/libbotan-2-doc
 
+# Building with gcc 12.2.0 and -O3 on ppc64el results in failing tests
+ifeq ($(DEB_HOST_ARCH),ppc64el)
+export DEB_CXXFLAGS_MAINT_APPEND = -O2
+export DEB_LDFLAGS_MAINT_APPEND = -O2
+endif
+
 ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
 OS_MAP_hurd = gnu
 OS_MAP_kfreebsd = gnu/kfreebsd
