Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Oct 2014 13:24:23 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 194378] New: [patch] cannot build japanese/mozc-server, because of incorrect PYTHONPATH
Message-ID:  <bug-194378-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194378

            Bug ID: 194378
           Summary: [patch] cannot build japanese/mozc-server, because of
                    incorrect PYTHONPATH
           Product: Ports Tree
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: Needs Triage
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: hrs@FreeBSD.org
          Reporter: yamayan@kbh.biglobe.ne.jp
          Assignee: hrs@FreeBSD.org
             Flags: maintainer-feedback?(hrs@FreeBSD.org)

Created attachment 148336
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=148336&action=edit
patch

make build failed for japanese/mozc-server.
python cannot find third_party/gyp/pylib/gyp/__init__.py, because of incorrect
PYTHONPATH.


Script started on Tue Oct 14 00:06:19 2014
root@genius:/usr/ports/japanese/mozc-server # portmaster 

^[]0;portmaster: ja-mozc-server-1.11.1502.102_1^G
===>>> Currently installed version: ja-mozc-server-1.11.1502.102_1
===>>> Port directory: /usr/ports/japanese/mozc-server

===>>> Launching 'make checksum' for japanese/mozc-server in background
===>>> Gathering dependency list for japanese/mozc-server from ports
===>>> Initial dependency check complete for japanese/mozc-server

^[]0;portmaster: ja-mozc-server-1.11.1502.102_1^G
===>>> Starting build for japanese/mozc-server <<<===

===>>> All dependencies are up to date

===>  Cleaning for ja-mozc-server-1.15.1868.102_2
===>  License BSD3CLAUSE NAISTL accepted by the user
===>   ja-mozc-server-1.15.1868.102_2 depends on file: /usr/local/sbin/pkg -
found
===> Fetching all distfiles required by ja-mozc-server-1.15.1868.102_2 for
building
===>  Extracting for ja-mozc-server-1.15.1868.102_2
===>  License BSD3CLAUSE NAISTL accepted by the user
===>   ja-mozc-server-1.15.1868.102_2 depends on file: /usr/local/sbin/pkg -
found
===> Fetching all distfiles required by ja-mozc-server-1.15.1868.102_2 for
building
=> SHA256 Checksum OK for mozc-1.15.1868.102.tar.bz2.
=> SHA256 Checksum OK for ken_all-20130628.lzh.
=> SHA256 Checksum OK for jigyosyo-20130628.lzh.
===>   ja-mozc-server-1.15.1868.102_2 depends on file: /usr/local/bin/python2.7
- found
===>   ja-mozc-server-1.15.1868.102_2 depends on executable: lha - found
===>  Patching for ja-mozc-server-1.15.1868.102_2
===>  Applying FreeBSD patches for ja-mozc-server-1.15.1868.102_2
/bin/mkdir -p
/usr/ports/japanese/mozc-server/work/mozc-1.15.1868.102/mozc_build_tools/linux
/bin/ln -sf /usr/local/bin/protoc
/usr/ports/japanese/mozc-server/work/mozc-1.15.1868.102/mozc_build_tools/linux/
/usr/bin/sed -i.bak 's,-liconv,,g' 
/usr/ports/japanese/mozc-server/work/mozc-1.15.1868.102/gui/qt_libraries.gypi
===>   ja-mozc-server-1.15.1868.102_2 depends on executable: ninja - found
===>   ja-mozc-server-1.15.1868.102_2 depends on executable: python - found
===>   ja-mozc-server-1.15.1868.102_2 depends on executable: pkgconf - found
===>   ja-mozc-server-1.15.1868.102_2 depends on executable: gmake - found
===>   ja-mozc-server-1.15.1868.102_2 depends on file: /usr/local/bin/python2.7
- found
===>   ja-mozc-server-1.15.1868.102_2 depends on file: /usr/local/bin/ccache -
found
===>   ja-mozc-server-1.15.1868.102_2 depends on shared library: libprotobuf.so
- found (/usr/local/lib/libprotobuf.so.9.0.0)
===>   ja-mozc-server-1.15.1868.102_2 depends on shared library: libzinnia.so -
found (/usr/local/lib/libzinnia.so.0.0.0)
===>  Configuring for ja-mozc-server-1.15.1868.102_2
/usr/bin/printf "%s\n%s\n" "#!/bin/sh" 'exec /usr/bin/env
XDG_DATA_HOME=/usr/ports/japanese/mozc-server/work 
XDG_CONFIG_HOME=/usr/ports/japanese/mozc-server/work 
HOME=/usr/ports/japanese/mozc-server/work TMPDIR="/tmp"
XDG_DATA_HOME=/usr/ports/japanese/mozc-server/work 
XDG_CONFIG_HOME=/usr/ports/japanese/mozc-server/work  HOME=/usr/port
s/japanese/mozc-server/work TMPDIR="/tmp" NO_PIE=yes SHELL=/bin/sh NO_LINT=YES
PREFIX=/usr/local  LOCALBASE=/usr/local  LIBDIR="/usr/lib"  CC="cc" CFLAGS="-O2
-pipe -Qunused-arguments -march=native  -fno-strict-aliasing"  CPP="cpp"
CPPFLAGS=""  LDFLAGS="" LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe
-Qunused-arguments -march=native -fno-strict-
aliasing -std=c++11 -Wno-c++11-narrowing -stdlib=libc++ " 
MANPREFIX="/usr/local"
PATH=/usr/local/libexec/ccache:/usr/local/libexec/ccache:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin
CCACHE_DIR="/usr/local/var/ccache" BSD_INSTALL_PROGRAM="install  -s -o root -g
wheel -m 555"  BSD_INSTALL_LIB="install  -s -o root -g wheel 
-m 444"  BSD_INSTALL_SCRIPT="install  -o root -g wheel -m 555" 
BSD_INSTALL_DATA="install  -o root -g wheel -m 0644"  BSD_INSTALL_MAN="install 
-o root -g wheel -m 444"
PATH=/bin:/usr/bin:/usr/local/libexec/ccache:/usr/local/libexec/ccache:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin
gmake $@'  > /usr/ports/japanese/mozc-s
erver/work/mozc-1.15.1868.102/mozcmake
/bin/chmod +x /usr/ports/japanese/mozc-server/work/mozc-1.15.1868.102/mozcmake
cd /usr/ports/japanese/mozc-server/work/mozc-1.15.1868.102 &&  /usr/bin/env
BUILD_COMMAND="/usr/ports/japanese/mozc-server/work/mozc-1.15.1868.102/mozcmake"

