Opened 11 years ago

Closed 11 years ago

#41802 closed defect (fixed)

mythtv-core.27 build fails if glib2 is not installed

Reported by: jgandrade11@… Owned by: ctreleaven (Craig Treleaven)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), neverpanic (Clemens Lang)
Port: mythtv-core.27

Description (last modified by ryandesign (Ryan Carsten Schmidt))

After clean install of mavericks, installation of Xcode 5.0.2, Command Line Tools for mavericks late Oct, macports 2.2.1 and using "sudo port install mythtv-core.27" I am unable to complete the installation.

:debug:patch Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mythtv-core.27/mythtv-core.27/work/mythtv-cb744f81" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/multimedia/mythtv-core.27/files/patch-configure-configincludepath.diff'
:info:patch can't find file to patch at input line 3
:info:patch Perhaps you used the wrong -p or --strip option?
:info:patch The text leading up to this was:
:info:patch --------------------------
:info:patch |--- mythtv/configure.orig	2013-06-04 22:25:57.000000000 -0400
:info:patch |+++ mythtv/configure	2013-06-05 20:48:04.000000000 -0400
:info:patch --------------------------
:info:patch File to patch: 
:info:patch Skip this patch? [y] 
:info:patch Skipping patch.
:info:patch 2 out of 2 hunks ignored
:info:patch Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mythtv-core.27/mythtv-core.27/work/mythtv-cb744f81" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/multimedia/mythtv-core.27/files/patch-configure-configincludepath.diff'
:info:patch Exit code: 1
:error:patch org.macports.patch for port mythtv-core.27 returned: command execution failed
:debug:patch Error code: CHILDSTATUS 739 1
:debug:patch Backtrace: command execution failed
    while executing
"system $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec patch "" "< '$patch'""
    (procedure "portpatch::patch_main" line 35)
    invoked from within
"$procedure $targetname"
:info:patch Warning: targets not executed for mythtv-core.27: org.macports.activate org.macports.patch org.macports.configure org.macports.build org.macports.destroot org.macports.install
:notice:patch Please see the log file for port mythtv-core.27 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mythtv-core.27/mythtv-core.27/main.log

Attachments (7)

main.log.rtf (116.2 KB) - added by jgandrade11@… 11 years ago.
main.log (107.0 KB) - added by jgandrade11@… 11 years ago.
main.2.log (117.9 KB) - added by jgandrade11@… 11 years ago.
27 install success 2013Dec13.txt (2.3 KB) - added by ctreleaven (Craig Treleaven) 11 years ago.
main2.log (118.4 KB) - added by jgandrade11@… 11 years ago.
main.3.log (118.2 KB) - added by jgandrade11@… 11 years ago.
main.4.log (743.4 KB) - added by jgandrade11@… 11 years ago.

Download all attachments as: .zip

Change History (23)

Changed 11 years ago by jgandrade11@…

Attachment: main.log.rtf added

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: mythtv removed
Owner: changed from macports-tickets@… to ctreleaven@…

What you've attached was not a log from a clean attempt, and the failure you experienced was likely because of that. Please clean and try again and if it fails again, please attach the new main.log file. Just attach the file as-is; don't convert it to an rtf file.

Changed 11 years ago by jgandrade11@…

Attachment: main.log added

comment:2 Changed 11 years ago by jgandrade11@…

Thank you very much for your quick reply. I did a clean install and same error happened. Here is the new main.log file. Thanks for looking into it

comment:3 Changed 11 years ago by ctreleaven (Craig Treleaven)

Just to be clear, Ryan meant that you should do

sudo port clean mythtv-core.27

and then

sudo port install mythtv-core.27

and then post the resulting log if it still fails. The log attached appears to be the initial attempt to install?

Could you please either do that or confirm that is what you've already done? Thanks.

comment:4 Changed 11 years ago by jgandrade11@…

I have attached the main.log after a your advised clean attempt and re-install using your mentioned commands. Thank you

Last edited 11 years ago by jgandrade11@… (previous) (diff)

Changed 11 years ago by jgandrade11@…

Attachment: main.2.log added

comment:5 Changed 11 years ago by ctreleaven (Craig Treleaven)

I can't recreate, see attached. Please execute the following in Terminal.app

sudo port clean --all mythtv-core.27

and then attempt the install again.

Last edited 11 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

Changed 11 years ago by ctreleaven (Craig Treleaven)

comment:6 in reply to:  5 Changed 11 years ago by jgandrade11@…

Replying to ctreleaven@…:

I can't recreate, see attached. Please execute the following in Terminal.app

sudo port clean --all mythtv-core.27

and then attempt the install again.

Thanks for your suggestion, got same error. I attached the newly created main.log file.

Last edited 11 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

Changed 11 years ago by jgandrade11@…

Attachment: main2.log added

comment:7 Changed 11 years ago by ctreleaven (Craig Treleaven)

After processing fails and before running the clean command, what are the contents of the work directory? Enter:

ls -l $(port work mythtv-core.27)/mythtv-cb744f81

Mine is:

