Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Mar 2018 08:51:18 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r463383 - in head/sysutils/freefilesync: . files
Message-ID:  <201803020851.w228pIjs052801@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Fri Mar  2 08:51:18 2018
New Revision: 463383
URL: https://svnweb.freebsd.org/changeset/ports/463383

Log:
  sysutils/freefilesync: Update to 9.8
  
  Port changes:
  * Updated LICENSE_FILE
  * Added IGNORE_FreeBSD_10 because of missing _cxa_thread_atexit()
  * Added to LIB_DEPENDS
  * Added USE_GNOME
  * Removed USE_LDCONFIG
  * Updated post-patch
  
  PR:		226276
  Submitted by:	Olexandr Davydenko <odavydenko@gmail.com>
  Approved by:	tcberner (mentor, implicit)

Added:
  head/sysutils/freefilesync/files/patch-lib_dir__lock.h   (contents, props changed)
  head/sysutils/freefilesync/files/patch-ui_main__dlg.cpp   (contents, props changed)
  head/sysutils/freefilesync/files/patch-zen_file__io.cpp   (contents, props changed)
  head/sysutils/freefilesync/files/patch-zen_thread.h   (contents, props changed)
Deleted:
  head/sysutils/freefilesync/files/patch-fs_native.cpp
  head/sysutils/freefilesync/files/patch-zen_scope__guard.h
Modified:
  head/sysutils/freefilesync/Makefile
  head/sysutils/freefilesync/distinfo
  head/sysutils/freefilesync/files/patch-Makefile
  head/sysutils/freefilesync/files/patch-ui_version__check.cpp
  head/sysutils/freefilesync/pkg-plist

Modified: head/sysutils/freefilesync/Makefile
==============================================================================
--- head/sysutils/freefilesync/Makefile	Fri Mar  2 08:51:00 2018	(r463382)
+++ head/sysutils/freefilesync/Makefile	Fri Mar  2 08:51:18 2018	(r463383)
@@ -2,8 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	freefilesync
-PORTVERSION=	8.3
-PORTREVISION=	9
+DISTVERSION=	9.8
 CATEGORIES=	sysutils
 MASTER_SITES=	https://www.freefilesync.org/download/ \
 		https://www.freefilesync.org/archive/
@@ -13,23 +12,25 @@ MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Backup software to synchronize files and folders
 
 LICENSE=	GPLv3
-LICENSE_FILE=	${WRKSRC}/LICENSE
+LICENSE_FILE=	${WRKDIR}/License.txt
 
-BROKEN=		fails to build
+IGNORE_FreeBSD_10=	"FreeBSD 10.0 doesn't have _cxa_thread_atexit() implemeneted in libc, it has been implemented since 11
 
 BUILD_DEPENDS=	${LOCALBASE}/include/zenxml/xml.h:textproc/zenxml
 LIB_DEPENDS=	libboost_system.so:devel/boost-libs \
+		libfontconfig.so:x11-fonts/fontconfig \
+		libfreetype.so:print/freetype2 \
 		libnotify.so:devel/libnotify
 
 FETCH_ARGS=	--user-agent=firefox
 
 WRKSRC=		${WRKDIR}/FreeFileSync/Source
-DOS2UNIX_WRKSRC=${WRKDIR}
-DOS2UNIX_GLOB=	*.cpp *.h
 
 USES=		compiler:c++14-lang dos2unix gmake pkgconfig zip
-USE_LDCONFIG=	yes
 USE_WX=		3.0+
+USE_GNOME=	atk cairo gdkpixbuf2 glib20 gtk20 pango
+DOS2UNIX_WRKSRC=	${WRKDIR}
+DOS2UNIX_GLOB=	*.cpp *.h
 
 post-patch:
 	@${REINPLACE_CMD} -e 's/wx-config/$${WX_CONFIG:T}/' \
@@ -38,7 +39,5 @@ post-patch:
 		${WRKDIR}/zen/file_access.cpp
 	@${REINPLACE_CMD} -e 's|WEXITSTATUS||' ${WRKDIR}/zen/shell_execute.h
 	@${REINPLACE_CMD} -e 's| noexcept;|;|' ${WRKDIR}/zen/scope_guard.h
