Page 1 of 1

Macports and Mythtv 0.28.1 Upgrade

Posted: Fri Mar 17, 2017 5:58 pm
by gsulshski
Hi,
I have been built mythtv 0.28 via Macports build processor versus using the installer.

I noticed that Mythv 0.28.1 came out and I wanted to pickup the "latest" version.

However, I have run into a couple of build problems.

The one that I am currently on is...

I used sudo port selfupdate and sudo port upgrade outdated

Code: Select all

--->  Computing dependencies for liberation-fonts
--->  Verifying checksums for liberation-fonts
Error: Failed to checksum liberation-fonts: liberation-fonts-ttf-2.00.1.tar.gz does not exist in /opt/local/var/macports/distfiles/liberation-fonts
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_liberation-fonts/liberation-fonts/main.log for details.
Error: Problem while installing liberation-fonts
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
--->  Some of the ports you installed have notes:
  p5.24-libwww-perl has the following notes:
    As of version 6.00, libwww-perl has been split into multiple packages. If you were using p5.24-libwww-perl for just one or two of its modules before, you may be able to pare down your installation to just those modules now. Other important changes have been made that
    may affect your code; for details, please see: /opt/local/share/doc/p5.24-libwww-perl/Changes
Ulsh-HTPC:macports_sierra gregoryulsh$ sudo port deactivate liberation-fonts
Error: port deactivate failed: Image error: port liberation-fonts is not active.


Re: Macports and Mythtv 0.28.1 Upgrade

Posted: Sat Mar 18, 2017 6:40 pm
by pvr4me
"No good deed goes unpunished." ;-)

I got tired of the constant error messages in the logs about missing fonts so I created the liberation-fonts port about a month ago. And then fedorahosted.org shut down on March 1, 2017. Argh. After a bunch of web searches, I have no idea which site would now be considered the definitive host for this project. Until I can figure that out, I've just deleted myth's runtime dependency on these fonts.

While I was at it, I've updated to a recent pull from the .28-fixes branch and added a patch that should let WebFrontend video playback work on Mac and iOS with Safari.

Just commited the fix so it could take 20 minutes to become available. After that:

Code: Select all

sudo port clean liberation-fonts
sudo port selfupdate && port outdated
sudo port upgrade outdated
If all goes well, you should be right up to date. Let me know if you have further problems.

Craig

Re: Macports and Mythtv 0.28.1 Upgrade

Posted: Sun Mar 19, 2017 12:34 pm
by gsulshski
Thank you for your prompt attention and fix !

I was able to build 0.28.1 and tested it to some degree yesterday.

I did have some warning messages on the build process that I am not sure of the implication and I only shared the first few.

Code: Select all

--->  Applying patches to mythtv-core.28
Warning: reinplace s|#!/usr/bin/perl|#!/opt/local/bin/perl5.24| didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mythtv.28/mythtv-core.28/work/mythtv-0bd47303/mythtv/bindings/perl/MythTV.pm
Warning: reinplace s|/usr/local/bin|/opt/local/lib/mariadb/bin| didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mythtv.28/mythtv-core.28/work/mythtv-0bd47303/mythtv/programs/scripts/database/mythconverg_restore.pl
Warning: reinplace s|^#! */usr/bin/env python$|#!/opt/local/bin/python2.7| didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mythtv.28/mythtv-core.28/work/mythtv-0bd47303/mythtv/bindings/python/MythTV/_conn_mysqldb.py
Warning: reinplace s|^#! */usr/bin/env python$|#!/opt/local/bin/python2.7| didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mythtv.28/mythtv-core.28/work/mythtv-0bd47303/mythtv/bindings/python/MythTV/_conn_oursql.py
second part...

Code: Select all

Warning: reinplace s|@APPLICATIONS_DIR@|/Applications/MacPorts| didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mythtv.28/mythtv-core.28/work/mythtv-0bd47303/macports/Myth_Frontend.applescript
Warning: reinplace s|@MYTHTVPIDFILE@|/opt/local/var/run/mythtv.28/mythtv| didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mythtv.28/mythtv-core.28/work/mythtv-0bd47303/macports/Myth_Frontend.applescript
Warning: reinplace s|@APPLICATIONS_DIR@|/Applications/MacPorts| didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mythtv.28/mythtv-core.28/work/mythtv-0bd47303/macports/Myth_Filldatabase.applescript
Warning: reinplace s|@MYTHTVPIDFILE@|/opt/local/var/run/mythtv.28/mythtv| didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mythtv.28/mythtv-core.28/work/mythtv-0bd47303/macports/Myth_Filldatabase.applescript
Warning: reinplace s|@APPLICATIONS_DIR@|/Applications/MacPorts| didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mythtv.28/mythtv-core.28/work/mythtv-0bd47303/macports/Myth_Setup.applescript
Warning: reinplace s|@MYTHTVPIDFILE@|/opt/local/var/run/mythtv.28/mythtv| didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mythtv.28/mythtv-core.28/work/mythtv-0bd47303/macports/Myth_Setup.applescript
Warning: reinplace s|@APPLICATIONS_DIR@|/Applications/MacPorts| didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mythtv.28/mythtv-core.28/work/mythtv-0bd47303/macports/Myth_Stop_Start.applescript
Warning: reinplace s|@MYTHTVLOGDIR@|/opt/local/var/log/mythtv.28| didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mythtv.28/mythtv-core.28/work/mythtv-0bd47303/macports/Myth_Stop_Start.applescript
Warning: reinplace s|@MYTHTVPIDFILE@|/opt/local/var/run/mythtv.28/mythtv| didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mythtv.28/mythtv-core.28/work/mythtv-0bd47303/macports/Myth_Stop_Start.applescript
Warning: reinplace s|xxxyyyzzz|/opt/local/var/run/mythtv.28/mythtv| didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mythtv.28/mythtv-core.28/work/mythtv-0bd47303/mythtv/configure

Re: Macports and Mythtv 0.28.1 Upgrade

Posted: Sun Mar 19, 2017 2:20 pm
by pvr4me
These warning messages are a new feature in MacPorts 2.4.1. I believe they are all harmless and I think I can suppress the messages when I next update the port. Sorry for the noise.

Where do they come from? Myth ships with quite a few Perl and Python scripts and I add a couple more Applescript helpers. Normally, MacPorts defaults to using a '/opt/local' prefix and installs everything under there; including any requested versions of Perl and Python. We need to make all of these scripts use the correct install prefix to find the executable programs or other resources they need. The MacPorts reinplace tool is how I do these fixups. Because there are so many scripts, I've set it up to walk through the build directory blindly attempting to reinplace on each script file. This has the important advantage that if a new script is introduced, it is probably going to be fixed without relying on me to detect the new thing. The disadvantage is that it tries fixups where none are actually needed.

I have an idea how to work around this issue but I want to check with the MacPorts team.

Anyway, let me know if Myth does not work as you'd expect it.

Craig