Bug 1267946 - apxs included in httpd24-httpd-devel-2.4.12-4.el6.x86_64 gives wrong output
Summary: apxs included in httpd24-httpd-devel-2.4.12-4.el6.x86_64 gives wrong output
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: softwarecollections.org
Classification: Community
Component: httpd24
Version: 1.0
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Luboš Uhliarik
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-01 12:37 UTC by Mattias Borell
Modified: 2021-01-14 09:43 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-12 15:18:57 UTC
Embargoed:


Attachments (Terms of Use)

Description Mattias Borell 2015-10-01 12:37:04 UTC
Description of problem:
The command "apxs -q INCLUDEDIR" returns "/usr/include/httpd"
The result should be prefixed with "/opt/rh/httpd24/root" to work properly

Version-Release number of selected component (if applicable):
2.4.12-4.el6.x86_64

How reproducible:
apxs -q INCLUDEDIR

Steps to Reproduce:
1.
2.
3.

Actual results:
/usr/include/httpd

Expected results:
/opt/rh/httpd24/root/usr/include/httpd

Additional info:
Got stuck on this when building Shibboleth from source, took me a couple of hours to nail it down

Comment 1 Mattias Borell 2015-10-01 12:40:34 UTC
(In reply to Mattias Borell from comment #0)
> Description of problem:
> The command "apxs -q INCLUDEDIR" returns "/usr/include/httpd"
> The result should be prefixed with "/opt/rh/httpd24/root" to work properly
> 
> Version-Release number of selected component (if applicable):
> 2.4.12-4.el6.x86_64
> 
> How reproducible:
> apxs -q INCLUDEDIR
> 
> Steps to Reproduce:
> 1.
> 2.
> 3.
> 
> Actual results:
> /usr/include/httpd
> 
> Expected results:
> /opt/rh/httpd24/root/usr/include/httpd
> 
> Additional info:
> Got stuck on this when building Shibboleth from source, took me a couple of
> hours to nail it down

And before someone asks, I was using the right apxs:

/opt/rh/httpd24/root/usr/bin/apxs

Comment 2 Joe Orton 2016-05-12 15:13:49 UTC
I don't see this with the current RHSCL packages for RHEL6 or 7, can you still reproduce?

# rpm -q httpd24-httpd-devel
httpd24-httpd-devel-2.4.12-4.el6.2.x86_64
# scl enable httpd24 'apxs -q INCLUDEDIR'
/opt/rh/httpd24/root/usr/include/httpd

Comment 3 Joe Orton 2016-05-12 15:18:57 UTC
Ah, if you run apxs outside of the SCL environment it will fail like that, so long as RHEL httpd-devel and apr-devel are installed.

# /opt/rh/httpd24/root/usr/bin/apxs -q INCLUDEDIR
/usr/include/httpd

This is actually expected behaviour; if you don't use the scl wrapper, most bets are off.

Comment 4 Mattias Borell 2016-06-22 08:09:03 UTC
Yep, I had both the SCL httpd24 and the standard httpd environment installed.

I thought calling the binary/script with an absolute path would be enough, but that seems to not be the case... :-) Thanks for the clarification!


Note You need to log in before you can comment on or make changes to this bug.