[Mesa-dev] [PATCH] meson: Fix libsensors detection.

Dylan Baker dylan at pnwbakers.com
Tue Dec 18 21:47:24 UTC 2018


Quoting Vinson Lee (2018-12-18 13:01:43)
> On Tue, Dec 18, 2018 at 11:42 AM Dylan Baker <dylan at pnwbakers.com> wrote:
> >
> > Quoting Vinson Lee (2018-12-18 09:52:08)
> > > Fixes: 5e71efef44b9 ("meson: Add lmsensors support")
> > > Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> > > ---
> > >  meson.build | 2 +-
> > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> > > diff --git a/meson.build b/meson.build
> > > index 57dd8b59cb..d591ca377b 100644
> > > --- a/meson.build
> > > +++ b/meson.build
> > > @@ -1395,7 +1395,7 @@ endif
> > >
> > >  _sensors = get_option('lmsensors')
> > >  if _sensors != 'false'
> > > -  dep_lmsensors = cc.find_library('libsensors', required : _sensors == 'true')
> > > +  dep_lmsensors = cc.find_library('sensors', required : _sensors == 'true')
> > >    if dep_lmsensors.found()
> > >      pre_args += '-DHAVE_LIBSENSORS=1'
> > >    endif
> > > --
> > > 2.19.1
> > >
> >
> > Does this actually fix anything for you, and if so on what OS? On Arch both
> > libsensors and sensors work fine and find the same library.
> >
> > Dylan
> 
> This patch fixes libsensors detection for me on Ubuntu 18.10 with meson 0.47.2.

okay then,
Reviewed-by: Dylan Baker <dylan at pnwbakers.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: signature
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20181218/c40f5187/attachment.sig>


More information about the mesa-dev mailing list