Bug 619395 - Review Request: mozc - Opensourced Google Japanese Input
Summary: Review Request: mozc - Opensourced Google Japanese Input
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Mamoru TASAKA
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 621242
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-07-29 13:20 UTC by Akira TAGOH
Modified: 2015-06-03 12:33 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-08-24 02:48:11 UTC
Type: ---
Embargoed:
mtasaka: fedora-review+
gwync: fedora-cvs+


Attachments (Terms of Use)
make build.log verbose (318 bytes, patch)
2010-08-20 19:42 UTC, Mamoru TASAKA
no flags Details | Diff

Description Akira TAGOH 2010-07-29 13:20:05 UTC
Spec URL: http://tagoh.fedorapeople.org/reviews/mozc/mozc.spec
SRPM URL: http://tagoh.fedorapeople.org/reviews/mozc/mozc-0.12.422.102-0.1.20100729svn.fc13.src.rpm
Description:
Mozc is a Japanese Input Method Editor (IME) designed for
multi-platform such as Chromium OS, Windows, Mac and Linux.

Comment 1 Mamoru TASAKA 2010-07-31 18:48:40 UTC
First of all would you clarify the following?

./data/dictionary/README.txt
  - Well, mozc says the overall license is BSD, however 
    - this file (./data/dictionary/README.txt) says that 
      the volaburaly set is taken from ipadic, and 
      the license of ipadic is not the same as BSD.
      ! Fedora admits that the license of ipadic is free, 
        however is different from BSD at least in that the 
        compatibility with GPL is currently unclear:
        http://fedoraproject.org/wiki/Licensing

    - Also some other words seems added to the dictionary in the
      tarball. Maybe newly added words are licensed under BSD,
      however it seems unclear to me.

    Would you check under what license the dictionaries in mozc are
    actually licensed?

./third_party/rx/v1_0rc2/README
  - This is under ASL 2.0.
  ! By the way, there are two third-party products included in mozc
    tarball (gyp, rx). Generally using bundled libraries is discouraged
    on Fedora and it is recommended to seperate such bundled libraries
    https://fedoraproject.org/wiki/Packaging/Guidelines#Bundling_of_multiple_projects
    Would you create seperated review request for these (if these
    are really needed)?

Comment 2 Mamoru TASAKA 2010-07-31 18:52:26 UTC
By the way I don't know if you want to import this also into
F-12, however compile on F-12 ppc64 met with segv:

http://koji.fedoraproject.org/koji/taskinfo?taskID=2369262

