[MacPorts] #47755: poppler @0.32.0_0 Configure error

MacPorts noreply at macports.org
Mon May 18 06:48:11 PDT 2015


#47755: poppler @0.32.0_0 Configure error
-----------------------+----------------------
  Reporter:  lukasz@…  |      Owner:  devans@…
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.3.3
Resolution:            |   Keywords:
      Port:  poppler   |
-----------------------+----------------------

Comment (by devans@…):

 I was a bit confused at first by the discussion here but after some
 experimentation I was able to reproduce the error.

 Restating the situation:

 The configuration error here is due to the fact that, at the point of
 failure, a broken symlink is installed in /opt/local/share/aclocal which
 aclocal will not tolerate.  The result is that any port, not just poppler,
 that uses aclocal (typically invoked by autoreconf) in the configuration
 process will fail.

 In this case, the symlink in question is
 {{{
 $ ls -l /opt/local/share/aclocal/wxwin.m4
 lrwxr-xr-x  1 root  admin  95 May 18 06:15
 /opt/local/share/aclocal/wxwin.m4 ->
 /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/share/aclocal/wxwin.m4
 }}}

 which is typically created by the commands
 {{{
 $ sudo port install wxWidgets-3.0
 $ sudo port select wxWidgets wxWidgets-3.0
 }}}

 or

 {{{
 $ sudo port install wxWidgets-2.8
 $ sudo port select wxWidgets wxWidgets-2.8
 }}}

 At this point deactivating the target port will break the symlink.

 The following command sequence will recreate the reported issue

 {{{
 $ sudo port install wxWidgets-3.0
 $ sudo port select wxWidgets wxWidgets-3.0
 $ sudo port deactivate wxWidgets-3.0
 }}}

 As reported removing the broken symlink will heal the problem. Rather than
 doing this manually
 I would suggest just deselecting the deactivated port.


 {{{
 $ sudo port select wxWidgets none
 }}}

 It's interesting to note that this command will now appear to fail as
 follows
 {{{
 Selecting 'none' for 'wxWidgets' failed: symlink:
 /opt/local/etc/select/wxWidgets/current -> none: file already exists
 }}}
 but the symlink is, in fact, removed.  It appears that the 'port select'
 code is smart enough to set its selection to none when the selected port
 is deactivated but not smart enough to actually remove the symlinks
 associated with the old selection.

-- 
Ticket URL: <https://trac.macports.org/ticket/47755#comment:8>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list