package/ncftp: fix incompatible-pointer-types error
PATCH 1/1 package/ncftp: fix incompatible-pointer-types error
From: Yegor Yefremov <[email protected]>
Use only stat, fstat, and lstat structures for the correspondent calls and let the C library macros to pick the right structure and call depending on the supported file size.
--- package/ncftp/0003-fix-stat.patch | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 package/ncftp/0003-fix-stat.patch
package/ncftp/0003-fix-stat.patch new file +27 -0
@@ -0,0 +1,27 @@ +Use stat, fstat, and lstat structures and let the C library handle the +related structures and system calls. + +Upstream: N/A, unresponsive contact email address. + +Signed-off-by: Yegor Yefremov <[email protected]> +--- a/ncftp/syshdrs.h ++++ b/ncftp/syshdrs.h +@@ -260,18 +260,6 @@ + # define Stat WinStat64 + # define Lstat WinStat64 + # define Fstat WinFStat64 +-#elif ((defined(HAVE_LONG_LONG)) && (defined(_LARGEFILE64_SOURCE)) && (defined(HAVE_STAT64)) && (defined(HAVE_STRUCT_STAT64))) +-# define Stat stat64 +-# ifdef HAVE_FSTAT64 +-# define Fstat fstat64 +-# else +-# define Fstat fstat +-# endif +-# ifdef HAVE_LSTAT64 +-# define Lstat lstat64 +-# else +-# define Lstat lstat +-# endif + #else + # define Stat stat + # define Fstat fstat
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 47 lines · On Mon, Mar 3, 2025 at 3:40 PM <[email protected]> wrote:
From: Yegor Yefremov <[email protected]>
Use only stat, fstat, and lstat structures for the correspondent calls and let the C library macros to pick the right structure and call depending on the supported file size.
Signed-off-by Yegor Yefremov <[email protected]>--- package/ncftp/0003-fix-stat.patch | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 package/ncftp/0003-fix-stat.patchpackage/ncftp/0003-fix-stat.patch new file +27
-1@@ -0,0 +1,27 @@ +Use stat, fstat, and lstat structures and let the C library handle the +related structures and system calls. + +Upstream: N/A, unresponsive contact email address. + +Signed-off-by: Yegor Yefremov <[email protected]> +--- a/ncftp/syshdrs.h ++++ b/ncftp/syshdrs.h +@@ -260,18 +260,6 @@ + # define Stat WinStat64 + # define Lstat WinStat64 + # define Fstat WinFStat64 +-#elif ((defined(HAVE_LONG_LONG)) && (defined(_LARGEFILE64_SOURCE)) && (defined(HAVE_STAT64)) && (defined(HAVE_STRUCT_STAT64))) +-# define Stat stat64 +-# ifdef HAVE_FSTAT64 +-# define Fstat fstat64 +-# else +-# define Fstat fstat +-# endif +-# ifdef HAVE_LSTAT64 +-# define Lstat lstat64 +-# else +-# define Lstat lstat +-# endif + #else + # define Stat stat + # define Fstat fstat --
Quoted 1 line
2.34.1
Forgot to add the following line:
Fixes: https://autobuild.buildroot.org/results/a1e0089ec8c6d58f8e991471f601bc304d60de69/
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"yegorslists" == yegorslists <[email protected]> writes:
From: Yegor Yefremov <[email protected]>
Use only stat, fstat, and lstat structures for the correspondent calls and let the C library macros to pick the right structure and call depending on the supported file size.
Do we have any autobuilder errors from this?
Quoted 12 lines
Signed-off-by Yegor Yefremov <[email protected]>--- package/ncftp/0003-fix-stat.patch | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 package/ncftp/0003-fix-stat.patchpackage/ncftp/0003-fix-stat.patch new file +0
-0
package/ncftp/0003-fix-stat.patch line 4
Quoted 4 lines
package/ncftp/0003-fix-stat.patch new file +4
-0@@ -0,0 +1,27 @@ +Use stat, fstat, and lstat structures and let the C library handle the +related structures and system calls. + +Upstream: N/A, unresponsive contact email address.
If upstream is dead, perhaps we should instead drop the ncftp package given how little FTP is used nowadays?
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Peter, Yegor,
Quoted 25 lines · Peter Korsgaard
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"yegorslists" == yegorslists <[email protected]> writes:
From: Yegor Yefremov <[email protected]>
Use only stat, fstat, and lstat structures for the correspondentcalls
Quoted 2 lines
and let the C library macros to pick the right structure and call depending on the supported file size.
Do we have any autobuilder errors from this?
Review
Quoted 7 lines
Signed-off-by Yegor Yefremov <[email protected]>--- package/ncftp/0003-fix-stat.patch | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 package/ncftp/0003-fix-stat.patch(quoted diff) +0
-0
b/package/ncftp/0003-fix-stat.patchpackage/ncftp/0003-fix-stat.patch line 1
Quoted 6 lines
new file mode 100644
index 0000000000..8581cf546bpackage/ncftp/0003-fix-stat.patch new file +1
-0@@ -0,0 +1,27 @@ +Use stat, fstat, and lstat structures and let the C library handlethe
Quoted 6 lines
package/ncftp/0003-fix-stat.patch line 4
Quoted 3 lines
package/ncftp/0003-fix-stat.patch new file +3
-0+related structures and system calls. + +Upstream: N/A, unresponsive contact email address.If upstream is dead, perhaps we should instead drop the ncftp package given how little FTP is used nowadays?
It seems there was a new upstream release, after all. See:
https://www.ncftp.com/ncftp/doc/changelog.html
Yegor, could you have a look if this new release fixes the same issue. And if so, could you send a new patch that just bump to this new version, please?
Best regards,
Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Julien,
Quoted 36 lines · Julien Olivain
Hi Peter, Yegor,
Quoted 25 lines · Peter Korsgaard
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"yegorslists" == yegorslists <[email protected]> writes:
From: Yegor Yefremov <[email protected]>
Use only stat, fstat, and lstat structures for the correspondentcalls
Quoted 2 lines
and let the C library macros to pick the right structure and call depending on the supported file size.
Do we have any autobuilder errors from this?
Review
Quoted 7 lines
Signed-off-by Yegor Yefremov <[email protected]>--- package/ncftp/0003-fix-stat.patch | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 package/ncftp/0003-fix-stat.patch(quoted diff) +0
-0
b/package/ncftp/0003-fix-stat.patchpackage/ncftp/0003-fix-stat.patch line 1
Quoted 6 lines
new file mode 100644
index 0000000000..8581cf546bpackage/ncftp/0003-fix-stat.patch new file +1
-0@@ -0,0 +1,27 @@ +Use stat, fstat, and lstat structures and let the C library handlethe
Quoted 6 lines
package/ncftp/0003-fix-stat.patch line 4
Quoted 3 lines
package/ncftp/0003-fix-stat.patch new file +3
-0+related structures and system calls. + +Upstream: N/A, unresponsive contact email address.If upstream is dead, perhaps we should instead drop the ncftp package given how little FTP is used nowadays?
Quoted 6 lines
It seems there was a new upstream release, after all. See:
https://www.ncftp.com/ncftp/doc/changelog.htmlYegor, could you have a look if this new release fixes the same issue. And if so, could you send a new patch that just bump to this new version, please?
I am on it. The issue with large file support is fixed now. But autoreconf is now broken. Though, cross-compilation for ARM is working with the configure scriüt alone.
Regards,
Yegor
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot