如何在 macports 中修补端口?
我对 Mac OS X(运行 Lion)完全陌生,我正在尝试使用 macports 来运行 python2.7 和 selenium。我已经安装了 ports,但是 selenium port 已经过时了(2.0rc3,而 2.11 是最新的)。有一个补丁可以将 selenium 端口更新到 v2.9,但我不知道如何处理它。任何帮助表示赞赏。
I'm totally new to Mac OS X (running Lion), and I'm trying to use macports to run python2.7 and selenium. I have the ports installed, but the selenium port is very out of date (2.0rc3, whereas 2.11 is current). A patch exists to update the selenium port to v2.9 but I have no idea what to do with it. Any help is appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
此处描述了自行升级端口文件的过程。您还应该检查问题跟踪器,如果有人还没有这样做,请打开一个问题,请求端口要升级。如果您可以提供补丁,那么很可能它会很快被应用以供每个人使用。
The process for upgrading a port file yourself is described here. You should also check the issue tracker and, if someone has not already done so, open an issue requesting that the port be upgraded. If you can supply a patch, chances are it will be applied quickly for everyone to use.
我在 macports 网站上找不到官方信息,但这就是我的做法。
首先您需要下载补丁。它应该附加到您提到的错误报告中。然后你需要找到需要修补的端口文件。您可以通过以下方式执行此操作:
最后,您需要应用补丁。为此可以这样做:
I could not find official information on macports website, but this is how I do it.
First you need to download the patch. It should be attached to the bug report you mention. Then you need to find the the portfile that needs patching. You can do that with:
Finally, you need to apply the patch. For that can do: