Changes between Initial Version and Version 1 of Ticket #48811


Ignore:
Timestamp:
Sep 9, 2015, 11:54:39 PM (9 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

I am not certain whether "can't read "{os.platform}": no such variable" is a relevant or correct error. MacPorts sometime prints an incorrect error at the end of a failed operation. I don't know what port it thinks the problem is in. os.platform is a variable that exists in MacPorts. Only a handful of ports use it, and glancing at the code I don't see any that use it improperly. So I am inclined to ignore this error.

The error "org.macports.install for port pkgconfig returned: no destroot found at: ..." is definitely relevant. This error means you must clean the affected port and try again. In this case: run "sudo port clean pkgconfig". Cleaning and trying again is the first thing you should do anytime any port fails.

Ports should not normally be broken. I suspect the reason why MacPorts thinks minicom is broken on your system is that minicom uses ncurses, though it does not declare a dependency on it, and so it needs to be rebuilt following the recent update of ncurses to version 6. I fixed this in r140150. To receive this change, wait 30 minutes, then run "sudo port selfupdate". Then you can "sudo port upgrade outdated" to rebuild minicom.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #48811

    • Property Keywords Yosemite OSX 10.10.5 os.platform destroot removed
    • Property Owner changed from macports-tickets@… to ryandesign@…
    • Property Status changed from new to assigned
    • Property Port @2.7 removed
  • Ticket #48811 – Description

    initial v1  
    55i made sure my profile path was updated.
    66
    7 '''My Profile :- '''\\
     7'''My Profile :- '''
    88
    9 #!/usr/bin/bash \\
    10 # MacPort \\
    11 export PATH="/opt/local/bin:/opt/local/sbin:$PATH" \\
     9{{{
     10#!/usr/bin/bash
     11# MacPort
     12export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
     13}}}
    1214
    13 I also installed Quartz as i do use this a fair amount .. \\
     15I also installed Quartz as i do use this a fair amount ..
    1416
    1517OS = MAC OSX Yosemite 10.10.5 \\
     
    1719Command line Tools = Command Line Tools OSX 10.10 for Xcode 7 beta 6 \\
    1820Quartz = XQuartz-2.7.7 \\
    19 MacPorts = MacPorts-2.3.3.tar.bz2 \\
     21MacPorts = MacPorts-2.3.3.tar.bz2
    2022
    2123I then tried to install minicom @2.7 & i got this output from my screen :-
    2224
    23 Jimbo:base Jimbo$ sudo port install minicom \\
    24 --->  Computing dependencies for minicom \\
    25 --->  Cleaning minicom \\
    26 --->  Scanning binaries for linking errors \\
    27 --->  Found 3 broken files, matching files to ports \\
    28 --->  Found 1 broken port, determining rebuild order \\
    29 You can always run 'port rev-upgrade' again to fix errors. \\
    30 The following ports will be rebuilt: minicom @2.7 \\
    31 Continue? [Y/n]: Y \\
    32 Error: rev-upgrade failed: can't read "{os.platform}": no such variable \\
    33 Error: Follow http://guide.macports.org/#project.tickets to report a bug. \\
     25{{{
     26Jimbo:base Jimbo$ sudo port install minicom
     27--->  Computing dependencies for minicom
     28--->  Cleaning minicom
     29--->  Scanning binaries for linking errors
     30--->  Found 3 broken files, matching files to ports
     31--->  Found 1 broken port, determining rebuild order
     32You can always run 'port rev-upgrade' again to fix errors.
     33The following ports will be rebuilt: minicom @2.7
     34Continue? [Y/n]: Y
     35Error: rev-upgrade failed: can't read "{os.platform}": no such variable
     36Error: Follow http://guide.macports.org/#project.tickets to report a bug.
     37}}}
     38{{{
     39Jimbo:base Jimbo$ sudo port rev-upgrade
     40--->  Scanning binaries for linking errors
     41--->  Found 3 broken files, matching files to ports
     42--->  Found 1 broken port, determining rebuild order
     43You can always run 'port rev-upgrade' again to fix errors.
     44The following ports will be rebuilt: minicom @2.7
     45Continue? [Y/n]: Y
     46Error: rev-upgrade failed: can't read "{os.platform}": no such variable
     47Error: Follow http://guide.macports.org/#project.tickets to report a bug.
     48}}}
    3449
    35 Jimbo:base Jimbo$ sudo port rev-upgrade \\
    36 --->  Scanning binaries for linking errors \\
    37 --->  Found 3 broken files, matching files to ports \\
    38 --->  Found 1 broken port, determining rebuild order \\
    39 You can always run 'port rev-upgrade' again to fix errors. \\
    40 The following ports will be rebuilt: minicom @2.7 \\
    41 Continue? [Y/n]: Y \\
    42 Error: rev-upgrade failed: can't read "{os.platform}": no such variable \\
    43 Error: Follow http://guide.macports.org/#project.tickets to report a bug. \\
     50'''This is from the log file :-'''
    4451
    45 '''This is from the log file :-''' \\
    46 
    47 version:1 \\
    48 :msg:clean --->  Computing dependencies for pkgconfig:msg:clean  \\
    49 :debug:clean pkgconfig has no conflicts \\
    50 :debug:clean Searching for dependency: libiconv \\
    51 :debug:clean Found Dependency: receipt exists for libiconv \\
    52 :debug:main Executing org.macports.main (pkgconfig) \\
    53 :debug:main changing euid/egid - current euid: 0 - current egid: 0 \\
    54 :debug:main egid changed to: 501 \\
    55 :debug:main euid changed to: 502 \\
    56 :debug:main Skipping completed org.macports.archivefetch (pkgconfig) \\
    57 :debug:main Privilege de-escalation not attempted as not running as root. \\
    58 :debug:main Skipping completed org.macports.fetch (pkgconfig) \\
    59 :debug:main Privilege de-escalation not attempted as not running as root. \\
    60 :debug:main Skipping completed org.macports.checksum (pkgconfig) \\
    61 :debug:main Privilege de-escalation not attempted as not running as root. \\
    62 :debug:main Skipping completed org.macports.extract (pkgconfig) \\
    63 :debug:main Privilege de-escalation not attempted as not running as root. \\
    64 :debug:main Skipping completed org.macports.patch (pkgconfig) \\
    65 :debug:main Privilege de-escalation not attempted as not running as root. \\
    66 :debug:main Skipping completed org.macports.configure (pkgconfig) \\
    67 :debug:main Privilege de-escalation not attempted as not running as root. \\
    68 :debug:main Skipping completed org.macports.build (pkgconfig) \\
    69 :debug:main Privilege de-escalation not attempted as not running as root. \\
    70 :debug:main Skipping completed org.macports.destroot (pkgconfig) \\
    71 :debug:main Privilege de-escalation not attempted as not running as root. \\
    72 :debug:install install phase started at Tue Sep  8 14:45:38 BST 2015 \\
    73 :notice:install --->  Installing pkgconfig @0.28_0 \\
    74 :debug:install Can't run install on this port without elevated privileges. Escalating privileges back to root. \\
    75 :debug:install euid changed to: 0. egid changed to: 0. \\
    76 :debug:install Executing org.macports.install (pkgconfig) \\
    77 :debug:install Using /usr/bin/tar \\
    78 :debug:install Using /usr/bin/bzip2 \\
    79 :error:install org.macports.install for port pkgconfig returned: no destroot found at: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_pkgconfig/pkgconfig/work/destroot \\
    80 :debug:install Error code: NONE \\
    81 :debug:install Backtrace: no destroot found at: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_pkgconfig/pkgconfig/work/destroot \\
    82     while executing \\
    83 "create_archive $location $portarchivetype" \\
    84     (procedure "portinstall::install_main" line 22) \\
    85     invoked from within \\
    86 "portinstall::install_main org.macports.install" \\
    87     ("eval" body line 1) \\
    88     invoked from within \\
    89 "eval $procedure $targetname" \\
    90 :info:install Warning: targets not executed for pkgconfig: org.macports.activate org.macports.install \\
    91 :notice:install Please see the log file for port pkgconfig for details: \\
    92     /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_pkgconfig/pkgconfig/main.log \\
    93 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_pkgconfig/pkgconfig/main.log (END)  \\
    94 
     52{{{
     53version:1
     54:msg:clean --->  Computing dependencies for pkgconfig:msg:clean
     55:debug:clean pkgconfig has no conflicts
     56:debug:clean Searching for dependency: libiconv
     57:debug:clean Found Dependency: receipt exists for libiconv
     58:debug:main Executing org.macports.main (pkgconfig)
     59:debug:main changing euid/egid - current euid: 0 - current egid: 0
     60:debug:main egid changed to: 501
     61:debug:main euid changed to: 502
     62:debug:main Skipping completed org.macports.archivefetch (pkgconfig)
     63:debug:main Privilege de-escalation not attempted as not running as root.
     64:debug:main Skipping completed org.macports.fetch (pkgconfig)
     65:debug:main Privilege de-escalation not attempted as not running as root.
     66:debug:main Skipping completed org.macports.checksum (pkgconfig)
     67:debug:main Privilege de-escalation not attempted as not running as root.
     68:debug:main Skipping completed org.macports.extract (pkgconfig)
     69:debug:main Privilege de-escalation not attempted as not running as root.
     70:debug:main Skipping completed org.macports.patch (pkgconfig)
     71:debug:main Privilege de-escalation not attempted as not running as root.
     72:debug:main Skipping completed org.macports.configure (pkgconfig)
     73:debug:main Privilege de-escalation not attempted as not running as root.
     74:debug:main Skipping completed org.macports.build (pkgconfig)
     75:debug:main Privilege de-escalation not attempted as not running as root.
     76:debug:main Skipping completed org.macports.destroot (pkgconfig)
     77:debug:main Privilege de-escalation not attempted as not running as root.
     78:debug:install install phase started at Tue Sep  8 14:45:38 BST 2015
     79:notice:install --->  Installing pkgconfig @0.28_0
     80:debug:install Can't run install on this port without elevated privileges. Escalating privileges back to root.
     81:debug:install euid changed to: 0. egid changed to: 0.
     82:debug:install Executing org.macports.install (pkgconfig)
     83:debug:install Using /usr/bin/tar
     84:debug:install Using /usr/bin/bzip2
     85:error:install org.macports.install for port pkgconfig returned: no destroot found at: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_pkgconfig/pkgconfig/work/destroot
     86:debug:install Error code: NONE
     87:debug:install Backtrace: no destroot found at: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_pkgconfig/pkgconfig/work/destroot
     88    while executing
     89"create_archive $location $portarchivetype"
     90    (procedure "portinstall::install_main" line 22)
     91    invoked from within
     92"portinstall::install_main org.macports.install"
     93    ("eval" body line 1)
     94    invoked from within
     95"eval $procedure $targetname"
     96:info:install Warning: targets not executed for pkgconfig: org.macports.activate org.macports.install
     97:notice:install Please see the log file for port pkgconfig for details:
     98    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_pkgconfig/pkgconfig/main.log
     99/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_pkgconfig/pkgconfig/main.log (END)
     100}}}
    95101
    96102I have looked around on your ticket system for other similar issues but cannot seem to narrow any of them down to a particular remedy. \\
    97 I am hoping this is an easy enough one for you to remedy & point me in the right direction... \\
     103I am hoping this is an easy enough one for you to remedy & point me in the right direction...
    98104
    99105Thanks in advance \\
    100106Regards \\
    101 Jimbo :) \\
     107Jimbo :)