Comment 3 Akira TAGOH 2010-08-04 15:16:51 UTC
(In reply to comment #1)
> First of all would you clarify the following?
> 
> ./data/dictionary/README.txt
>   - Well, mozc says the overall license is BSD, however 
>     - this file (./data/dictionary/README.txt) says that 
>       the volaburaly set is taken from ipadic, and 
>       the license of ipadic is not the same as BSD.
>       ! Fedora admits that the license of ipadic is free, 
>         however is different from BSD at least in that the 
>         compatibility with GPL is currently unclear:
>         http://fedoraproject.org/wiki/Licensing
> 
>     - Also some other words seems added to the dictionary in the
>       tarball. Maybe newly added words are licensed under BSD,
>       however it seems unclear to me.
> 
>     Would you check under what license the dictionaries in mozc are
>     actually licensed?

Sure. will check it with upstream though, I don't see any issues combining ipadic's license with BSD.

> ./third_party/rx/v1_0rc2/README
>   - This is under ASL 2.0.
>   ! By the way, there are two third-party products included in mozc
>     tarball (gyp, rx). Generally using bundled libraries is discouraged
>     on Fedora and it is recommended to seperate such bundled libraries
>    
> https://fedoraproject.org/wiki/Packaging/Guidelines#Bundling_of_multiple_projects
>     Would you create seperated review request for these (if these
>     are really needed)?    

I've submitted a package review for gyp though, there are no upstream for rx anymore. apparently it may be not supposed to be shipped live for library and a trivial code though, can't we just have a comment about the license for rx in the spec file?

Comment 4 Mamoru TASAKA 2010-08-04 19:49:12 UTC
(In reply to comment #3)
> (In reply to comment #1)
> > First of all would you clarify the following?
> > 
> > ./data/dictionary/README.txt
> >     Would you check under what license the dictionaries in mozc are
> >     actually licensed?
> 
> Sure. will check it with upstream though, I don't see any issues combining
> ipadic's license with BSD.

Yes, the combination of BSD and mecab-ipadic is okay, I just want to
make it clarified what license mozc's license is under.


> > ./third_party/rx/v1_0rc2/README
> >   - This is under ASL 2.0.
> >   ! By the way, there are two third-party products included in mozc
> >     tarball (gyp, rx). Generally using bundled libraries is discouraged
> >     on Fedora and it is recommended to seperate such bundled libraries
> >    
> > https://fedoraproject.org/wiki/Packaging/Guidelines#Bundling_of_multiple_projects
> >     Would you create seperated review request for these (if these
> >     are really needed)?    
> 
> I've submitted a package review for gyp though, there are no upstream for rx
> anymore. apparently it may be not supposed to be shipped live for library and a
> trivial code though, can't we just have a comment about the license for rx in
> the spec file?    

gyp taken. I guess rx can be shipped in current style (however the license
tag of mozc needs fixing, after clarifying dictionary's license).

Comment 6 Mamoru TASAKA 2010-08-19 19:24:07 UTC
Some notes for 0.12.434.102-0.1.20100817svn

* License
  - So the license for dictionary/ directory is
    * mecab-ipadic (for mecab-ipadic)
    * BSD (for mecab-naist-jdic)
    ? If so, "mecab-ipadic" should also be added into license tag
    (note that "mecab-ipadic" is already registered in
    http://fedoraproject.org/wiki/Licensing )

* BuildRoot
  - BuildRoot tag is no longer needed (no longer used) on 
    Fedora 10+ and EPEL6:
    https://fedoraproject.org/wiki/Packaging/Guidelines#BuildRoot_tag

? Obsoletes
  - I don't understand why "Obsoletes: ibus-mozc < 0.11.383.102" is added
    to main package although mozc has not existed on Fedora.

* optflags / make build.log more verbose / debuginfo rpm
  - Currently build.log shows the output like:
---------------------------------------------------------------
   208  + python build_mozc.py build_tools -c Release
   209    ACTION base_gen_version_def out_linux/Release/obj/gen/base/version_def.cc
   210    ACTION base_gen_character_set out_linux/Release/obj/gen/base/character_set.h
   211    CXX(target) out_linux/Release/obj.target/storage/storage/existence_filter.o
   212    CXX(target) out_linux/Release/obj.target/storage/storage/lru_storage.o
   213    CXX(target) out_linux/Release/obj.target/storage/storage/registry.o
   214    CXX(target) out_linux/Release/obj.target/storage/storage/tiny_storage.o
---------------------------------------------------------------
    With these messages we cannot check if optflags are correctly honored during
    build.
  - Also currently debuginfo rpm does not contain needed source files:
--------------------------------------------------------------
mozc-debuginfo.i686: E: debuginfo-without-sources
--------------------------------------------------------------
    This usually means that optflags are not correctly honored (especially "-g"
    flag), or binaries are stripped during build or install.
  - So please make build.log more verbose so that we can check if Fedora specific
    compilation flags are correctly honored.

? %clean
  - Why is it needed to call "python build_mozc.py clean" after build?
    (Note that %_builddir%{?buildsubdir} is deleted after build anyway)

* %defattr
  - Please set %defattr also for subpackages.

! ppc64 build failure
  - By the way your srpm fails to build on F-12 ppc64. It seems that segfault is
    occuring.
----------------------------------------------------------------
/bin/sh: line 1:  8168 Segmentation fault      ../mozc_build_tools/linux/gen_connection_data_main --logtostderr "--input=../data/dictionary/connection.txt" --make_header "--output=/builddir/build/BUILD/mozc-0.12.434.102/out_linux/Release/obj/gen/converter/embedded_connection_data.h"
make: *** [out_linux/Release/obj/gen/converter/embedded_connection_data.h] Error 139
make: *** Waiting for unfinished jobs....
----------------------------------------------------------------
    http://koji.fedoraproject.org/koji/taskinfo?taskID=2412449

Comment 7 Akira TAGOH 2010-08-20 07:21:09 UTC
(In reply to comment #6)
> * License
>   - So the license for dictionary/ directory is
>     * mecab-ipadic (for mecab-ipadic)
>     * BSD (for mecab-naist-jdic)
>     ? If so, "mecab-ipadic" should also be added into license tag
>     (note that "mecab-ipadic" is already registered in
>     http://fedoraproject.org/wiki/Licensing )

I should added that. fixed.

> * BuildRoot
>   - BuildRoot tag is no longer needed (no longer used) on 
>     Fedora 10+ and EPEL6:
>     https://fedoraproject.org/wiki/Packaging/Guidelines#BuildRoot_tag

fixed.

> ? Obsoletes
>   - I don't understand why "Obsoletes: ibus-mozc < 0.11.383.102" is added
>     to main package although mozc has not existed on Fedora.

not for official one but to fix the package changes on local repo for testing.

> 
> * optflags / make build.log more verbose / debuginfo rpm

Okay, fixed in gyp.

> ? %clean
>   - Why is it needed to call "python build_mozc.py clean" after build?
>     (Note that %_builddir%{?buildsubdir} is deleted after build anyway)

fixed.

> * %defattr
>   - Please set %defattr also for subpackages.

Doh. fixed.

> ! ppc64 build failure
>   - By the way your srpm fails to build on F-12 ppc64. It seems that segfault
> is
>     occuring.
> ----------------------------------------------------------------
> /bin/sh: line 1:  8168 Segmentation fault     
> ../mozc_build_tools/linux/gen_connection_data_main --logtostderr
> "--input=../data/dictionary/connection.txt" --make_header
> "--output=/builddir/build/BUILD/mozc-0.12.434.102/out_linux/Release/obj/gen/converter/embedded_connection_data.h"
> make: *** [out_linux/Release/obj/gen/converter/embedded_connection_data.h]
> Error 139
> make: *** Waiting for unfinished jobs....
> ----------------------------------------------------------------
>     http://koji.fedoraproject.org/koji/taskinfo?taskID=2412449

Sure. will have a look though, that may be a bit hard to investigate a kinda issue if there are no debugging machine.. just for snapshot of fixes:

Spec URL: http://tagoh.fedorapeople.org/reviews/mozc/mozc.spec
SRPM URL: http://tagoh.fedorapeople.org/reviews/mozc/mozc-0.12.434.102-0.1.20100820svn.fc13.src.rpm

Comment 8 Mamoru TASAKA 2010-08-20 19:42:47 UTC
Created attachment 440023 [details]
make build.log verbose

Okay. I tried 0.12.434.102-0.1.20100820svn and at least
ibus-mozc seems to work on F-14.

Then:
? Obsoletes:
  - I don't see the need of "Obsoletes: ibus-mozc < 0.11.383.102" for another
    reason. As this srpm creates ibus-mozc subpackage, even if this Obsoletes
    does not exist the upgrade path shouldn't be broken.


* build.log / Fedora specific compilation flags
  - Still we cannot check if Fedora specific compilation flags are honored
    or not from build.log. Would you consider to apply the patch attached
    to show the actual command line on build.log?
    The result with the attached patch applied is:
    http://koji.fedoraproject.org/koji/taskinfo?taskID=2414933

* Directory ownership issue
  - The directory %{_datadir}/ibus-mozc/ is not owned by any packages.

* Documents
  - At least some documents indicating license information should be added
    to %doc for main (mozc) binary rpm.
    Would you at least consider to add data/installer/credits_??.html to
    %doc?

Comment 9 Akira TAGOH 2010-08-23 02:27:03 UTC
(In reply to comment #8)
> Then:
> ? Obsoletes:
>   - I don't see the need of "Obsoletes: ibus-mozc < 0.11.383.102" for another
>     reason. As this srpm creates ibus-mozc subpackage, even if this Obsoletes
>     does not exist the upgrade path shouldn't be broken.

Okay, I may be confused. let's drop that line then.

> * build.log / Fedora specific compilation flags
>   - Still we cannot check if Fedora specific compilation flags are honored
>     or not from build.log. Would you consider to apply the patch attached
>     to show the actual command line on build.log?
>     The result with the attached patch applied is:
>     http://koji.fedoraproject.org/koji/taskinfo?taskID=2414933

Thanks. that looks nice.

> 
> * Directory ownership issue
>   - The directory %{_datadir}/ibus-mozc/ is not owned by any packages.

Indeed. fixed.

> * Documents
>   - At least some documents indicating license information should be added
>     to %doc for main (mozc) binary rpm.
>     Would you at least consider to add data/installer/credits_??.html to
>     %doc?

Sure. I was thinking of doing that though, it contains the unnecessary license informations too. I'm not sure if it's good to ship it as is or get rid of the unnecessary thing or add another one.

Comment 10 Mamoru TASAKA 2010-08-23 05:34:21 UTC
(In reply to comment #9)
> > * Documents
> >   - At least some documents indicating license information should be added
> >     to %doc for main (mozc) binary rpm.
> >     Would you at least consider to add data/installer/credits_??.html to
> >     %doc?
> 
> Sure. I was thinking of doing that though, it contains the unnecessary license
> informations too. I'm not sure if it's good to ship it as is or get rid of the
> unnecessary thing or add another one.

I think shipping data/installer/credits_??.html as it is is
(currently) enough for license information.

Comment 11 Akira TAGOH 2010-08-23 06:40:07 UTC
Okay. the above suggestion should be applied to, except ppc build issue:

Spec URL: http://tagoh.fedorapeople.org/reviews/mozc/mozc.spec
SRPM URL: http://tagoh.fedorapeople.org/reviews/mozc/mozc-0.12.434.102-0.2.20100820svn.fc13.src.rpm

Comment 12 Mamoru TASAKA 2010-08-23 07:40:08 UTC
Okay. One new issue and one issue I forgot to mention...

-----------------------------------------------
scim-mozc.i686: W: spurious-executable-perm /usr/share/doc/scim-mozc-0.12.434.102/credits_ja.html
scim-mozc.i686: W: spurious-executable-perm /usr/share/doc/scim-mozc-0.12.434.102/credits_en.html
-----------------------------------------------
  - Please modify the permission

-----------------------------------------------
mozc.src:20: W: macro-in-comment %Y
mozc.src:20: W: macro-in-comment %m
mozc.src:20: W: macro-in-comment %d)
-----------------------------------------------
  - It is better that % in comments are escaped (by using %%)

Please modify the issue above when importing this package into
Fedora SCM.
-----------------------------------------------
  This package (mozc) is APPROVED by mtasaka
-----------------------------------------------

Comment 13 Akira TAGOH 2010-08-23 07:54:51 UTC
Sure. thank you for review!

New Package SCM Request
=======================
Package Name: mozc
Short Description: Opensourced Google Japanese Input
Owners: tagoh
Branches: f13 f14
InitialCC: i18n-team

Comment 14 Kevin Fenzi 2010-08-23 21:09:39 UTC
Git done (by process-git-requests).

Comment 15 Akira TAGOH 2010-08-24 02:48:11 UTC
The package has been built for devel only so far, will build for f13 and f14
once the updated gyp is in stable. thanks!

Comment 16 Akira TAGOH 2011-09-09 07:47:36 UTC
Package Change Request
======================
Package Name: mozc
New Branches: el5 el6
Owners: tagoh
InitialCC: i18n-team

requesting to port mozc packages to epel5 and epel6.

Comment 17 Gwyn Ciesla 2011-09-09 12:12:25 UTC
Git done (by process-git-requests).

Comment 18 Akira TAGOH 2015-06-03 11:07:03 UTC
Package Change Request
======================
Package Name: mozc
New Branches: epel7
Owners: tagoh
InitialCC: i18n-team

Comment 19 Gwyn Ciesla 2015-06-03 12:33:51 UTC
Git done (by process-git-requests).


Note You need to log in before you can comment on or make changes to this bug.