LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-27-2012, 03:17 PM   #1
breds
LQ Newbie
 
Registered: Jun 2012
Posts: 11

Rep: Reputation: Disabled
How to configure a source package before creating an rpm


Hi everyone,

I am trying to configure a pam_pkcs11 source package without NSS on RHEL 5.4. I have unpacked the source rpm and I have all the necessary directories in /usr/src/redhat/. What I have been doing is

cd BUILD/pam_pkcs11-0.6.2/
./configure --without-nss

This works fine but when I try to create the rpm with the SPECS/ file

rpmbuild -bb pam_pkcs11.spec

it adds NSS back to the package. I have researched it for a couple days and am missing the conection. All input is appreciated.

Thanks,

breds
 
Old 06-27-2012, 04:20 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,943
Blog Entries: 54

Rep: Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731
Quote:
Originally Posted by breds View Post
I am trying to configure a pam_pkcs11 source package without NSS on RHEL 5.4. I have unpacked the source rpm and
Which source RPM?


Quote:
Originally Posted by breds View Post
I have all the necessary directories in /usr/src/redhat/.
You should not need to be root to build packages. To minimize risks use an unprivileged account instead.


Quote:
Originally Posted by breds View Post
when I try to create the rpm with the SPECS/ file
rpmbuild -bb pam_pkcs11.spec
it adds NSS back to the package.
Running configure only configures the source for building and doesn't link and compile anything. If you want to assess the build process continue by running 'make 2>&1 | tee /path/to/make.log;'. (Running 'tee' here is for convenience as you don't have to rely on a humongous scroll buffer or re-run make to trace back and read errors.) If that runs OK then add the "--without-nss" flag to the %configure section in pam_pkcs11.spec, change the "Vendor" (and packager) tag, increment the package release number and update the %changelog section to reflect your changes. (Wrt changes read them as AND, not OR.) When you're ready to build the package run 'rpmbuild -bb pam_pkcs11.spec 2>&1 | tee pam_pkcs11.spec.log' and please attach the plain text file "pam_pkcs11.spec.log" for inspection if it still picks up NSS as dependency.
 
Old 06-28-2012, 11:41 AM   #3
breds
LQ Newbie
 
Registered: Jun 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
I am using the pam_pkcs11-0.6.2-11.1.el6.src.rpm source package. I changed the pam_pkcs11.spec file to configure --without-nss. I also changed the release number and the package built a new rpm without a problem. I installed the package and when I run "pkcs11_inspect debug", the pkcs11_lib.c file still initializes NSS because of the "#HAVE NSS" directive. Any ideas?

Thanks,

breds
 
Old 06-28-2012, 01:44 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,943
Blog Entries: 54

Rep: Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731
Quote:
Originally Posted by breds View Post
pkcs11_lib.c file still initializes NSS because of the "#HAVE NSS" directive. Any ideas?
If that's all it takes maybe run %configure and patch the directive before you run 'make'?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
error in building rpm of open ldap from source using rpm package manager Infotechie Linux - Software 2 05-02-2012 01:10 AM
creating rpm package javimd786 Linux - Newbie 1 01-05-2010 01:02 PM
Error while creating RPM package kavinsiva Linux - Newbie 3 08-21-2009 06:54 AM
problems in creating a rpm package gobi_dgm Linux - Software 1 09-18-2006 05:28 AM
Creating an RPM package? WeNdeL Linux - Software 3 03-05-2003 09:30 AM


All times are GMT -5. The time now is 12:31 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration