-
Notifications
You must be signed in to change notification settings - Fork 1
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
Bootstrap on Apple Silicon M1 arm64 #4
Comments
The source has a bunch of these:
Locations:
|
The output on
|
Ah, so that's about the deprecations:
|
Got
The brutal patches: --- communicate.h 2021-05-17 12:47:56.000000000 +0200
+++ - 2021-05-17 12:49:31.000000000 +0200
@@ -91,6 +91,10 @@
# include <inttypes.h>
#endif
+#if __DARWIN_ONLY_64_BIT_INO_T
+struct stat64 __DARWIN_STRUCT_STAT64;
+#endif
+
#ifndef FAKEROOT_FAKENET
# define FAKEROOTKEY_ENV "FAKEROOTKEY"
#endif /* ! FAKEROOT_FAKENET */
--- faked.c 2021-05-17 12:52:15.000000000 +0200
+++ - 2021-05-17 12:52:17.000000000 +0200
@@ -84,7 +84,7 @@
In this file, we want 'struct stat' to have a 32-bit 'ino_t'.
We use 'struct stat64' when we need a 64-bit 'ino_t'.
*/
-#define _DARWIN_NO_64_BIT_INODE
+#define _DARWIN_USE_64_BIT_INODE
#endif
#include "config.h"
--- libfakeroot.c 2021-05-17 12:54:12.000000000 +0200
+++ - 2021-05-17 12:54:14.000000000 +0200
@@ -38,7 +38,7 @@
In this file, we want 'struct stat' to have a 32-bit 'ino_t'.
We use 'struct stat64' when we need a 64-bit 'ino_t'.
*/
-#define _DARWIN_NO_64_BIT_INODE
+#define _DARWIN_USE_64_BIT_INODE
/* The helper _unix2003 version of this file calls a few functions in this file
that are marked with static_nonapple so that needs to become private instead
--- communicate.c 2021-05-17 12:55:13.000000000 +0200
+++ - 2021-05-17 12:55:16.000000000 +0200
@@ -24,7 +24,7 @@
In this file, we want 'struct stat' to have a 32-bit 'ino_t'.
We use 'struct stat64' when we need a 64-bit 'ino_t'.
*/
-#define _DARWIN_NO_64_BIT_INODE
+#define _DARWIN_USE_64_BIT_INODE
#endif
#include "communicate.h"
--- libfakeroot_unix2003.c 2021-05-17 12:56:33.000000000 +0200
+++ - 2021-05-17 12:56:36.000000000 +0200
@@ -18,7 +18,7 @@
In this file, we want 'struct stat' to have a 32-bit 'ino_t'.
We use 'struct stat64' when we need a 64-bit 'ino_t'.
*/
-#define _DARWIN_NO_64_BIT_INODE
+#define _DARWIN_USE_64_BIT_INODE
/*
This file is for 32-bit symbols which have the "$UNIX2003" version, i.e. The macOS Console shows a
|
If you need an additional tester with a M1, I can provide a bit of my time. |
Thanks, not at the moment though, because it just doesn't work yet ;) But when it does, that will be quite welcome! |
works for me when compiling openwrt on apple m1 Homebrew,many thanks. |
Was this sent to the upstream fakeroot repository? |
I tried to reach out to the last known maintainer but had no answer |
Added patch for MacOS without 32 bit inodes support (__DARWIN_ONLY_64_BIT_INO_T is true) This patch based on discussion archmac/bootstrap#4 Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
Added patch for MacOS without 32 bit inodes support (__DARWIN_ONLY_64_BIT_INO_T is true) This patch based on discussion archmac/bootstrap#4 Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
Added patch for MacOS without 32 bit inodes support (__DARWIN_ONLY_64_BIT_INO_T is true) This patch based on discussion archmac/bootstrap#4 Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in> Signed-off-by: boos4721 <3.1415926535boos@gmail.com>
@xiufeiwu @aparcar @lloeki I have prepared a patch to upstream based on this discussion: https://salsa.debian.org/clint/fakeroot/-/merge_requests/13 the PR has been merged |
Added compatibility for MacOS without 32 bit inodes support (__DARWIN_ONLY_64_BIT_INO_T is true) This patch based on discussion archmac/bootstrap#4 Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
Added patch for MacOS without 32 bit inodes support (__DARWIN_ONLY_64_BIT_INO_T is true) This patch based on discussion archmac/bootstrap#4 Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
@svlobanov much appreciated! |
Added patch for MacOS without 32 bit inodes support (__DARWIN_ONLY_64_BIT_INO_T is true) This patch based on discussion archmac/bootstrap#4 Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in> (cherry-picked from commit 8fedc17)
Added patch for MacOS without 32 bit inodes support (__DARWIN_ONLY_64_BIT_INO_T is true) This patch based on discussion archmac/bootstrap#4 Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
Added patch for MacOS without 32 bit inodes support (__DARWIN_ONLY_64_BIT_INO_T is true) This patch based on discussion archmac/bootstrap#4 Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in> Signed-off-by: boos4721 <3.1415926535boos@gmail.com>
Added patch for MacOS without 32 bit inodes support (__DARWIN_ONLY_64_BIT_INO_T is true) This patch based on discussion archmac/bootstrap#4 Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in> (cherry-picked from commit ace7bd0)
Added compatibility for MacOS without 32 bit inodes support (__DARWIN_ONLY_64_BIT_INO_T is true) This patch based on discussion archmac/bootstrap#4 Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
fakeroot
fails to build because of a deprecation onx86_64
coming in full effect onarm64
.Skipping
fakeroot
, the remainder is building fine, butfakeroot
is a runtime requirement formakepkg
and stage 2.The text was updated successfully, but these errors were encountered: