Quote:
Originally Posted by breds
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
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
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.