简体   繁体   English

为什么Centos的Apache httpd-2.2.3 rpm会删除捆绑的apr,apr-util,pcre?

[英]Why does the Centos apache httpd-2.2.3 rpm remove the bundled apr,apr-util,pcre?

I am manually building httpd-2.2.17 from the source. 我正在从源代码手动构建httpd-2.2.17。 Just to make sure I have the configuration options right, I checked the latest CENTOS apache srpm (which is for httpd-2.2.3). 为了确保我拥有正确的配置选项,我检查了最新的CENTOS apache srpm(适用于httpd-2.2.3)。 In the httpd.spec I find this line: 在httpd.spec中,我找到以下行:

# 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 ? 使用默认httpd源代码中包含的apr有什么问题?

Was wondering why this is required ? 想知道为什么要这样做吗?

To prevent the bundled apr/pcre libraries to be used and possibly installed. 防止捆绑的apr / pcre库被使用并可能安装。 RedHat/CentOS would rather want to ship a standalone package of the apr and pcre libraries. RedHat / CentOS希望提供一个独立的apr和pcre库软件包。

Whats wrong with using the apr included within apache ? 使用apache中包含的apr有什么问题?

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. 您可能对apache捆绑的apr / apr-util / pcre版本与CentoS / RHEL打包的apr / apr-utl / pcre库不同步。 Ie 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. 也就是说,您想从http://www.pcre.org/发行pcre的一个特定版本(可能还有自定义补丁),几个软件包可以使用,而不仅仅是apache,并且您希望apache针对该库而不是一个库进行构建阿帕奇捆绑。

Removing those directories, and it's a safe bet building apache won't pick up any of the bundled headers/libraries. 删除这些目录,这是安全的做法,构建apache不会选择任何捆绑的标题/库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM