On Thu, Oct 01, 2015 at 05:22:39PM -0300, Flavio Leitner wrote:
> On Thu, Oct 01, 2015 at 04:00:09PM -0400, Russell Bryant wrote:
> > On 10/01/2015 03:54 PM, Ben Pfaff wrote:
> > > On Thu, Oct 01, 2015 at 03:50:35PM -0400, Russell Bryant wrote:
> > >> Commit e91b927d8966bfcb9768225392324dde4fd7d7f6 added optional usage of
> > >> the libcap-ng library.  It's packaged in Fedora, so go ahead and added
> > >> it to the Fedora spec file.
> > >>
> > >> Our default systemd unit files don't make use of the --user option that
> > >> requires this library, but conceivably someone may want to customize
> > >> them and use this option.
> > >>
> > >> Signed-off-by: Russell Bryant <rbry...@redhat.com>
> > > 
> > > I'd consider also adding --with-libcapng=yes to the configure command
> > > line.  That way, a build without libcap-ng installed will fail.  That
> > > will both root out problems in whatever RPM autobuilders happen to be
> > > running against OVS and make sure that every RPM build supports
> > > libcap-ng.
> 
> > It would not catch possible failures due to distro or package version
> > differences.  For example, if the header file was installed was
> > installed in a different location and the configure script didn't find
> > it, the package would still happily build now, but without libcap-ng
> > support.  --with-libcapng=yes would catch that, at least.
> 
> The only issue I see is to have one more dependency to carry on which
> for some use cases might be a problem.
> 
> Since this is an optional feature, worth to look at the %bcond_with
> and %bcond_without macros.  We already use that to enable/disable
> running the testsuite.  We could use the same approach to build
> with (default) or without libpcap-ng.
> 
> Does that make sense?

I sent out a patch to show what I am saying.
Russel, I based my patch on yours, so if you like the patch, feel free
to signed-off-by too, thanks! :)

BTW, I haven't tested the binaries, just the rpm stuff.

Ah, I removed the Requires to the library since RPM will catch that
if needed. You can use 'rpm -qpR <rpm file>' to see the requirement
list.

Thanks!
fbl

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to