如何应用这个mutt侧边栏补丁?

时间:2014-01-02 13:20:39

标签: macos git patch mutt

由于自制软件工作者现在已经删除了在安装期间应用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,我也不确定是否需要重新编译它。

有人能指出我正确的方向并给我一些提示吗?优选地是解决方案 谢谢你的时间。

5 个答案:

答案 0 :(得分:32)

<强>更新

这个答案已经过时了。值得庆幸的是,有些人已经创建了一些自制软件来为我们解决这个问题并使其更加简单。您现在要做的就是:

brew uninstall mutt
brew tap sgeb/mutt
brew install sgeb/mutt/mutt --with-sidebar-patch

如果您想使用其他补丁安装mutt,请点击以下内容查看您可以通过此次点击安装的内容:

brew options sgeb/mutt/mutt

我的输出是:

--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

我在上面的所有答案后都遇到了问题。我确实设法让它最终运作起来。我做的是以下

brew edit mutt

然后我向下滚动到所有以“option”开头的命令部分,类似于:

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"

然后我在这个块的底部添加了一行

option "with-sidebar-patch", "Apply sidebar patch"

之后我进一步向下滚动到包含所有补丁的部分,例如

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"

我添加了侧边栏的补丁(我在这里找到: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"

最后,退出brew文件的编辑器并在命令行中退出:

brew install mutt --with-sidebar-patch

祝你好运!

P.S。如果它为您提供aclocal格式的错误,那么您需要安装automake,brew install automake

答案 1 :(得分:4)

这个点击包含补丁,似乎保持最新状态。

https://github.com/kevwil/homebrew-patches

答案 2 :(得分:1)

  1. 编辑自制程序公式:brew edit mutt

  2. 根据以下说明添加侧栏补丁:http://comments.gmane.org/gmane.mail.mutt.user/41752

  3. 再次酿造mutt。

答案 3 :(得分:1)

看起来这个水龙头有补丁,它似乎对我有用。 README有关于如何安装的非常详细的说明。

https://github.com/sgeb/homebrew-mutt

答案 4 :(得分:0)

现在通过下载源代码,使用patch命令添加补丁,然后使用mutt中所需的功能运行configure,然后添加用于显示侧栏的配置指令来修复自己。当打开mutt时,侧栏是现在已经存在,但它确实列出了任何文件夹,我怀疑这只是需要额外配置的问题

相关问题