PYTHONPATH=/usr/ports/japanese/mozc-server/work/mozc-1.15.1868.102/third_party/gyp/pylib/gyp
 GYP_DEFINES="use_libprotobuf=1  channel_dev=0  enable_unittest=0 
compiler_host="clang" 
 compiler_target="clang" 
zinnia_model_file="/usr/local/share/tegaki/models/zinnia/handwriting-ja.model" 
ibus_mozc_icon_path="/usr/local/share/ibus-mozc/icons/product_icon.png" 
ibus_mozc_path="/usr/local/libexec/ibus-engine-mozc" use_libibus=0 
enable_gtk_renderer=0"  CC_host="cc"  CC_target="cc"  CXX_host="c++" 
CXX_target="c++"  LD_ho
st="c++"  AR_host="ar"  /usr/local/bin/python2.7 build_mozc.py gyp 
--gypdir=/usr/ports/japanese/mozc-server/work/mozc-1.15.1868.102/third_party/gyp
 --server_dir="/usr/local/bin"  --localbase="/usr/local"  --ldflags="
-fstack-protector -L/usr/local/lib"  --cflags="-O2\ -pipe\ -Qunused-arguments\
-march=native\ \ -fno-strict-aliasing"  --
cflags_cc="-O2\ -pipe\ -Qunused-arguments\ -march=native\ -fno-strict-aliasing\
-std=c++11\ -Wno-c++11-narrowing\ -stdlib=libc++\ " 
--include_dirs="/usr/local/include"  --noqt
INFO: Generating version definition file...
INFO: Version string is 1.15.1868.102
INFO: Build tool: ninja
INFO: Running: pkg-config --exists ibus-1.0 >= 1.4.1
INFO: Building GYP command line...
INFO: Running GYP...
INFO: Running:
/usr/ports/japanese/mozc-server/work/mozc-1.15.1868.102/third_party/gyp/gyp
--depth=. --include=./gyp/common.gypi -D localbase=/usr/local -D ldflags=
-fstack-protector -L/usr/local/lib -D cflags=-O2\ -pipe\ -Qunused-arguments\
-march=native\ \ -fno-strict-aliasing -D cflags_cc=-O2\ -pipe\
-Qunused-arguments\ -march=native\ 
-fno-strict-aliasing\ -std=c++11\ -Wno-c++11-narrowing\ -stdlib=libc++\  -D
include_dirs=/usr/local/include -D
abs_depth=/usr/ports/japanese/mozc-server/work/mozc-1.15.1868.102 -D
python_executable=/usr/local/bin/python2.7 ./base/base.gyp ./base/base_test.gyp
./build_tools/build_tools.gyp ./client/client.gyp ./client/client_test.gyp
./com
poser/composer.gyp ./config/config.gyp ./config/config_test.gyp
./converter/converter.gyp ./converter/converter_base.gyp
./converter/converter_main.gyp ./converter/converter_test.gyp
./data/test/session/scenario/scenario.gyp
./data/test/session/scenario/usage_stats/usage_stats.gyp
./data_manager/chromeos/chromeos_data_manager.gyp ./data_m
anager/chromeos/chromeos_data_manager_base.gyp
./data_manager/chromeos/chromeos_data_manager_test.gyp
./data_manager/data_manager.gyp ./data_manager/data_manager_test.gyp
./data_manager/oss/oss_data_manager.gyp
./data_manager/oss/oss_data_manager_base.gyp
./data_manager/oss/oss_data_manager_test.gyp
./data_manager/packed/packed_data_manag
er.gyp ./data_manager/packed/packed_data_manager_base.gyp
./data_manager/testing/mock_data_manager.gyp
./data_manager/testing/mock_data_manager_base.gyp
./data_manager/testing/mock_data_manager_test.gyp ./dictionary/dictionary.gyp
./dictionary/dictionary_base.gyp ./dictionary/dictionary_test.gyp
./dictionary/file/dictionary_file.gyp ./dic
tionary/file/dictionary_file_test.gyp ./dictionary/system/system_dictionary.gyp
./dictionary/system/system_dictionary_test.gyp ./engine/engine.gyp
./gui/gui.gyp ./gyp/tests.gyp ./handwriting/handwriting.gyp
./handwriting/handwriting_test.gyp ./handwriting/zinnia.gyp ./ipc/ipc.gyp
./mac/mac.gyp ./net/jsoncpp.gyp ./net/net.gyp ./net/net_tes
t.gyp ./prediction/prediction.gyp ./prediction/prediction_base.gyp
./prediction/prediction_test.gyp ./protobuf/protobuf.gyp
./renderer/renderer.gyp ./rewriter/calculator/calculator.gyp
./rewriter/rewriter.gyp ./rewriter/rewriter_base.gyp
./rewriter/rewriter_test.gyp ./server/server.gyp ./session/session.gyp
./session/session_base.gyp ./se
ssion/session_test.gyp ./storage/storage.gyp ./storage/storage_test.gyp
./testing/testing.gyp ./transliteration/transliteration.gyp
./transliteration/transliteration_test.gyp ./unix/emacs/emacs.gyp
./unix/ibus/ibus.gyp ./usage_stats/usage_stats.gyp
./usage_stats/usage_stats_base.gyp ./usage_stats/usage_stats_test.gyp -D
branding=Mozc -D u
se_qt=NO -D qt_dir= -D use_wix=NO -D android_home=None -D android_arch=arm -D
android_stl=stlport -D android_ndk_home=None -D
android_application_id=org.mozc.android.inputmethod.japanese -D
build_base=out_linux -D warn_as_error=0 -D mac_dir=<(DEPTH)/../mac -D
channel_dev=1 -D enable_cloud_handwriting=0 -D enable_http_client=0 -D
enable_mo
de_indicator=0 -D target_platform=Linux -D use_dynamically_linked_qt=0 -D
use_zinnia=YES -D use_libibus=1 -D dictionary=desktop -D
use_separate_collocation_data=0 -D use_separate_connection_data=0 -D
use_separate_dictionary=0 -D use_1byte_cost_for_connection_data=0 -D
use_packed_dictionary=0 -D pkg_config_command=pkg-config -D server_dir=
/usr/local/bin -G output_dir=out_linux --generator-output=.
Traceback (most recent call last):
  File
