How to create a home buffer bottle for the old version on the new version of MacOS?

I want to create a bottle of zsh 5.1.1 for Sierra, because in zsh 5.2 there is a rather serious bug that violates certain functionality.

Sierra ships with zsh 5.2, which does not work for multi-byte bindkey keystrokes (see: http://www.zsh.org/mla/users/2015/msg01400.html ). I managed to get 5.1.1 to build from the source code on one machine, but for a wider distribution, a bottle of Sierra zsh 5.1.1 would be much better until a new release of zsh comes out.

This error not only prevents the ascii utf-8 multibyte character binding (I use many Option key combinations), but it also blocks the input of other characters, even if they have the same starting byte.

I think this is the latest version of the zsh recipe before the error: https://github.com/Homebrew/homebrew-core/blob/1a4461ad2a0f1bc7074d9817db059147a31eeee6/Formula/zsh.rb

+6
source share
2 answers

How to create a homemade bottle for the old version on the new macOS?

I successfully put together a bottle of zsh 5.1.1 on macOS Sierra. Here's how:

First you need to download all the commits from the homebrew-core repository, because by default it is a shallow repository (not all commits are present).

cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
git fetch --unshallow

Then you need to select the latest zsh 5.1.1 commit with

brew log zsh

Here is the commit 1a4461ad2a0f1bc7074d9817d, 1a4461ad2a0f1bc7074d9817dwith the zsh formula for this commit

git checkout 1a4461ad2a0f1bc7074d9817d -- Formula/zsh.rb

Install zsh with --build-bottle

brew install --build-bottle zsh

and build a bottle

brew bottle zsh

zsh-5.1.1.sierra.bottle.1.tar.gz

zsh.rb

git checkout -- Formula/zsh.rb

/usr/local/Cellar,

tar xzvf zsh-5.1.1.sierra.bottle.1.tar.gz 

brew link zsh

== , ==

bintray.com. Bintray - REST API. brew install, , . zsh 5.1.1 : https://bintray.com/homebrew/bottles/zsh/5.1.1#files. , yosemite, mavericks el capitan, sierra. github zsh-5.1.1.

+6

, , Azure Pipelines & Bintray.

:

https://github.com/ladislas/homebrew-greetings

- osx-cross/avr, , avr-gcc 9.1.0 4.xx.

https://github.com/osx-cross/homebrew-avr/

0

Source: https://habr.com/ru/post/1659889/


All Articles