-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux from macOS issues #1962
Comments
Can we go back to using (One thing to be careful about would be file ownership/permissions if we go back) |
c.f. #1434 for other reference. |
I assume we could use Do you have a ref to the docker bug? |
This works: diff --git a/cibuildwheel/oci_container.py b/cibuildwheel/oci_container.py
index 0a5fa325..39516f35 100644
--- a/cibuildwheel/oci_container.py
+++ b/cibuildwheel/oci_container.py
@@ -229,7 +229,7 @@ def copy_into(self, from_path: Path, to_path: PurePath) -> None:
if from_path.is_dir():
self.call(["mkdir", "-p", to_path])
subprocess.run(
- f"tar cf - . | {self.engine.name} exec -i {self.name} tar --no-same-owner -xC {shell_quote(to_path)} -f -",
+ f"tar -c --format ustar -f - . | {self.engine.name} exec -i {self.name} tar --format ustar --no-same-owner -xC {shell_quote(to_path)} -f -",
shell=True,
check=True,
cwd=from_path, This seems to be a ref for the docker cp bug: #1782 (not the bug, but apparently this workaround kills Windows too, and there's some links there, including a mention that Docker server 24 should be fine) |
Description
Building a linux wheel from macOS is producing warnings and created broken files:
We can hide that warning, I think, but I'm also getting junk in the files:
Using
gnu-tar
instead works fine. I don't see a--no-xattrs
option (https://stackoverflow.com/questions/51655657/tar-ignoring-unknown-extended-header-keyword-libarchive-xattr-security-selinux).Build log
No response
CI config
No response
The text was updated successfully, but these errors were encountered: