jorhett: (Default)

Apache has started including a specfile in their builds, such that you should be able to just invoke rpmbuild against it. If you’ve tried it, you’ve probably bumped into a distcache dependency.

$ rpmbuild -tb httpd-2.4.3.tar.bz2 
error: Failed build dependencies:
	distcache-devel is needed by httpd-2.4.3-1.x86_64

If you google around you’ll notice that there’s no distcache library easily available for EL6 systems. If you solve that problem, you’ll slam into a very weird dependency problem with an undefined/unused Epoch in the specfile.

ERROR with rpm_check_debug vs depsolve:
httpd = %{epoch}:2.4.3-1 is needed by mod_ssl-2.4.3-1.x86_64
httpd = %{epoch}:2.4.3-1 is needed by httpd-devel-2.4.3-1.x86_64

I’ve created a patch for httpd on rhel6 / centos 6 systems. It disables the (totally unnecessary) socache_distcache plugin, and fixes the use of the undefined epoch in the specfile. Apply it like this:

$ tar xjf httpd-2.4.3.tar.bz2 
$ patch -p0 < httpd-2.4.3.rhel6.patch
$ tar cjf httpd-2.4.3.rhel6.tbz2 httpd-2.4.3
$ rpmbuild -tb httpd-2.4.3.rhel6.tbz2
This has been cut for brevity to my livejournal friends. You can read the entire article at http://www.netconsonance.com/2013/01/howto-build-apache-2-4-for-centos-6-or-rhel6-patch/.

August

SunMonTueWedThuFriSat
    1
 
2
 
3
 
4
 
5
 
6
 
7
 
8
 
9 10
 
11
 
12
13
 
14
 
15
 
16
 
17
 
18
 
19
 
20
 
21
 
22
 
23
 
24
 
25
 
26
 
27
 
28
 
29
 
30
 
31