fu7mu4’s diary

はてなダイアリーから移転しました。

obsolete package の CarbonHeaders、更新失敗したので削除してみた

macports の CarbonHeaders の更新があったのだが、sudo port upgarade CarbonHeadersすると、失敗した。エラーによるといらない子(obsolete)らしいので削除してみた。

The following installed ports are outdated:
CarbonHeaders 18.1_2 < 18.1_3

sudo port -d upgrade outdated

DEBUG: Copying /Users/fu7mu4/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: CarbonHeaders 18.1_3 exists in the ports tree
DEBUG: CarbonHeaders 18.1_2 is the latest installed
DEBUG: CarbonHeaders 18.1_2 is active
DEBUG: Merging existing variants '' into variants
DEBUG: new fully merged portvariants:
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/CarbonHeaders
DEBUG: OS darwin/14.0.0 (Mac OS X 10.10) arch i386
DEBUG: Sourcing PortGroup obsolete 1.0 from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/obsolete-1.0.tcl
DEBUG: only one arch supported, so not adding the default universal variant
DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: changing euid/egid - current euid: 0 - current egid: 0
DEBUG: egid changed to: 504
DEBUG: euid changed to: 507
DEBUG: Starting logging for CarbonHeaders
DEBUG: CarbonHeaders has no conflicts
DEBUG: Executing org.macports.main (CarbonHeaders)
DEBUG: changing euid/egid - current euid: 0 - current egid: 0
DEBUG: egid changed to: 504
DEBUG: euid changed to: 507
DEBUG: Skipping completed org.macports.archivefetch (CarbonHeaders)
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: Skipping completed org.macports.fetch (CarbonHeaders)
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: Skipping completed org.macports.checksum (CarbonHeaders)
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: Skipping completed org.macports.extract (CarbonHeaders)
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: Skipping completed org.macports.patch (CarbonHeaders)
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: configure phase started at Sat Jan 17 15:22:08 JST 2015
---> Configuring CarbonHeaders
DEBUG: Using compiler 'Xcode Clang'
DEBUG: Executing proc-pre-org.macports.configure-configure-0
Error: CarbonHeaders is an obsolete port. Please uninstall it.
Error: org.macports.configure for port CarbonHeaders returned: obsolete port
DEBUG: Error code: NONE
DEBUG: Backtrace: obsolete port
while executing
"proc-pre-org.macports.configure-configure-0 org.macports.configure"
("eval" body line 1)
invoked from within
"eval $pre $targetname"
Warning: targets not executed for CarbonHeaders: org.macports.install org.macports.configure org.macports.build org.macports.destroot
Please see the log file for port CarbonHeaders for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_CarbonHeaders/CarbonHeaders/main.log
DEBUG: invalid command name "::ui_init"
while executing
"::ui_init any stdout"
("eval" body line 1)
invoked from within
"eval ::ui_init $priority $prefix $channels($priority) $args"
("uplevel" body line 2)
invoked from within
"uplevel 1 $body"
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets

よくみると CarbonHeaders は obsolete らしい。なんで更新でてるんだろう?

Error: CarbonHeaders is an obsolete port. Please uninstall it.
Error: org.macports.configure for port CarbonHeaders returned: obsolete port

macportsには、Remove ports: xnu-headers, libc-headers, libm-headers, and CarbonHeadersこんな記事あるしなー。

じゃあ、いらない子なのかな、削除してみよう。
あとで必要になったら依存関係でインストールされるから気軽に削除しているのだ。

sudo port deactivate CarbonHeaders
sudo port uninstall CarbonHeaders

---> Unable to uninstall CarbonHeaders @18.1_2, the following ports depend on it:
---> libunwind-headers @35.3_0
Error: port uninstall failed: Please uninstall the ports that depend on CarbonHeaders first.

おっと依存関係ありでしたか。追跡調査してみよう。

sudo port dependents libunwind-headers

libunwind-headers has no dependents.

依存関係は CarbonHeaders -> libunwind-headers だけみたいなので、下から削除すればOKですね。

sudo port deactivate libunwind-headers
sudo port uninstall libunwind-headers
sudo port uninstall CarbonHeaders