由于自制软件工作者现在已经删除了在安装期间应用mutt侧边栏补丁的选项,我去搜索并发现有人为mutt版本1.5.22创建了更新的mutt侧边栏补丁(每个mutt侧边栏版本似乎总是与上一个或下一个).
但是补丁,它只是github存储库上的.patch文件,位于https://github.com/nedos/mutt-sidebar-patch并不包含任何安装指令.由于自制软件包是二进制软件包我不知道如何安装它,因为您通常需要将patch命令指向要修补的文件.
经过一些搜索,我发现有人如何使用他们在git上找到的补丁来修补其他软件,他们克隆了git存储库并使用git命令应用补丁,但是后来我又不知道github存储库url(如果正在使用git)1.5.22版本的mutt,我也不确定我是否需要重新编译它.
有人能指出我正确的方向并给我一些提示吗?优选地是解决方案 谢谢你的时间.
glo*_*bia 32
UPDATE
这个答案已经过时了.值得庆幸的是,有些人已经创建了一些自制软件来为我们解决这个问题并使其更加简单.您现在要做的就是以下内容:
brew uninstall mutt
brew tap sgeb/mutt
brew install sgeb/mutt/mutt --with-sidebar-patch
Run Code Online (Sandbox Code Playgroud)
如果您想使用其他补丁安装mutt,请点击以下内容查看您可以通过此点击安装的内容:
brew options sgeb/mutt/mutt
Run Code Online (Sandbox Code Playgroud)
我的输出是:
--with-confirm-attachment-patch
Apply confirm attachment patch
--with-debug
Build with debug option enabled
--with-forwref-patch
Apply forward_references patch
--with-gettext
Build with gettext support
--with-gmail-labels-patch
Apply gmail labels patch
--with-gmail-server-search-patch
Apply gmail server search patch
--with-gpgme
Build with gpgme support
--with-ignore-thread-patch
Apply ignore-thread patch
--with-libidn
Build with libidn support
--with-pgp-verbose-mime-patch
Apply PGP verbose mime patch
--with-s-lang
Build against slang instead of ncurses
--with-sidebar-patch
Apply sidebar patch
--with-trash-patch
Apply trash folder patch
--HEAD
Install HEAD version
Run Code Online (Sandbox Code Playgroud)
我听到上述所有答案后都遇到了问题.我确实设法让它最终运作起来.我做的是以下
brew edit mutt
Run Code Online (Sandbox Code Playgroud)
然后我向下滚动到一个以"选项"开头的命令部分,有点像:
option "with-debug", "Build with debug option enabled"
option "with-trash-patch", "Apply trash folder patch"
option "with-s-lang", "Build against slang instead of ncurses"
option "with-ignore-thread-patch", "Apply ignore-thread patch"
option "with-pgp-verbose-mime-patch", "Apply PGP verbose mime patch"
option "with-confirm-attachment-patch", "Apply confirm attachment patch"
Run Code Online (Sandbox Code Playgroud)
然后我在这个块的底部添加了一行
option "with-sidebar-patch", "Apply sidebar patch"
Run Code Online (Sandbox Code Playgroud)
之后,我进一步向下滚动到包含所有补丁的部分,例如
patch do
url "http://patch-tracker.debian.org/patch/series/dl/mutt/1.5.21-6.2+deb7u1/features/trash-folder"
sha1 "6c8ce66021d89a063e67975a3730215c20cf2859"
end if build.with? "trash-patch"
Run Code Online (Sandbox Code Playgroud)
我添加了侧边栏的补丁(我在这里找到:https://github.com/kevwil/homebrew-patches/blob/master/mutt.rb)
patch do
url "https://raw.github.com/nedos/mutt-sidebar-patch/7ba0d8db829fe54c4940a7471ac2ebc2283ecb15/mutt-sidebar.patch"
sha1 "1e151d4ff3ce83d635cf794acf0c781e1b748ff1"
end if build.with? "sidebar-patch"
Run Code Online (Sandbox Code Playgroud)
最后,退出brew文件的编辑器并在命令行中:
brew install mutt --with-sidebar-patch
Run Code Online (Sandbox Code Playgroud)
祝你好运!
ps如果它给你一个表单错误,aclocal那么你需要安装automake,brew install automake
| 归档时间: |
|
| 查看次数: |
6109 次 |
| 最近记录: |