[MacPorts] #54620: Problems upgrading outdated ports/Installing new ports

MacPorts noreply at macports.org
Wed Aug 16 18:03:58 UTC 2017


#54620: Problems upgrading outdated ports/Installing new ports
----------------------+-----------------
  Reporter:  wnukk14  |      Owner:
      Type:  update   |     Status:  new
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:
Resolution:           |   Keywords:
      Port:           |
----------------------+-----------------

Old description:

> Hey Everyone,
>
> So I have the dreaded mac ports update bug. I have recently updated my
> software (From Yosemite...) on my 2014 macbook pro, and yesterday I did a
> port self update, but when I tried port upgrade outdated, I ran into two
> main issues (which may or may not be related).
>
> The first has to do with py34-numpy, which is preventing me from
> installing any new ports. Every time I try to install a port (almost any
> port) I get this runaround:
>
> sudo port install autoconf
> Password:
> --->  Computing dependencies for autoconf
> --->  Cleaning autoconf
> --->  Scanning binaries for linking errors
> --->  Found 48 broken files, matching files to ports
> --->  Found 2 broken ports, determining rebuild order
> You can always run 'port rev-upgrade' again to fix errors.
> The following ports will be rebuilt:
>  py34-h5py @2.5.0
>  py34-isce @2.0.0+gcc48
> Continue? [Y/n]: y
> --->  Computing dependencies for py34-numpy
> --->  Fetching distfiles for py34-numpy
> Error: Failed to fetch py34-numpy: must set at least one Fortran variant
> (e.g. +gfortran, +gccX, +g95)
> Error: See
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports
> .org_release_tarballs_ports_python_py-numpy/py34-numpy/main.log for
> details.
> Error: rev-upgrade failed: Error rebuilding py34-h5py
>
> and the log file doesn't really have any additional information... I've
> never seen the Fortran variant issue before, and I think I have almost
> every fortran variant installed, so I'm not sure how to address the
> issue.
>
> The second issue occurs whenever I try to upgrade an outdated port. I get
> an error message:
>
> sudo port upgrade outdated
> Error: process_cmd failed: can't use empty string as operand of "-"
>
> Which I have never seen before and also have no idea how to address.
>
> I've tried cleaning and several other options, but I can't find a way
> around these issues. Any ideas for something I could try? Let me know if
> you need any additional information. Thanks for you time.
>
> -Kendall

New description:

 Hey Everyone,

 So I have the dreaded mac ports update bug. I have recently updated my
 software (From Yosemite...) on my 2014 macbook pro, and yesterday I did a
 port self update, but when I tried port upgrade outdated, I ran into two
 main issues (which may or may not be related).

 The first has to do with py34-numpy, which is preventing me from
 installing any new ports. Every time I try to install a port (almost any
 port) I get this runaround:

 {{{
 sudo port install autoconf
 Password:
 --->  Computing dependencies for autoconf
 --->  Cleaning autoconf
 --->  Scanning binaries for linking errors
 --->  Found 48 broken files, matching files to ports
 --->  Found 2 broken ports, determining rebuild order
 You can always run 'port rev-upgrade' again to fix errors.
 The following ports will be rebuilt:
  py34-h5py @2.5.0
  py34-isce @2.0.0+gcc48
 Continue? [Y/n]: y
 --->  Computing dependencies for py34-numpy
 --->  Fetching distfiles for py34-numpy
 Error: Failed to fetch py34-numpy: must set at least one Fortran variant
 (e.g. +gfortran, +gccX, +g95)
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports
 .org_release_tarballs_ports_python_py-numpy/py34-numpy/main.log for
 details.
 Error: rev-upgrade failed: Error rebuilding py34-h5py
 }}}

 and the log file doesn't really have any additional information... I've
 never seen the Fortran variant issue before, and I think I have almost
 every fortran variant installed, so I'm not sure how to address the issue.

 The second issue occurs whenever I try to upgrade an outdated port. I get
 an error message:

 {{{
 sudo port upgrade outdated
 Error: process_cmd failed: can't use empty string as operand of "-"
 }}}

 Which I have never seen before and also have no idea how to address.

 I've tried cleaning and several other options, but I can't find a way
 around these issues. Any ideas for something I could try? Let me know if
 you need any additional information. Thanks for you time.

 -Kendall

--

Comment (by ryandesign):

 Remember to use WikiFormatting when writing in Trac.

 You said you upgraded your software from Yosemite... to a newer OS
 version, such as Sierra, I presume? If so, did you follow the
 [wiki:Migration migration instructions]? If not, please do.

 The first error explains itself. You must select one of the available
 Fortran variants when you install pyXX-numpy.

 The second error is unfamiliar to me as well. Does it also happen when you
 upgrade specific individual ports, or only when you try to upgrade all
 outdated ports?

--
Ticket URL: <https://trac.macports.org/ticket/54620#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list