$ ls -l /opt/local/var/macports/build/_Users_craigtreleaven_MacPortsTemp_mythtv-core.27_rev03/mythtv-core.27/work/mythtv-cb744f81
total 16
-rw-r--r--   1 macports  admin   799 29 Nov 14:36 README.rst
-rw-r--r--   1 macports  admin  2770 29 Nov 14:36 authors.map
drwxr-xr-x  41 macports  admin  1394 29 Nov 14:36 checksums
drwxr-xr-x   9 macports  admin   306 13 Dec 22:28 macports
drwxr-xr-x  23 macports  admin   782 29 Nov 14:36 mythplugins
drwxr-xr-x  28 macports  admin   952 29 Nov 14:36 mythtv
drwxr-xr-x   5 macports  admin   170 29 Nov 14:36 themestringstool
Last edited 11 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:8 in reply to:  7 Changed 11 years ago by jgandrade11@…

Replying to ctreleaven@…:

This is what I get:

ls -l $(port work mythtv-core.27)/mythtv-cb744f81
total 0
drwxr-xr-x  9 macports  admin  306 Dec 13 21:40 macports

After processing fails and before running the clean command, what are the contents of the work directory? Enter:

ls -l $(port work mythtv-core.27)/mythtv-cb744f81

Mine is:

$ ls -l /opt/local/var/macports/build/_Users_craigtreleaven_MacPortsTemp_mythtv-core.27_rev03/mythtv-core.27/work/mythtv-cb744f81
total 16
-rw-r--r--   1 macports  admin   799 29 Nov 14:36 README.rst
-rw-r--r--   1 macports  admin  2770 29 Nov 14:36 authors.map
drwxr-xr-x  41 macports  admin  1394 29 Nov 14:36 checksums
drwxr-xr-x   9 macports  admin   306 13 Dec 22:28 macports
drwxr-xr-x  23 macports  admin   782 29 Nov 14:36 mythplugins
drwxr-xr-x  28 macports  admin   952 29 Nov 14:36 mythtv
drwxr-xr-x   5 macports  admin   170 29 Nov 14:36 themestringstool
Last edited 11 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:9 Changed 11 years ago by ctreleaven (Craig Treleaven)

I think I know what is going on but I haven't experienced this before. Your logs contain the following warning:

:warn:archivefetch Your DNS servers incorrectly claim to know the address of nonexistent hosts. This may cause checksum mismatches for some ports.

I think you're actually getting an empty file when you try to fetch the MythTV source. I don't know how that is getting past the checksum stage. If that is the problem, we can bypass it by putting the file where MacPorts expects it. First, though, clean up your previous attempts with

sudo port clean --all mythtv-core.27

I've put the necessary file on my DropBox:

https://www.dropbox.com/l/xYF4pyy4yLyZLoUWT4b7d9

In the Distfiles folder, you'll find an 85.9 MB file that contains all the source code to MythTV. Download it and move it, as it is, into

/opt/local/var/macports/distfiles/mythtv-core.27

Now attempt the install again. If that doesn't work, I've placed a copy of the compiled MythTV system (46.5 MB file) on my DropBox as well, in the Software folder. It would need to be downloaded and placed in:

/opt/local/var/macports/software/mythtv-core.27

Again, attempt the install. I may not have time to look in here for a couple of days--hope this solves your problem.

Last edited 11 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:10 Changed 11 years ago by jgandrade11@…

I tried your suggestions but I still get the same message "Error: Processing of port mythtv-core.27 failed"
I have verizon fios, I was able to edit my router DNS settings to opt out of DNS Assistance. I no longer get the ":warn:archivefetch Your DNS servers incorrectly claim to know the address of nonexistent hosts. This may cause checksum mismatches for some ports." but I still cannot complete the installation of mythtv. I have attached a new main.log file for your viewing.

Thanks for your patience and help on trying to solve this issue.

Last edited 11 years ago by jgandrade11@… (previous) (diff)

Changed 11 years ago by jgandrade11@…

Attachment: main.3.log added

comment:11 Changed 11 years ago by ctreleaven (Craig Treleaven)

The log says:

:info:fetch --->  mythtv-cb744f81.tar.gz doesn't seem to exist in /opt/local/var/macports/distfiles/mythtv-core.27

So the downloaded file can't be in the right place. Please verify and try again.

Last edited 11 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:12 in reply to:  11 Changed 11 years ago by jgandrade11@…

Replying to ctreleaven@…:

The log says:

:info:fetch --->  mythtv-cb744f81.tar.gz doesn't seem to exist in /opt/local/var/macports/distfiles/mythtv-core.27

So the downloaded file can't be in the right place. Please verify and try again.

Verified and tried again. New main.log attached.

Last edited 11 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

Changed 11 years ago by jgandrade11@…

Attachment: main.4.log added

comment:13 Changed 11 years ago by ctreleaven (Craig Treleaven)

Ahh, that is a completely different error. For my interest, please report the results of

port installed glib2

I think it is missing, so install it with:

sudo port install glib2

and then install Myth again. DO NOT do 'sudo port clean --all mythtv-core.27' anymore as it will wipe out the distfile and you'll have to put it back. Weird that this is the first time this missing dependency has come up.

Last edited 11 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:14 Changed 11 years ago by jgandrade11@…

WOW, you are awesome!

That fixed the problem, installation is complete! I would like to support you/Macports for such a great app.

Last edited 11 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:15 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… cal@… added
Summary: Processing of port mythtv-core.27 failedmythtv-core.27 build fails if glib2 is not installed

I was able to reproduce this error if I forcibly deactivated glib2 on my system.

mythtv doesn't seem to need glib2, but it depends on libass, which depends on fribidi, which will use glib2 if it was found at the time fribidi was built.

r114832 might be the fix for this.

comment:16 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.