10 Star 0 Fork 17

src-anolis-os/e2fsprogs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
e2fsprogs-1.46.0-sw.patch 4.58 KB
一键复制 编辑 原始数据 按行查看 历史
康后银 提交于 2023-06-28 10:39 . add sw
diff -Naur e2fsprogs-1.46.0.org/aclocal.m4 e2fsprogs-1.46.0.sw/aclocal.m4
--- e2fsprogs-1.46.0.org/aclocal.m4 2021-01-30 06:02:31.000000000 +0800
+++ e2fsprogs-1.46.0.sw/aclocal.m4 2023-05-15 10:30:36.732214747 +0800
@@ -978,6 +978,13 @@
;;
changequote(,)dnl
+ sw_64* )
+changequote([,])dnl
+ gl_cv_host_cpu_c_abi=sw_64
+ ;;
+
+
+changequote(,)dnl
alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] )
changequote([,])dnl
gl_cv_host_cpu_c_abi=alpha
@@ -1242,6 +1249,9 @@
#ifndef __x86_64__
#undef __x86_64__
#endif
+#ifndef __sw_64__
+#undef __sw_64__
+#endif
#ifndef __alpha__
#undef __alpha__
#endif
@@ -1355,7 +1365,7 @@
case "$gl_cv_host_cpu_c_abi" in
i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
gl_cv_host_cpu_c_abi_32bit=yes ;;
- x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
+ x86_64 | alpha | sw_64 | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
gl_cv_host_cpu_c_abi_32bit=no ;;
*)
gl_cv_host_cpu_c_abi_32bit=unknown ;;
@@ -1385,7 +1395,7 @@
# CPUs that only support a 64-bit ABI.
changequote(,)dnl
- alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
+ alpha | sw_64 | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
| mmix )
changequote([,])dnl
gl_cv_host_cpu_c_abi_32bit=no
diff -Naur e2fsprogs-1.46.0.org/configure e2fsprogs-1.46.0.sw/configure
--- e2fsprogs-1.46.0.org/configure 2021-01-30 06:02:31.000000000 +0800
+++ e2fsprogs-1.46.0.sw/configure 2023-05-15 10:32:13.884627483 +0800
@@ -4452,7 +4452,7 @@
if test "$GCC" = yes
then
case "$host_cpu" in
- alpha) addcflags="-mieee" ;;
+ alpha | sw_64) addcflags="-mieee" ;;
esac
fi
if test "x$addcflags" != x
@@ -7542,7 +7542,7 @@
case "$gl_cv_host_cpu_c_abi" in
i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
gl_cv_host_cpu_c_abi_32bit=yes ;;
- x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
+ x86_64 | alpha | sw_64 | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
gl_cv_host_cpu_c_abi_32bit=no ;;
*)
gl_cv_host_cpu_c_abi_32bit=unknown ;;
diff -Naur e2fsprogs-1.46.0.org/configure.ac e2fsprogs-1.46.0.sw/configure.ac
--- e2fsprogs-1.46.0.org/configure.ac 2021-01-30 06:02:31.000000000 +0800
+++ e2fsprogs-1.46.0.sw/configure.ac 2023-05-15 10:30:56.830920770 +0800
@@ -113,7 +113,7 @@
if test "$GCC" = yes
then
case "$host_cpu" in
- alpha) addcflags="-mieee" ;;
+ alpha | sw_64) addcflags="-mieee" ;;
esac
fi
if test "x$addcflags" != x
diff -Naur e2fsprogs-1.46.0.org/debian/attic/libs/rules e2fsprogs-1.46.0.sw/debian/attic/libs/rules
--- e2fsprogs-1.46.0.org/debian/attic/libs/rules 2021-01-30 06:02:31.000000000 +0800
+++ e2fsprogs-1.46.0.sw/debian/attic/libs/rules 2023-05-15 10:34:10.450722173 +0800
@@ -33,6 +33,14 @@
installdoc = install -m 644
installbin = install -m 755
+ifeq ($(ARCH),sw_64)
+CCOPTS = -g -O2 -fsigned-char -DHAVE_NETINET_IN_H
+LIBC-DEV = libc6.1-dev
+else
+CCOPTS = -g -O2 -fsigned-char
+LIBC-DEV = libc6-dev
+endif
+
ifeq ($(ARCH),alpha)
CCOPTS = -g -O2 -fsigned-char -DHAVE_NETINET_IN_H
LIBC-DEV = libc6.1-dev
diff -Naur e2fsprogs-1.46.0.org/lib/blkid/llseek.c e2fsprogs-1.46.0.sw/lib/blkid/llseek.c
--- e2fsprogs-1.46.0.org/lib/blkid/llseek.c 2021-01-30 06:02:31.000000000 +0800
+++ e2fsprogs-1.46.0.sw/lib/blkid/llseek.c 2023-05-15 10:31:23.610861491 +0800
@@ -88,7 +88,7 @@
return (retval == -1 ? (blkid_loff_t) retval : result);
}
-#endif /* __alpha__ || __ia64__ */
+#endif /* __alpha__ || __sw_64__ || __ia64__ */
#endif /* HAVE_LLSEEK */
diff -Naur e2fsprogs-1.46.0.org/lib/ext2fs/unix_io.c e2fsprogs-1.46.0.sw/lib/ext2fs/unix_io.c
--- e2fsprogs-1.46.0.org/lib/ext2fs/unix_io.c 2021-01-30 06:02:31.000000000 +0800
+++ e2fsprogs-1.46.0.sw/lib/ext2fs/unix_io.c 2023-05-15 10:34:28.790366402 +0800
@@ -742,7 +742,7 @@
#ifdef __linux__
#undef RLIM_INFINITY
-#if (defined(__alpha__) || ((defined(__sparc__) || defined(__mips__)) && (SIZEOF_LONG == 4)))
+#if (defined(__alpha__) || defined(__sw_64__) || ((defined(__sparc__) || defined(__mips__)) && (SIZEOF_LONG == 4)))
#define RLIM_INFINITY ((unsigned long)(~0UL>>1))
#else
#define RLIM_INFINITY (~0UL)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-anolis-os/e2fsprogs.git
git@gitee.com:src-anolis-os/e2fsprogs.git
src-anolis-os
e2fsprogs
e2fsprogs
a8

搜索帮助