Closed jgte closed 2 years ago
Hi @jgte ! Apologies for the long delay. I've updated the rclone-mac
to the latest source release, but the generated bottles are currently broken for some unknown reason. Please brew update
, then brew install -s gromgit/fuse/rclone-mac
to build from source, while I figure out what went wrong with bottling.
There still appears to be a bottling issue, this error message is displayed when running the binary:
exec: Failed to execute process: '/usr/local/opt/rclone-mac/libexec/rclone/rclone' the file could not be run by the operating system.
Sorry, I got sidetracked when trying to figure out the bottle problems. Bottom line, it may be a Homebrew bottling bug, but I'd like to see if anyone else can replicate it before filing an issue.
Please run the following commands and post the output here. Thanks much!
git -C $(brew --repo gromgit/fuse) pull
mkdir -p /tmp/rclone-mac
cd /tmp/rclone-mac
brew rm --force gromgit/fuse/rclone-mac
brew install --build-bottle gromgit/fuse/rclone-mac
brew bottle gromgit/fuse/rclone-mac
tar xvf rclone-mac--1.57.0.*.tar.gz
file $(brew --prefix)/bin/rclone-mac rclone-mac/1.57.0/bin/rclone-mac
Already up to date.
==> Downloading https://ghcr.io/v2/homebrew/core/go/manifests/1.18
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/go/blobs/sha256:dbbe797302016b0
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sh
######################################################################## 100.0%
==> Downloading https://github.com/rclone/rclone/archive/v1.57.0.tar.gz
Already downloaded: /Users/dave/Library/Caches/Homebrew/downloads/d967be192207e10f10e5d0af98a04c3e31d17210ded806c0d1746392ca19bbf1--rclone-1.57.0.tar.gz
==> Installing rclone-mac from gromgit/fuse
==> Installing dependencies for gromgit/fuse/rclone-mac: go
==> Installing gromgit/fuse/rclone-mac dependency: go
==> Pouring go--1.18.monterey.bottle.tar.gz
🍺 /usr/local/Cellar/go/1.18: 11,947 files, 592.6MB
==> Installing gromgit/fuse/rclone-mac
==> go build -ldflags -s -X github.com/rclone/rclone/fs.Version=v1.57.0 -tags cm
==> /usr/local/Cellar/rclone-mac/1.57.0/bin/rclone-mac genautocomplete bash rclo
==> /usr/local/Cellar/rclone-mac/1.57.0/bin/rclone-mac genautocomplete bash rclo
==> /usr/local/Cellar/rclone-mac/1.57.0/bin/rclone-mac genautocomplete zsh _rclo
==> /usr/local/Cellar/rclone-mac/1.57.0/bin/rclone-mac genautocomplete zsh _rclo
==> Not running 'post_install' as we're building a bottle
You can run it manually using:
brew postinstall gromgit/fuse/rclone-mac
==> Caveats
The rclone binary has been installed as `rclone-mac`,
to avoid conflict with the core `rclone` formula.
If you need to use it as `rclone`, add the "rclone" directory
to your PATH like:
PATH="/usr/local/opt/rclone-mac/libexec/rclone:$PATH"
==> Summary
🍺 /usr/local/Cellar/rclone-mac/1.57.0: 12 files, 55.3MB, built in 24 seconds
==> Running `brew cleanup rclone-mac`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
==> Caveats
==> rclone-mac
The rclone binary has been installed as `rclone-mac`,
to avoid conflict with the core `rclone` formula.
If you need to use it as `rclone`, add the "rclone" directory
to your PATH like:
PATH="/usr/local/opt/rclone-mac/libexec/rclone:$PATH"
==> Determining gromgit/fuse/rclone-mac bottle rebuild...
==> Bottling rclone-mac--1.57.0.monterey.bottle.1.tar.gz...
==> Detecting if rclone-mac--1.57.0.monterey.bottle.1.tar.gz is relocatable...
./rclone-mac--1.57.0.monterey.bottle.1.tar.gz
bottle do
rebuild 1
sha256 cellar: :any_skip_relocation, monterey: "9b7b8b496810914ad2406b2172f79fd7bd86e5df5a437da9c659b48dc68690cb"
end
x rclone-mac/1.57.0/
x rclone-mac/1.57.0/INSTALL_RECEIPT.json
x rclone-mac/1.57.0/notes.txt
x rclone-mac/1.57.0/bin/
x rclone-mac/1.57.0/.brew/
x rclone-mac/1.57.0/libexec/
x rclone-mac/1.57.0/etc/
x rclone-mac/1.57.0/README.md
x rclone-mac/1.57.0/COPYING
x rclone-mac/1.57.0/share/
x rclone-mac/1.57.0/share/man/
x rclone-mac/1.57.0/share/zsh/
x rclone-mac/1.57.0/share/zsh/site-functions/
x rclone-mac/1.57.0/share/zsh/site-functions/_rclone-mac
x rclone-mac/1.57.0/share/zsh/site-functions/_rclone
x rclone-mac/1.57.0/share/man/man1/
x rclone-mac/1.57.0/share/man/man1/rclone-mac.1
x rclone-mac/1.57.0/etc/bash_completion.d/
x rclone-mac/1.57.0/etc/bash_completion.d/rclone
x rclone-mac/1.57.0/etc/bash_completion.d/rclone-mac
x rclone-mac/1.57.0/libexec/rclone/
x rclone-mac/1.57.0/libexec/rclone/rclone
x rclone-mac/1.57.0/.brew/rclone-mac.rb
x rclone-mac/1.57.0/bin/rclone-mac
/usr/local/bin/rclone-mac: Mach-O 64-bit executable x86_64
rclone-mac/1.57.0/bin/rclone-mac: Mach-O 64-bit executable x86_64
That's weird. Just to be sure, what's the output of:
ls -lL $(brew --prefix)/bin/rclone-mac rclone-mac/1.57.0/bin/rclone-mac
?
And are you running Homebrew on an Intel Mac, or an M1 Mac in Rosetta mode?
That's weird. Just to be sure, what's the output of:
ls -lL $(brew --prefix)/bin/rclone-mac rclone-mac/1.57.0/bin/rclone-mac
?
On an Intel Mac:
ls: rclone-mac/1.57.0/bin/rclone-mac: No such file or directory
-r-xr-xr-x 1 dave wheel 49354880 Nov 1 16:45 /usr/local/bin/rclone-mac
ls: rclone-mac/1.57.0/bin/rclone-mac: No such file or directory -r-xr-xr-x 1 dave wheel 49354880 Nov 1 16:45 /usr/local/bin/rclone-mac
Sorry, can you run the ls
command again in /tmp/rclone-mac
?
ls -lL /tmp/rclone-mac
total 35136
drwxr-xr-x 3 dave wheel 96 Mar 20 17:00 rclone-mac
-rw-r--r-- 1 dave wheel 17044640 Mar 20 17:00 rclone-mac--1.57.0.monterey.bottle.1.tar.gz
Sorry, I meant:
cd /tmp/rclone-mac
ls -lL $(brew --prefix)/bin/rclone-mac rclone-mac/1.57.0/bin/rclone-mac
cd /tmp/rclone-mac
ls -lL $(brew --prefix)/bin/rclone-mac rclone-mac/1.57.0/bin/rclone-mac
-r-xr-xr-x 1 dave wheel 49354880 Nov 1 16:45 /usr/local/bin/rclone-mac
-r-xr-xr-x 1 dave wheel 49354880 Nov 1 16:45 rclone-mac/1.57.0/bin/rclone-mac
Interesting, the bottle build seems to have worked for you, but fails miserably for me:
$ file /usr/local/bin/rclone-mac rclone-mac/1.57.0/bin/rclone-mac
/usr/local/bin/rclone-mac: Mach-O 64-bit executable x86_64
rclone-mac/1.57.0/bin/rclone-mac: data
Will have to dig further, but for now, you can clean up and continue using rclone-mac
:
brew postinstall rclone-mac
cd ~
rm -fr /tmp/rclone-mac
Apologies for the inconvenience.
@jgte @dnicolson Good news, the bottling issue has been resolved to a macOS bug: https://github.com/Homebrew/brew/issues/13012#issuecomment-1073305666
I've rebottled and tested rclone-mac
on all platforms after Mojave, and all seems well. Please brew rm rclone-mac
, then brew install rclone-mac
and let me know if you're still seeing problems. Thanks much!
Any ideas?