アップデートの概要 11.10 to 12.00
・tdm/mingwをバージョンアップ
・上記に伴いEmacs24.3を再コンパイル
・UTF-8を使うように変更
・Cygwinパッケージを追加
・上記に伴い全体のサイズが約650MB(11.10)→1,100MB(12.00)と増加
ダウンロードはこちらから(DL数カウントのため google shortener経由にしました。実態はDropboxへ配置)
gnupack_devel-12.00-unofficial.exe
アップデートの詳細
デフォルト言語をUTF-8へ変更
/root/config.ini
;LANG = ja_JP.cp932 LANG = ja_JP.UTF-8
/home/.minttyrc
Locale=ja_JP Charset=UTF-8
/home/.vimrc
set encoding=utf-8 "set encoding=cp932
テンポラリ領域を gnupack フォルダ配下へ
/root/config.ini
;TEMP = %TEMP%\gnupack ;TMP = %TMP%\gnupack TEMP = %INST_DIR%\temporary\temp TMP = %INST_DIR%\temporary\tmp
マウントポイントを追加
/root/config.ini
mount_point7 = %INST_DIR%\opt;/opt ;ntfs ;binary,nouser,noacl,posix=0;
PATHの追加
/root/config.ini
PATH = %PATH%;%INST_DIR%\opt\bin
追加パッケージのインストール
# apt-cyg install ImageMagick aspell aspell-en bash-completion dos2unix gcc4-core git git-completion git-review p7zip w3m w3m-img binutils curl python python-setuptools
コンパイル済みソフトウェアの追加(cygwin - gcc コンパイル)
sary - http://sary.sourceforge.net/sary-1.2.0.tar.gz
/opt/bin/sary.exe
/opt/bin/mksary.exe
tdmをバージョンアップ
# mingw32-gcc --version mingw32-gcc.exe (tdm-1) 4.7.1 ↓ # mingw32-gcc --version mingw32-gcc.exe (GCC) 4.7.2
Emacsの再ビルド
# cd /tmp # ls -1 emacs-24.3.tar.gz emacs-24.3-ime-2013-05-03.patch.tar.gz emacs-icon-2011-08-15.tar.gz # tar zxf emacs-24.3.tar.gz # tar zxf emacs-24.3-ime-2013-05-03.patch.tar.gz # tar zxf emacs-icon-2011-08-15.tar.gz # cp ../emacs.ico nt/icons # patch -b -p1 < ../emacs-24.3-ime-2013-05-03.patch
エラーが出た場合
Hunk #1 FAILED at 1. 1 out of 1 hunk FAILED -- saving rejects to file nt/configure.bat.rej
configure.bat の改行コードがWindowsのため失敗している。
# dos2unix nt/configure.bat # patch -l -p0 < nt/configure.bat.rej
# cd nt # ./configure.bat \ --no-debug --with-gcc --enable-w32-ime --with-svg \ --cflags -O3 \ --cflags -mthreads \ --cflags -DRECONVERSION \ --cflags -DDOCUMENTFEED \ --cflags " -DIMR_DOCUMENTFEED=7" \ --cflags -DCMIGEMO \ --cflags -IC:/temp/gnupack_devel-12.00/app/libs/gnome-binaries-win32/include \ --ldflags -LC:/temp/gnupack_devel-12.00/app/libs/gnome-binaries-win32/lib \ --cflags -IC:/temp/gnupack_devel-12.00/app/libs/gnutls/include \ --ldflags -LC:/temp/gnupack_devel-12.00/app/libs/gnutls/lib \ --cflags -IC:/temp/gnupack_devel-12.00/app/libs/gnuwin32/include \ --ldflags -LC:/temp/gnupack_devel-12.00/app/libs/gnuwin32/lib \ --cflags -IC:/temp/gnupack_devel-12.00/app/libs/libxpm/include \ --ldflags -LC:/temp/gnupack_devel-12.00/app/libs/libxpm/lib # mingw32-make bootstrap # mingw32-make install INSTALL_DIR=/c/temp/emacs-24.3-2014-05-03
DLLファイルをコピー
# for i in `find /c/temp/gnupack_devel-12.00/app/libs |grep .dll$`; do cp $i /c/temp/emacs-24.3-2014-05-03/bin/ ; done
Emacsの構成ファイルを init-loader 管理下へ変更
オリジナルファイルは /home/.emacs.d/init.el.org に保存。
~/.emacs.d/inits へ分割したファイルを配置
~/.emacs.d/site-lisp へ以下の追加 elisp を配置
dabbrev-highlight.el
http://www.namazu.org/~tsuchiya/elisp/dabbrev-highlight.el
dabbrev-ja.el
http://namazu.org/~tsuchiya/elisp/dabbrev-ja.el
init-loader.el
https://github.com/emacs-jp/init-loader
lcomp.el
http://www.emacswiki.org/emacs/lcomp.el
mcomplete.el
http://homepage1.nifty.com/bmonkey/emacs/elisp/mcomplete.el
undohist.el
http://cx4a.org/pub/undohist.el
undo-tree.el
http://www.emacswiki.org/emacs/UndoTree
Cygwinパッケージ詳細
# cygcheck -c `apt-cyg show |sort` The following packages are installed: Cygwin Package Information Package Version Status _autorebase 000541-1 OK _update-info-dir 01226-1 OK alternatives 1.3.30c-10 OK ascii 3.12-1 OK aspell 0.60.6.1-2 OK aspell-en 7.1.0-2 OK base-cygwin 3.3-1 OK base-files 4.2-2 OK bash 4.1.10-4 OK bash-completion 1.3-1 OK bc 1.06-2 OK binutils 2.24.51-2 OK bzip2 1.0.6-2 OK ca-certificates 1.97-1 OK compface 1.5.2-12 OK coreutils 8.15-1 OK cpio 2.11-2 OK crypt 1.2-1 OK csih 0.9.7-1 OK ctags 5.8-1 OK curl 7.36.0-1 OK cvs 1.12.13-10 OK cvsps 2.2b1-1 OK cygrunsrv 1.50-1 OK cygutils 1.4.14-1 OK cygwin 1.7.29-2 OK dash 0.5.7-1 OK diffutils 3.2-1 OK dos2unix 6.0.5-1 OK editrights 1.01-2 OK expect 5.45-1 OK file 5.18-1 OK findutils 4.5.12-1 OK gamin 0.1.10-14 OK gawk 4.1.1-1 OK gcc-core 4.8.2-2 OK gcc4-core 4.7.3-2 OK getent 2.18.90-1 OK git 1.7.9-1 OK git-completion 1.7.9-1 OK git-review 1.23-1 OK gnupg 1.4.16-1 OK grep 2.16-1 OK groff 1.22.2-2 OK gsettings-desktop-schemas 3.10.1-1 OK gzip 1.4-1 OK ImageMagick 6.7.6.3-3 OK inetutils 1.9.1-2 OK inetutils-server 1.9.1-2 OK ipc-utils 1.0-1 OK less 444-1 OK libargp 20110921-2 OK libasn1_8 1.5.3-1 OK libaspell15 0.60.6.1-2 OK libatomic1 4.8.2-2 OK libattr1 2.4.46-1 OK libautotrace3 0.31.1-12 OK libblkid1 2.21.2-1 OK libbz2_1 1.0.6-2 OK libcairo2 1.12.16-1 OK libcloog-isl4 0.18.0-2 OK libcom_err2 1.42.7-1 OK libcompface0 1.5.2-12 OK libcroco0.6_3 0.6.8-1 OK libcurl4 7.36.0-1 OK libdatrie1 0.2.6-1 OK libdb4.5 4.5.20.2-3 OK libdb4.8 4.8.30-1 OK libedit0 20130712-1 OK libEMF1 1.0.7-2 OK libexpat1 2.1.0-3 OK libfam0 0.1.10-14 OK libffi4 4.5.3-3 OK libffi6 3.0.13-1 OK libfftw3_3 3.3.4-1 OK libfontconfig1 2.10.93-1 OK libfpx1 1.3.1.2-1 OK libfreetype6 2.5.3-1 OK libgc1 7.2d-1 OK libgcc1 4.8.2-2 OK libgd2 2.0.36RC1-13 OK libgdbm4 1.8.3-20 OK libgdk_pixbuf2.0_0 2.30.4-1 OK libgdk_pixbuf_xlib2.0_0 2.30.4-1 OK libgif4 4.1.6-10 OK libglib2.0_0 2.38.2-2 OK libgmp10 6.0.0a-1 OK libgmp3 4.3.2-1 OK libgnutls28 3.2.4-1 OK libgomp1 4.8.2-2 OK libgraphite2_3 1.2.3-1 OK libgs9 9.10-1 OK libgssapi3 1.5.3-1 OK libharfbuzz0 0.9.25-1 OK libheimbase1 1.5.3-1 OK libheimntlm0 1.5.3-1 OK libhogweed2 2.7-1 OK libhx509_5 1.5.3-1 OK libICE6 1.0.8-1 OK libiconv2 1.14-2 OK libicu48 4.8.1-1 OK libidn11 1.26-1 OK libintl8 0.18.1.1-2 OK libisl10 0.11.1-2 OK libjasper1 1.900.1-12 OK libjbig2 2.0-12 OK libjpeg8 8b-1 OK libkafs0 1.5.3-1 OK libkrb5_26 1.5.3-1 OK liblcms2_2 2.5-1 OK libltdl7 2.4-1 OK liblzma5 5.0.2_20110517-1 OK liblzo2_2 2.06-1 OK libMagickCore5 6.7.6.3-3 OK libmetalink3 0.1.2-1 OK libming1 0.4.5-1 OK libmpc3 1.0.2-1 OK libmpfr4 3.1.2-1 OK libncurses10 5.7-18 OK libncurses9 5.7-16 OK libncursesw10 5.7-18 OK libnettle4 2.7-1 OK libopenldap2_4_2 2.4.35-2 OK libopenssl098 0.9.8y-1 OK libopenssl100 1.0.1g-1 OK libp11-kit0 0.20.2-1 OK libpango1.0_0 1.36.3-1 OK libpaper-common 1.1.24-2 OK libpaper1 1.1.24-2 OK libpcre0 8.21-2 OK libpcre1 8.34-1 OK libpixman1_0 0.32.4-1 OK libplotter2 2.6-3 OK libpng14 1.4.12-3 OK libpng15 1.5.12-1 OK libpopt0 1.16-1 OK libpstoedit0 3.62-1 OK libreadline6 5.2.14-12 OK libreadline7 6.1.2-3 OK libroken18 1.5.3-1 OK librsvg2_2 2.40.1-1 OK libsasl2_3 2.1.26-6 OK libSM6 1.2.2-1 OK libsqlite3_0 3.8.4.3-1 OK libssh2_1 1.4.2-1 OK libssp0 4.8.2-2 OK libstdc++6 4.8.2-2 OK libtasn1_6 3.3-1 OK libthai0 0.1.19-1 OK libtiff5 3.9.7-1 OK libusb-win32 1.2.6.0-1 OK libusb0 1.2.6.0-1 OK libuuid1 2.21.2-1 OK libwind0 1.5.3-1 OK libwrap0 7.6-22 OK libX11_6 1.6.2-1 OK libXau6 1.0.8-1 OK libXaw7 1.0.12-1 OK libxcb-render0 1.9.1-2 OK libxcb-shm0 1.9.1-2 OK libxcb1 1.9.1-2 OK libXdmcp6 1.1.1-1 OK libXext6 1.3.2-1 OK libXft2 2.3.1-1 OK libxml2 2.9.1-1 OK libXmu6 1.1.2-1 OK libXpm4 3.5.11-1 OK libXrender1 0.9.8-1 OK libXt6 1.1.4-1 OK login 1.10-10 OK lv 4.51-1 OK make 4.0-2 OK man 1.6g-2 OK mintty 1.1.3-1 OK ncurses 5.7-18 OK openssh 6.6.1p1-1 OK p11-kit 0.20.2-1 OK p11-kit-trust 0.20.2-1 OK p7zip 9.20.1-1 OK patch 2.7.1-1 OK perl 5.14.2-3 OK perl-Error 0.17016-1 OK perl-libwin32 0.28-3 OK perl-Win32-GUI 1.06-4 OK perl-XML-Simple 2.20-1 OK perl_vendor 5.14.2-3 OK ping 1.0-1 OK popt 1.16-1 OK procps 3.2.8-2 OK python 2.7.3-1 OK python-setuptools 0.6.34-1 OK rebase 4.4.1-1 OK rsync 3.0.9-1 OK run 1.3.0-1 OK sed 4.2.2-3 OK tar 1.27.1-1 OK tcl 8.5.11-1 OK termcap 5.7_20091114-14 OK terminfo 5.7_20091114-14 OK texinfo 5.2-1 OK time 1.7-3 OK tree 1.6.0-1 OK tzcode 2013d-1 OK unzip 6.0-10 OK util-linux 2.21.2-1 OK vim 7.4.264-1 OK vim-common 7.4.264-1 OK vim-minimal 7.4.264-1 OK w32api-headers 3.1.0-1 OK w32api-runtime 3.1.0-1 OK w3m 0.5.3-2 OK w3m-img 0.5.3-2 OK wget 1.15-1 OK which 2.20-2 OK xxd 7.4.264-1 OK xz 5.0.2_20110517-1 OK zip 3.0-11 OK zlib0 1.2.8-1 OK
0 件のコメント:
コメントを投稿