diff -pruN 5.2.2-1/debian/changelog 5.2.2-1ubuntu2/debian/changelog
--- 5.2.2-1/debian/changelog	2022-03-12 18:55:58.000000000 +0000
+++ 5.2.2-1ubuntu2/debian/changelog	2022-05-17 21:53:15.000000000 +0000
@@ -1,3 +1,16 @@
+libxc (5.2.2-1ubuntu2) kinetic; urgency=medium
+
+  * New version FTBFS on riscv64 even with --max-parallel=4, so try 3.
+
+ -- Steve Langasek <steve.langasek@ubuntu.com>  Tue, 17 May 2022 21:53:15 +0000
+
+libxc (5.2.2-1ubuntu1) kinetic; urgency=low
+
+  * Merge from Debian unstable. Remaining changes:
+    - Set --max-parallel=4 to prevent OOM on riscv64 
+
+ -- Steve Langasek <steve.langasek@ubuntu.com>  Mon, 16 May 2022 12:20:18 -0700
+
 libxc (5.2.2-1) unstable; urgency=medium
 
   * New upstream release.
@@ -5,6 +18,12 @@ libxc (5.2.2-1) unstable; urgency=medium
 
  -- Michael Banck <mbanck@debian.org>  Sat, 12 Mar 2022 19:55:58 +0100
 
+libxc (5.1.7-1ubuntu1) jammy; urgency=medium
+
+  * Set --max-parallel=4 to prevent OOM on riscv64 
+
+ -- Graham Inggs <ginggs@ubuntu.com>  Wed, 05 Jan 2022 05:45:53 +0000
+
 libxc (5.1.7-1) unstable; urgency=medium
 
   * New upstream point release.
@@ -189,3 +208,4 @@ libxc (2.0.2-1) unstable; urgency=low
   * Initial release (Closes: #602110).
 
  -- Michael Banck <mbanck@debian.org>  Mon, 29 Jul 2013 10:57:27 +0200
+
diff -pruN 5.2.2-1/debian/control 5.2.2-1ubuntu2/debian/control
--- 5.2.2-1/debian/control	2020-07-05 14:05:38.000000000 +0000
+++ 5.2.2-1ubuntu2/debian/control	2022-03-12 21:51:33.000000000 +0000
@@ -1,7 +1,8 @@
 Source: libxc
 Section: science
 Priority: optional
-Maintainer: Debichem Team <debichem-devel@lists.alioth.debian.org>
+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
+XSBC-Original-Maintainer: Debichem Team <debichem-devel@lists.alioth.debian.org>
 Uploaders: Michael Banck <mbanck@debian.org>
 Build-Depends: cmake, debhelper (>> 9), dh-autoreconf, gfortran
 Standards-Version: 3.9.5
diff -pruN 5.2.2-1/debian/rules 5.2.2-1ubuntu2/debian/rules
--- 5.2.2-1/debian/rules	2020-05-24 09:30:45.000000000 +0000
+++ 5.2.2-1ubuntu2/debian/rules	2022-05-17 21:53:11.000000000 +0000
@@ -14,7 +14,7 @@ export FCFLAGS = $(shell dpkg-buildflags
 export CFLAGS = $(shell dpkg-buildflags --get CFLAGS) $(DEBUG)
 
 %:
-	dh $@ --parallel --with autoreconf --buildsystem autoconf
+	dh $@ --max-parallel=3 --with autoreconf --buildsystem autoconf
 
 override_dh_auto_clean:
 	dh_auto_clean
