使用自制软件OSX 10.12.3安装葡萄酒时,Libtiff依赖性失败

时间:2017-01-29 06:52:10

标签: macos homebrew wine libtiff

我正试图通过自制软件安装葡萄酒。在安装依赖项时,libtiff会失败,因为找不到源包url并且整个安装程序退出。我单独安装libtiff然后尝试,仍然出现这个问题。任何解决方法?

Rangarajans-MBP:homebrew-core ranga$ brew install wine
==> Installing dependencies for wine: libtiff, gd, libgphoto2, little-cms2, cmake, jasper, libicns, makedepend, openssl, net-snmp, sane-backends, libtasn1, gmp, nettle, libunistring, libffi, p11-kit, gnutls
==> Installing wine dependency: libtiff
==> Using the sandbox
==> Downloading http://download.osgeo.org/libtiff/tiff-4.0.7.tar.gz
######################################################################## 100.0%
==> Downloading https://mirrors.ocf.berkeley.edu/debian/pool/main/t/tiff/tiff_4.0.7-4.debian.tar.xz

curl: (22) The requested URL returned error: 404 Not Found
Trying a mirror...
==> Downloading https://mirrorservice.org/sites/ftp.debian.org/debian/pool/main/t/tiff/tiff_4.0.7-4.debian.tar.xz

curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "libtiff--patch"
Download failed: https://mirrorservice.org/sites/ftp.debian.org/debian/pool/main/t/tiff/tiff_4.0.7-4.debian.tar.xz
Rangarajans-MBP:homebrew-core ranga$ 

1 个答案:

答案 0 :(得分:1)

ftp.debian.org/debian/pool/main/t/tiff/tiff_4.0.7-4.debian.t‌​ar.xz已被ftp.debian.org/debian/pool/main/t/tiff/tiff_4.0.7-5.debian.t‌​ar.xz取代。如果您比较这些文件,则会添加额外的CVE补丁。

要让自制软件安装好自制软件,请修改libtiff公式以使用更新的Debian软件包:

  1. 打开/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libtiff.rb

  2. 修补以下行,使其如下所示:https://gist.github.com/georghendrik/c649b62c017c89980ec6fcad31513510

    • url "https://mirrors.ocf.berkeley.edu/debian/pool/main/t/tiff/tiff_4.0.7-5.debian.tar.xz"

    • sha256 "f4183c48ed74b6c3c3a74ff1f10f0cf972d3dba0f840cf28b5a3f3846ceb2be6"

    • "patches/16-CVE-2016-10094.patch",(请注意逗号)
    • "patches/17-CVE-2017-5225.patch"
  3. 运行brew install wine。自制软件将更新并隐藏您的工作。

  4. 运行cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/; git stash pop

  5. 再次运行brew install wine