On Thu, Dec 29, 2005 at 11:20:16AM -0800, Neil Davidson wrote:
> Never mind my previous request for advice.
> 
> After many more attempts, the following seemed to more or less succeed:
> 
> rpmbuild -ba /usr/src/redhat/SPECS/net-snmp.spec --define
> '_with_perl_modules 1' --define '_with_embedded_perl 1'

The idea is to use --with foo, which gets translated to --define
"_with_foo --with-foo". Similar for --without foo.

E.g. simply use

rpmbuild -bb --with perl_modules --with embedded_perl *.spec

Check /usr/share/doc/rpm-*/conditionalbuilds for details.

> ________________________________________
> From: Neil Davidson 
> Sent: Wednesday, December 28, 2005 1:34 PM
> To: '[email protected]'
> Subject: Building RPMs with embedded Perl
> 
> Am a bit of a novice to this, but perhaps someone here has some
> experience in getting Net-SNMP installed on Fedora Core 4 with
> embedded perl support.
> 
> (It looks like embedded perl is disabled by default.)
> 
> The spec file contains the following lines:
> 
> 
> %{?_with_embedded_perl:%define embedded_perl 1}
> %{!?_with_embedded_perl:%define embedded_perl 0}
> 
> I interpret these as suggesting, that I can build the rpm with embedded
> perl, though some configuration option supplied on the
> 
> rpmbuild command line.
> 
> Have tried the following:
> 
> rpmbuild -ba net-snmp.spec --with 'embedded_perl'
> rpmbuild -ba net-snmp.spec --define '_enable_embedded_perl 1'
> rpmbuild -ba net-snmp.spec --define '_enable_embedded_perl=yes'
> rpmbuild -ba net-snmp.spec --define '_enable_embedded_perl=1'
> 
> all without much luck.
> 
> I'm probably being quite ignorant, but can anyone point me in the
> correct direction?
> 
> 
> 
> 
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
> _______________________________________________
> Net-snmp-users mailing list
> [email protected]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users

-- 
Axel.Thimm at ATrpms.net

Attachment: pgpPQILBYAZSl.pgp
Description: PGP signature

Reply via email to