Mailing List Archive

Ansible problems with raspberry pi
Hi Stuart

I rebuild my Raspberry Pi system and compiled V30. I found that ansible
failed to install the compile dependencies. ansible stopped because it
could not install libcec-dev. On debian stretch and raspbian stretch the
package is called libcec4-dev.

It stopped before it had installed much at all. Is there any way to get
it to skip the failing package and do the rest?

I installed the rest of the packages manually. There are a few more
packages needed for V30 than were for V29 - as follows
libsamplerate0-dev libbluray-dev libxnvctrl-dev liblzo2-dev libxcb-shm0-dev

I added the full list of build deps to the wiki at
https://www.mythtv.org/wiki/Build_from_Source#Installing_Build_Dependencies_without_Ansible

Please update ansible to use libcec4-dev for stretch and make sure the
new build deps I have listed above are included. It is possible I have
some missing or some unnecessary ones, if so please let me know.

Thanks
Peter
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Ansible problems with raspberry pi [ In reply to ]
On 1/20/19 2:01 PM, Peter Bennett wrote:
> Hi Stuart
>
> I rebuild my Raspberry Pi system and compiled V30. I found that
> ansible failed to install the compile dependencies. ansible stopped
> because it could not install libcec-dev. On debian stretch and
> raspbian stretch the package is called libcec4-dev.
>
> It stopped before it had installed much at all. Is there any way to
> get it to skip the failing package and do the rest?
>
> I installed the rest of the packages manually. There are a few more
> packages needed for V30 than were for V29 - as follows
> libsamplerate0-dev libbluray-dev libxnvctrl-dev liblzo2-dev
> libxcb-shm0-dev
>
> I added the full list of build deps to the wiki at
> https://www.mythtv.org/wiki/Build_from_Source#Installing_Build_Dependencies_without_Ansible
>
> Please update ansible to use libcec4-dev for stretch and make sure the
> new build deps I have listed above are included. It is possible I have
> some missing or some unnecessary ones, if so please let me know.
>
> Thanks
> Peter

I did some more testing on libcec

On a fresh install of raspbian -
sudo apt install libcec-dev
Fails with this error
libcec-dev : Depends: libcec4 (= 4.0.1+dfsg1-1+rpi1) but 4.0.2.3~stretch
is to be installed

I don't know why it wants to install a different version of the
dependency, but doing the following instead works:
sudo apt install libcec4=4.0.1+dfsg1-1+rpi1
sudo apt install libcec-dev

There may be two versions of the dependency available in the repository,
but that does not explain why it wants to install the wrong version of
the dependency.

It seems something is set up wrongly for it to fail this way. You should
be able to depend on an out of date version without it breaking.

Peter
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Ansible problems with raspberry pi [ In reply to ]
On 1/21/19 10:48 AM, Peter Bennett wrote:
>
>
> On 1/20/19 2:01 PM, Peter Bennett wrote:
>> Hi Stuart
>>
>> I rebuild my Raspberry Pi system and compiled V30. I found that
>> ansible failed to install the compile dependencies. ansible stopped
>> because it could not install libcec-dev. On debian stretch and
>> raspbian stretch the package is called libcec4-dev.
>>
>> It stopped before it had installed much at all. Is there any way to
>> get it to skip the failing package and do the rest?
>>
>> I installed the rest of the packages manually. There are a few more
>> packages needed for V30 than were for V29 - as follows
>> libsamplerate0-dev libbluray-dev libxnvctrl-dev liblzo2-dev
>> libxcb-shm0-dev
>>
>> I added the full list of build deps to the wiki at
>> https://www.mythtv.org/wiki/Build_from_Source#Installing_Build_Dependencies_without_Ansible
>>
>> Please update ansible to use libcec4-dev for stretch and make sure
>> the new build deps I have listed above are included. It is possible I
>> have some missing or some unnecessary ones, if so please let me know.
>>
>> Thanks
>> Peter
>
> I did some more testing on libcec
>
> On a fresh install of raspbian -
> sudo apt install libcec-dev
> Fails with this error
> libcec-dev : Depends: libcec4 (= 4.0.1+dfsg1-1+rpi1) but
> 4.0.2.3~stretch is to be installed
>
> I don't know why it wants to install a different version of the
> dependency, but doing the following instead works:
> sudo apt install libcec4=4.0.1+dfsg1-1+rpi1
> sudo apt install libcec-dev
>
> There may be two versions of the dependency available in the
> repository, but that does not explain why it wants to install the
> wrong version of the dependency.
>
> It seems something is set up wrongly for it to fail this way. You
> should be able to depend on an out of date version without it breaking.
>
> Peter

Further to this - after installing the old version of libcec4 and the
libcec-dev as above, I ran an update and it happily upgraded the libcec4
to the newer version without complaining that libcec4-dev was dependent
on the older version.

Peter
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Ansible problems with raspberry pi [ In reply to ]
Hi Peter,

The library has changed names during the lifetime of stretch.
There was a period that it was libcec4-dev.

A ticket was opened about this, and I did some investigation
and actually the libcec-dev package is the newest package

I'm on

# lsb_release
No LSB modules are available.
root@raspberrypi:~# lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 9.6 (stretch)
Release: 9.6
Codename: stretch

with these repo's enabled (the default AFAICT)

# apt policy
Package files:
100 /var/lib/dpkg/status
release a=now
500 http://mirrordirector.raspbian.org/raspbian stretch/rpi armhf Packages
release o=Raspbian,a=stable,n=stretch,l=Raspbian,c=rpi,b=armhf
origin mirrordirector.raspbian.org
500 http://mirrordirector.raspbian.org/raspbian stretch/non-free armhf
Packages
release o=Raspbian,a=stable,n=stretch,l=Raspbian,c=non-free,b=armhf
origin mirrordirector.raspbian.org
500 http://mirrordirector.raspbian.org/raspbian stretch/contrib armhf
Packages
release o=Raspbian,a=stable,n=stretch,l=Raspbian,c=contrib,b=armhf
origin mirrordirector.raspbian.org
500 http://mirrordirector.raspbian.org/raspbian stretch/main armhf Packages
release o=Raspbian,a=stable,n=stretch,l=Raspbian,c=main,b=armhf
origin mirrordirector.raspbian.org

<lightbulb>.....

Looking again at the pull request that was submitted about this
https://github.com/MythTV/ansible/pull/2

That user had 2 archive repositories enabled, which are actually
debian repos, not raspbian repos.

So I would try uninstalling libcec4, disable the 2 archive repos,
and re-run


Regards
Stuart

On 20/01/2019 19:01, Peter Bennett wrote:
> Hi Stuart
>
> I rebuild my Raspberry Pi system and compiled V30. I found that ansible
> failed to install the compile dependencies. ansible stopped because it
> could not install libcec-dev. On debian stretch and raspbian stretch the
> package is called libcec4-dev.
>
> It stopped before it had installed much at all. Is there any way to get
> it to skip the failing package and do the rest?
>
> I installed the rest of the packages manually. There are a few more
> packages needed for V30 than were for V29 - as follows
> libsamplerate0-dev libbluray-dev libxnvctrl-dev liblzo2-dev libxcb-shm0-dev
>
> I added the full list of build deps to the wiki at
> https://www.mythtv.org/wiki/Build_from_Source#Installing_Build_Dependencies_without_Ansible
>
>
> Please update ansible to use libcec4-dev for stretch and make sure the
> new build deps I have listed above are included. It is possible I have
> some missing or some unnecessary ones, if so please let me know.
>
> Thanks
> Peter

_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org