-	@${REINPLACE_CMD} -e 's|CLOCK_MONOTONIC_RAW|CLOCK_MONOTONIC|' \
-		${WRKDIR}/zen/tick_count.h
 
 .include <bsd.port.mk>

Modified: head/sysutils/freefilesync/distinfo
==============================================================================
--- head/sysutils/freefilesync/distinfo	Fri Mar  2 08:51:00 2018	(r463382)
+++ head/sysutils/freefilesync/distinfo	Fri Mar  2 08:51:18 2018	(r463383)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1469892304
-SHA256 (FreeFileSync_8.3_Source.zip) = bbde3eaa345d20a088746b14dc6e0721984d316a6f3dbbe54be646b84d60e7a6
-SIZE (FreeFileSync_8.3_Source.zip) = 3020292
+TIMESTAMP = 1519893735
+SHA256 (FreeFileSync_9.8_Source.zip) = 77a59586284a518d6df6c0cc934c3efa434f247acce70452ab9fe37e7747b96d
+SIZE (FreeFileSync_9.8_Source.zip) = 2866149

Modified: head/sysutils/freefilesync/files/patch-Makefile
==============================================================================
--- head/sysutils/freefilesync/files/patch-Makefile	Fri Mar  2 08:51:00 2018	(r463382)
+++ head/sysutils/freefilesync/files/patch-Makefile	Fri Mar  2 08:51:18 2018	(r463383)
@@ -1,6 +1,6 @@
---- Makefile.orig	2016-04-21 22:53:00.000000000 +0800
-+++ Makefile	2016-06-30 13:33:16.633078000 +0800
-@@ -1,14 +1,14 @@
+--- Makefile.orig	2018-02-06 16:36:07 UTC
++++ Makefile
+@@ -1,13 +1,13 @@
  APPNAME     = FreeFileSync
 -prefix      = /usr
 +prefix      = $(PREFIX)
@@ -9,16 +9,15 @@
  APPSHAREDIR = $(SHAREDIR)/$(APPNAME)
  DOCSHAREDIR = $(SHAREDIR)/doc/$(APPNAME)
  
- CXXFLAGS  = -std=c++14 -pipe -DWXINTL_NO_GETTEXT_MACRO -I../.. -I../../zenXml -include "zen/i18n.h" -include "zen/warn_static.h" -Wall \
---O3 -DNDEBUG `wx-config --cxxflags --debug=no` -DZEN_LINUX -pthread
-+-O3 -DNDEBUG `${WX_CONFIG} --cxxflags --debug=no` -DZEN_LINUX -pthread
+-CXXFLAGS  = -std=c++14 -pipe -DWXINTL_NO_GETTEXT_MACRO -I../.. -I../../zenXml -include "zen/i18n.h" -Wall -O3 -DNDEBUG `wx-config --cxxflags --debug=no` -pthread
++CXXFLAGS  = -std=c++14 -pipe -DWXINTL_NO_GETTEXT_MACRO -I../.. -I../../zenXml -include "zen/i18n.h" -Wall -O3 -DNDEBUG `${WX_CONFIG} --cxxflags --debug=no` -pthread
  
 -LINKFLAGS = -s `wx-config --libs std, aui --debug=no` -lboost_thread -lboost_chrono -lboost_system -lz -pthread
 +LINKFLAGS = -s `${WX_CONFIG} --libs std, aui --debug=no` -lboost_thread -lboost_chrono -lboost_system -lz -pthread
  
  #Gtk - support recycler/icon loading/no button border/grid scrolling
  CXXFLAGS  += `pkg-config --cflags gtk+-2.0`
-@@ -97,10 +97,10 @@
+@@ -99,10 +99,10 @@ launchpad: FreeFileSync
  
  ../Obj/FFS_GCC_Make_Release/ffs/src/%.o : %.cpp
  	mkdir -p $(dir $@)
@@ -31,7 +30,7 @@
  
  clean:
  	rm -rf ../Obj/FFS_GCC_Make_Release
-@@ -109,7 +109,7 @@
+@@ -111,7 +111,7 @@ clean:
  
  install:
  	mkdir -p $(BINDIR)
@@ -40,7 +39,7 @@
  
  	mkdir -p $(APPSHAREDIR)
  	cp -R ../Build/Languages/ \
-@@ -120,6 +120,3 @@
+@@ -122,6 +122,3 @@ install:
  	../Build/Resources.zip \
  	$(APPSHAREDIR)
  

Added: head/sysutils/freefilesync/files/patch-lib_dir__lock.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/freefilesync/files/patch-lib_dir__lock.h	Fri Mar  2 08:51:18 2018	(r463383)
@@ -0,0 +1,10 @@
+--- lib/dir_lock.h.orig	2018-03-02 05:46:44 UTC
++++ lib/dir_lock.h
+@@ -11,6 +11,7 @@
+ #include <chrono>
+ #include <functional>
+ #include <zen/file_error.h>
++#include <zen/warn_static.h>
+ 
+ 
+ namespace fff

Added: head/sysutils/freefilesync/files/patch-ui_main__dlg.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/freefilesync/files/patch-ui_main__dlg.cpp	Fri Mar  2 08:51:18 2018	(r463383)
@@ -0,0 +1,10 @@
+--- ui/main_dlg.cpp.orig	2018-03-02 05:46:44 UTC
++++ ui/main_dlg.cpp
+@@ -28,6 +28,7 @@
+ #include <wx+/image_resources.h>
+ #include "cfg_grid.h"
+ #include "version_check.h"
++#include "version_check_impl.h"
+ #include "gui_status_handler.h"
+ #include "small_dlgs.h"
+ #include "progress_indicator.h"

Modified: head/sysutils/freefilesync/files/patch-ui_version__check.cpp
==============================================================================
--- head/sysutils/freefilesync/files/patch-ui_version__check.cpp	Fri Mar  2 08:51:00 2018	(r463382)
+++ head/sysutils/freefilesync/files/patch-ui_version__check.cpp	Fri Mar  2 08:51:18 2018	(r463383)
@@ -1,22 +1,22 @@
---- ui/version_check.cpp.orig	2016-06-30 13:33:44.614966000 +0800
-+++ ui/version_check.cpp	2016-06-30 13:36:17.540454000 +0800
-@@ -104,16 +104,10 @@
-     const auto osvMinor = getOsVersion().minor;
+--- ui/version_check.cpp.orig	2018-03-02 05:46:44 UTC
++++ ui/version_check.cpp
+@@ -70,16 +70,10 @@ std::vector<std::pair<std::string, std::
+     params.emplace_back("installation_type", isPortableVersion() ? "Portable" : "Local");
  
- #elif defined ZEN_LINUX
--    params.emplace_back("os_name", "Linux");
-+    params.emplace_back("os_name", "FreeBSD");
  
+-    params.emplace_back("os_name", "Linux");
+-
 -    const wxLinuxDistributionInfo distribInfo = wxGetLinuxDistributionInfo();
 -    assert(contains(distribInfo.Release, L'.'));
--    std::vector<wxString> digits = split<wxString>(distribInfo.Release, L'.'); //e.g. "15.04"
+-    std::vector<wxString> digits = split<wxString>(distribInfo.Release, L'.', SplitType::ALLOW_EMPTY); //e.g. "15.04"
 -    digits.resize(2);
 -    //distribInfo.Id //e.g. "Ubuntu"
--
++    params.emplace_back("os_name", "FreeBSD");
+ 
 -    const int osvMajor = stringTo<int>(digits[0]);
 -    const int osvMinor = stringTo<int>(digits[1]);
 +    const int osvMajor = 0;
 +    const int osvMinor = 0;
  
- #elif defined ZEN_MAC
-     params.emplace_back("os_name", "Mac");
+     params.emplace_back("os_version", numberTo<std::string>(osvMajor) + "." + numberTo<std::string>(osvMinor));
+ 

Added: head/sysutils/freefilesync/files/patch-zen_file__io.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/freefilesync/files/patch-zen_file__io.cpp	Fri Mar  2 08:51:18 2018	(r463383)
@@ -0,0 +1,12 @@
+--- ../../zen/file_io.cpp.orig	2018-03-01 11:10:56.764684000 +0200
++++ ../../zen/file_io.cpp	2018-03-01 11:12:35.599889000 +0200
+@@ -305,8 +305,7 @@
+ {
+     const FileHandle fh = getHandle();
+     //don't use potentially inefficient ::posix_fallocate!
+-    const int rv = ::fallocate(fh,            //int fd,
+-                               0,             //int mode,
++    const int rv = ::posix_fallocate(fh,            //int fd,
+                                0,             //off_t offset
+                                expectedSize); //off_t len
+     if (rv != 0)

Added: head/sysutils/freefilesync/files/patch-zen_thread.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/freefilesync/files/patch-zen_thread.h	Fri Mar  2 08:51:18 2018	(r463383)
@@ -0,0 +1,21 @@
+--- ../../zen/thread.h.orig	2018-03-01 11:48:04.473377000 +0200
++++ ../../zen/thread.h	2018-03-01 11:48:51.214192000 +0200
+@@ -12,8 +12,7 @@
+ #include "scope_guard.h"
+ #include "type_traits.h"
+ #include "optional.h"
+-    #include <sys/prctl.h>
+-
++#include <pthread_np.h>
+ 
+ namespace zen
+ {
+@@ -407,7 +406,7 @@
+ inline
+ void setCurrentThreadName(const char* threadName)
+ {
+-    ::prctl(PR_SET_NAME, threadName, 0, 0, 0);
++    pthread_set_name_np(pthread_self(), threadName);
+ 
+ }
+ 

Modified: head/sysutils/freefilesync/pkg-plist
==============================================================================
--- head/sysutils/freefilesync/pkg-plist	Fri Mar  2 08:51:00 2018	(r463382)
+++ head/sysutils/freefilesync/pkg-plist	Fri Mar  2 08:51:18 2018	(r463383)
@@ -47,6 +47,7 @@ share/FreeFileSync/images/basic-step-start-sync.png
 share/FreeFileSync/images/basic-step-sync-config.png
 share/FreeFileSync/images/calendar-job-added.png
 share/FreeFileSync/images/com-settings-context.png
+share/FreeFileSync/images/command-line-syntax.png
 share/FreeFileSync/images/comparison-settings.png
 share/FreeFileSync/images/comparison-variant-double-click.png
 share/FreeFileSync/images/config-double-click.png
@@ -54,9 +55,9 @@ share/FreeFileSync/images/config-multiple-selection.pn
 share/FreeFileSync/images/copy-alternative-path.png
 share/FreeFileSync/images/dialog-drag-move.png
 share/FreeFileSync/images/direct-synchronize.png
-share/FreeFileSync/images/donate.png
 share/FreeFileSync/images/explorer-context.png
 share/FreeFileSync/images/filter-context.png
+share/FreeFileSync/images/filter-zero-file-size.png
 share/FreeFileSync/images/filter.png
 share/FreeFileSync/images/freefilesync-logo.png
 share/FreeFileSync/images/gnome-scheduler.png
@@ -77,7 +78,9 @@ share/FreeFileSync/images/remove-local-settings.png
 share/FreeFileSync/images/save-automator.png
 share/FreeFileSync/images/select-time-span.png
 share/FreeFileSync/images/setup-batch-job.png
+share/FreeFileSync/images/sftp-cloud-picker.png
 share/FreeFileSync/images/sftp-login.png
+share/FreeFileSync/images/sftp-performance.png
 share/FreeFileSync/images/show-thumbnails.png
 share/FreeFileSync/images/sync-settings-context.png
 share/FreeFileSync/images/synchronization-settings.png
@@ -91,13 +94,12 @@ share/FreeFileSync/italian.lng
 share/FreeFileSync/japanese.lng
 share/FreeFileSync/korean.lng
 share/FreeFileSync/lithuanian.lng
-share/FreeFileSync/outdated/norwegian.lng
+share/FreeFileSync/norwegian.lng
 share/FreeFileSync/polish.lng
 share/FreeFileSync/portuguese.lng
 share/FreeFileSync/portuguese_br.lng
 share/FreeFileSync/romanian.lng
 share/FreeFileSync/russian.lng
-share/FreeFileSync/serbian.lng
 share/FreeFileSync/slovak.lng
 share/FreeFileSync/slovenian.lng
 share/FreeFileSync/spanish.lng



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803020851.w228pIjs052801>