Help with conjoined apaches

Bradley Giesbrecht pixilla at macports.org
Sun Apr 29 16:28:35 PDT 2012


On Apr 28, 2012, at 8:00 PM, Jeremy Lavergne wrote:

>> None of these files are provided by MacPorts and files provided by apache2 and mysql5 are missing so somehow apache2 and mysql5 were most likely uninstalled by port.
>> 
>> Do you try to do a forced upgrade apache2 and mysql5 that failed? I think that would have uninstalled apache2 and mysql5 before building and installing.
> 
> I'd check the code for that one; pretty sure uninstall should never happen until immediately before activate (unless the port itself commands otherwise).

I have done force upgrades several times recently and I seem to recall that the active port is force uninstalled before its replacement is built. I was on a live server and remembered thinking how unfortunate this is.

Here is a quick test with bash-completion showing uninstall happening first:

$ sudo port clean --all bash-completion
--->  Cleaning bash-completion
$ port installed bash-completion
The following ports are currently installed:
  bash-completion @1.3_4
  bash-completion @1.3_5 (active)
$ sudo port -s upgrade --force bash-completion
--->  Cleaning bash-completion
--->  Unable to uninstall bash-completion @1.3_5, the following ports depend on it:
--->  	git-core @1.7.9.2_0+bash_completion+doc+pcre+python27
--->  	git-core @1.7.9.4_0+bash_completion+credential_osxkeychain+doc+pcre+python27
--->  	git-core @1.7.9.5_0+bash_completion+credential_osxkeychain+doc+pcre+python27
--->  	mercurial @2.1_0+bash_completion
--->  	mercurial @2.1.2_0+bash_completion
--->  	subversion @1.7.3_1+bash_completion
--->  	subversion @1.7.4_0+bash_completion
Warning: Uninstall forced.  Proceeding despite dependencies.
--->  Deactivating bash-completion @1.3_5
--->  Unable to deactivate bash-completion @1.3_5, the following ports depend on it:
--->  	git-core @1.7.9.5_0+bash_completion+credential_osxkeychain+doc+pcre+python27
--->  	mercurial @2.1.2_0+bash_completion
--->  	subversion @1.7.4_0+bash_completion
Warning: Deactivate forced.  Proceeding despite dependencies.
--->  Cleaning bash-completion
--->  Uninstalling bash-completion @1.3_5
--->  Cleaning bash-completion
--->  Fetching distfiles for bash-completion
--->  Attempting to fetch bash-completion-1.3.tar.bz2 from http://distfiles.macports.org/bash-completion
--->  Verifying checksum(s) for bash-completion
--->  Extracting bash-completion
--->  Applying patches to bash-completion
--->  Configuring bash-completion
--->  Building bash-completion
--->  Staging bash-completion into destroot
--->  Installing bash-completion @1.3_5
--->  Activating bash-completion @1.3_5

To use bash_completion, add the following lines at the end of your .bash_profile:
  if [ -f /opt/local/etc/bash_completion ]; then
      . /opt/local/etc/bash_completion
  fi

--->  Cleaning bash-completion
--->  Updating database of binaries: 100.0%
--->  Scanning binaries for linking errors: 100.0%
--->  No broken files found.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2763 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20120429/1eee939d/attachment.bin>


More information about the macports-users mailing list