Hello community, here is the log from the commit of package libfilezilla for openSUSE:Factory checked in at 2017-11-12 18:10:48 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libfilezilla (Old) and /work/SRC/openSUSE:Factory/.libfilezilla.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libfilezilla" Sun Nov 12 18:10:48 2017 rev:14 rq:541062 version:0.11.1 Changes: -------- --- /work/SRC/openSUSE:Factory/libfilezilla/libfilezilla.changes 2017-10-03 23:17:49.665835653 +0200 +++ /work/SRC/openSUSE:Factory/.libfilezilla.new/libfilezilla.changes 2017-11-12 18:10:59.897912788 +0100 @@ -1,0 +2,7 @@ +Sun Nov 12 10:26:51 UTC 2017 - [email protected] + +- update to 0.11.1 + * New features: + - Added fz::file::fsync() to sync data to disk + +------------------------------------------------------------------- Old: ---- libfilezilla-0.11.0.tar.bz2 New: ---- libfilezilla-0.11.1.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libfilezilla.spec ++++++ --- /var/tmp/diff_new_pack.1ezWpQ/_old 2017-11-12 18:11:00.417893871 +0100 +++ /var/tmp/diff_new_pack.1ezWpQ/_new 2017-11-12 18:11:00.417893871 +0100 @@ -20,7 +20,7 @@ %define libname %{name}%{major} %define develname %{name}-devel Name: libfilezilla -Version: 0.11.0 +Version: 0.11.1 Release: 0 Summary: C++ library for filezilla License: GPL-2.0+ ++++++ libfilezilla-0.11.0.tar.bz2 -> libfilezilla-0.11.1.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libfilezilla-0.11.0/NEWS new/libfilezilla-0.11.1/NEWS --- old/libfilezilla-0.11.0/NEWS 2017-09-29 10:53:09.000000000 +0200 +++ new/libfilezilla-0.11.1/NEWS 2017-10-30 18:16:06.000000000 +0100 @@ -1,3 +1,7 @@ +0.11.1 (2017-10-30) + ++ Added fz::file::fsync() to sync data to disk + 0.11.0 (2017-09-29) + Add fz::buffer class diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libfilezilla-0.11.0/configure new/libfilezilla-0.11.1/configure --- old/libfilezilla-0.11.0/configure 2017-09-29 10:54:31.000000000 +0200 +++ new/libfilezilla-0.11.1/configure 2017-10-30 18:16:32.000000000 +0100 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for libfilezilla 0.11.0. +# Generated by GNU Autoconf 2.69 for libfilezilla 0.11.1. # # Report bugs to <[email protected]>. # @@ -590,8 +590,8 @@ # Identity of this package. PACKAGE_NAME='libfilezilla' PACKAGE_TARNAME='libfilezilla' -PACKAGE_VERSION='0.11.0' -PACKAGE_STRING='libfilezilla 0.11.0' +PACKAGE_VERSION='0.11.1' +PACKAGE_STRING='libfilezilla 0.11.1' PACKAGE_BUGREPORT='[email protected]' PACKAGE_URL='https://lib.filezilla-project.org/' @@ -1413,7 +1413,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures libfilezilla 0.11.0 to adapt to many kinds of systems. +\`configure' configures libfilezilla 0.11.1 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1484,7 +1484,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of libfilezilla 0.11.0:";; + short | recursive ) echo "Configuration of libfilezilla 0.11.1:";; esac cat <<\_ACEOF @@ -1621,7 +1621,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -libfilezilla configure 0.11.0 +libfilezilla configure 0.11.1 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -2066,7 +2066,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by libfilezilla $as_me 0.11.0, which was +It was created by libfilezilla $as_me 0.11.1, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -2932,7 +2932,7 @@ # Define the identity of the package. PACKAGE='libfilezilla' - VERSION='0.11.0' + VERSION='0.11.1' cat >>confdefs.h <<_ACEOF @@ -20908,7 +20908,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by libfilezilla $as_me 0.11.0, which was +This file was extended by libfilezilla $as_me 0.11.1, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -20975,7 +20975,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -libfilezilla config.status 0.11.0 +libfilezilla config.status 0.11.1 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libfilezilla-0.11.0/configure.ac new/libfilezilla-0.11.1/configure.ac --- old/libfilezilla-0.11.0/configure.ac 2017-09-29 10:53:52.000000000 +0200 +++ new/libfilezilla-0.11.1/configure.ac 2017-10-30 18:14:26.000000000 +0100 @@ -1,4 +1,4 @@ -AC_INIT([libfilezilla],[0.11.0],[[email protected]],[],[https://lib.filezilla-project.org/]) +AC_INIT([libfilezilla],[0.11.1],[[email protected]],[],[https://lib.filezilla-project.org/]) AC_CONFIG_HEADERS([lib/libfilezilla/private/config.hpp]) AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_AUX_DIR(config) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libfilezilla-0.11.0/lib/buffer.cpp new/libfilezilla-0.11.1/lib/buffer.cpp --- old/libfilezilla-0.11.0/lib/buffer.cpp 2017-09-29 10:41:58.000000000 +0200 +++ new/libfilezilla-0.11.1/lib/buffer.cpp 2017-10-30 18:14:16.000000000 +0100 @@ -1,6 +1,7 @@ #include "libfilezilla/buffer.hpp" #include <algorithm> +#include <cstdlib> #include <string.h> @@ -89,7 +90,7 @@ { if (capacity_ - (pos_ - data_) - size_ < added) { // Hang, draw and quarter the caller. - abort(); + std::abort(); } size_ += added; } @@ -97,7 +98,7 @@ void buffer::consume(size_t consumed) { if (consumed > size_) { - abort(); + std::abort(); } if (consumed == size_) { pos_ = data_; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libfilezilla-0.11.0/lib/file.cpp new/libfilezilla-0.11.1/lib/file.cpp --- old/libfilezilla-0.11.0/lib/file.cpp 2017-09-29 10:41:58.000000000 +0200 +++ new/libfilezilla-0.11.1/lib/file.cpp 2017-10-30 18:14:16.000000000 +0100 @@ -11,10 +11,6 @@ namespace fz { -file::file() -{ -} - file::file(native_string const& f, mode m, creation_flags d) { open(f, m, d); @@ -133,6 +129,11 @@ return DeleteFileW(name.c_str()) != 0; } +bool file::fsync() +{ + return FlushFileBuffers(hFile_) != 0; +} + #else bool file::open(native_string const& f, mode m, creation_flags d) @@ -244,6 +245,15 @@ return unlink(name.c_str()) == 0; } +bool file::fsync() +{ +#if defined(_POSIX_SYNCHRONIZED_IO) && _POSIX_SYNCHRONIZED_IO > 0 + return fdatasync(fd_) == 0; +#else + return ::fsync(fd_) == 0; +#endif +} + #endif } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libfilezilla-0.11.0/lib/libfilezilla/buffer.hpp new/libfilezilla-0.11.1/lib/libfilezilla/buffer.hpp --- old/libfilezilla-0.11.0/lib/libfilezilla/buffer.hpp 2017-09-29 10:41:58.000000000 +0200 +++ new/libfilezilla-0.11.1/lib/libfilezilla/buffer.hpp 2017-10-30 18:14:16.000000000 +0100 @@ -52,6 +52,9 @@ size_t size() const { return size_; } + /** + * Does not release the memory. + */ void clear(); /** \brief Appends the passed data to the buffer. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libfilezilla-0.11.0/lib/libfilezilla/file.hpp new/libfilezilla-0.11.1/lib/libfilezilla/file.hpp --- old/libfilezilla-0.11.0/lib/libfilezilla/file.hpp 2017-02-20 22:19:51.000000000 +0100 +++ new/libfilezilla-0.11.1/lib/libfilezilla/file.hpp 2017-10-30 18:14:16.000000000 +0100 @@ -45,7 +45,7 @@ empty }; - file(); + file() = default; file(native_string const& f, mode m, creation_flags d = existing); ~file(); @@ -127,6 +127,13 @@ */ int64_t write(void const* buf, int64_t count); + /** \brief Ensure data is flushed to disk + * + * \return true Data has been flushed to disk. + * \return false Data could not be flushed to disk. + */ + bool fsync(); + private: #ifdef FZ_WINDOWS HANDLE hFile_{INVALID_HANDLE_VALUE}; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libfilezilla-0.11.0/lib/libfilezilla/thread.hpp new/libfilezilla-0.11.1/lib/libfilezilla/thread.hpp --- old/libfilezilla-0.11.0/lib/libfilezilla/thread.hpp 2016-01-31 11:35:01.000000000 +0100 +++ new/libfilezilla-0.11.1/lib/libfilezilla/thread.hpp 2017-10-30 18:14:16.000000000 +0100 @@ -25,7 +25,7 @@ class FZ_PUBLIC_SYMBOL thread { public: - thread(); + thread() = default; /** \brief Calls \c std::abort if the thread has not been joined. * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libfilezilla-0.11.0/lib/libfilezilla/version.hpp new/libfilezilla-0.11.1/lib/libfilezilla/version.hpp --- old/libfilezilla-0.11.0/lib/libfilezilla/version.hpp 2017-09-29 10:54:34.000000000 +0200 +++ new/libfilezilla-0.11.1/lib/libfilezilla/version.hpp 2017-10-30 18:16:35.000000000 +0100 @@ -9,15 +9,15 @@ #include <tuple> /// \brief Version string of the libfilezilla headers -#define LIBFILEZILLA_VERSION "0.11.0" +#define LIBFILEZILLA_VERSION "0.11.1" #define LIBFILEZILLA_VERSION_MAJOR 0 #define LIBFILEZILLA_VERSION_MINOR 11 -#define LIBFILEZILLA_VERSION_MICRO 0 +#define LIBFILEZILLA_VERSION_MICRO 1 #define LIBFILEZILLA_VERSION_NANO 0 /// \brief Suffix string, e.g. "rc1" -#define LIBFILEZILLA_VERSION_SUFFIX "0.11.0" +#define LIBFILEZILLA_VERSION_SUFFIX "0.11.1" namespace fz { /// \brief Get version string of libfilezilla diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libfilezilla-0.11.0/lib/local_filesys.cpp new/libfilezilla-0.11.1/lib/local_filesys.cpp --- old/libfilezilla-0.11.0/lib/local_filesys.cpp 2017-09-29 10:41:58.000000000 +0200 +++ new/libfilezilla-0.11.1/lib/local_filesys.cpp 2017-10-30 18:14:16.000000000 +0100 @@ -538,7 +538,7 @@ #else t = file; #endif - is_link = 0; + is_link = false; if (size) { *size = -1; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libfilezilla-0.11.0/lib/string.cpp new/libfilezilla-0.11.1/lib/string.cpp --- old/libfilezilla-0.11.0/lib/string.cpp 2017-09-29 10:41:58.000000000 +0200 +++ new/libfilezilla-0.11.1/lib/string.cpp 2017-10-30 18:14:16.000000000 +0100 @@ -96,7 +96,7 @@ wchar_t* out_p = &ret[0]; in_p = in.c_str(); // Some implementations of mbsrtowcs change src even on null dst - len = std::mbsrtowcs(out_p, &in_p, len + 1, &ps); + std::mbsrtowcs(out_p, &in_p, len + 1, &ps); } return ret; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libfilezilla-0.11.0/lib/thread.cpp new/libfilezilla-0.11.1/lib/thread.cpp --- old/libfilezilla-0.11.0/lib/thread.cpp 2017-09-29 10:41:58.000000000 +0200 +++ new/libfilezilla-0.11.1/lib/thread.cpp 2017-10-30 18:14:16.000000000 +0100 @@ -11,10 +11,6 @@ namespace fz { -thread::thread() -{ -} - bool thread::joinable() const { return impl_ == nullptr; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libfilezilla-0.11.0/lib/thread_pool.cpp new/libfilezilla-0.11.1/lib/thread_pool.cpp --- old/libfilezilla-0.11.0/lib/thread_pool.cpp 2017-09-29 10:41:58.000000000 +0200 +++ new/libfilezilla-0.11.1/lib/thread_pool.cpp 2017-10-30 18:14:16.000000000 +0100 @@ -1,7 +1,7 @@ #include "libfilezilla/thread_pool.hpp" #include "libfilezilla/thread.hpp" -#include <assert.h> +#include <cassert> namespace fz { @@ -11,7 +11,6 @@ pooled_thread_impl(thread_pool & pool) : m_(pool.m_) , pool_(pool) - , detached_() {} virtual ~pooled_thread_impl()
