From 0a7ce2bed4e50ae0fa70c2ee8f7bdce889b19944 Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Sun, 11 Feb 2018 12:18:16 -0800 Subject: [PATCH] uClibc-ng does not implement name_to_handle_at ... so don't declare it, it confuses (at least) eudev's configure. Signed-off-by: Alexey Neyman --- ...does-not-implement-name_to_handle_at.patch | 50 +++++++++++++++++++ ...does-not-implement-name_to_handle_at.patch | 50 +++++++++++++++++++ ...does-not-implement-name_to_handle_at.patch | 50 +++++++++++++++++++ ...eexcept.patch => 0003-feraiseexcept.patch} | 0 ...does-not-implement-name_to_handle_at.patch | 50 +++++++++++++++++++ 5 files changed, 200 insertions(+) create mode 100644 packages/uClibc-ng/1.0.25/0001-uClibc-ng-does-not-implement-name_to_handle_at.patch create mode 100644 packages/uClibc-ng/1.0.26/0001-uClibc-ng-does-not-implement-name_to_handle_at.patch create mode 100644 packages/uClibc-ng/1.0.27/0002-uClibc-ng-does-not-implement-name_to_handle_at.patch rename packages/uClibc-ng/1.0.27/{0002-feraiseexcept.patch => 0003-feraiseexcept.patch} (100%) create mode 100644 packages/uClibc-ng/1.0.28/0000-uClibc-ng-does-not-implement-name_to_handle_at.patch diff --git a/packages/uClibc-ng/1.0.25/0001-uClibc-ng-does-not-implement-name_to_handle_at.patch b/packages/uClibc-ng/1.0.25/0001-uClibc-ng-does-not-implement-name_to_handle_at.patch new file mode 100644 index 00000000..f887f134 --- /dev/null +++ b/packages/uClibc-ng/1.0.25/0001-uClibc-ng-does-not-implement-name_to_handle_at.patch @@ -0,0 +1,50 @@ +From 319583d37ce649221ca4ff48a0b194bdbbf2ace1 Mon Sep 17 00:00:00 2001 +From: Alexey Neyman +Date: Sun, 11 Feb 2018 11:59:22 -0800 +Subject: [PATCH] uClibc-ng does not implement name_to_handle_at + +... so don't declare it. Otherwise, eudev finds it declared and tries +to link with it - and fails. + +Signed-off-by: Alexey Neyman +--- + libc/sysdeps/linux/aarch64/bits/fcntl.h | 21 --------------------- + 1 file changed, 21 deletions(-) + +--- a/libc/sysdeps/linux/aarch64/bits/fcntl.h ++++ b/libc/sysdeps/linux/aarch64/bits/fcntl.h +@@ -242,15 +242,6 @@ + file to zeros. */ + + +-/* File handle structure. */ +-struct file_handle +-{ +- unsigned int handle_bytes; +- int handle_type; +- /* File identifier. */ +- unsigned char f_handle[0]; +-}; +- + /* Maximum handle size (for now). */ + # define MAX_HANDLE_SZ 128 + #endif +@@ -315,18 +306,6 @@ + # endif + + +-/* Map file name to file handle. */ +-extern int name_to_handle_at (int __dfd, const char *__name, +- struct file_handle *__handle, int *__mnt_id, +- int __flags) __THROW; +- +-/* Open file using the file handle. +- +- This function is a possible cancellation point and therefore not +- marked with __THROW. */ +-extern int open_by_handle_at (int __mountdirfd, struct file_handle *__handle, +- int __flags); +- + #endif /* use GNU */ + + __END_DECLS diff --git a/packages/uClibc-ng/1.0.26/0001-uClibc-ng-does-not-implement-name_to_handle_at.patch b/packages/uClibc-ng/1.0.26/0001-uClibc-ng-does-not-implement-name_to_handle_at.patch new file mode 100644 index 00000000..f887f134 --- /dev/null +++ b/packages/uClibc-ng/1.0.26/0001-uClibc-ng-does-not-implement-name_to_handle_at.patch @@ -0,0 +1,50 @@ +From 319583d37ce649221ca4ff48a0b194bdbbf2ace1 Mon Sep 17 00:00:00 2001 +From: Alexey Neyman +Date: Sun, 11 Feb 2018 11:59:22 -0800 +Subject: [PATCH] uClibc-ng does not implement name_to_handle_at + +... so don't declare it. Otherwise, eudev finds it declared and tries +to link with it - and fails. + +Signed-off-by: Alexey Neyman +--- + libc/sysdeps/linux/aarch64/bits/fcntl.h | 21 --------------------- + 1 file changed, 21 deletions(-) + +--- a/libc/sysdeps/linux/aarch64/bits/fcntl.h ++++ b/libc/sysdeps/linux/aarch64/bits/fcntl.h +@@ -242,15 +242,6 @@ + file to zeros. */ + + +-/* File handle structure. */ +-struct file_handle +-{ +- unsigned int handle_bytes; +- int handle_type; +- /* File identifier. */ +- unsigned char f_handle[0]; +-}; +- + /* Maximum handle size (for now). */ + # define MAX_HANDLE_SZ 128 + #endif +@@ -315,18 +306,6 @@ + # endif + + +-/* Map file name to file handle. */ +-extern int name_to_handle_at (int __dfd, const char *__name, +- struct file_handle *__handle, int *__mnt_id, +- int __flags) __THROW; +- +-/* Open file using the file handle. +- +- This function is a possible cancellation point and therefore not +- marked with __THROW. */ +-extern int open_by_handle_at (int __mountdirfd, struct file_handle *__handle, +- int __flags); +- + #endif /* use GNU */ + + __END_DECLS diff --git a/packages/uClibc-ng/1.0.27/0002-uClibc-ng-does-not-implement-name_to_handle_at.patch b/packages/uClibc-ng/1.0.27/0002-uClibc-ng-does-not-implement-name_to_handle_at.patch new file mode 100644 index 00000000..f887f134 --- /dev/null +++ b/packages/uClibc-ng/1.0.27/0002-uClibc-ng-does-not-implement-name_to_handle_at.patch @@ -0,0 +1,50 @@ +From 319583d37ce649221ca4ff48a0b194bdbbf2ace1 Mon Sep 17 00:00:00 2001 +From: Alexey Neyman +Date: Sun, 11 Feb 2018 11:59:22 -0800 +Subject: [PATCH] uClibc-ng does not implement name_to_handle_at + +... so don't declare it. Otherwise, eudev finds it declared and tries +to link with it - and fails. + +Signed-off-by: Alexey Neyman +--- + libc/sysdeps/linux/aarch64/bits/fcntl.h | 21 --------------------- + 1 file changed, 21 deletions(-) + +--- a/libc/sysdeps/linux/aarch64/bits/fcntl.h ++++ b/libc/sysdeps/linux/aarch64/bits/fcntl.h +@@ -242,15 +242,6 @@ + file to zeros. */ + + +-/* File handle structure. */ +-struct file_handle +-{ +- unsigned int handle_bytes; +- int handle_type; +- /* File identifier. */ +- unsigned char f_handle[0]; +-}; +- + /* Maximum handle size (for now). */ + # define MAX_HANDLE_SZ 128 + #endif +@@ -315,18 +306,6 @@ + # endif + + +-/* Map file name to file handle. */ +-extern int name_to_handle_at (int __dfd, const char *__name, +- struct file_handle *__handle, int *__mnt_id, +- int __flags) __THROW; +- +-/* Open file using the file handle. +- +- This function is a possible cancellation point and therefore not +- marked with __THROW. */ +-extern int open_by_handle_at (int __mountdirfd, struct file_handle *__handle, +- int __flags); +- + #endif /* use GNU */ + + __END_DECLS diff --git a/packages/uClibc-ng/1.0.27/0002-feraiseexcept.patch b/packages/uClibc-ng/1.0.27/0003-feraiseexcept.patch similarity index 100% rename from packages/uClibc-ng/1.0.27/0002-feraiseexcept.patch rename to packages/uClibc-ng/1.0.27/0003-feraiseexcept.patch diff --git a/packages/uClibc-ng/1.0.28/0000-uClibc-ng-does-not-implement-name_to_handle_at.patch b/packages/uClibc-ng/1.0.28/0000-uClibc-ng-does-not-implement-name_to_handle_at.patch new file mode 100644 index 00000000..f887f134 --- /dev/null +++ b/packages/uClibc-ng/1.0.28/0000-uClibc-ng-does-not-implement-name_to_handle_at.patch @@ -0,0 +1,50 @@ +From 319583d37ce649221ca4ff48a0b194bdbbf2ace1 Mon Sep 17 00:00:00 2001 +From: Alexey Neyman +Date: Sun, 11 Feb 2018 11:59:22 -0800 +Subject: [PATCH] uClibc-ng does not implement name_to_handle_at + +... so don't declare it. Otherwise, eudev finds it declared and tries +to link with it - and fails. + +Signed-off-by: Alexey Neyman +--- + libc/sysdeps/linux/aarch64/bits/fcntl.h | 21 --------------------- + 1 file changed, 21 deletions(-) + +--- a/libc/sysdeps/linux/aarch64/bits/fcntl.h ++++ b/libc/sysdeps/linux/aarch64/bits/fcntl.h +@@ -242,15 +242,6 @@ + file to zeros. */ + + +-/* File handle structure. */ +-struct file_handle +-{ +- unsigned int handle_bytes; +- int handle_type; +- /* File identifier. */ +- unsigned char f_handle[0]; +-}; +- + /* Maximum handle size (for now). */ + # define MAX_HANDLE_SZ 128 + #endif +@@ -315,18 +306,6 @@ + # endif + + +-/* Map file name to file handle. */ +-extern int name_to_handle_at (int __dfd, const char *__name, +- struct file_handle *__handle, int *__mnt_id, +- int __flags) __THROW; +- +-/* Open file using the file handle. +- +- This function is a possible cancellation point and therefore not +- marked with __THROW. */ +-extern int open_by_handle_at (int __mountdirfd, struct file_handle *__handle, +- int __flags); +- + #endif /* use GNU */ + + __END_DECLS