85 lines
2.8 KiB
Diff
85 lines
2.8 KiB
Diff
diff -u a/src/auditwheel/policy.rs b/src/auditwheel/policy.rs
|
|
--- a/src/auditwheel/policy.rs
|
|
+++ b/src/auditwheel/policy.rs
|
|
@@ -100,6 +100,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
|
|
@@ -58,6 +58,8 @@
|
|
Powerpc64Le,
|
|
#[serde(alias = "ppc64")]
|
|
Powerpc64,
|
|
+ #[serde(alias = "ppcle")]
|
|
+ PowerpcLe,
|
|
#[serde(alias = "i686")]
|
|
X86,
|
|
X86_64,
|
|
@@ -75,6 +77,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"),
|
|
@@ -98,6 +101,7 @@
|
|
Arch::Armv6L,
|
|
Arch::Armv7L,
|
|
Arch::Powerpc,
|
|
+ Arch::PowerpcLe,
|
|
Arch::Powerpc64,
|
|
Arch::Powerpc64Le,
|
|
Arch::S390X,
|
|
@@ -186,6 +190,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,
|
|
@@ -377,6 +382,7 @@
|
|
Arch::Armv6L => "armv6l",
|
|
Arch::Armv7L => "armv7l",
|
|
Arch::Powerpc => "ppc",
|
|
+ Arch::PowerpcLe => "powerpcle",
|
|
Arch::Powerpc64Le => "powerpc64le",
|
|
Arch::Powerpc64 => "powerpc64",
|
|
Arch::X86 => "i386",
|
|
@@ -429,6 +435,7 @@
|
|
| Arch::Mips64el
|
|
| Arch::Mipsel
|
|
| Arch::Powerpc
|
|
+ | Arch::PowerpcLe
|
|
| Arch::Sparc64 => PlatformTag::Linux,
|
|
}
|
|
}
|
|
@@ -449,6 +456,7 @@
|
|
| Arch::X86
|
|
| Arch::Wasm32
|
|
| Arch::Mipsel
|
|
+ | Arch::PowerpcLe
|
|
| Arch::Powerpc => 32,
|
|
}
|
|
}
|