なんだこれは

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

なんかめんどい気がしないでもない

MacPortでバージョンが古いのをUpしたかった。

とりあえず、リストみてみる。

$ sudo port outdated
The following installed ports are outdated:
xorg-libXext                   1.0.5_1 < 1.0.99.4_1      
xorg-xextproto                 7.0.5_0 < 7.1.0_0         

じゃあ、インストールしよっか

$ sudo port install outdated

Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_xorg-libXext/work/libXext-1.0.99.4" && ./configure --prefix=/opt/local " returned error 1
Command output: checking for /usr/bin/gcc-4.0 option to produce PIC... -fno-common -DPIC
checking if /usr/bin/gcc-4.0 PIC flag -fno-common -DPIC works... yes
checking if /usr/bin/gcc-4.0 static flag -static works... no
checking if /usr/bin/gcc-4.0 supports -c -o file.o... yes
checking if /usr/bin/gcc-4.0 supports -c -o file.o... (cached) yes
checking whether the /usr/bin/gcc-4.0 linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin9.8.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc... (cached) /usr/bin/gcc-4.0
checking whether we are using the GNU C compiler... (cached) yes
checking whether /usr/bin/gcc-4.0 accepts -g... (cached) yes
checking for /usr/bin/gcc-4.0 option to accept ISO C89... (cached) none needed
checking dependency style of /usr/bin/gcc-4.0... (cached) gcc3
checking for pkg-config... /opt/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for XEXT... configure: error: Package requirements (xproto >= 7.0.13 x11 >= 1.1.99.1 xextproto >= 7.0.99.2) were not met:

Requested 'xextproto >= 7.0.99.2' but version of XExtProto is 7.0.5

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables XEXT_CFLAGS
and XEXT_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.


Error: Status 1 encountered during processing.

あれ〜?
つーわけで入れてみた


とりあえず、xext-protoが古いらしい(XExtProto 7.0.99.2 以上が欲しい)
ってそれインストールする順番が逆なだけじゃないか?

xextprotoをsearchして、それの正式名からvariantsみてみたけど何もないので、普通に入れてみた。

$ sudo port install xorg-xextproto
--->  Fetching xorg-xextproto
--->  Attempting to fetch xextproto-7.1.0.tar.bz2 from http://distfiles.macports.org/xorg-xextproto
--->  Verifying checksum(s) for xorg-xextproto
--->  Extracting xorg-xextproto
--->  Configuring xorg-xextproto
--->  Building xorg-xextproto
--->  Staging xorg-xextproto into destroot
--->  Installing xorg-xextproto @7.1.0_0
--->  Activating xorg-xextproto @7.1.0_0
Error: Target org.macports.activate returned: Image error: Another version of this port (xorg-xextproto @7.0.5_0) is already active.
Error: Status 1 encountered during processing.

あら、前のがはいってるって

sudo port deactivate xorg-xextproto@7.0.5_0

でもう一回installしておk(だってこうするとactivateとcleanができるから)

どうように xorg-libXextも

$ sudo port install  xorg-libXext
--->  Configuring xorg-libXext
--->  Building xorg-libXext
--->  Staging xorg-libXext into destroot
--->  Installing xorg-libXext @1.0.99.4_1
--->  Activating xorg-libXext @1.0.99.4_1
Error: Target org.macports.activate returned: Image error: Another version of this port (xorg-libXext @1.0.5_1) is already active.
Error: Status 1 encountered during processing.
$ sudo port deactivate xorg-libXext@1.0.5_1
--->  Deactivating xorg-libXext @1.0.5_1
$ sudo port install  xorg-libXext
--->  Activating xorg-libXext @1.0.99.4_1
--->  Cleaning xorg-libXext