sandreas / m4b-tool

m4b-tool is a command line utility to merge, split and chapterize audiobook files such as mp3, ogg, flac, m4a or m4b
MIT License
1.12k stars 78 forks source link

install using brew Error: m4b-tool: SHA256 mismatch #217

Open dvdgorila opened 1 year ago

dvdgorila commented 1 year ago

Hello @sandreas Getting this issue on Ventura 13.1 using brew

brew install sandreas/tap/m4b-tool

==> Fetching dependencies for sandreas/tap/m4b-tool: sandreas/tap/mp4v2 and fdk-aac-encoder ==> Fetching sandreas/tap/mp4v2 ==> Downloading https://github.com/sandreas/mp4v2/tarball/master ==> Downloading from https://codeload.github.com/sandreas/mp4v2/legacy.tar.gz/refs/heads/master ######################################################################## 100.0% Error: m4b-tool: SHA256 mismatch Expected: 09e5342d1f19523641ce3c3ea7e8a7158af54b731dde7c595e5e11231c9f59fc Actual: 3af733e6c160be75d5f5ea19d174e5cec534ae8731ae6e366b303fb14f40fd40 File: /Users/dvdgorila/Library/Caches/Homebrew/downloads/ba4b9f24c9abc855b34ac70dc60f5eba7e94b3384170ca29d825de69ee0809b0--sandreas-mp4v2-Release-ThirdParty-MP4v2-4.1.0.0-67-g480a733.tar.gz To retry an incomplete download, remove the file above.

I cleared the cache.

Can you assist?

sandreas commented 1 year ago

Thx i'll take a look soon. Very Busy atm.

sandreas commented 1 year ago

@dvdgorila Confirmed... thx for reporting. There is something deeply wrong in the brew dependencies. I plan to upgrade the brewfile to the latest pre-release as soon as the problems are fixed. May take some time, but I try my best to push this forward.

sandreas commented 1 year ago

Got a pull request. Can you confirm that it's working now?

dvdgorila commented 1 year ago

I was able to install it using brew. However, I do get the following warning

PHP Deprecated: Return type of Sandreas\Time\TimeUnit::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///opt/homebrew/Cellar/m4b-tool/pre-release/bin/m4b-tool/vendor/sandreas/php-time/src/Sandreas/Time/TimeUnit.php on line 241

Deprecated: Return type of Sandreas\Time\TimeUnit::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///opt/homebrew/Cellar/m4b-tool/pre-release/bin/m4b-tool/vendor/sandreas/php-time/src/Sandreas/Time/TimeUnit.php on line 241 m4b-tool latest-195-g0304329

sandreas commented 1 year ago

I was able to install it using brew. However, I do get the following warning

This is because m4b-tool is using old PHP code sometimes. You could change this by setting

error_reporing=E_ALL^E_DEPRECATED

; or alternatively
;error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT

in your php.ini, but I think I will turn this off in the main script for now. Pulling everything up to PHP 8 will be a lot of work.