Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dvdgorila opened this issue Jan 30, 2023 · 5 comments
Open

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

dvdgorila opened this issue Jan 30, 2023 · 5 comments

Comments

@dvdgorila
Copy link

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
Copy link
Owner

sandreas commented Feb 1, 2023

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

@sandreas
Copy link
Owner

sandreas commented Feb 13, 2023

@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
Copy link
Owner

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

@dvdgorila
Copy link
Author

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
Copy link
Owner

sandreas commented Mar 20, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants