Skip to content

Commit 5e80573

Browse files
tunaichaoZeno-sole
authored andcommitted
feat:Add loong64 support.
1 parent d31ddc0 commit 5e80573

File tree

3 files changed

+47
-0
lines changed

3 files changed

+47
-0
lines changed

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
fakeroot (1.37.2-1deepin1) unstable; urgency=medium
2+
3+
* Add loong64 support.
4+
5+
-- tunaichao <tunaichao@uniontech.com> Thu, 12 Mar 2026 17:10:50 +0800
6+
17
fakeroot (1.37.2-1) unstable; urgency=medium
28

39
* New upstream version.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
Description: Add loong64 support
2+
Author: Han Gao <gaohan@iscas.ac.cn>
3+
4+
Last-Update: 2023-03-12
5+
6+
Index: fakeroot/configure.ac
7+
===================================================================
8+
--- fakeroot.orig/configure.ac
9+
+++ fakeroot/configure.ac
10+
@@ -196,7 +196,7 @@ AC_MSG_CHECKING([for type of arg of __xm
11+
#include <fcntl.h>
12+
#include <unistd.h>
13+
]], [[
14+
-#ifndef __GLIBC__
15+
+#ifndef __GLIBC__ || (defined(__GLIBC__) && __GLIBC_PREREQ(2,35))
16+
#error no extra *
17+
#endif
18+
int __xmknod ( int ver,
19+
@@ -238,7 +238,7 @@ AC_MSG_CHECKING([for type of arg of __xm
20+
#include <fcntl.h>
21+
#include <unistd.h>
22+
]], [[
23+
-#ifndef __GLIBC__
24+
+#ifndef __GLIBC__ || (defined(__GLIBC__) && __GLIBC_PREREQ(2,35))
25+
#error no extra *
26+
#endif
27+
int __xmknodat ( int ver,
28+
Index: fakeroot/libfakeroot.c
29+
===================================================================
30+
--- fakeroot.orig/libfakeroot.c
31+
+++ fakeroot/libfakeroot.c
32+
@@ -1461,7 +1461,7 @@ int renameat2(int olddir_fd, const char
33+
34+
35+
#if defined(__GLIBC__)
36+
-#if __GLIBC_PREREQ(2,33)
37+
+#if (__GLIBC_PREREQ(2,33) && !defined(__loongarch64))
38+
/* Glibc 2.33 exports symbols for these functions in the shared lib */
39+
40+
#ifndef NO_WRAP_MKNOD_SYMBOL

debian/patches/series

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
fix-shell-in-fakeroot
22
time64-on-32bit-archs
3+
add-loong64-support.patch

0 commit comments

Comments
 (0)