]> git.webhop.me Git - bs-cst-neutrino-hd.git/commitdiff
bump version neon-0.31.2 & davfs-1.6.0
authorMarkham <markham001@gmx.de>
Wed, 28 Jul 2021 07:57:22 +0000 (09:57 +0200)
committerMarkham <markham001@gmx.de>
Wed, 28 Jul 2021 07:57:22 +0000 (09:57 +0200)
14 files changed:
archive-patches/davfs2-1.5.4-no-forced-stack-protector.patch [deleted file]
archive-patches/davfs2-1.5.5-main-code-fix.patch [new file with mode: 0644]
archive-patches/davfs2-1.5.5-musl-compat.patch [new file with mode: 0644]
archive-patches/davfs2-1.5.5-no-forced-stack-protector.patch [new file with mode: 0644]
archive-patches/davfs2-1.5.5-replace-have-iconv-h-with-have-iconv.patch [new file with mode: 0644]
archive-patches/davfs2-1.6.0-main-code-fix.patch [new file with mode: 0644]
archive-patches/davfs2-1.6.0-musl-compat.patch [new file with mode: 0644]
archive-patches/davfs2-1.6.0-no-forced-stack-protector.patch [new file with mode: 0644]
archive-patches/davfs2-1.6.0-replace-have-iconv-h-with-have-iconv.patch [new file with mode: 0644]
archive-patches/davfs2-main-code-fix.patch [deleted file]
archive-patches/davfs2-musl-compat.patch [deleted file]
archive-patches/davfs2-replace-have-iconv-h-with-have-iconv.patch [deleted file]
make/extras.mk
make/versions.mk

