Bug 863218 - Require nss-devel instead of nss to be built on RHEL 6.3
Summary: Require nss-devel instead of nss to be built on RHEL 6.3
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: fence-agents
Version: rawhide
Hardware: All
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Fabio Massimo Di Nitto
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-04 17:55 UTC by Eduardo Bacchi Kienetz
Modified: 2012-10-05 07:14 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-10-05 07:14:35 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Patch for configure.ac (769 bytes, application/octet-stream)
2012-10-04 17:55 UTC, Eduardo Bacchi Kienetz
no flags Details

Description Eduardo Bacchi Kienetz 2012-10-04 17:55:24 UTC
Created attachment 621760 [details]
Patch for configure.ac

Description of problem:

fence-agents requires nss-devel to be built from source on RHEL 6.3, as checked out from git://git.fedorahosted.org/fence-agents.git

Version-Release number of selected component (if applicable):

Straight git checkout (master as of Oct 3rd, 2012)

How reproducible:
Always

Steps to Reproduce:
1. git clone git://git.fedorahosted.org/fence-agents.git ; cd fence-agents
2. ./autogen.sh
3. ./configure
  
Actual results:

Will fail as it's looking for a "nss" package instead of nss-devel.

Expected results:

configure completing successfully

Additional info:

Comment 2 Fabio Massimo Di Nitto 2012-10-05 07:14:35 UTC
This patch doesn't make any sense at all.

I just did a fresh rhel6 install, install git and autotools.

./autogen.sh
./configure
checking for nss... configure: error: Package requirements (nss) were not met:

yum install nss-devel

./configure succeed as expected.

If I apply your patch, even with nss-devel installed:

checking for nss... configure: error: Package requirements (nss-devel) were not met:

There is no nss-devel.pc file anywhere.

pkg-config nss --libs

[root@rhel6-node2 fence-agents]# pkg-config nss --libs
-lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl  

[root@rhel6-node2 fence-agents]# pkg-config nss-devel --libs
Package nss-devel was not found in the pkg-config search path.
Perhaps you should add the directory containing `nss-devel.pc'
to the PKG_CONFIG_PATH environment variable
No package 'nss-devel' found

The PKG_CHECK_MODULES invokation states:

PKG_CHECK_MODULES(VARIABLE-PREFIX,MODULES[,ACTION-IF-FOUND,[ACTION-IF-NOT-FOUND]]) 

and rpm package nss-devel provides MODULES nss (see /usr/lib(64)/pkg-config.

Either your build environment is not correct regarding nss vs nss-devel or you misunderstood how pkg-config works.


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