Apache 2.4 rebuild with SRPMs--but where is mod_shib? Did I miss an option?

Martin Wolff mwolff at unl.edu
Tue Oct 14 10:34:42 EDT 2014


Hi,
I looked over the build again, and indeed I saw the part where it was skipping the module for every version of Apache. 
I solved this, but I solved it in a kind of awkward way. I had to modify the APX script such that it would find the right config_vars.mk file. I'm betting there is a way to pass that into the script, rather than modifying the Perl script itself, but I couldn't figure out how yesterday. 

Specifically I commented out the original line, and made my edit to /opt/rh/httpd24/root/usr/bin/apxs
  #my $installbuilddir = $libdir . "/httpd/build";
  my $installbuilddir = "/opt/rh/httpd24/root/usr/lib64" . "/httpd/build";

Otherwise, the $libdir variable would be empty as the function that was supposed to populate it wasn't. With that solved, the command I used previously complained I hadn't specified apu, so I passed that in as well and it worked.  
   rpmbuild --rebuild --clean --without builtinapache -D 'shib_options --with-apxs24=/opt/rh/httpd24/root/usr/bin/apxs --with-apr1=/opt/rh/httpd24/root/usr/bin/apr-1-config --with-apu1=/opt/rh/httpd24/root/usr/bin/apu-1-config  --with-openssl=/usr/local/openssl' shibboleth-2.5.3-1.1.src.rpm


Thanks again for the help! 
Martin


More information about the users mailing list