Changes between Version 4 and Version 5 of ProblemHotlist


Ignore:
Timestamp:
Oct 18, 2006, 12:51:56 AM (18 years ago)
Author:
markd@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ProblemHotlist

    v4 v5  
    11= Problem Hotlist =
    22
    3 == 1. A port failed to build or upgrade and quit with this message: ==
     3== 1. A port failed to build, upgrade, or quit with message referring to lbintl.3.dylib ==
    44
    55{{{
     
    88The gettext port was recently updated from 0.14.x to 0.15.x. If you upgrade gettext on your Mac all ports that depend upon gettext will need to be rebuilt, which may be quite a few ports.
    99
    10 This command may do the trick:
     10Here is a script that can help you determine what ports you have installed that depend on gettext.
     11
    1112{{{
    12 port -fR upgrade gettext
     13#!/bin/bash
     14for file in `find /opt/local/lib -name *.dylib`; do
     15  # Skip this match if it's a symbolic link
     16  if [[ ! -h $file ]]; then
     17    # Look for references to the missing library
     18    otool -L $file | grep --silent $1
     19    if [[ "$?" == "0" ]]; then
     20      port provides `echo $file`
     21    fi
     22  fi
     23# Grab the name of the port and make sure to list each port just once
     24done | awk -F: ' { print $2 } ' | sort | uniq
    1325}}}
    14 If not, you'll have to determine which ports depend upon gettext manually and uninstall and reinstall each of them.
     26
     27Now you’ve got a list of ports you need to fix.  Force uninstall each of these ports and remove their archives.
     28{{{
     29port uninstall -f <port>
     30port clean --archive <port>
     31}}}
     32
     33Once that’s done, force an install of each one.
     34{{{
     35port install -f <port>
     36}}}
     37If you’ve got old nonactivated versions of the port hanging around, you'll need to emove the old versions first.  You may remove all old versions this way.
     38{{{
     39port -duf uninstall
     40}}}