Hello community, here is the log from the commit of package libfilezilla for openSUSE:Factory checked in at 2018-01-26 13:39:20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libfilezilla (Old) and /work/SRC/openSUSE:Factory/.libfilezilla.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libfilezilla" Fri Jan 26 13:39:20 2018 rev:15 rq:569483 version:0.11.2 Changes: -------- --- /work/SRC/openSUSE:Factory/libfilezilla/libfilezilla.changes 2017-11-12 18:10:59.897912788 +0100 +++ /work/SRC/openSUSE:Factory/.libfilezilla.new/libfilezilla.changes 2018-01-26 13:39:21.573687000 +0100 @@ -1,0 +2,7 @@ +Thu Jan 25 11:22:05 UTC 2018 - [email protected] + +- update to 0.11.2 + * New features: + - Added fz::starts_with and fz::ends_with + +------------------------------------------------------------------- Old: ---- libfilezilla-0.11.1.tar.bz2 New: ---- libfilezilla-0.11.2.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libfilezilla.spec ++++++ --- /var/tmp/diff_new_pack.lYQJkY/_old 2018-01-26 13:39:22.213657110 +0100 +++ /var/tmp/diff_new_pack.lYQJkY/_new 2018-01-26 13:39:22.217656924 +0100 @@ -1,7 +1,7 @@ # # spec file for package libfilezilla # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -20,7 +20,7 @@ %define libname %{name}%{major} %define develname %{name}-devel Name: libfilezilla -Version: 0.11.1 +Version: 0.11.2 Release: 0 Summary: C++ library for filezilla License: GPL-2.0+ @@ -37,9 +37,9 @@ BuildRequires: libtool BuildRequires: pkg-config BuildRequires: pkgconfig(cppunit) -%if 0%{?suse_version} <= 1320 +%if 0%{?suse_version} <= 1500 # FileZilla requires C++14 support. -BuildRequires: gcc5-c++ +BuildRequires: gcc7-c++ %else BuildRequires: gcc-c++ %endif @@ -81,9 +81,9 @@ cp -v %{SOURCE1} . %build -%if 0%{?suse_version} <= 1320 -export CC="gcc-5" -export CXX="g++-5" +%if 0%{?suse_version} <= 1500 +export CC="gcc-7" +export CXX="g++-7" # Default ABI through G++4.9, thus the one wxWidgets uses. export CXXFLAGS="%{optflags} -fabi-version=2 -fabi-compat-version=2" %endif ++++++ libfilezilla-0.11.1.tar.bz2 -> libfilezilla-0.11.2.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libfilezilla-0.11.1/NEWS new/libfilezilla-0.11.2/NEWS --- old/libfilezilla-0.11.1/NEWS 2017-10-30 18:16:06.000000000 +0100 +++ new/libfilezilla-0.11.2/NEWS 2018-01-05 11:43:06.000000000 +0100 @@ -1,3 +1,8 @@ +0.11.2 (2018-01-05) + ++ Added fz::starts_with and fz::ends_with +- Fix usage of delete in the fz::buffer destructor + 0.11.1 (2017-10-30) + Added fz::file::fsync() to sync data to disk diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libfilezilla-0.11.1/README new/libfilezilla-0.11.2/README --- old/libfilezilla-0.11.1/README 2017-02-20 23:08:59.000000000 +0100 +++ new/libfilezilla-0.11.2/README 2018-01-05 11:43:06.000000000 +0100 @@ -1,7 +1,7 @@ libfilezilla ------------- - Copyright (C) 2017 Tim Kosse + Copyright (C) 2018 Tim Kosse https://lib.filezilla-project.org/ Overview diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libfilezilla-0.11.1/configure new/libfilezilla-0.11.2/configure --- old/libfilezilla-0.11.1/configure 2017-10-30 18:16:32.000000000 +0100 +++ new/libfilezilla-0.11.2/configure 2018-01-05 11:43:22.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.1. +# Generated by GNU Autoconf 2.69 for libfilezilla 0.11.2. # # Report bugs to <[email protected]>. # @@ -590,8 +590,8 @@ # Identity of this package. PACKAGE_NAME='libfilezilla' PACKAGE_TARNAME='libfilezilla' -PACKAGE_VERSION='0.11.1' -PACKAGE_STRING='libfilezilla 0.11.1' +PACKAGE_VERSION='0.11.2' +PACKAGE_STRING='libfilezilla 0.11.2' 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.1 to adapt to many kinds of systems. +\`configure' configures libfilezilla 0.11.2 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.1:";; + short | recursive ) echo "Configuration of libfilezilla 0.11.2:";; 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.1 +libfilezilla configure 0.11.2 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.1, which was +It was created by libfilezilla $as_me 0.11.2, 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.1' + VERSION='0.11.2' 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.1, which was +This file was extended by libfilezilla $as_me 0.11.2, 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.1 +libfilezilla config.status 0.11.2 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.1/configure.ac new/libfilezilla-0.11.2/configure.ac --- old/libfilezilla-0.11.1/configure.ac 2017-10-30 18:14:26.000000000 +0100 +++ new/libfilezilla-0.11.2/configure.ac 2018-01-05 11:43:06.000000000 +0100 @@ -1,4 +1,4 @@ -AC_INIT([libfilezilla],[0.11.1],[[email protected]],[],[https://lib.filezilla-project.org/]) +AC_INIT([libfilezilla],[0.11.2],[[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.1/lib/buffer.cpp new/libfilezilla-0.11.2/lib/buffer.cpp --- old/libfilezilla-0.11.1/lib/buffer.cpp 2017-10-30 18:14:16.000000000 +0100 +++ new/libfilezilla-0.11.2/lib/buffer.cpp 2018-01-05 11:43:06.000000000 +0100 @@ -17,9 +17,9 @@ if (buf.size_) { data_ = new unsigned char[buf.capacity_]; memcpy(data_, buf.pos_, buf.size_); -size_ = buf.size_; -capacity_ = buf.capacity_; -pos_ = data_; + size_ = buf.size_; + capacity_ = buf.capacity_; + pos_ = data_; } } @@ -58,30 +58,35 @@ buffer& buffer::operator=(buffer const& buf) { - delete[] data_; - if (buf.size_) { - data_ = new unsigned char[buf.capacity_]; - memcpy(data_, buf.pos_, buf.size_); - } - else { - data_ = nullptr; + if (this != &buf) { + delete[] data_; + if (buf.size_) { + data_ = new unsigned char[buf.capacity_]; + memcpy(data_, buf.pos_, buf.size_); + } + else { + data_ = nullptr; + } + size_ = buf.size_; + capacity_ = buf.capacity_; + pos_ = data_; } - size_ = buf.size_; - capacity_ = buf.capacity_; - pos_ = data_; return *this; } buffer& buffer::operator=(buffer && buf) { - delete[] data_; - data_ = buf.data_; - buf.data_ = nullptr; - pos_ = buf.pos_; - buf.pos_ = nullptr; - size_ = buf.size_; - capacity_ = buf.capacity_; + if (this != &buf) { + delete[] data_; + data_ = buf.data_; + buf.data_ = nullptr; + pos_ = buf.pos_; + buf.pos_ = nullptr; + size_ = buf.size_; + capacity_ = buf.capacity_; + } + return *this; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libfilezilla-0.11.1/lib/libfilezilla/buffer.hpp new/libfilezilla-0.11.2/lib/libfilezilla/buffer.hpp --- old/libfilezilla-0.11.1/lib/libfilezilla/buffer.hpp 2017-10-30 18:14:16.000000000 +0100 +++ new/libfilezilla-0.11.2/lib/libfilezilla/buffer.hpp 2018-01-05 11:43:06.000000000 +0100 @@ -27,7 +27,7 @@ buffer(buffer const& buf); buffer(buffer && buf); - ~buffer() { delete data_; } + ~buffer() { delete[] data_; } buffer& operator=(buffer const& buf); buffer& operator=(buffer && buf); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libfilezilla-0.11.1/lib/libfilezilla/string.hpp new/libfilezilla-0.11.2/lib/libfilezilla/string.hpp --- old/libfilezilla-0.11.1/lib/libfilezilla/string.hpp 2017-07-10 19:43:37.000000000 +0200 +++ new/libfilezilla-0.11.2/lib/libfilezilla/string.hpp 2018-01-05 11:43:06.000000000 +0100 @@ -3,6 +3,7 @@ #include "libfilezilla.hpp" +#include <algorithm> #include <string> #include <vector> @@ -369,6 +370,26 @@ s = trimmed(s, chars, false, true); } +// Remove once C++20 is minimum required standard to build libfilezilla +template<typename String> +bool starts_with(String const& s, String const& beginning) +{ + if (beginning.size() > s.size()) { + return false; + } + return std::equal(beginning.begin(), beginning.end(), s.begin()); +} + +// Remove once C++20 is minimum required standard to build libfilezilla +template<typename String> +bool ends_with(String const& s, String const& ending) +{ + if (ending.size() > s.size()) { + return false; + } + return std::equal(ending.rbegin(), ending.rend(), s.rbegin()); +} + } #endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libfilezilla-0.11.1/lib/libfilezilla/version.hpp new/libfilezilla-0.11.2/lib/libfilezilla/version.hpp --- old/libfilezilla-0.11.1/lib/libfilezilla/version.hpp 2017-10-30 18:16:35.000000000 +0100 +++ new/libfilezilla-0.11.2/lib/libfilezilla/version.hpp 2018-01-05 11:43:24.000000000 +0100 @@ -9,15 +9,15 @@ #include <tuple> /// \brief Version string of the libfilezilla headers -#define LIBFILEZILLA_VERSION "0.11.1" +#define LIBFILEZILLA_VERSION "0.11.2" #define LIBFILEZILLA_VERSION_MAJOR 0 #define LIBFILEZILLA_VERSION_MINOR 11 -#define LIBFILEZILLA_VERSION_MICRO 1 +#define LIBFILEZILLA_VERSION_MICRO 2 #define LIBFILEZILLA_VERSION_NANO 0 /// \brief Suffix string, e.g. "rc1" -#define LIBFILEZILLA_VERSION_SUFFIX "0.11.1" +#define LIBFILEZILLA_VERSION_SUFFIX "0.11.2" namespace fz { /// \brief Get version string of libfilezilla
