[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Web openvpn.net

Re: [Openvpn-users] rpmbuild dependency problems with rc1

  • Subject: Re: [Openvpn-users] rpmbuild dependency problems with rc1
  • From: "Doncho N. Gunchev" <mr700@xxxxxxxxxxxx>
  • Date: Fri, 10 Dec 2004 01:17:04 +0200

On 2004-12-09 (Thursday) 12:39, James Yonan wrote:
> This was posted on the OpenVPN sourceforge bugs page:
> **********
> I got openvpn 2.0 rc1 and on my Fedora Core 3 system I
> did a rpmbuild -tb openvpn-2.0_rc1.tar.gz
> This all went very smoothly.
> When I tried to install this package I got a failed
> dependency over perl(Authen::PAM)
> I found an RPM for this module on
> http://dag.wieers.com/packages/perl-Authen-PAM/
> I was baffled why openvpn would need a perl module.
> After a search I found that this requirement was
> because of the sample script sample-scripts/auth-pam.pl
> The rpmbuilding process automagically finds these kinds
> of dependencies and puts them in the RPM.
> So this sample script 'forced' me to install an
> additional piece of software I'm probably not going to
> use. According to the Changelog this issue is new since
> Version 2.0-beta18.
> *********
> Does anyone know how to turn off this nonsense of rpmbuild triggering
> mandatory dependencies based on stuff it finds in the sample-scripts directory?
    AFAIK there are two ways. The first is easy - turn off authomatic
package dependencies (what I use, because I was lazy to really fix it):
--- cut ---
AutoReq: 0
Requires: openssl >= 0.9.7a-40 # well, the version is FC3 specific
Requires: lzo >= 1.08
# /bin/bash, /bin/sh, libc.so.6 and so on are always required...
# check with rpm -qp --requires package
--- cut ---
    The second way was to 'filter' this dependancy. I'll try to find
how this worked and post it...

  Doncho N. Gunchev    Registered Linux User #291323 at counter.li.org
  GPG-Key-ID: 1024D/DA454F79                        http://pgp.mit.edu
  Key fingerprint = 684F 688B C508 C609 0371  5E0F A089 CB15 DA45 4F79