From nobody Thu Dec 07 14:34:32 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SmGxh6LSrz5357q; Thu, 7 Dec 2023 14:34:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SmGxh5nmkz4G9b; Thu, 7 Dec 2023 14:34:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701959672; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=t4llzd5nlLUVll9Dvh91buCxylYTho1rta/j0etPm4k=; b=H12v3n9/U81UNArXmDZvz0U4s/SsZpX9OI1l1WR3IOKPaiqK/5eLSxiBWGFALUcAOQfH1q ZD8JN6SpwXFfqzf4okCXEL23WIAWLCqkP+m2R8miJ84RDVVGRwBbshopLTl+mRurtLXP9J z0RKSCLroDnrVAv9hJsled8vRb35toXjGnhmJX6nLxws1OjkzzLC2OSS0oVLAnT5Pf3+vS AntsrTnGv5hTfXu3krPVW0j1IHt5X3KIJaTjP56rfbrwxpZNvTeaAq5Wr169teMDtBOkHk ORa4r88qGiffilBSLYvbeTN9TtE1xZMP4lRa+9KPV5D9gONW7m0AaFTfFSqONw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1701959672; a=rsa-sha256; cv=none; b=Qo5aHFvvumthEIfUECcsCj/fqBNRBwyeKw3XxU/KFucDzbTj2SotvDqL2VRt8vxzr4LNI4 +EK6dFdJBtf+1LvGQfB6DioNduuocwwa2ffyuODNTTFSFOIv/Vz4Z6k+nErVclWE7w76DR 9g5OnfNTzChEvSYNc4SoIISc8YEEGtP6EwaDI1F1rVqZ1HlTb0M8PPwhlj+zyYgOsPx9Zs +DdtSFmGlzC8+ShmyXgE7UAwUjJ1GEfsIwci9idCEedmplPyFWT3rT6uljOeHuTeCnaFGD D8NStfE5KpAssaOZZM8syjoRc+bciI+bpksQIF78ishJliBOPU4gZ5PZScfiKw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701959672; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=t4llzd5nlLUVll9Dvh91buCxylYTho1rta/j0etPm4k=; b=AN06BYo+acrVMPa4ga7maMNv5sr1/r4Xm6jhnJdZxSlXERSUDseMxF426XEm3n+yo1erFQ CJ8ahJFL7p3ETpaPQV0v6TMVE7DSw607XJv8P1XwlZ9AMw8+MuS+Sf9QM1lU5gRPOkcnzC OITED8lTeLZN72k/NA40CuYtgP+OidjZTdeR5iDCdviFaNenbzQMWYsy1CgtqA9bqAzfkb 8RmRC5kfrezdvzu/glPaCcpt3cIp7PijA8td04n5Iem2mcsgkq4kZRE5OpgIdRXSKt9ZcZ KtQvC96ZlPryLBEJrtno8dEeTJb3apFDpKpQAzeucX6PMlDm3FTcCvc2JN9BIA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SmGxh4b2PzgCg; Thu, 7 Dec 2023 14:34:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3B7EYWLH049903; Thu, 7 Dec 2023 14:34:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3B7EYWWd049900; Thu, 7 Dec 2023 14:34:32 GMT (envelope-from git) Date: Thu, 7 Dec 2023 14:34:32 GMT Message-Id: <202312071434.3B7EYWWd049900@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Alexey Dokuchaev Subject: git: c6914fc48eae - main - misc/far2l: update Far-2-Linux port to version 2.5.3 (sign of mistrust) List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: danfe X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c6914fc48eae8ac040d44e6af2b581c0271eee40 Auto-Submitted: auto-generated The branch main has been updated by danfe: URL: https://cgit.FreeBSD.org/ports/commit/?id=c6914fc48eae8ac040d44e6af2b581c0271eee40 commit c6914fc48eae8ac040d44e6af2b581c0271eee40 Author: Alexey Dokuchaev AuthorDate: 2023-12-07 14:32:44 +0000 Commit: Alexey Dokuchaev CommitDate: 2023-12-07 14:32:44 +0000 misc/far2l: update Far-2-Linux port to version 2.5.3 (sign of mistrust) - Drop needless dependency on `devel/libfmt' which is not actually used, but was pulled for a quite bizarre reason: "sometimes libstd requires linking to libfmt, sometimes not, if libfmt [found] let's link to it", and prevent its accidental pick up if it's installed on user's system - Revert to `find_package(LibArchive)' which had been recently replaced with pkgconf(1)-backed in version 2.5.1: this helps CMake to find the base system's library again; use it to handle RAR archives while here - Amend the list of file suffixes (extensions) which look like archives - Purge endian-related patch, this code now compiles cleanly on PowerPC Reported by: portscout Confirmed by: pkubaj (last item) --- misc/far2l/Makefile | 19 ++++++++---- misc/far2l/distinfo | 6 ++-- misc/far2l/files/patch-far2l_src_datetime.cpp | 42 --------------------------- misc/far2l/pkg-plist | 3 ++ 4 files changed, 20 insertions(+), 50 deletions(-) diff --git a/misc/far2l/Makefile b/misc/far2l/Makefile index 6009ddfad0be..18767f480b4e 100644 --- a/misc/far2l/Makefile +++ b/misc/far2l/Makefile @@ -1,5 +1,5 @@ PORTNAME= far2l -PORTVERSION= 2.5.2 +PORTVERSION= 2.5.3 DISTVERSIONPREFIX= v_ CATEGORIES= misc @@ -9,8 +9,7 @@ WWW= https://github.com/elfmz/far2l LICENSE= GPLv2 -LIB_DEPENDS= libfmt.so:devel/libfmt \ - libpcre.so:devel/pcre \ +LIB_DEPENDS= libpcre.so:devel/pcre \ libuchardet.so:textproc/uchardet \ libxerces-c.so:textproc/xerces-c3 RUN_DEPENDS= bash:shells/bash @@ -22,6 +21,8 @@ USES= cmake compiler:c++11-lang perl5 pkgconfig shebangfix ssl USE_PERL5= build SHEBANG_FILES= far2l/bootstrap/view.sh +CMAKE_OFF= UNRAR # libarchive handles *.rar files just fine + OPTIONS_DEFINE= NFS SFTP SMB WEBDAV WXGTK X11 OPTIONS_DEFAULT= NFS SFTP WEBDAV WXGTK X11 OPTIONS_SUB= yes @@ -46,9 +47,17 @@ X11_USES= xorg X11_USE= XORG=ice,sm,x11,xext,xi post-patch: - @${REINPLACE_CMD} -e 's,Linux x86_64,${OPSYS} ${ARCH},' \ - ${WRKSRC}/far2l/bootstrap/scripts/far2l_m4.pl + @${REINPLACE_CMD} -e \ + 's,pkg_search_module\((LibArchive\)[^)]*,find_package\1,' \ + ${WRKSRC}/CMakeLists.txt + @${REINPLACE_CMD} -e 's,^if (fmt_FOUND,& AND FALSE,' \ + ${WRKSRC}/colorer/CMakeLists.txt + @${REINPLACE_CMD} -e 's,bxg7,&l, ; s/zoo/tbz2,*.zst,*.&/' \ + ${WRKSRC}/far2l/src/hilight.cpp @${GREP} -Rl --null --include=\*.cpp /bin/bash ${WRKSRC} | ${XARGS} \ -0 ${REINPLACE_CMD} -e 's,/bin/bash,${LOCALBASE}&,' +post-stage: + ${RMDIR} ${STAGEDIR}${PREFIX}/lib/far2l/Plugins/NetRocks/plug/SHELL + .include diff --git a/misc/far2l/distinfo b/misc/far2l/distinfo index afbb997c2cde..660ffd41dd6e 100644 --- a/misc/far2l/distinfo +++ b/misc/far2l/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1692098850 -SHA256 (elfmz-far2l-v_2.5.2_GH0.tar.gz) = c8ae8bd7b9f242e267f4b13c81735706accdc40046dd262d30a4017b703f36b7 -SIZE (elfmz-far2l-v_2.5.2_GH0.tar.gz) = 6483703 +TIMESTAMP = 1699171546 +SHA256 (elfmz-far2l-v_2.5.3_GH0.tar.gz) = e9de15221d2fcc164cf4a64e4f8239ff3a3b4d5a06601dd6c6f1e63fb5a91bdc +SIZE (elfmz-far2l-v_2.5.3_GH0.tar.gz) = 6529657 diff --git a/misc/far2l/files/patch-far2l_src_datetime.cpp b/misc/far2l/files/patch-far2l_src_datetime.cpp deleted file mode 100644 index 95cd26f1daf2..000000000000 --- a/misc/far2l/files/patch-far2l_src_datetime.cpp +++ /dev/null @@ -1,42 +0,0 @@ ---- far2l/src/datetime.cpp.orig 2023-10-06 15:57:46 UTC -+++ far2l/src/datetime.cpp -@@ -531,15 +531,27 @@ int64_t FileTimeDifference(const FILETIME *a, const FI - { - LARGE_INTEGER A = - { -+#if defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) -+ {(LONG)a->dwHighDateTime, a->dwLowDateTime} -+#else - {a->dwLowDateTime, (LONG)a->dwHighDateTime} -+#endif - }, -+#if defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) -+ B = {{(LONG)b->dwHighDateTime, b->dwLowDateTime}}; -+#else - B = {{b->dwLowDateTime, (LONG)b->dwHighDateTime}}; -+#endif - return A.QuadPart - B.QuadPart; - } - - uint64_t FileTimeToUI64(const FILETIME *ft) - { -+#if defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) -+ ULARGE_INTEGER A = { {ft->dwHighDateTime, ft->dwLowDateTime} }; -+#else - ULARGE_INTEGER A = { {ft->dwLowDateTime, ft->dwHighDateTime} }; -+#endif - return A.QuadPart; - } - -@@ -761,7 +773,11 @@ void ConvertRelativeDate(const FILETIME &ft, FARString - - void ConvertRelativeDate(const FILETIME &ft, FARString &strDaysText, FARString &strTimeText) - { -+#if defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) -+ ULARGE_INTEGER time = { {ft.dwHighDateTime, ft.dwLowDateTime}}; -+#else - ULARGE_INTEGER time = { {ft.dwLowDateTime, ft.dwHighDateTime}}; -+#endif - - UINT64 ms = (time.QuadPart/= 10000) % 1000; - UINT64 s = (time.QuadPart/= 1000) % 60; diff --git a/misc/far2l/pkg-plist b/misc/far2l/pkg-plist index 48f58181550f..b1655b096b61 100644 --- a/misc/far2l/pkg-plist +++ b/misc/far2l/pkg-plist @@ -4,6 +4,7 @@ lib/far2l/Plugins/NetRocks/plug/NetRocks-FILE.broker lib/far2l/Plugins/NetRocks/plug/NetRocks-FTP.broker %%NFS%%lib/far2l/Plugins/NetRocks/plug/NetRocks-NFS.broker %%SFTP%%lib/far2l/Plugins/NetRocks/plug/NetRocks-SFTP.broker +lib/far2l/Plugins/NetRocks/plug/NetRocks-SHELL.broker %%SMB%%lib/far2l/Plugins/NetRocks/plug/NetRocks-SMB.broker %%WEBDAV%%lib/far2l/Plugins/NetRocks/plug/NetRocks-WebDAV.broker lib/far2l/Plugins/NetRocks/plug/NetRocks.far-plug-wide @@ -39,6 +40,8 @@ share/applications/far2l.desktop %%DATADIR%%/FarSpa.lng %%DATADIR%%/FarUkr.hlf %%DATADIR%%/FarUkr.lng +%%DATADIR%%/Plugins/NetRocks/plug/SHELL/remote.sh +%%DATADIR%%/Plugins/NetRocks/plug/SHELL/ways.ini %%DATADIR%%/Plugins/NetRocks/plug/bel.lng %%DATADIR%%/Plugins/NetRocks/plug/eng.lng %%DATADIR%%/Plugins/NetRocks/plug/helpe.hlf