UJP - Mac用のSubversion 1.7で日本語ファイルに対応出来る

Life is fun and easy!

不正IP報告数

Okan Sensor
 
メイン
ログイン
ブログ カテゴリ一覧

  • カテゴリ ハウツー の最新配信
  • RSS
  • RDF
  • ATOM

ブログ - Mac用のSubversion 1.7で日本語ファイルに対応出来る

Mac用のSubversion 1.7で日本語ファイルに対応出来る

カテゴリ : 
ハウツー
ブロガー : 
ujpblog 2016/8/20 18:51
 Home Brewで最新版のSubversionをインストールしても,日本語ファイルに対応してない.例の半濁点問題だね.半濁点が入ってないとcommitできる事も多い.
 それで,Subversion 1.7にする事で,日本語ファイルに対応できたという話.事前に気をつけなければいけないのは,1.9を使っているとバージョンダウンするので,リポジトリの管理バージョン(データベースあたり?)が異なるので1.7でアクセスできないから,再ダウンロードが必要になるという事.
 まずは,インストールされているSubversionのバージョンを確認.
$ 🆑brew info svn
subversion: stable 1.9.4 (bottled)🈁
Version control system designed to be a better CVS
https://subversion.apache.org/
/usr/local/Cellar/subversion/1.9.4... (148 files, 11.1M)
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/subversion.rb
==> Dependencies
Build: pkg-config ✔, scons ✔
Required: sqlite ✔, openssl ✔
Optional: gpg-agent ✘
==> Options
--universal
        Build a universal binary
--with-gpg-agent
        Build with support for GPG Agent
--with-java
        Build Java bindings
--with-perl
        Build Perl bindings
--with-python
        Build with python support
--with-ruby
        Build Ruby bindings
==> Caveats
svntools have been installed to:
  /usr/local/opt/subversion/libexec

$
 日本語に対応してないので,Subversion 1.9.4をアンインストール.
$ 🆑brew uninstall subversion
Uninstalling /usr/local/Cellar/subversion/1.9.4... (148 files, 11.1M)

$
 以外とあっさり.アンインストールを確認.
$ 🆑svn
-bash: /usr/local/bin/svn: No such file or directory

$
 古いパッケージ用のtapリポジトリを追加.
$ 🆑brew tap homebrew/versions
$
 Unicodeに対応しているというSubversion 1.7について情報を確認.
$ 🆑brew info subversion17
homebrew/versions/subversion17: stable 1.7.14 (bottled)🈁
Version control system designed to be a better CVS
https://subversion.apache.org/
From: https://github.com/Homebrew/homebrew-versions/blob/master/subversion17.rb
==> Dependencies
Build: pkg-config ✔, scons ✔
Required: sqlite ✔
==> Options
--universal
        Build a universal binary
--with-java
        Build with Java bindings
--with-perl
        Build with Perl bindings
--with-python
        Build with python support
--with-ruby
        Build with Ruby bindings
--with-unicode-path🈁
        Build with support for OS X UTF-8-MAC filename🈁
==> Caveats
svntools have been installed to:
  /usr/local/opt/subversion17/libexec

$
 UTF-8-MAC filenameと記載されている事を確認.インストール時にコンパイルオプションを指定する.
$ 🆑brew install subversion17 --unicode-path
==> Auto-updated Homebrew!
Updated Homebrew from 5bbc3c2 to db2e9b8.
Updated 2 taps (caskroom/cask, homebrew/core).
==> Updated Formulae
artifactory          calabash             jenkins ✔            libgit2-glib
node-build           rancher-compose      xonsh
awscli               flake8               libftdi              libjson-rpc-cpp
 pillar               translate-toolkit    youtube-dl
brotli               gnupg                libgcrypt            libpng ✔      
  radare2              unrar
==> Installing subversion17 from homebrew/versions
Warning: homebrew/versions/subversion17: --unicode-path was deprecated; using 
--with-unicode-path instead!
==> Downloading https://archive.apache.org/dist/subversion/subversion-1.7.14.tar.bz2
Already downloaded: /Users/uu092547/Library/Caches/Homebrew/subversion17-1.7.14.tar.bz2
==> Downloading https://gist.githubusercontent.com/jeffstyr/3044094/raw/1648c28f6133bcb
b68b76b42669b0dc237c02dba/patch-path.c.diff
Already downloaded: /Users/uu092547/Library/Caches/Homebrew/subversion17--patch-c48bab1
fbdc5d8e509a03a3413338d42e49d9be3acefdebb7a956cefa63ea310.diff
==> Patching
==> Applying patch-path.c.diff
patching file subversion/libsvn_subr/path.c
==> Downloading http://webdav.org/neon/neon-0.29.6.tar.gz
Already downloaded: /Users/uu092547/Library/Caches/Homebrew/subversion17--neon-0.29.6.tar.gz
==> ./configure --prefix=/usr/local/Cellar/subversion17/1.7.14_1/libexec/neon 🈁
--enable-shared --disable-static --disable-nls --with-ssl=openssl --w🈁
==> make install
==> Downloading https://archive.apache.org/dist/serf/serf-1.3.3.tar.bz2
Already downloaded: /Users/uu092547/Library/Caches/Homebrew/subversion17--serf-1.3.3.tar.bz2
==> /usr/local/opt/scons/bin/scons PREFIX=/usr/local/Cellar/subversion17/1.7.14_1/libexec/serf
 GSSAPI=/usr CC=/usr/bin/clang CFLAGS=-I/usr/local/Ce
==> /usr/local/opt/scons/bin/scons install
==> ./configure --prefix=/usr/local/Cellar/subversion17/1.7.14_1 --with-zlib=/usr
 --with-sqlite=/usr/local/opt/sqlite --with-serf=/usr/local/Cellar🈁
==> make🈁
==> make install🈁
==> make tools
==> make install-tools
==> Caveats
svntools have been installed to:
  /usr/local/opt/subversion17/libexec
This unicode-path version implements a hack to deal with composed/decomposed
unicode handling on Mac OS X which is different from linux and windows.
It is an implementation of solution 1 from
http://svn.collab.net/repos/svn/trunk/notes/unicode-composition-for-filenames
which _WILL_ break some setups. Please be sure you understand what you
are asking for when you install this version.


Bash completion has been installed to:
  /usr/local/etc/bash_completion.d
==> Summary
🍺  /usr/local/Cellar/subversion17/1.7.14_1: 296 files, 8.5M, built in 4 minutes 30 seconds

$
 makeしてインストールされました.
 インストールされたモジュールを確認.
$ 🆑svn --version
svn, version 1.7.14 (r1542130)
   compiled Aug 18 2016, 10:11:57

Copyright (C) 2013 The Apache Software Foundation.
This software consists of contributions made by many people; see the NOTICE
file for more information.
Subversion is open source software, see http://subversion.apache.org/

The following repository access (RA) modules are available:

* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
  - handles 'http' scheme
  - handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
  - with Cyrus SASL authentication
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
  - handles 'http' scheme
  - handles 'https' scheme

$
 インストール後に,brew infoで確認してみる.
$ 🆑brew info subversion17
homebrew/versions/subversion17: stable 1.7.14 (bottled)
Version control system designed to be a better CVS
https://subversion.apache.org/
/usr/local/Cellar/subversion17/1.7.14_1 (296 files, 8.5M) *
  Built from source on 2016-08-18 at 10:15:00 with: --with-unicode-path
From: https://github.com/Homebrew/homebrew-versions/blob/master/subversion17.rb
==> Dependencies
Build: pkg-config ✔, scons ✔
Required: sqlite ✔
==> Options
--universal
        Build a universal binary
--with-java
        Build with Java bindings
--with-perl
        Build with Perl bindings
--with-python
        Build with python support
--with-ruby
        Build with Ruby bindings
--with-unicode-path
        Build with support for OS X UTF-8-MAC filename
==> Caveats
svntools have been installed to:
  /usr/local/opt/subversion17/libexec
This unicode-path version implements a hack to deal with composed/decomposed🈁
unicode handling on Mac OS X which is different from linux and windows.🈁
It is an implementation of solution 1 from🈁
http://svn.collab.net/repos/svn/trunk/notes/unicode-composition-for-filenames🈁
which _WILL_ break some setups. Please be sure you understand what you🈁
are asking for when you install this version.🈁


Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

$
 Unicodeの説明が入っていることがわかる.
 svn updateしてみる.
$ 🆑svn update
svn: E155021: This client is too old to work with the working copy at
'/Users/ujpadmin/svn_repository/doc' (format 31).
You need to get a newer Subversion client. For more details, see
  http://subversion.apache.org/faq.html#working-copy-format-change


$
 Subverionをバージョンダウンしたから仕方ない.

 このURLを確認する.
http://subversion.apache.org/faq.html#working-copy-format-change

 ダウングレードするためのPythonが配布されている.
http://svn.apache.org/repos/asf/subversion/trunk/tools/client-side/change-svn-wc-format.py

 今回はこのツールは使わずに,全部再ダウンロードしました.

トラックバック


広告スペース
Google