Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jul 2011 12:30:02 +0200
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        Juergen Lock <nox@jelal.kn-bremen.de>
Cc:        freebsd-multimedia@FreeBSD.org, itetcu@FreeBSD.org
Subject:   Re: Fixing skype multimedia/linux_v4l2wrapper dependency on 8
Message-ID:  <20110715123002.363272dtl9b48dka@webmail.leidinger.net>
In-Reply-To: <20110714205415.GA3304@triton8.kn-bremen.de>
References:  <20110714205415.GA3304@triton8.kn-bremen.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Quoting Juergen Lock <nox@jelal.kn-bremen.de> (from Thu, 14 Jul 2011  
22:54:15 +0200):

>  Installing the skype ports with VIDEO knob on currently fails on
> up-to-date stable/8 because the multimedia/linux_v4l2wrapper port
> now detects it is not needed anymore (my patch has been committed
> to stable a while ago.)  So I now made a patch that extracts the
> check whether the code is in the kernel into a seperate Makefile.sub
> that Linux ports that need V4L2 can include, and changed the skype
> ports to do just that.  Does this look good and ok to commit?


> Index: multimedia/linux_v4l2wrapper-kmod/Makefile.sub
> @@ -0,0 +1,12 @@
> +# $FreeBSD$
> +
> +# try to avoid child processes when finding out if already in the kernel
> +.if ${OSVERSION} > 900036 || (${OSVERSION} < 900000 && ${OSVERSION}  
> > 802508)
> +LINUX_V4L2_INBASE=	1

Here you say that it can be used, even if it is not compiled in and  
not loaded.

> +.else
> +.if ${OSVERSION} == 900036 || ${OSVERSION} == 802508
> +LINUX_V4L2_INBASE!=	($(SYSCTL) -n kern.features.linuxulator_v4l2  
> 2>/dev/null || true)

Here you say it can only be used *if it is loaded or compiled in*.

The correct name for the variable here would be LINUX_V4L2_INMEMORY.

If it is intended to have a variable which denotes both cases, I would  
use a different name, maybe ..._OK or ..._AVAILABLE or something  
similar.

> +.else
> +LINUX_V4L2_INBASE=	0
> +.endif
> +.endif

Bye,
Alexander.

-- 
The Constitution may not be perfect, but it's a lot better
than what we've got!

http://www.Leidinger.net    Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org       netchild @ FreeBSD.org  : PGP ID = 72077137



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110715123002.363272dtl9b48dka>