Bug 250695 - net/rclone: requires curl as dependency
Summary: net/rclone: requires curl as dependency
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Nuno Teixeira
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-28 14:38 UTC by James
Modified: 2022-06-08 19:31 UTC (History)
5 users (show)

See Also:
dmgk: maintainer-feedback? (tremere)


Attachments
add dependency (752 bytes, patch)
2021-05-15 02:55 UTC, Brad Ackerman
brad: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description James 2020-10-28 14:38:45 UTC
When installing rclone via 'pkg install rclone' running rclone with the web gui argument, rclone errors out and fails to downloaded the files needed for it because curl is not installed.

Once installing curl, it downloads the files normally.

e.g.:

without curl package installed:

root@rclone:~ # rclone rcd --rc-web-gui --rc-web-gui-no-open-browser --rc-user=admin --rc-pass=pass --rc-web-gui-update -vv

2020/10/28 14:06:57 DEBUG : rclone: Version "v1.52.2" starting with parameters ["rclone" "rcd" "--rc-web-gui" "--rc-web-gui-no-open-browser" "--rc-user=admin" "--rc-pass=pass" "--rc-web-gui-update" "-vv"]

2020/10/28 14:06:57 Error while fetching the latest release of Web GUI: Error getting latest release of rclone-webui


With curl package installed:

pkg install curl-7.72.0

root@rclone:~ # rclone rcd --rc-web-gui --rc-web-gui-no-open-browser

2020/10/28 14:23:26 NOTICE: A new release for gui is present at https://github.com/rclone/rclone-webui-react/releases/download/v2.0.3/currentbuild.zip
2020/10/28 14:23:26 NOTICE: Downloading webgui binary. Please wait. [Size: 4750769, Path :  /root/.cache/rclone/webgui/v2.0.3.zip]
2020/10/28 14:23:35 NOTICE: Unzipping webgui binary
2020/10/28 14:23:36 NOTICE: Serving Web GUI
2020/10/28 14:23:36 NOTICE: Serving remote control on http://127.0.0.1:5572/
2020/10/28 14:23:36 NOTICE: Web GUI is not automatically opening browser. Navigate to http://gui:xxxx@127.0.0.1:5572/?login_token=xxx to use.

If you could add curl as a dependency for rclone that would be great and help others not get the same error :) 

Cheers,

James.
Comment 1 Brad Ackerman 2021-05-15 02:19:24 UTC
The missing dependency is actually ca_root_nss.
Comment 2 Brad Ackerman 2021-05-15 02:55:21 UTC
Created attachment 224955 [details]
add dependency

Add ca_root_nss dependency.
Comment 3 Rene Ladan freebsd_committer freebsd_triage 2022-06-06 12:04:07 UTC
Maintainer reset.
Comment 4 commit-hook freebsd_committer freebsd_triage 2022-06-08 12:48:05 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8560760fa75fc1e5d6e56cdc190a4473c3b2538e

commit 8560760fa75fc1e5d6e56cdc190a4473c3b2538e
Author:     James <james@physicalsegment.com>
AuthorDate: 2022-06-08 12:40:29 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2022-06-08 12:40:29 +0000

    net/rclone: add security/ca_root_nss run dependency

     - add security/ca_root_nss run dependency to fix rclone when running
       with web gui
     - bump PORTREVISION

    PR:             250695
    Approved by:    maintainer timeout (tremere@cainites.net, > 1 year)

 net/rclone/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Comment 5 Nuno Teixeira freebsd_committer freebsd_triage 2022-06-08 19:31:53 UTC
Commited, thanks!