diff -pruN 2.3.1+repack-1/debian/changelog 2.3.1+repack-1ubuntu1/debian/changelog
--- 2.3.1+repack-1/debian/changelog	2022-07-05 06:29:58.000000000 +0000
+++ 2.3.1+repack-1ubuntu1/debian/changelog	2022-10-19 19:14:26.000000000 +0000
@@ -1,3 +1,9 @@
+argyll (2.3.1+repack-1ubuntu1) kinetic; urgency=medium
+
+  * Enable build on riscv64
+
+ -- Graham Inggs <ginggs@ubuntu.com>  Wed, 19 Oct 2022 19:14:26 +0000
+
 argyll (2.3.1+repack-1) unstable; urgency=medium
 
   * New upstream release.
diff -pruN 2.3.1+repack-1/debian/control 2.3.1+repack-1ubuntu1/debian/control
--- 2.3.1+repack-1/debian/control	2022-07-05 06:29:28.000000000 +0000
+++ 2.3.1+repack-1ubuntu1/debian/control	2022-10-19 17:56:37.000000000 +0000
@@ -1,7 +1,8 @@
 Source: argyll
 Section: graphics
 Priority: optional
-Maintainer: Dmitry Smirnov <onlyjob@debian.org>
+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
+XSBC-Original-Maintainer: Dmitry Smirnov <onlyjob@debian.org>
 Standards-Version: 4.6.1
 Build-Depends:
  debhelper-compat (= 12),
diff -pruN 2.3.1+repack-1/debian/patches/0001_jam.patch 2.3.1+repack-1ubuntu1/debian/patches/0001_jam.patch
--- 2.3.1+repack-1/debian/patches/0001_jam.patch	2022-07-05 06:29:58.000000000 +0000
+++ 2.3.1+repack-1ubuntu1/debian/patches/0001_jam.patch	2022-10-19 17:56:37.000000000 +0000
@@ -6,8 +6,7 @@ Last-Update: 2015-08-23
 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
 --- a/Jambase
 +++ b/Jambase
-@@ -980,9 +980,9 @@
- 	}
+@@ -981,7 +981,7 @@
  
  	# UNIX defaults
  
@@ -16,9 +15,7 @@ This patch header follows DEP-3: http://
  	CCOPTFLAG		?= -O2 ;		
  	CCDEBUGFLAG		?= -g ;		
  	CCPROFFLAG		?= ;		
- 	CCSHOBJFLAG		?= -fPIC ;			# Position independent is better for ShLibrary
-@@ -990,9 +990,9 @@
- 	CHMOD			?= chmod ;
+@@ -991,7 +991,7 @@
  	CHGRP			?= chgrp ;
  	CHOWN			?= chown ;
  	LEX				?= lex ;
@@ -27,9 +24,7 @@ This patch header follows DEP-3: http://
  	LINKOPTFLAG		?= -O ;				# Affects creating .so's
  	LINKSTRIPFLAG	?= -s ;
  	LINKDEBUGFLAG	?= ;
- 	LINKPROFFLAG	?= ;
-@@ -1089,9 +1089,9 @@
- 	RM				?= rm -f ;
+@@ -1090,7 +1090,7 @@
  	RMDIR			?= $(RM) ;
  	RSH				?= rsh ;
  	SED				?= sed ;
@@ -38,11 +33,9 @@ This patch header follows DEP-3: http://
  	SHELLMODE		?= 755 ;
  	SLASH			?= / ;
  	STDHDRS			?= /usr/include ;
- 	SUFEXE			?= "" ;
 --- a/Jamtop
 +++ b/Jamtop
-@@ -18,8 +18,9 @@
- 
+@@ -19,6 +19,7 @@
  # Keep this DESTDIR anchored to Jamtop. PREFIX is used literally
  ANCHORED_PATH_VARS = DESTDIR ;
  
@@ -50,9 +43,7 @@ This patch header follows DEP-3: http://
  
  # Should we also allow CFLAGS, CXXFLAGS, CPPFLAGS & LDFLAGS env. variables
  # to have effect ?
- 
-@@ -154,19 +155,84 @@
- 		subd = $(3) ;
+@@ -155,17 +156,85 @@
  	}
  
  	if ! $(BUILTIN_$(UCASE)) && $(UNIX) {
@@ -87,6 +78,7 @@ This patch header follows DEP-3: http://
 +		|| [ GLOB /usr/include/powerpc-linux-gnuspe$(subd) : $(lcase).h $(lcase)lib.h ]
 +		|| [ GLOB /usr/include/powerpc64-linux-gnu$(subd) : $(lcase).h $(lcase)lib.h ]
 +		|| [ GLOB /usr/include/powerpc64le-linux-gnu$(subd) : $(lcase).h $(lcase)lib.h ]
++		|| [ GLOB /usr/include/riscv64-linux-gnu$(subd) : $(lcase).h $(lcase)lib.h ]
 +		|| [ GLOB /usr/include/s390x-linux-gnu$(subd) : $(lcase).h $(lcase)lib.h ]
 +		|| [ GLOB /usr/include/sh4-linux-gnu$(subd) : $(lcase).h $(lcase)lib.h ]
 +		|| [ GLOB /usr/include/sparc-linux-gnu$(subd) : $(lcase).h $(lcase)lib.h ]
@@ -133,6 +125,8 @@ This patch header follows DEP-3: http://
 +			|| [ GLOB /usr/lib/powerpc64-linux-gnu : lib$(lcase).a ]
 +			|| [ GLOB /usr/lib/powerpc64le-linux-gnu : lib$(lcase).so ]
 +			|| [ GLOB /usr/lib/powerpc64le-linux-gnu : lib$(lcase).a ]
++			|| [ GLOB /usr/lib/riscv64-linux-gnu : lib$(lcase).so ]
++			|| [ GLOB /usr/lib/riscv64-linux-gnu : lib$(lcase).a ]
 +			|| [ GLOB /usr/lib/s390x-linux-gnu : lib$(lcase).so ]
 +			|| [ GLOB /usr/lib/s390x-linux-gnu : lib$(lcase).a ]
 +			|| [ GLOB /usr/lib/sh4-linux-gnu : lib$(lcase).so ]
@@ -146,4 +140,3 @@ This patch header follows DEP-3: http://
  				echo "Using system $(UCASE) library" ;
  				$(UCASE)LIB = ;
  				$(UCASE)INC = ;
- 				LINKFLAGS += $(LINKFLAG)$(lcase) ;
