[mythtv] Android build remove the Schema Version Check Bypass

Mark Spieth mark at digivation.com.au
Sun Dec 1 06:44:34 UTC 2019


On 12/1/2019 4:49 AM, David Engel wrote:
> On Sat, Nov 30, 2019 at 12:31:27PM -0500, Peter Bennett wrote:
>> We have got to the point where mythfrontend does not work well with a wrong
>> schema version. The latest master mythfrontend cannot display the program
>> guide when connected to v30 backend, due to the delete flag changes. It
>> gives an incorrect message saying you have no channels configured.
>>
>> Up to now, the Android build has bypassed version checks and could run with
>> any version of mythbackend.
>>
>> It is time to remove from the android packaging, the line
>> IGNOREDEFINES="-DIGNORE_SCHEMA_VER_MISMATCH -DIGNORE_PROTO_VER_MISMATCH"
>>
>> People will no longer be able to use android mythfrontend with a different
>> version of the backend.
>>
>> I will make the change and test it in packaging/master. I will leave
>> packaging/30-fixes as is, V30 may continue to work with some different
>> versions.
>>
>> Does anybody have an opinion on this? Will it cause any problems?
> Yes.  I ran into this myself recently when I updated my Android
> mythfrontends.  I worked around the problem in a way that I will not
> advertise here because it's not safe for casual users.  The real
> solution is what I've advocated for some time (and admittedly not done
> any work on myself).  That is to use the services API instead of
> direct database queries.  Ideally, frontends should be able to work
> without any database access at all.
>
> David

Sounds fine to me. Do it.

It would probably be too hard to add a compatibility layer to fix this 
the way it currently is.

Mark



More information about the mythtv-dev mailing list