为什么Centos apache httpd-2.2.3 rpm删除了捆绑的apr、apr-util、pcre?
我正在从源代码手动构建 httpd-2.2.17 。为了确保我的配置选项正确,我检查了最新的 CENTOS apache srpm(适用于 httpd-2.2.3)。在 httpd.spec 中我找到了这一行:
# forcibly prevent use of bundled apr, apr-util, pcre
rm -rf srclib/{apr,apr-util,pcre}
我想知道为什么需要这样做?使用默认 httpd 源中包含的 apr 有什么问题?
I am manually building httpd-2.2.17 from the source. Just to make sure I have the configuration options right, I checked the latest CENTOS apache srpm (which is for httpd-2.2.3). In the httpd.spec I find this line:
# forcibly prevent use of bundled apr, apr-util, pcre
rm -rf srclib/{apr,apr-util,pcre}
I was wondering why this is required ? What's wrong with using the apr included within the default httpd source ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
防止使用并可能安装捆绑的 apr/pcre 库。 RedHat/CentOS 宁愿发布 apr 和 pcre 库的独立包。
关于 apache 捆绑的 apr/apr-util/pcre 版本与 CentoS/RHEL 打包的 apr/apr-utl/pcre 库,您可能会不同步。即,您想从 http://www.pcre.org/ 发布特定版本的 pcre(+ 也许自定义补丁),多个包可以使用,而不仅仅是 apache,并且您希望 apache 针对该库而不是一个 apache 包进行构建。
删除这些目录,可以肯定的是,构建 apache 不会获取任何捆绑的标头/库。
To prevent the bundled apr/pcre libraries to be used and possibly installed. RedHat/CentOS would rather want to ship a standalone package of the apr and pcre libraries.
You might get out of sync regarding the apr/apr-util/pcre versions that apache bundleds vs the apr/apr-utl/pcre libraries that CentoS/RHEL packages. I.e. you want to ship one particular release of pcre from http://www.pcre.org/ (+ perhaps custom patches) that several packages can use , not just apache, and you want apache to build against that library instead of the one apache bundle.
Removing those directories, and it's a safe bet building apache won't pick up any of the bundled headers/libraries.