94 lines
3.2 KiB
Diff
94 lines
3.2 KiB
Diff
diff -u a/src/auditwheel/policy.rs b/src/auditwheel/policy.rs
|
|
--- a/src/auditwheel/policy.rs
|
|
+++ b/src/auditwheel/policy.rs
|
|
@@ -101,6 +101,8 @@
|
|
Arch::Armv7L => "libc.musl-armv7.so.1",
|
|
Arch::Powerpc64Le => "libc.musl-ppc64le.so.1",
|
|
Arch::Powerpc64 => "", // musllinux doesn't support ppc64
|
|
+ Arch::PowerpcLe => "", // musllinux doesn't support ppcle
|
|
+ Arch::Powerpc => "", // musllinux doesn't support ppc
|
|
Arch::X86 => "libc.musl-x86.so.1",
|
|
Arch::X86_64 => "libc.musl-x86_64.so.1",
|
|
Arch::S390X => "libc.musl-s390x.so.1",
|
|
diff -u a/setup.py b/setup.py
|
|
--- a/setup.py
|
|
+++ b/setup.py
|
|
@@ -52,6 +52,8 @@
|
|
"ppc64le",
|
|
"ppc64",
|
|
"powerpc",
|
|
+ "ppcle",
|
|
+ "ppc",
|
|
"riscv64",
|
|
"sparc64",
|
|
) or (sys.platform == "win32" and platform.machine() == "ARM64"):
|
|
diff -u a/src/target.rs b/src/target.rs
|
|
--- a/src/target.rs
|
|
+++ b/src/target.rs
|
|
@@ -65,6 +65,8 @@
|
|
Powerpc64Le,
|
|
#[serde(alias = "ppc64")]
|
|
Powerpc64,
|
|
+ #[serde(alias = "ppcle")]
|
|
+ PowerpcLe,
|
|
#[serde(alias = "i686")]
|
|
X86,
|
|
X86_64,
|
|
@@ -82,6 +84,7 @@
|
|
Arch::Aarch64 => write!(f, "aarch64"),
|
|
Arch::Armv6L => write!(f, "armv6l"),
|
|
Arch::Armv7L => write!(f, "armv7l"),
|
|
+ Arch::PowerpcLe => write!(f, "ppcle"),
|
|
Arch::Powerpc => write!(f, "ppc"),
|
|
Arch::Powerpc64Le => write!(f, "ppc64le"),
|
|
Arch::Powerpc64 => write!(f, "ppc64"),
|
|
@@ -107,7 +110,7 @@
|
|
match self {
|
|
Arch::Aarch64 => "arm64",
|
|
Arch::Armv6L | Arch::Armv7L => "arm",
|
|
- Arch::Powerpc | Arch::Powerpc64Le | Arch::Powerpc64 => "powerpc",
|
|
+ Arch::Powerpc | Arch::Powerpc64Le | Arch::Powerpc64 | Arch::PowerpcLe => "powerpc",
|
|
Arch::X86 => "i386",
|
|
Arch::X86_64 => "amd64",
|
|
Arch::Riscv64 => "riscv",
|
|
@@ -128,6 +131,7 @@
|
|
Arch::Armv6L,
|
|
Arch::Armv7L,
|
|
Arch::Powerpc,
|
|
+ Arch::PowerpcLe,
|
|
Arch::Powerpc64,
|
|
Arch::Powerpc64Le,
|
|
Arch::S390X,
|
|
@@ -236,6 +240,7 @@
|
|
},
|
|
Architecture::Aarch64(_) => Arch::Aarch64,
|
|
Architecture::Powerpc => Arch::Powerpc,
|
|
+ Architecture::PowerpcLe => Arch::PowerpcLe,
|
|
Architecture::Powerpc64 => Arch::Powerpc64,
|
|
Architecture::Powerpc64le => Arch::Powerpc64Le,
|
|
Architecture::S390x => Arch::S390X,
|
|
@@ -422,6 +427,7 @@
|
|
Arch::Armv6L => "armv6l",
|
|
Arch::Armv7L => "armv7l",
|
|
Arch::Powerpc => "ppc",
|
|
+ Arch::PowerpcLe => "powerpcle",
|
|
Arch::Powerpc64Le => "powerpc64le",
|
|
Arch::Powerpc64 => "powerpc64",
|
|
Arch::X86 => "i386",
|
|
@@ -476,6 +482,7 @@
|
|
| Arch::Mips64el
|
|
| Arch::Mipsel
|
|
| Arch::Powerpc
|
|
+ | Arch::PowerpcLe
|
|
| Arch::Sparc64 => PlatformTag::Linux,
|
|
}
|
|
}
|
|
@@ -496,6 +503,7 @@
|
|
| Arch::X86
|
|
| Arch::Wasm32
|
|
| Arch::Mipsel
|
|
+ | Arch::PowerpcLe
|
|
| Arch::Powerpc => 32,
|
|
}
|
|
}
|