diff -Nru fam-2.7.0/debian/changelog fam-2.7.0/debian/changelog
--- fam-2.7.0/debian/changelog	2022-04-25 22:03:04.000000000 +0800
+++ fam-2.7.0/debian/changelog	2024-08-12 11:08:55.000000000 +0800
@@ -1,3 +1,16 @@
+fam (2.7.0-ok2) nile; urgency=medium
+
+  * Fix build with libtirpc. 
+
+ -- liwenjun <liwenjun@kylinos.cn>  Mon, 12 Aug 2024 11:08:55 +0800
+
+fam (2.7.0-ok1build2) yangtze; urgency=medium
+
+  * add if arch==rv64g add CPPFLAGS and LDFLGS to support libc6-dev 2.36 rpc
+    separation
+
+ -- root <fanxiaoqi@smart-core.cn>  Wed, 21 Feb 2024 13:43:51 +0800
+
 fam (2.7.0-ok1) yangtze; urgency=medium
 
   * Build for openKylin.
diff -Nru fam-2.7.0/debian/patches/series fam-2.7.0/debian/patches/series
--- fam-2.7.0/debian/patches/series	2022-04-25 22:03:04.000000000 +0800
+++ fam-2.7.0/debian/patches/series	1970-01-01 08:00:00.000000000 +0800
@@ -1 +0,0 @@
-
diff -Nru fam-2.7.0/debian/rules fam-2.7.0/debian/rules
--- fam-2.7.0/debian/rules	2022-04-25 22:03:04.000000000 +0800
+++ fam-2.7.0/debian/rules	2024-08-12 11:08:55.000000000 +0800
@@ -22,6 +22,9 @@
 CXXFLAGS = -g -Wall -O2 -Wno-sign-compare -Wno-deprecated \
 	-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
 
+CPPFLAGS += -I/usr/include/tirpc
+LDFLAGS += -ltirpc
+
 install/fam ::
 	cp build-tree/fam-2.7.0/man/famd.conf.5 \
 	  debian/tmp/usr/share/man/man5/fam.conf.5