FS#8769 - lm_sensor upgrade breaks mythtv

Attached to Project: Arch Linux
Opened by Stephen Lewis (tehanomaly) - Monday, 26 November 2007, 19:33 GMT
Last edited by Roman Kyrylych (Romashka) - Friday, 30 November 2007, 13:20 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Paul Mattal (paul)
Andreas Radke (AndyRTR)
Architecture i686
Severity Medium
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description: upgrade to lm_sensors 3.0.0-1 removes libsensors.so.3 breaking mythbackend. Upon running /etc/rc.d/mythbackend start, mythbackend exits reporting unable to find libsensors.so.3

Possible temporary solution: symlink /usr/lib/libsensors.so.3 to /usr/lib/libsensors.so.4

ln -s /usr/lib/libsensors.so.4 /usr/lib/libsensors.so.3

_seems_ to work for playback - recording/scheduling untested.
This task depends upon

Closed by  Roman Kyrylych (Romashka)
Friday, 30 November 2007, 13:20 GMT
Reason for closing:  Fixed
Comment by Bernhard (dw) - Tuesday, 27 November 2007, 16:23 GMT
I can confirm this problem and also the suggested temporary fix.
Comment by Jeff Tyson (inthemedium) - Tuesday, 27 November 2007, 18:16 GMT
Same thing here.
Comment by Stephen Lewis (tehanomaly) - Tuesday, 27 November 2007, 21:07 GMT
The libsensors library is only used by the mythbackend program - all other myth programs _should_ be unaffected - myth seems to use this library to enumerate devices.

Three source files need modification - programs/mythbackend/mainserver.cpp and programs/mythbackend/mythxml.cpp both need an #include statement (to sensors/chips.h) removing, and programs/mythbackend/httpstatus.cpp needs a re-write of part of HttpStatus::FillStatusXML function to support the new library. I'll post a patch if I figger it out.
Comment by Stephen Lewis (tehanomaly) - Tuesday, 27 November 2007, 22:50 GMT
The attached patch fixes the problem I think; it'll need to be compiled on a host with the lm_sensor-3.0.0 headers installed, and I've maintained the pre-lmsensors-3.0.0 for backward compatibility.

I used the package source http://www.archlinux.org/~paul/mythtv-0.20.2.20070828.tar.gz

I've compiled this on my machine and have encountered no problems running myth. I would suggest someone checks my code though... ;)
Comment by Greg Meyer (oggb4mp3) - Wednesday, 28 November 2007, 05:51 GMT
I hate to be a bitch, but isn't this why there is a testing repo, so when there is a major version upgrade of some library, we find these broken packages before it gets incorporated into stable.
Comment by Stephen Lewis (tehanomaly) - Wednesday, 28 November 2007, 17:24 GMT
edit: corrected a preprocessor error in my patch

Greg: in theory yes I think so, this one obviously escaped through! Hopefully only this one though... lol.
Comment by Nicholas Sloan (ethos) - Wednesday, 28 November 2007, 18:12 GMT
So... Who is the maintainer, and when will this patch be included in the Community package?
Comment by Greg Meyer (oggb4mp3) - Wednesday, 28 November 2007, 18:33 GMT
I'm pretty sure mythtv is in extra.
Comment by Greg Meyer (oggb4mp3) - Wednesday, 28 November 2007, 18:43 GMT
I'm pretty sure mythtv is in extra, which is why it is so egregious that lm_sensors went right into stable before spending a few days in testing.
Comment by Greg Meyer (oggb4mp3) - Wednesday, 28 November 2007, 19:17 GMT
I'm pretty sure mythtv is in extra, which is why it is so egregious that lm_sensors went right into stable before spending a few days in testing.
Comment by Greg Meyer (oggb4mp3) - Wednesday, 28 November 2007, 19:17 GMT
oops, sorry about the double post. I hit refresh by accident.
Comment by Paul Mattal (paul) - Thursday, 29 November 2007, 22:16 GMT
I will try to rebuild now with the patch.
Comment by Paul Mattal (paul) - Friday, 30 November 2007, 04:43 GMT
New mythtv-0.20.2.20071129-1 in testing works off new stable snapshot and also patches against lm_sensors 3.0.0.
Comment by Greg Meyer (oggb4mp3) - Friday, 30 November 2007, 13:19 GMT
Works here, thanks

Loading...