[MacPorts] #43404: Circural dependency between gmp and mpfr
#43404: Circural dependency between gmp and mpfr ---------------------+-------------------------------- Reporter: zulus@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: | Port: gmp ---------------------+-------------------------------- GMP require MPFR MPFR require GMP so I'm unable to install ImageMagick -- Ticket URL: <https://trac.macports.org/ticket/43404> MacPorts <http://www.macports.org/> Ports system for OS X
#43404: gawk links with mpfr but doesn't declare a dependency on it ----------------------+---------------------------- Reporter: zulus@… | Owner: mschamschula@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: gawk | ----------------------+---------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => mschamschula@… * cc: ryandesign@… (added) * port: gmp => gawk Comment: gmp does not require mpfr; gmp has no dependencies at all: {{{ $ port deps gmp gmp @6.0.0_0 has no dependencies. }}} The error I see in the log is: {{{ :info:configure dyld: Library not loaded: /opt/local/lib/libmpfr.4.dylib :info:configure Referenced from: /opt/local/bin/gawk :info:configure Reason: image not found }}} So gmp, like most other ports with a configure script, uses an awk program. In this case, it detected that you have the gawk port installed, and decided to use that. gawk is linked with mpfr on your system (as I see it is on my system), but the mpfr library is missing. It turns out that gawk does not declare a dependency on mpfr: {{{ $ port deps gawk Full Name: gawk @4.1.0_0 Extract Dependencies: xz Library Dependencies: readline, gettext }}} This dependency needs to be added, and the revision increased. -- Ticket URL: <https://trac.macports.org/ticket/43404#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#43404: gawk links with mpfr but doesn't declare a dependency on it ----------------------+---------------------------- Reporter: zulus@… | Owner: mschamschula@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: fixed | Keywords: Port: gawk | ----------------------+---------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => fixed Comment: Replying to [comment:1 ryandesign@…]:
It turns out that gawk does not declare a dependency on mpfr:
{{{ $ port deps gawk Full Name: gawk @4.1.0_0 Extract Dependencies: xz Library Dependencies: readline, gettext }}}
This dependency needs to be added, and the revision increased.
I added the dependency in r119178. A new version of gawk was available, so I updated the port to that version. You should wait 30 minutes, then run: {{{ sudo port clean gawk gmp mpfr sudo port selfupdate sudo port -f deactivate gawk sudo port -u upgrade gawk }}} That should take care of it. -- Ticket URL: <https://trac.macports.org/ticket/43404#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#43404: gawk links with mpfr but doesn't declare a dependency on it ----------------------+---------------------------- Reporter: zulus@… | Owner: mschamschula@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: fixed | Keywords: Port: gawk | ----------------------+---------------------------- Comment (by cal@…): Can we instead prevent gawk from linking with gmp and mpfr and avoid the dependency? I really don't think we need arbitrary precision arithmetics in gawk and it adds a dependency a lot of people will have to install. -- Ticket URL: <https://trac.macports.org/ticket/43404#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#43404: gawk links with mpfr but doesn't declare a dependency on it ----------------------+---------------------------- Reporter: zulus@… | Owner: mschamschula@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: fixed | Keywords: Port: gawk | ----------------------+---------------------------- Comment (by egall@…): Replying to [comment:3 cal@…]:
Can we instead prevent gawk from linking with gmp and mpfr and avoid the dependency? I really don't think we need arbitrary precision arithmetics in gawk and it adds a dependency a lot of people will have to install.
How about making it a variant? I agree that since gawk is usually one of the first ports that I install on a new install of MacPorts, I would also prefer that its dependency list be kept short, but only for the first time that I install it. After I have my normal list of ports installed, it might be nice to then be able to experiment with gawk's gmp/mpfr support by installing it with a new variant. -- Ticket URL: <https://trac.macports.org/ticket/43404#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#43404: gawk links with mpfr but doesn't declare a dependency on it ----------------------+---------------------------- Reporter: zulus@… | Owner: mschamschula@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: fixed | Keywords: Port: gawk | ----------------------+---------------------------- Comment (by mschamschula@…): I agree. So now mpfr (and gmp as dependancy) is an optional variant. -- Ticket URL: <https://trac.macports.org/ticket/43404#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#43404: gawk links with mpfr but doesn't declare a dependency on it ----------------------+---------------------------- Reporter: zulus@… | Owner: mschamschula@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: fixed | Keywords: Port: gawk | ----------------------+---------------------------- Comment (by ryandesign@…): r119197 -- Ticket URL: <https://trac.macports.org/ticket/43404#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts