How to really uninstall a failed port?

Bradley Giesbrecht pixilla at macports.org
Sun Apr 22 09:07:54 PDT 2012


On Apr 22, 2012, at 5:28 AM, Thomas wrote:

> Dear list,
> I have tried for hours to install py26-pyqt4 and am now stuck with the failure to build qt4-mac. After hours of compiling and filling 4 (!) GB on my disk, this is where it fails:
> 
> :debug:main Skipping completed org.macports.build (qt4-mac)
> :debug:main Privilege de-escalation not attempted as not running as root.
> :debug:main Skipping completed org.macports.destroot (qt4-mac)
> :debug:main Privilege de-escalation not attempted as not running as root.
> :debug:install install phase started at Sun Apr 22 13:32:55 CEST 2012
> :notice:install --->  Installing qt4-mac @4.7.4_1+quartz
> :debug:install Can't run install on this port without elevated privileges. Escal
> ating privileges back to root.
> :debug:install euid changed to: 0. egid changed to: 0.
> :debug:install Executing org.macports.install (qt4-mac)
> :error:install Target org.macports.install returned: 
> gzip: stdin: unexpected end of file

Port archives the package files and then installs from this archive, and unfortunately it looks like the archive.


I think this command will show you where this archive is located.
$ port location qt4-mac
/opt/local/var/macports/software/qt4-mac/qt4-mac-4.7.4_1+quartz.darwin_10.x86_64.tbz2


Since qt4-mac takes a while to build you may want to look at the archive and verify that it is really invalid.
$ du -h /opt/local/var/macports/software/qt4-mac/qt4-mac-4.7.4_1+quartz.darwin_10.x86_64.tbz2
165M	/opt/local/var/macports/software/qt4-mac/qt4-mac-4.7.4_1+quartz.darwin_10.x86_64.tbz2
$ tar jtvf /opt/local/var/macports/software/qt4-mac/qt4-mac-4.7.4_1+quartz.darwin_10.x86_64.tbz2
drwxr-xr-x  0 root   wheel       0 Mar  3 16:27 ./
-rw-r--r--  0 root   wheel      12 Mar  3 16:27 ./+COMMENT
-rw-r--r--  0 root   wheel 1340898 Mar  3 16:28 ./+CONTENTS
-rw-r--r--  0 root   wheel     149 Mar  3 16:27 ./+DESC
...

If you want to remove the file this command should do it:
$ sudo port uninstall qt4-mac


Regards,
Bradley Giesbrecht (pixilla)

-------------- 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/20120422/08964f45/attachment.bin>


More information about the macports-users mailing list