"/usr/ports/japanese/mozc-server/work/mozc-1.15.1868.102/third_party/gyp/gyp_main.py",
line 18, in <module>
    sys.exit(gyp.script_main())
AttributeError: 'module' object has no attribute 'script_main'
Traceback (most recent call last):
  File "build_mozc.py", line 1463, in <module>
    main()
  File "build_mozc.py", line 1459, in main
    procedure[1](cmd_opts, cmd_args, original_directory_name)
  File "build_mozc.py", line 955, in GypMain
    RunOrDie(gyp_command + gyp_options)
  File
"/usr/ports/japanese/mozc-server/work/mozc-1.15.1868.102/build_tools/util.py",
line 97, in RunOrDie
    '==========']))
build_tools.util.RunOrDieError: 
==========
 ERROR:
/usr/ports/japanese/mozc-server/work/mozc-1.15.1868.102/third_party/gyp/gyp
--depth=. --include=./gyp/common.gypi -D localbase=/usr/local -D ldflags=
-fstack-protector -L/usr/local/lib -D cflags=-O2\ -pipe\ -Qunused-arguments\
-march=native\ \ -fno-strict-aliasing -D cflags_cc=-O2\ -pipe\
-Qunused-arguments\ -march=native\ -fno-st
rict-aliasing\ -std=c++11\ -Wno-c++11-narrowing\ -stdlib=libc++\  -D
include_dirs=/usr/local/include -D
abs_depth=/usr/ports/japanese/mozc-server/work/mozc-1.15.1868.102 -D
python_executable=/usr/local/bin/python2.7 ./base/base.gyp ./base/base_test.gyp
./build_tools/build_tools.gyp ./client/client.gyp ./client/client_test.gyp
./composer/c
omposer.gyp ./config/config.gyp ./config/config_test.gyp
./converter/converter.gyp ./converter/converter_base.gyp
./converter/converter_main.gyp ./converter/converter_test.gyp
./data/test/session/scenario/scenario.gyp
./data/test/session/scenario/usage_stats/usage_stats.gyp
./data_manager/chromeos/chromeos_data_manager.gyp ./data_manager/
chromeos/chromeos_data_manager_base.gyp
./data_manager/chromeos/chromeos_data_manager_test.gyp
./data_manager/data_manager.gyp ./data_manager/data_manager_test.gyp
./data_manager/oss/oss_data_manager.gyp
./data_manager/oss/oss_data_manager_base.gyp
./data_manager/oss/oss_data_manager_test.gyp
./data_manager/packed/packed_data_manager.gyp 
./data_manager/packed/packed_data_manager_base.gyp
./data_manager/testing/mock_data_manager.gyp
./data_manager/testing/mock_data_manager_base.gyp
./data_manager/testing/mock_data_manager_test.gyp ./dictionary/dictionary.gyp
./dictionary/dictionary_base.gyp ./dictionary/dictionary_test.gyp
./dictionary/file/dictionary_file.gyp ./dictionary
/file/dictionary_file_test.gyp ./dictionary/system/system_dictionary.gyp
./dictionary/system/system_dictionary_test.gyp ./engine/engine.gyp
./gui/gui.gyp ./gyp/tests.gyp ./handwriting/handwriting.gyp
./handwriting/handwriting_test.gyp ./handwriting/zinnia.gyp ./ipc/ipc.gyp
./mac/mac.gyp ./net/jsoncpp.gyp ./net/net.gyp ./net/net_test.gyp .
/prediction/prediction.gyp ./prediction/prediction_base.gyp
./prediction/prediction_test.gyp ./protobuf/protobuf.gyp
./renderer/renderer.gyp ./rewriter/calculator/calculator.gyp
./rewriter/rewriter.gyp ./rewriter/rewriter_base.gyp
./rewriter/rewriter_test.gyp ./server/server.gyp ./session/session.gyp
./session/session_base.gyp ./session/s
ession_test.gyp ./storage/storage.gyp ./storage/storage_test.gyp
./testing/testing.gyp ./transliteration/transliteration.gyp
./transliteration/transliteration_test.gyp ./unix/emacs/emacs.gyp
./unix/ibus/ibus.gyp ./usage_stats/usage_stats.gyp
./usage_stats/usage_stats_base.gyp ./usage_stats/usage_stats_test.gyp -D
branding=Mozc -D use_qt=N
O -D qt_dir= -D use_wix=NO -D android_home=None -D android_arch=arm -D
android_stl=stlport -D android_ndk_home=None -D
android_application_id=org.mozc.android.inputmethod.japanese -D
build_base=out_linux -D warn_as_error=0 -D mac_dir=<(DEPTH)/../mac -D
channel_dev=1 -D enable_cloud_handwriting=0 -D enable_http_client=0 -D
enable_mode_indi
cator=0 -D target_platform=Linux -D use_dynamically_linked_qt=0 -D
use_zinnia=YES -D use_libibus=1 -D dictionary=desktop -D
use_separate_collocation_data=0 -D use_separate_connection_data=0 -D
use_separate_dictionary=0 -D use_1byte_cost_for_connection_data=0 -D
use_packed_dictionary=0 -D pkg_config_command=pkg-config -D server_dir=/usr/lo
cal/bin -G output_dir=out_linux --generator-output=.
==========
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/japanese/mozc-server
*** Error code 1

Stop.
make: stopped in /usr/ports/japanese/mozc-server

===>>> make build failed for japanese/mozc-server
===>>> Aborting update


===>>> You can restart from the point of failure with this command line:
       portmaster <flags> japanese/mozc-server 

root@genius:/usr/ports/japanese/mozc-server # exit

Script done on Tue Oct 14 00:08:07 2014

--- Comment #1 from Bugzilla Automation <bugzilla@FreeBSD.org> ---
Auto-assigned to maintainer hrs@FreeBSD.org

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-194378-13>