diff --git a/archive-patches/davfs2-1.5.4-no-forced-stack-protector.patch b/archive-patches/davfs2-1.5.4-no-forced-stack-protector.patch
deleted file mode 100644 (file)
index e033163..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
---- a/src/Makefile.am
-+++ b/src/Makefile.am
-@@ -32,8 +32,7 @@ mount_davfs_SOURCES = cache.c dav_coda.c \
-         kernel_interface.h mount_davfs.h webdav.h
- umount_davfs_SOURCES = umount_davfs.c defaults.h
--AM_CFLAGS = -Wall -Werror=format-security \
--        -fstack-protector-strong --param=ssp-buffer-size=4
-+AM_CFLAGS = -Wall -Werror=format-security
- DEFS = -DPROGRAM_NAME=\"mount.davfs\" \
-        -DDAV_SYS_CONF_DIR=\"$(pkgsysconfdir)\" \
-        -DDAV_LOCALSTATE_DIR=\"$(dav_localstatedir)\" \
-
diff --git a/archive-patches/davfs2-1.5.5-main-code-fix.patch b/archive-patches/davfs2-1.5.5-main-code-fix.patch
new file mode 100644 (file)
index 0000000..99b588f
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/src/webdav.c
++++ b/src/webdav.c
+@@ -2037,7 +2037,7 @@ ssl_verify(void *userdata, int failures, const ne_ssl_certificate *cert)
+             len = getline(&s, &n, stdin);
+             if (len < 0)
+                 abort();
+-            if (rpmatch(s) > 0)
++            if ((s[0]=='y' || s[0]=='Y') > 0)
+                 ret = 0;
+             free(s);
+     } 
diff --git a/archive-patches/davfs2-1.5.5-musl-compat.patch b/archive-patches/davfs2-1.5.5-musl-compat.patch
new file mode 100644 (file)
index 0000000..7927636
--- /dev/null
@@ -0,0 +1,195 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -42,7 +42,7 @@ DAV_CHECK_NEON
+ # Checks for header files.
+ AC_HEADER_DIRENT
+ AC_HEADER_STDC
+-AC_CHECK_HEADERS([fcntl.h libintl.h langinfo.h limits.h locale.h mntent.h stddef.h stdint.h stdlib.h string.h sys/file.h sys/mount.h sys/time.h syslog.h termios.h unistd.h utime.h])
++AC_CHECK_HEADERS([error.h fcntl.h libintl.h langinfo.h limits.h locale.h mntent.h stddef.h stdint.h stdlib.h string.h sys/file.h sys/mount.h sys/time.h sys/select.h sys/types.h syslog.h termios.h unistd.h utime.h])
+ # Checks for typedefs, structures, and compiler characteristics.
+ AC_C_CONST
+@@ -78,7 +78,7 @@ AC_FUNC_SELECT_ARGTYPES
+ AC_FUNC_STRFTIME
+ AC_FUNC_STAT
+ AC_FUNC_UTIME_NULL
+-AC_CHECK_FUNCS([endpwent ftruncate getmntent memset mkdir nl_langinfo rpmatch select setlocale strcasecmp strchr strdup strerror strpbrk strrchr strstr strtol strtoull utime])
++AC_CHECK_FUNCS([endpwent ftruncate getmntent memset mkdir nl_langinfo rpmatch select setlocale strcasecmp strchr strdup strerror strpbrk strrchr strstr strtol strtoull utime canonicalize_file_name fopencookie])
+ # Misc.
+ DAV_DEFAULTS
+--- a/src/cache.c
++++ b/src/cache.c
+@@ -19,12 +19,12 @@
+ #include "config.h"
++#include "compat.h"
+ #ifdef HAVE_DIRENT_H
+ #include <dirent.h>
+ #endif
+ #include <errno.h>
+-#include <error.h>
+ #ifdef HAVE_FCNTL_H
+ #include <fcntl.h>
+ #endif
+--- /dev/null
++++ b/src/compat.h
+@@ -0,0 +1,64 @@
++#ifndef _COMPAT_H
++#define _COMPAT_H
++
++#ifndef _PATH_MOUNTED
++# define _PATH_MOUNTED "/proc/mounts"
++#endif
++
++#ifndef _PATH_MNTTAB
++# define _PATH_MNTTAB "/etc/fstab"
++#endif
++
++#ifdef HAVE_ERROR_H
++# include <error.h>
++#else
++# include <stdio.h>
++# include <stdarg.h>
++# include <stdlib.h>
++# include <string.h>
++static void error_at_line(int status, int errnum, const char *filename,
++                          unsigned int linenum, const char *format, ...)
++{
++      va_list ap;
++
++      fflush(stdout);
++
++      if (filename != NULL)
++              fprintf(stderr, "%s:%u: ", filename, linenum);
++
++      va_start(ap, format);
++      vfprintf(stderr, format, ap);
++      va_end(ap);
++
++      if (errnum != 0)
++              fprintf(stderr, ": %s", strerror(errnum));
++
++      fprintf(stderr, "\n");
++
++      if (status != 0)
++              exit(status);
++}
++
++#define error(status, errnum, format...) \
++      error_at_line(status, errnum, NULL, 0, format)
++
++#endif /* HAVE_ERROR_H */
++
++#ifndef HAVE_CANONICALIZE_FILE_NAME
++#include <limits.h>
++#include <string.h>
++#include <stdlib.h>
++static char * canonicalize_file_name(const char *path)
++{
++      char buf[PATH_MAX] = { };
++
++      snprintf(buf, sizeof(buf) - 1, "%s", path);
++
++      if (!realpath(path, buf))
++              return NULL;
++
++      return strdup(buf);
++}
++#endif
++
++#endif /* _COMPAT_H */
+--- a/src/dav_fuse.c
++++ b/src/dav_fuse.c
+@@ -47,6 +47,9 @@
+ #ifdef HAVE_SYS_STAT_H
+ #include <sys/stat.h>
+ #endif
++#ifdef HAVE_SYS_SELECT_H
++#include <sys/select.h>
++#endif
+ #include "defaults.h"
+ #include "mount_davfs.h"
+--- a/src/kernel_interface.c
++++ b/src/kernel_interface.c
+@@ -19,8 +19,8 @@
+ #include "config.h"
++#include "compat.h"
+-#include <error.h>
+ #ifdef HAVE_FCNTL_H
+ #include <fcntl.h>
+ #endif
+@@ -51,6 +51,9 @@
+ #ifdef HAVE_SYS_STAT_H
+ #include <sys/stat.h>
+ #endif
++#ifdef HAVE_SYS_TYPES_H
++#include <sys/types.h>
++#endif
+ #include <sys/wait.h>
+ #include "defaults.h"
+--- a/src/mount_davfs.c
++++ b/src/mount_davfs.c
+@@ -19,10 +19,10 @@
+ #include "config.h"
++#include "compat.h"
+ #include <ctype.h>
+ #include <errno.h>
+-#include <error.h>
+ #ifdef HAVE_FCNTL_H
+ #include <fcntl.h>
+ #endif
+--- a/src/umount_davfs.c
++++ b/src/umount_davfs.c
+@@ -19,8 +19,8 @@
+ #include "config.h"
++#include "compat.h"
+-#include <error.h>
+ #include <errno.h>
+ #include <getopt.h>
+ #ifdef HAVE_LIBINTL_H
+--- a/src/webdav.c
++++ b/src/webdav.c
+@@ -19,9 +19,9 @@
+ #include "config.h"
++#include "compat.h"
+ #include <errno.h>
+-#include <error.h>
+ #ifdef HAVE_FCNTL_H
+ #include <fcntl.h>
+ #endif
+@@ -368,6 +368,7 @@ dav_init_webdav(const dav_args *args)
+         error(EXIT_FAILURE, errno, _("socket library initialization failed"));
+     if (args->neon_debug & ~NE_DBG_HTTPPLAIN) {
++#ifdef HAVE_FOPENCOOKIE
+         char *buf = malloc(log_bufsize);
+         cookie_io_functions_t *log_func = malloc(sizeof(cookie_io_functions_t));
+         if (!log_func) abort();
+@@ -380,6 +381,9 @@ dav_init_webdav(const dav_args *args)
+             error(EXIT_FAILURE, errno,
+                   _("can't open stream to log neon-messages"));
+         ne_debug_init(log_stream, args->neon_debug);
++#else
++      error(EXIT_FAILURE, 0, "neon debugging unsupported");
++#endif
+     }
+     session = ne_session_create(args->scheme, args->host, args->port);
+
diff --git a/archive-patches/davfs2-1.5.5-no-forced-stack-protector.patch b/archive-patches/davfs2-1.5.5-no-forced-stack-protector.patch
new file mode 100644 (file)
index 0000000..e033163
--- /dev/null
@@ -0,0 +1,13 @@
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -32,8 +32,7 @@ mount_davfs_SOURCES = cache.c dav_coda.c \
+         kernel_interface.h mount_davfs.h webdav.h
+ umount_davfs_SOURCES = umount_davfs.c defaults.h
+-AM_CFLAGS = -Wall -Werror=format-security \
+-        -fstack-protector-strong --param=ssp-buffer-size=4
++AM_CFLAGS = -Wall -Werror=format-security
+ DEFS = -DPROGRAM_NAME=\"mount.davfs\" \
+        -DDAV_SYS_CONF_DIR=\"$(pkgsysconfdir)\" \
+        -DDAV_LOCALSTATE_DIR=\"$(dav_localstatedir)\" \
+
diff --git a/archive-patches/davfs2-1.5.5-replace-have-iconv-h-with-have-iconv.patch b/archive-patches/davfs2-1.5.5-replace-have-iconv-h-with-have-iconv.patch
new file mode 100644 (file)
index 0000000..c126b5a
--- /dev/null
@@ -0,0 +1,40 @@
+diff --git a/src/webdav.c b/src/webdav.c
+index 1ff7c7f..74cd957 100644
+--- a/src/webdav.c
++++ b/src/webdav.c
+@@ -25,7 +25,7 @@
+ #ifdef HAVE_FCNTL_H
+ #include <fcntl.h>
+ #endif
+-#ifdef HAVE_ICONV_H
++#ifdef HAVE_ICONV
+ #include <iconv.h>
+ #endif
+ #ifdef HAVE_LANGINFO_H
+@@ -231,7 +231,7 @@ static int initialized;
+    Needed by  ssl_verify() which may be called at any time. */
+ static int have_terminal;
+-#ifdef HAVE_ICONV_H
++#ifdef HAVE_ICONV
+ /* Handle to convert character encoding from utf-8 to LC_CTYPE.
+    If NULL no conversion is done. */
+ static iconv_t from_utf_8;
+@@ -264,7 +264,7 @@ static char **cookie_list;
+ /* Private function prototypes and inline functions */
+ /*==================================================*/
+-#ifdef HAVE_ICONV_H
++#ifdef HAVE_ICONV
+ static void
+ convert(char **s, iconv_t conv);
+ #endif
+@@ -337,7 +337,7 @@ dav_init_webdav(const dav_args *args)
+     if (args->neon_debug & ~NE_DBG_HTTPPLAIN)
+         syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "Initializing webdav");
+-#ifdef HAVE_ICONV_H
++#ifdef HAVE_ICONV
+     char *lc_charset = nl_langinfo(CODESET);
+     if (lc_charset && strcasecmp(lc_charset, "UTF-8") != 0) {
+         from_utf_8 = iconv_open(lc_charset, "UTF-8");
diff --git a/archive-patches/davfs2-1.6.0-main-code-fix.patch b/archive-patches/davfs2-1.6.0-main-code-fix.patch
new file mode 100644 (file)
index 0000000..a20430f
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/src/webdav.c
++++ b/src/webdav.c
+@@ -2045,7 +2045,7 @@ ssl_verify(void *userdata, int failures,
+             len = getline(&s, &n, stdin);
+             if (len < 0)
+                 abort();
+-            if (rpmatch(s) > 0)
++            if ((s[0]=='y' || s[0]=='Y') > 0)
+                 ret = 0;
+             free(s);
+     } 
diff --git a/archive-patches/davfs2-1.6.0-musl-compat.patch b/archive-patches/davfs2-1.6.0-musl-compat.patch
new file mode 100644 (file)
index 0000000..b781c43
--- /dev/null
@@ -0,0 +1,194 @@
+--- a/configure.ac     2020-08-04 16:50:36.000000000 +0200
++++ b/configure.ac     2021-07-28 09:11:09.157980505 +0200
+@@ -42,7 +42,7 @@ DAV_CHECK_NEON
+ # Checks for header files.
+ AC_HEADER_DIRENT
+ AC_HEADER_STDC
+-AC_CHECK_HEADERS([fcntl.h iconv.h libintl.h langinfo.h limits.h locale.h mntent.h stddef.h stdint.h stdlib.h string.h sys/file.h sys/mount.h sys/time.h syslog.h termios.h unistd.h utime.h])
++AC_CHECK_HEADERS([fcntl.h iconv.h libintl.h langinfo.h limits.h locale.h mntent.h stddef.h stdint.h stdlib.h string.h sys/file.h sys/mount.h sys/time.h syslog.h termios.h unistd.h utime.h error.h])
+ # Checks for typedefs, structures, and compiler characteristics.
+ AC_C_CONST
+@@ -78,7 +78,7 @@ AC_FUNC_SELECT_ARGTYPES
+ AC_FUNC_STRFTIME
+ AC_FUNC_STAT
+ AC_FUNC_UTIME_NULL
+-AC_CHECK_FUNCS([endpwent ftruncate getmntent iconv memset mkdir nl_langinfo rpmatch select setlocale strcasecmp strchr strdup strerror strpbrk strrchr strstr strtol strtoull utime])
++AC_CHECK_FUNCS([endpwent ftruncate getmntent iconv memset mkdir nl_langinfo rpmatch select setlocale strcasecmp strchr strdup strerror strpbrk strrchr strstr strtol strtoull utime canonicalize_file_name fopencookie])
+ # Misc.
+ DAV_DEFAULTS
+--- a/src/cache.c      2020-08-03 11:31:52.000000000 +0200
++++ b/src/cache.c      2021-07-28 09:09:13.434003720 +0200
+@@ -19,12 +19,12 @@
+ #include "config.h"
++#include "compat.h"
+ #ifdef HAVE_DIRENT_H
+ #include <dirent.h>
+ #endif
+ #include <errno.h>
+-#include <error.h>
+ #ifdef HAVE_FCNTL_H
+ #include <fcntl.h>
+ #endif
+--- a/src/dav_fuse.c   2020-08-03 11:33:19.000000000 +0200
++++ b/src/dav_fuse.c   2021-07-28 09:09:13.434003720 +0200
+@@ -47,6 +47,9 @@
+ #ifdef HAVE_SYS_STAT_H
+ #include <sys/stat.h>
+ #endif
++#ifdef HAVE_SYS_SELECT_H
++#include <sys/select.h>
++#endif
+ #include "defaults.h"
+ #include "mount_davfs.h"
+--- a/src/kernel_interface.c   2020-08-03 11:11:17.000000000 +0200
++++ b/src/kernel_interface.c   2021-07-28 09:13:29.665994020 +0200
+@@ -21,7 +21,8 @@
+ #include "config.h"
+ #include <errno.h>
+-#include <error.h>
++#include "compat.h"
++//#include <error.h>
+ #ifdef HAVE_FCNTL_H
+ #include <fcntl.h>
+ #endif
+@@ -52,6 +53,9 @@
+ #ifdef HAVE_SYS_STAT_H
+ #include <sys/stat.h>
+ #endif
++#ifdef HAVE_SYS_TYPES_H
++#include <sys/types.h>
++#endif
+ #include <sys/wait.h>
+ #include "defaults.h"
+--- a/src/mount_davfs.c        2020-08-03 11:13:20.000000000 +0200
++++ b/src/mount_davfs.c        2021-07-28 09:09:13.434003720 +0200
+@@ -19,10 +19,10 @@
+ #include "config.h"
++#include "compat.h"
+ #include <ctype.h>
+ #include <errno.h>
+-#include <error.h>
+ #ifdef HAVE_FCNTL_H
+ #include <fcntl.h>
+ #endif
+--- a/src/umount_davfs.c       2019-11-26 12:05:09.000000000 +0100
++++ b/src/umount_davfs.c       2021-07-28 09:09:13.434003720 +0200
+@@ -19,8 +19,8 @@
+ #include "config.h"
++#include "compat.h"
+-#include <error.h>
+ #include <errno.h>
+ #include <getopt.h>
+ #ifdef HAVE_LIBINTL_H
+--- a/src/webdav.c     2020-06-07 18:13:03.000000000 +0200
++++ b/src/webdav.c     2021-07-28 09:09:13.434003720 +0200
+@@ -19,9 +19,9 @@
+ #include "config.h"
++#include "compat.h"
+ #include <errno.h>
+-#include <error.h>
+ #ifdef HAVE_FCNTL_H
+ #include <fcntl.h>
+ #endif
+@@ -368,6 +368,7 @@ dav_init_webdav(const dav_args *args)
+         error(EXIT_FAILURE, errno, _("socket library initialization failed"));
+     if (args->neon_debug & ~NE_DBG_HTTPPLAIN) {
++#ifdef HAVE_FOPENCOOKIE
+         char *buf = malloc(log_bufsize);
+         cookie_io_functions_t *log_func = malloc(sizeof(cookie_io_functions_t));
+         if (!log_func) abort();
+@@ -380,6 +381,9 @@ dav_init_webdav(const dav_args *args)
+             error(EXIT_FAILURE, errno,
+                   _("can't open stream to log neon-messages"));
+         ne_debug_init(log_stream, args->neon_debug);
++#else
++      error(EXIT_FAILURE, 0, "neon debugging unsupported");
++#endif
+     }
+     session = ne_session_create(args->scheme, args->host, args->port);
+--- /dev/null
++++ b/src/compat.h
+@@ -0,0 +1,64 @@
++#ifndef _COMPAT_H
++#define _COMPAT_H
++
++#ifndef _PATH_MOUNTED
++# define _PATH_MOUNTED "/proc/mounts"
++#endif
++
++#ifndef _PATH_MNTTAB
++# define _PATH_MNTTAB "/etc/fstab"
++#endif
++
++#ifdef HAVE_ERROR_H
++# include <error.h>
++#else
++# include <stdio.h>
++# include <stdarg.h>
++# include <stdlib.h>
++# include <string.h>
++static void error_at_line(int status, int errnum, const char *filename,
++                          unsigned int linenum, const char *format, ...)
++{
++      va_list ap;
++
++      fflush(stdout);
++
++      if (filename != NULL)
++              fprintf(stderr, "%s:%u: ", filename, linenum);
++
++      va_start(ap, format);
++      vfprintf(stderr, format, ap);
++      va_end(ap);
++
++      if (errnum != 0)
++              fprintf(stderr, ": %s", strerror(errnum));
++
++      fprintf(stderr, "\n");
++
++      if (status != 0)
++              exit(status);
++}
++
++#define error(status, errnum, format...) \
++      error_at_line(status, errnum, NULL, 0, format)
++
++#endif /* HAVE_ERROR_H */
++
++#ifndef HAVE_CANONICALIZE_FILE_NAME
++#include <limits.h>
++#include <string.h>
++#include <stdlib.h>
++static char * canonicalize_file_name(const char *path)
++{
++      char buf[PATH_MAX] = { };
++
++      snprintf(buf, sizeof(buf) - 1, "%s", path);
++
++      if (!realpath(path, buf))
++              return NULL;
++
++      return strdup(buf);
++}
++#endif
++
++#endif /* _COMPAT_H */
diff --git a/archive-patches/davfs2-1.6.0-no-forced-stack-protector.patch b/archive-patches/davfs2-1.6.0-no-forced-stack-protector.patch
new file mode 100644 (file)
index 0000000..e033163
--- /dev/null
@@ -0,0 +1,13 @@
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -32,8 +32,7 @@ mount_davfs_SOURCES = cache.c dav_coda.c \
+         kernel_interface.h mount_davfs.h webdav.h
+ umount_davfs_SOURCES = umount_davfs.c defaults.h
+-AM_CFLAGS = -Wall -Werror=format-security \
+-        -fstack-protector-strong --param=ssp-buffer-size=4
++AM_CFLAGS = -Wall -Werror=format-security
+ DEFS = -DPROGRAM_NAME=\"mount.davfs\" \
+        -DDAV_SYS_CONF_DIR=\"$(pkgsysconfdir)\" \
+        -DDAV_LOCALSTATE_DIR=\"$(dav_localstatedir)\" \
+
diff --git a/archive-patches/davfs2-1.6.0-replace-have-iconv-h-with-have-iconv.patch b/archive-patches/davfs2-1.6.0-replace-have-iconv-h-with-have-iconv.patch
new file mode 100644 (file)
index 0000000..f2abd59
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/src/webdav.c     2020-06-07 18:13:03.000000000 +0200
++++ b/src/webdav.c     2021-07-28 09:25:10.802089137 +0200
+@@ -25,7 +25,7 @@
+ #ifdef HAVE_FCNTL_H
+ #include <fcntl.h>
+ #endif
+-#ifdef HAVE_ICONV_H
++#ifdef HAVE_ICONV
+ #include <iconv.h>
+ #endif
+ #ifdef HAVE_LANGINFO_H
diff --git a/archive-patches/davfs2-main-code-fix.patch b/archive-patches/davfs2-main-code-fix.patch
deleted file mode 100644 (file)
index 99b588f..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/src/webdav.c
-+++ b/src/webdav.c
-@@ -2037,7 +2037,7 @@ ssl_verify(void *userdata, int failures, const ne_ssl_certificate *cert)
-             len = getline(&s, &n, stdin);
-             if (len < 0)
-                 abort();
--            if (rpmatch(s) > 0)
-+            if ((s[0]=='y' || s[0]=='Y') > 0)
-                 ret = 0;
-             free(s);
-     } 
diff --git a/archive-patches/davfs2-musl-compat.patch b/archive-patches/davfs2-musl-compat.patch
deleted file mode 100644 (file)
index 7927636..0000000
+++ /dev/null
@@ -1,195 +0,0 @@
---- a/configure.ac
-+++ b/configure.ac
-@@ -42,7 +42,7 @@ DAV_CHECK_NEON
- # Checks for header files.
- AC_HEADER_DIRENT
- AC_HEADER_STDC
--AC_CHECK_HEADERS([fcntl.h libintl.h langinfo.h limits.h locale.h mntent.h stddef.h stdint.h stdlib.h string.h sys/file.h sys/mount.h sys/time.h syslog.h termios.h unistd.h utime.h])
-+AC_CHECK_HEADERS([error.h fcntl.h libintl.h langinfo.h limits.h locale.h mntent.h stddef.h stdint.h stdlib.h string.h sys/file.h sys/mount.h sys/time.h sys/select.h sys/types.h syslog.h termios.h unistd.h utime.h])
- # Checks for typedefs, structures, and compiler characteristics.
- AC_C_CONST
-@@ -78,7 +78,7 @@ AC_FUNC_SELECT_ARGTYPES
- AC_FUNC_STRFTIME
- AC_FUNC_STAT
- AC_FUNC_UTIME_NULL
--AC_CHECK_FUNCS([endpwent ftruncate getmntent memset mkdir nl_langinfo rpmatch select setlocale strcasecmp strchr strdup strerror strpbrk strrchr strstr strtol strtoull utime])
-+AC_CHECK_FUNCS([endpwent ftruncate getmntent memset mkdir nl_langinfo rpmatch select setlocale strcasecmp strchr strdup strerror strpbrk strrchr strstr strtol strtoull utime canonicalize_file_name fopencookie])
- # Misc.
- DAV_DEFAULTS
---- a/src/cache.c
-+++ b/src/cache.c
-@@ -19,12 +19,12 @@
- #include "config.h"
-+#include "compat.h"
- #ifdef HAVE_DIRENT_H
- #include <dirent.h>
- #endif
- #include <errno.h>
--#include <error.h>
- #ifdef HAVE_FCNTL_H
- #include <fcntl.h>
- #endif
---- /dev/null
-+++ b/src/compat.h
-@@ -0,0 +1,64 @@
-+#ifndef _COMPAT_H
-+#define _COMPAT_H
-+
-+#ifndef _PATH_MOUNTED
-+# define _PATH_MOUNTED "/proc/mounts"
-+#endif
-+
-+#ifndef _PATH_MNTTAB
-+# define _PATH_MNTTAB "/etc/fstab"
-+#endif
-+
-+#ifdef HAVE_ERROR_H
-+# include <error.h>
-+#else
-+# include <stdio.h>
-+# include <stdarg.h>
-+# include <stdlib.h>
-+# include <string.h>
-+static void error_at_line(int status, int errnum, const char *filename,
-+                          unsigned int linenum, const char *format, ...)
-+{
-+      va_list ap;
-+
-+      fflush(stdout);
-+
-+      if (filename != NULL)
-+              fprintf(stderr, "%s:%u: ", filename, linenum);
-+
-+      va_start(ap, format);
-+      vfprintf(stderr, format, ap);
-+      va_end(ap);
-+
-+      if (errnum != 0)
-+              fprintf(stderr, ": %s", strerror(errnum));
-+
-+      fprintf(stderr, "\n");
-+
-+      if (status != 0)
-+              exit(status);
-+}
-+
-+#define error(status, errnum, format...) \
-+      error_at_line(status, errnum, NULL, 0, format)
-+
-+#endif /* HAVE_ERROR_H */
-+
-+#ifndef HAVE_CANONICALIZE_FILE_NAME
-+#include <limits.h>
-+#include <string.h>
-+#include <stdlib.h>
-+static char * canonicalize_file_name(const char *path)
-+{
-+      char buf[PATH_MAX] = { };
-+
-+      snprintf(buf, sizeof(buf) - 1, "%s", path);
-+
-+      if (!realpath(path, buf))
-+              return NULL;
-+
-+      return strdup(buf);
-+}
-+#endif
-+
-+#endif /* _COMPAT_H */
---- a/src/dav_fuse.c
-+++ b/src/dav_fuse.c
-@@ -47,6 +47,9 @@
- #ifdef HAVE_SYS_STAT_H
- #include <sys/stat.h>
- #endif
-+#ifdef HAVE_SYS_SELECT_H
-+#include <sys/select.h>
-+#endif
- #include "defaults.h"
- #include "mount_davfs.h"
---- a/src/kernel_interface.c
-+++ b/src/kernel_interface.c
-@@ -19,8 +19,8 @@
- #include "config.h"
-+#include "compat.h"
--#include <error.h>
- #ifdef HAVE_FCNTL_H
- #include <fcntl.h>
- #endif
-@@ -51,6 +51,9 @@
- #ifdef HAVE_SYS_STAT_H
- #include <sys/stat.h>
- #endif
-+#ifdef HAVE_SYS_TYPES_H
-+#include <sys/types.h>
-+#endif
- #include <sys/wait.h>
- #include "defaults.h"
---- a/src/mount_davfs.c
-+++ b/src/mount_davfs.c
-@@ -19,10 +19,10 @@
- #include "config.h"
-+#include "compat.h"
- #include <ctype.h>
- #include <errno.h>
--#include <error.h>
- #ifdef HAVE_FCNTL_H
- #include <fcntl.h>
- #endif
---- a/src/umount_davfs.c
-+++ b/src/umount_davfs.c
-@@ -19,8 +19,8 @@
- #include "config.h"
-+#include "compat.h"
--#include <error.h>
- #include <errno.h>
- #include <getopt.h>
- #ifdef HAVE_LIBINTL_H
---- a/src/webdav.c
-+++ b/src/webdav.c
-@@ -19,9 +19,9 @@
- #include "config.h"
-+#include "compat.h"
- #include <errno.h>
--#include <error.h>
- #ifdef HAVE_FCNTL_H
- #include <fcntl.h>
- #endif
-@@ -368,6 +368,7 @@ dav_init_webdav(const dav_args *args)
-         error(EXIT_FAILURE, errno, _("socket library initialization failed"));
-     if (args->neon_debug & ~NE_DBG_HTTPPLAIN) {
-+#ifdef HAVE_FOPENCOOKIE
-         char *buf = malloc(log_bufsize);
-         cookie_io_functions_t *log_func = malloc(sizeof(cookie_io_functions_t));
-         if (!log_func) abort();
-@@ -380,6 +381,9 @@ dav_init_webdav(const dav_args *args)
-             error(EXIT_FAILURE, errno,
-                   _("can't open stream to log neon-messages"));
-         ne_debug_init(log_stream, args->neon_debug);
-+#else
-+      error(EXIT_FAILURE, 0, "neon debugging unsupported");
-+#endif
-     }
-     session = ne_session_create(args->scheme, args->host, args->port);
-
diff --git a/archive-patches/davfs2-replace-have-iconv-h-with-have-iconv.patch b/archive-patches/davfs2-replace-have-iconv-h-with-have-iconv.patch
deleted file mode 100644 (file)
index c126b5a..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-diff --git a/src/webdav.c b/src/webdav.c
-index 1ff7c7f..74cd957 100644
---- a/src/webdav.c
-+++ b/src/webdav.c
-@@ -25,7 +25,7 @@
- #ifdef HAVE_FCNTL_H
- #include <fcntl.h>
- #endif
--#ifdef HAVE_ICONV_H
-+#ifdef HAVE_ICONV
- #include <iconv.h>
- #endif
- #ifdef HAVE_LANGINFO_H
-@@ -231,7 +231,7 @@ static int initialized;
-    Needed by  ssl_verify() which may be called at any time. */
- static int have_terminal;
--#ifdef HAVE_ICONV_H
-+#ifdef HAVE_ICONV
- /* Handle to convert character encoding from utf-8 to LC_CTYPE.
-    If NULL no conversion is done. */
- static iconv_t from_utf_8;
-@@ -264,7 +264,7 @@ static char **cookie_list;
- /* Private function prototypes and inline functions */
- /*==================================================*/
--#ifdef HAVE_ICONV_H
-+#ifdef HAVE_ICONV
- static void
- convert(char **s, iconv_t conv);
- #endif
-@@ -337,7 +337,7 @@ dav_init_webdav(const dav_args *args)
-     if (args->neon_debug & ~NE_DBG_HTTPPLAIN)
-         syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "Initializing webdav");
--#ifdef HAVE_ICONV_H
-+#ifdef HAVE_ICONV
-     char *lc_charset = nl_langinfo(CODESET);
-     if (lc_charset && strcasecmp(lc_charset, "UTF-8") != 0) {
-         from_utf_8 = iconv_open(lc_charset, "UTF-8");
index 159a49516217a9568dc251eecf1fc3f4ec38c159..7437a3a39477bcdf76dedbdc581715e9ff050fa1 100644 (file)
@@ -69,7 +69,6 @@ $(D)/libneon: $(D)/expat $(D)/openssl $(ARCHIVE)/neon-$(NEON_VER).tar.gz | $(TAR
        $(START_BUILD)
        $(UNTAR)/neon-$(NEON_VER).tar.gz
        pushd $(BUILD_TMP)/neon-$(NEON_VER); \
-               $(PATCH)/libneon-openssl-deprecated.patch; \
                export CFLAGS="-I$(TARGETPREFIX)/include" \
                export LIBS="-L$(TARGETPREFIX)/lib" && \
                ./configure \
@@ -92,10 +91,10 @@ $(D)/davfs2: $(D)/libneon $(ARCHIVE)/davfs2-$(DAVFS2_VER).tar.gz | $(TARGETPREFI
        $(START_BUILD)
        $(UNTAR)/davfs2-$(DAVFS2_VER).tar.gz
        pushd $(BUILD_TMP)/davfs2-$(DAVFS2_VER); \
-               $(PATCH)/davfs2-main-code-fix.patch; \
-               $(PATCH)/davfs2-musl-compat.patch; \
-               $(PATCH)/davfs2-1.5.4-no-forced-stack-protector.patch; \
-               $(PATCH)/davfs2-replace-have-iconv-h-with-have-iconv.patch; \
+               $(PATCH)/davfs2-$(DAVFS2_VER)-main-code-fix.patch; \
+               $(PATCH)/davfs2-$(DAVFS2_VER)-musl-compat.patch; \
+               $(PATCH)/davfs2-$(DAVFS2_VER)-no-forced-stack-protector.patch; \
+               $(PATCH)/davfs2-$(DAVFS2_VER)-replace-have-iconv-h-with-have-iconv.patch; \
                export ac_cv_func_malloc_0_nonnull=yes; \
                ./configure \
                        --prefix= \
index 5b2635f3ccd6c7c0d995c1406aee995cec69c468..053428813fabd8ad4a17e5fcb0e4e2d5066280b1 100644 (file)
@@ -52,7 +52,7 @@ E2FSPROGS_VER = 1.42.13
 endif
 
 
-DAVFS2_VER = 1.5.5
+DAVFS2_VER = 1.6.0
 
 # dosfstools consists of the programs mkfs.fat, fsck.fat and fatlabel to create, check and label file systems of the FAT family.
 DOSFSTOOLS_VER = 4.1
@@ -184,7 +184,7 @@ MTD_UTILS_VER = 2.0.2
 NCURSES_VER=6.1
 
 # NEON s an HTTP and WebDAV client library, with a C interface.
-NEON_VER = 0.30.2
+NEON_VER = 0.31.2
 
 # The NFS Utilities package contains the userspace server and client tools necessary to use the kernel's NFS abilities.
 NFS_UTILS_VER = 2.2.1