/usr/bin/apxs broken when apr15u-devel installed

Bug #1478588 reported by Mason Malone
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
IUS Community Project
Fix Released
Undecided
Unassigned

Bug Description

The /usr/bin/apxs Perl script is provided by the httpd24u-devel package, and is needed for building Apache extensions. It uses pkg-config to get the libdir of the apr-1 package, as follows:
   my $libdir = `pkg-config --variable=libdir apr-1`;

This returns an empty string if you have apr15u-devel installed, because its pkg-config file is named "apr15u-1.pc" rather than "apr-1.pc". The result is that you get the following error when executing apxs:
   cannot open /httpd/build/config_vars.mk: No such file or directory at /usr/bin/apxs line 214.

A workaround for this to symlink the *.pc files, like so:
   $ ln -s /usr/lib64/pkgconfig/apr15u-1.pc /usr/lib64/pkgconfig/apr-1.pc

Extra details:

$ uname -a
Linux www.jci.dev 2.6.32-504.1.3.el6.x86_64 #1 SMP Tue Nov 11 17:57:25 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

$ cat /etc/redhat-release
CentOS release 6.6 (Final)

$ yum list installed | egrep 'apr|httpd'
apr15u.x86_64 1.5.2-1.ius.centos6 @ius
apr15u-devel.x86_64 1.5.2-1.ius.centos6 @ius
apr15u-util.x86_64 1.5.4-3.ius.centos6 @ius
apr15u-util-devel.x86_64 1.5.4-3.ius.centos6 @ius
httpd24u.x86_64 2.4.12-5.ius.centos6 @ius
httpd24u-devel.x86_64 2.4.12-5.ius.centos6 @ius
httpd24u-filesystem.noarch 2.4.12-5.ius.centos6 @ius
httpd24u-tools.x86_64 2.4.12-5.ius.centos6 @ius

Tags: httpd24u
Revision history for this message
Mason Malone (mason-r) wrote :

Related issue: the /usr/lib64/httpd/build/config_vars.mk file (which is used by apxs and provided by http24u-devel) has the following lines:
    APR_CONFIG = /usr/bin/apr-1-config
    APU_CONFIG = /usr/bin/apu-1-config

These paths are incorrect if you have apr15u-devel install. They should be:
    APR_CONFIG = /usr/bin/apr15u-1-config
    APU_CONFIG = /usr/bin/apu15u-1-config

Workaround:
$ ln -s /usr/bin/apr15u-1-config /usr/bin/apr-1-config
$ ln -s /usr/bin/apu15u-1-config

Revision history for this message
Carl George (carl.george) wrote :

Hello Mason,

Thanks for the feedback. Give me some time to sort out how to correctly patch this so the symlinks aren't needed.

Revision history for this message
Carl George (carl.george) wrote :

I believe I have fixed these issues.

https://github.com/iuscommunity-pkg/httpd24u/commit/c23a52076fb5b71c7c295151af71a86d84145046

The build httpd24u-2.4.16-2.ius will move to our testing repos during tonight's automation. Once it does please test it and confirm if this fixes your apxs issue.

Changed in ius:
status: New → In Progress
Revision history for this message
Mason Malone (mason-r) wrote :

I've confirmed that httpd24u-2.4.16-2.ius.centos6 in ius-testing fixes the issues I mentioned. Thank you!

Revision history for this message
Carl George (carl.george) wrote :

httpd24u-2.4.16-2.ius will move to the stable repositories during tonight's automation. It may take up to 24 hours to sync to all mirrors.

Changed in ius:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.