2012.05.02
mozc が pkg-config で OpenSSL を探すから security/openssl を入れるようにした( http://www.freebsd.org/cgi/cvsweb.cgi/ports/japanese/mozc-server/Makefile.diff?r1=1.27;r2=1.28;f=h )みたいだけど、どうせならもともと入ってる OpenSSL を使いたかったので、少し patch を当ててインストールした。(あと、郵便番号辞書も一緒に入れた)

(May 3, 2012 追記:http://www.freebsd.org/cgi/cvsweb.cgi/ports/japanese/mozc-server/Makefile.diff?r1=1.28;r2=1.29;f=h で使わないように変更したみたいだ。)

# pwd
/usr/ports/japanese/mozc-server
# make extract
===> License check disabled, port has not defined LICENSE
===> Extracting for ja-mozc-server-1.5.1053.102
===> License check disabled, port has not defined LICENSE
=> SHA256 Checksum OK for mozc-1.5.1053.102.tar.bz2.
# cat -t /root/patch
--- Makefile.orig^I2012-05-01 16:58:57.000000000 -0400
+++ Makefile^I2012-05-01 16:59:04.000000000 -0400
@@ -18,8 +18,7 @@
LIB_DEPENDS=^Icurl.6:${PORTSDIR}/ftp/curl \
^I^Igtest.0:${PORTSDIR}/devel/googletest \
^I^Iprotobuf.7:${PORTSDIR}/devel/protobuf \
-^I^Izinnia.0:${PORTSDIR}/japanese/zinnia \
-^I^Issl.8:${PORTSDIR}/security/openssl
+^I^Izinnia.0:${PORTSDIR}/japanese/zinnia
RUN_DEPENDS=^Ixdg-open:${PORTSDIR}/devel/xdg-utils

USE_BZIP2=^Iyes
--- work/mozc-1.5.1053.102/base/base.gyp.orig 2012-05-01 16:51:47.000000000 -0400
+++ work/mozc-1.5.1053.102/base/base.gyp 2012-05-01 16:52:26.000000000 -0400
@@ -227,23 +227,14 @@
}
}],
['OS=="linux" and target_platform!="Android"', {
- 'cflags': [
- '<!@(<(pkg_config_command) --cflags-only-other openssl)',
- ],
'defines': [
'HAVE_OPENSSL=1',
],
- 'include_dirs': [
- '<!@(<(pkg_config_command) --cflags-only-I openssl)',
- ],
'link_settings': {
- 'ldflags': [
- '<!@(<(pkg_config_command) --libs-only-L openssl)',
- ],
'libraries': [
- '<!@(<(pkg_config_command) --libs-only-l openssl)',
+ '-lssl -lcrypto',
],
- },
+ }
}],
],
},
# patch < /root/patch
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- Makefile.orig 2012-05-01 16:58:57.000000000 -0400
|+++ Makefile 2012-05-01 16:59:04.000000000 -0400
--------------------------
Patching file Makefile using Plan A...
Hunk #1 succeeded at 18.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- work/mozc-1.5.1053.102/base/base.gyp.orig 2012-05-01 16:51:47.000000000 -0400
|+++ work/mozc-1.5.1053.102/base/base.gyp 2012-05-01 16:52:26.000000000 -0400
--------------------------
Patching file work/mozc-1.5.1053.102/base/base.gyp using Plan A...
Hunk #1 succeeded at 227.
done
# cd work/mozc-1.5.1053.102/data/dictionary/
# fetch http://www.post.japanpost.jp/zipcode/dl/kogaki/zip/ken_all.zip
ken_all.zip 100% of 1798 kB 377 kBps
# fetch http://www.post.japanpost.jp/zipcode/dl/jigyosyo/zip/jigyosyo.zip
jigyosyo.zip 100% of 753 kB 276 kBps
# unzip ken_all.zip
Archive: ken_all.zip
extracting: KEN_ALL.CSV
# unzip jigyosyo.zip
Archive: jigyosyo.zip
extracting: JIGYOSYO.CSV
# python ../../dictionary/gen_zip_code_seed.py --zip_code=KEN_ALL.CSV --jigyosyo=JIGYOSYO.CSV >> dictionary09.txt
# cd ../../../..
# pwd
/usr/ports/japanese/mozc-server
# make
===> Patching for ja-mozc-server-1.5.1053.102
===> Applying FreeBSD patches for ja-mozc-server-1.5.1053.102
[...]
CXX(target) out_linux/Release/obj.target/mozc_server/server/server_main.o
LINK(target) out_linux/Release/mozc_server
Running: /usr/local/bin/python2.7 build_tools/binary_size_checker.py --target_directory out_linux/Release
# make deinstall
===> Deinstalling for japanese/mozc-server
===> Deinstalling ja-mozc-server-1.5.1053.102
pkg_delete: package 'ja-mozc-server-1.5.1053.102' is required by these other packages
and may not be deinstalled (but I'll delete it anyway):
ja-mozc-el-emacs23-1.5.1053.102_1
# make reinstall
===> Installing for ja-mozc-server-1.5.1053.102
===> ja-mozc-server-1.5.1053.102 depends on executable: xdg-open - found
===> ja-mozc-server-1.5.1053.102 depends on file: /usr/local/bin/python2.7 - found
===> ja-mozc-server-1.5.1053.102 depends on shared library: curl.6 - found
===> ja-mozc-server-1.5.1053.102 depends on shared library: gtest.0 - found
===> ja-mozc-server-1.5.1053.102 depends on shared library: protobuf.7 - found
===> ja-mozc-server-1.5.1053.102 depends on shared library: zinnia.0 - found
===> ja-mozc-server-1.5.1053.102 depends on shared library: iconv.3 - found
===> Generating temporary packing list
===> Checking if japanese/mozc-server already installed
===> Registering installation for ja-mozc-server-1.5.1053.102
===> SECURITY REPORT:
This port has installed the following files which may act as network
servers and may therefore pose a remote security risk to the system.
/usr/local/bin/mozc_server

If there are vulnerabilities in these programs there may be a security
risk to the system. FreeBSD makes no guarantee about the security of
ports included in the Ports Collection. Please type 'make deinstall'
to deinstall the port if this is a concern.

For more information, and contact details about the security
status of this software, see the following webpage:
http://code.google.com/p/mozc/
#
この記事へのコメント

この記事へのトラックバック
コメントを書く
お名前: [必須入力]

メールアドレス:

ホームページアドレス:

コメント: [必須入力]

認証コード: [必須入力] (画像の中の文字を半角で入力してください。)



※ブログオーナーが承認したコメントのみ表示されます。
Rebuild at 2018/10/16 11:33
×

この広告は180日以上新しい記事の投稿がないブログに表示されております。