Bug 1765753

Summary: apxs fails to find apr-1 without PKG_CONFIG_PATH being set.
Product: Red Hat Enterprise Linux 8 Reporter: daryl herzmann <akrherz>
Component: httpdAssignee: Luboš Uhliarik <luhliari>
Status: CLOSED NOTABUG QA Contact: RHEL Stacks Subsystem QE <rhel-stacks-subsystem-qe>
Severity: low Docs Contact:
Priority: unspecified    
Version: 8.0CC: luhliari
Target Milestone: rc   
Target Release: 8.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-18 14:34:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description daryl herzmann 2019-10-25 21:04:12 UTC
Description of problem:

apxs appears to fail out of the box with the following error:

$ apxs -q INCLUDEDIR
Package apr-1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `apr-1.pc'
to the PKG_CONFIG_PATH environment variable
No package 'apr-1' found


Version-Release number of selected component (if applicable):
httpd-devel-2.4.37-12.module+el8.0.0+4096+eb40e6da.x86_64


How reproducible: always


Steps to Reproduce:
1. run apxs
2. observe the error

this workaround works:
PKG_CONFIG_PATH=/usr/lib64/pkgconfig apxs -q INCLUDEDIR
/usr/include/httpd

Comment 1 Luboš Uhliarik 2019-11-18 13:04:01 UTC
Hi Daryl,

I can not reproduce it with fresh RHEL-8 installation. After installing httpd-devel package and
executing apxs -q INCLUDEDIR, it works out of the box. 

# apxs -q INCLUDEDIR
/usr/include/httpd

# rpm -qa httpd-devel
httpd-devel-2.4.37-16.module+el8.1.0+4134+e6bad0ed.x86_64

Anyway, it worked well with the same version as you mentioned in the bug Description. Can you still
reproduce this issue?

Comment 2 Luboš Uhliarik 2019-11-18 13:27:47 UTC
What's the output of following command:

#pkg-config --variable pc_path pkg-config

Comment 3 daryl herzmann 2019-11-18 13:56:51 UTC
Greetings,

On dear, this was a goose chase :(

$ which pkg-config
/opt/miniconda3/envs/prod/bin/pkg-config

That's provided by Anaconda's python install.  Getting that out of the $PATH, things work fine. I am sorry for the troubles.

Comment 4 Luboš Uhliarik 2019-11-18 14:34:55 UTC
(In reply to daryl herzmann from comment #3)
> Greetings,
> 
> On dear, this was a goose chase :(
> 
> $ which pkg-config
> /opt/miniconda3/envs/prod/bin/pkg-config
> 
> That's provided by Anaconda's python install.  Getting that out of the
> $PATH, things work fine. I am sorry for the troubles.

Thanks for info, closing as NOTABUG.