Main Menu

httpd-2.2.13-1.i386 rpm for fedora 10

Practice makes perfec….? Well, it definitely improves things anyway.?? Cool

 

After having some level of success with creating these httpd-2.2.13 RPM’s for Fedora 9 & 11, I think I’ve found the more correct way to build the RPM’s.? This time I’m going to try building based on the spec files provided with the previous httpd.spec’s and patch files from the Fedora source RPM.? Probably a MUCH better solution then using the spec file from apache.? I can’t believe I didn’t do this with my previous pmbuild’s.

 

These RPM’s are for Fedora 10.

 

https://www.techdruid.com/rpms/fedora10/httpd-2.2.13-1.fc10.i386.rpm
https://www.techdruid.com/rpms/fedora10/httpd-debuginfo-2.2.13-1.fc10.i386.rpm
https://www.techdruid.com/rpms/fedora10/httpd-devel-2.2.13-1.fc10.i386.rpm
https://www.techdruid.com/rpms/fedora10/httpd-manual-2.2.13-1.fc10.i386.rpm
https://www.techdruid.com/rpms/fedora10/httpd-tools-2.2.13-1.fc10.i386.rpm
https://www.techdruid.com/rpms/fedora10/mod_ssl-2.2.13-1.fc10.i386.rpm

 


And below is the details on the actual build process.? Please don’t rely on these as instructions.? They are very loose details of the build process.


# cat /etc/issue
Fedora release 10 (Cambridge)
Kernel r on an m (l)


$ su -l
# wget http://mirror.steadfast.net/fedora/updates/10/SRPMS/httpd-2.2.11-2.fc10.src.rpm
# rpm -Uvh httpd-2.2.11-2.fc10.src.rpm
# yum update
No Packages marked for Update
# yum groupinstall “Development Tools”

Dependencies Resolved
=========
Install???? 64 Package(s)????????
Update?????? 0 Package(s)????????
Remove?????? 0 Package(s)????????

Total download size: 121 M
Is this ok [y/N]: y

Complete!


# yum install rpmdevtools

Dependencies Resolved
=========
Install????? 3 Package(s)????????
Update?????? 0 Package(s)????????
Remove?????? 0 Package(s)????????

Total download size: 228 k
Is this ok [y/N]: y

Complete!

# yum update
No Packages marked for Update

 


 

$ rpmdev-setuptree

$ cp ~/httpd-2.2.13.tar.gz ~/rpmbuild/SOURCES/
$ su -l
# cp rpmbuild/SOURCES/* /home/USER/rpmbuild/SOURCES/
# cp rpmbuild/SPECS/httpd.spec /home/USER/rpmbuild/SPECS/
# chown -Rf USER.USER /home/USER/rpmbuild/SOURCES/*
# chown -Rf USER.USER /home/USER/rpmbuild/SPECS/httpd.spec
# exit
? // Remove the OLD httpd source file
$ rm rpmbuild/SOURCES/httpd-2.2.11.tar.gz


?Modify the spec file for the new httpd version

$ vi rpmbuild/SPECS/httpd.spec

— Made the following line modifications —
Version: 2.2.13
Release: 1%{?dist}


// Build the Package Now
$ rpmbuild -bb –clean rpmbuild/SPECS/httpd.spec

Patch #55 (httpd-2.2.4-oldflush.patch):
+ /bin/cat /home/USER/rpmbuild/SOURCES/httpd-2.2.4-oldflush.patch
+ /usr/bin/patch -s -p1 -b –suffix .oldflush –fuzz=2
1 out of 1 hunk FAILED — saving rejects to file server/util_filter.c.rej
error: Bad exit status from /var/tmp/rpm-tmp.i4E8mY (%prep)

— Removed Patch #55 from the httpd.spec file. in 2 locations —

Makes me wonder if there may be other patches that are not necessary.? Perhaps
Perhaps apache has corrected other issues that don’t belong in this build?


// Build the Package Now
$ rpmbuild -bb –clean rpmbuild/SPECS/httpd.spec

error: Failed build dependencies:
??????? db4-devel is needed by httpd-2.2.11-2.fc10.src
??????? expat-devel is needed by httpd-2.2.11-2.fc10.src
??????? zlib-devel is needed by httpd-2.2.11-2.fc10.src
??????? libselinux-devel is needed by httpd-2.2.11-2.fc10.src
??????? apr-devel >= 1.2.0 is needed by httpd-2.2.11-2.fc10.src
??????? apr-util-devel >= 1.2.0 is needed by httpd-2.2.11-2.fc10.src
??????? pcre-devel >= 5.0 is needed by httpd-2.2.11-2.fc10.src
??????? openssl-devel is needed by httpd-2.2.11-2.fc10.src
??????? distcache-devel is needed by httpd-2.2.11-2.fc10.src


$ su -l
# yum install db4-devel expat-devel zlib-devel libselinux-devel apr-devel apr-util-devel pcre-devel openssl-devel distcache-devel

Dependencies Resolved
========
Install???? 17 Package(s)????????
Update?????? 0 Package(s)????????
Remove?????? 0 Package(s)????????

Total download size: 14 M
Is this ok [y/N]: y

Complete!


// Build the Package Now
$ rpmbuild -bb –clean rpmbuild/SPECS/httpd.spec

– SNIPPED TONS OF DEBUG / INFORMATION –

– LOG INFO –
Wrote: /home/USER/rpmbuild/RPMS/i386/httpd-2.2.13-1.fc10.i386.rpm
Wrote: /home/USER/rpmbuild/RPMS/i386/httpd-devel-2.2.13-1.fc10.i386.rpm
Wrote: /home/USER/rpmbuild/RPMS/i386/httpd-manual-2.2.13-1.fc10.i386.rpm
Wrote: /home/USER/rpmbuild/RPMS/i386/httpd-tools-2.2.13-1.fc10.i386.rpm
Wrote: /home/USER/rpmbuild/RPMS/i386/mod_ssl-2.2.13-1.fc10.i386.rpm
Wrote: /home/USER/rpmbuild/RPMS/i386/httpd-debuginfo-2.2.13-1.fc10.i386.rpm
– END LOG INFO –

 

 


# rpm -Uvh /home/USER/rpmbuild/RPMS/i386/httpd-2.2.13-1.fc10.i386.rpm /home/USER/rpmbuild/RPMS/i386/h
ttpd-manual-2.2.13-1.fc10.i386.rpm /home/USER/rpmbuild/RPMS/i386/httpd-tools-2.2.13-1.fc10.i386.rpm /home/USER/rpmbuild/RPMS/i386/mod_ssl-2.2.13-1.fc10.i386.rpm

Preparing…??????????????? ########################################### [100%]
?? 1:httpd-tools??????????? ########################################### [ 25%]
?? 2:httpd????????????????? ########################################### [ 50%]
?? 3:httpd-manual?????????? ########################################### [ 75%]
?? 4:mod_ssl??????????????? ########################################### [100%]


# service httpd restart

 

 


Awesome!? It worked.

 

 

 

No comments yet.

Leave a Reply

Powered by WordPress. Designed by WooThemes