diff options
-rw-r--r-- | sysutils/freefilesync/Makefile | 7 | ||||
-rw-r--r-- | sysutils/freefilesync/files/patch-zen_file__access.cpp | 23 |
2 files changed, 1 insertions, 29 deletions
diff --git a/sysutils/freefilesync/Makefile b/sysutils/freefilesync/Makefile index eb43a9ec5666..ca18a0986d0a 100644 --- a/sysutils/freefilesync/Makefile +++ b/sysutils/freefilesync/Makefile @@ -18,15 +18,10 @@ LIB_DEPENDS= libboost_system.so:${PORTSDIR}/devel/boost-libs \ WRKSRC= ${WRKDIR}/FreeFileSync/Source -USES= compiler:c++14-lang dos2unix gmake pkgconfig zip +USES= compiler:c++11-lang dos2unix gmake pkgconfig zip USE_LDCONFIG= yes USE_WX= 3.0+ -pre-patch: -# XXX Pretend USES=dos2unix supports DOS2UNIX_WRKSRC=${WRKDIR} - @${SED} 's/^+++ //; /^\.\./!d; s,^,${PATCH_WRKSRC}/,' \ - ${PATCHDIR}/patch-* | ${XARGS} ${REINPLACE_CMD} 's/
$$//' - post-patch: @${REINPLACE_CMD} -e 's/wx-config/$${WX_CONFIG:T}/' \ -e 's,g++,$${CXX},' ${WRKSRC}/Makefile diff --git a/sysutils/freefilesync/files/patch-zen_file__access.cpp b/sysutils/freefilesync/files/patch-zen_file__access.cpp deleted file mode 100644 index 385996b71b9d..000000000000 --- a/sysutils/freefilesync/files/patch-zen_file__access.cpp +++ /dev/null @@ -1,23 +0,0 @@ ---- ../../zen/file_access.cpp.orig 2016-01-11 12:13:10 UTC -+++ ../../zen/file_access.cpp -@@ -877,6 +877,11 @@ void setFileTimeRaw(const Zstring& fileP - //https://sourceforge.net/p/freefilesync/discussion/open-discussion/thread/218564cf/ - newTimes[1] = modTime; //modification time - -+#if defined(__FreeBSD__) -+#include <osreldate.h> -+#if __FreeBSD_version < 1002506 || (__FreeBSD_version >= 1100000 && __FreeBSD_version < 1100056) -+ throw ErrorLinuxFallbackToUtimes(L""); -+#else - //=> using open()/futimens() for regular files and utimensat(AT_SYMLINK_NOFOLLOW) for symlinks is consistent with "cp" and "touch"! - if (procSl == ProcSymlink::FOLLOW) - { -@@ -898,6 +903,8 @@ void setFileTimeRaw(const Zstring& fileP - if (::utimensat(AT_FDCWD, filePath.c_str(), newTimes, AT_SYMLINK_NOFOLLOW) != 0) - THROW_LAST_FILE_ERROR(replaceCpy(_("Cannot write modification time of %x."), L"%x", fmtPath(filePath)), L"utimensat"); - } -+#endif -+#endif - } - - |