Bug 107611 - duplicate message definitions in some .pot files
Summary: duplicate message definitions in some .pot files
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
5.4.0.0.alpha0+
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-04 02:34 UTC by Kiyotaka Nishibori
Modified: 2018-04-04 13:26 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kiyotaka Nishibori 2017-05-04 02:34:20 UTC
Description:
There are duplicate message definitions in some .pot files When I extract them with "make translations" command.

Steps to Reproduce:
1. build LibreOffice from source: make
2. extract .pot files: make translations
3. verify .pot files: for i in `find pot -name "*.pot" -print|sort`; do msgmerge -cv -o /dev/null $i >> pots-status 2>&1; done; grep --before-context=0 --after-context=1 -e 'definition' pots-status > pots-errors

Actual Results:  
the result of "pots-errors":

pot/basic/source/classes.pot:893: duplicate message definition...
pot/basic/source/classes.pot:814: ...this is the location of the first definition
msgfmt: found 1 fatal error
--
pot/formula/source/core/resource.pot:193: duplicate message definition...
pot/formula/source/core/resource.pot:184: ...this is the location of the first definition
pot/formula/source/core/resource.pot:413: duplicate message definition...
pot/formula/source/core/resource.pot:224: ...this is the location of the first definition
msgfmt: found 2 fatal errors
--
pot/sc/source/ui/src.pot:24279: duplicate message definition...
pot/sc/source/ui/src.pot:24260: ...this is the location of the first definition
pot/sc/source/ui/src.pot:24689: duplicate message definition...
pot/sc/source/ui/src.pot:24670: ...this is the location of the first definition
pot/sc/source/ui/src.pot:24739: duplicate message definition...
pot/sc/source/ui/src.pot:24720: ...this is the location of the first definition
pot/sc/source/ui/src.pot:24789: duplicate message definition...
pot/sc/source/ui/src.pot:24770: ...this is the location of the first definition
msgfmt: found 4 fatal errors
--
pot/scaddins/source/analysis.pot:2165: duplicate message definition...
pot/scaddins/source/analysis.pot:2146: ...this is the location of the first definition
pot/scaddins/source/analysis.pot:2265: duplicate message definition...
pot/scaddins/source/analysis.pot:2256: ...this is the location of the first definition
pot/scaddins/source/analysis.pot:2285: duplicate message definition...
pot/scaddins/source/analysis.pot:2276: ...this is the location of the first definition
msgfmt: found 3 fatal errors
--
pot/sd/source/core.pot:574: duplicate message definition...
pot/sd/source/core.pot:565: ...this is the location of the first definition
msgfmt: found 1 fatal error
--
pot/svtools/source/misc.pot:611: duplicate message definition...
pot/svtools/source/misc.pot:602: ...this is the location of the first definition
msgfmt: found 1 fatal error
--
pot/svx/source/dialog.pot:4385: duplicate message definition...
pot/svx/source/dialog.pot:4236: ...this is the location of the first definition
pot/svx/source/dialog.pot:4485: duplicate message definition...
pot/svx/source/dialog.pot:4476: ...this is the location of the first definition
msgfmt: found 2 fatal errors
--
pot/svx/source/src.pot:63: duplicate message definition...
pot/svx/source/src.pot:54: ...this is the location of the first definition
pot/svx/source/src.pot:133: duplicate message definition...
pot/svx/source/src.pot:124: ...this is the location of the first definition
pot/svx/source/src.pot:363: duplicate message definition...
pot/svx/source/src.pot:304: ...this is the location of the first definition
pot/svx/source/src.pot:825: duplicate message definition...
pot/svx/source/src.pot:816: ...this is the location of the first definition
msgfmt: found 4 fatal errors
--


Expected Results:
No duplicate message definitions in any .pot files.


Reproducible: Always

User Profile Reset: No

Additional Info:
Version: 5.4.0.0.alpha1+
Build ID: 6d424f07701bf26d8fb173563b567d5f097c33e2
CPU threads: 8; OS: Linux 4.10; UI render: default; VCL: gtk3; 
Locale:  ja-JP (ja_JP.UTF-8); Calc: CL


User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.96 Safari/537.36
Comment 1 Kiyotaka Nishibori 2017-05-04 04:01:38 UTC
I'm sorry, I've forgotten to tell you something on "Steps to Reproduce #3".
please do 'cd workdir' and run the command.
Comment 2 Buovjaga 2017-05-07 11:10:36 UTC
I didn't find anything:

[user@computer libreoffice]$ make translations
Makefile:275: warning: overriding recipe for target 'help'
Makefile:115: warning: ignoring old recipe for target 'help'
mkdir -p /home/user/libreoffice/instdir
/home/user/libreoffice/solenv/bin/install-gdb-printers -a /home/user/libreoffice/instdir -c
make -j 8  -rs -f /home/user/libreoffice/Makefile.gbuild    translations
[POT] pot.done
[user@computer libreoffice]$ cd workdir/
[user@computer workdir]$ for i in `find pot -name "*.pot" -print|sort`; do msgmerge -cv -o /dev/null $i >> pots-status 2>&1; done; grep --before-context=0 --after-context=1 -e 'definition' pots-status > pots-errors
[user@computer workdir]$ 

Arch Linux 64-bit, KDE Plasma 5
Version: 5.4.0.0.alpha1+
Build ID: 6e4cba99bb35e6697b94309eedd1a08ebea2dc68
CPU threads: 8; OS: Linux 4.10; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on May 5th 2016
Comment 3 Kiyotaka Nishibori 2017-05-09 14:30:40 UTC
Hi, Buovjaga 

> I didn't find anything:
I'm sorry  I wrote wrong command: not "msgmerge" but "msgfmt".
I rewrite command for verifying:
export LANG=C; cd workdir; for i in `find pot -name "*.pot" -print|sort`; do msgfmt -cv -o /dev/null $i >> pots-status 2>&1; done; grep --before-context=0 --after-context=1 -e 'definition' pots-status > pots-errors

Your retrying would be much appreciated.
Comment 4 Buovjaga 2017-05-09 16:22:38 UTC
(In reply to Kiyotaka Nishibori from comment #3)
> Hi, Buovjaga 
> 
> > I didn't find anything:
> I'm sorry  I wrote wrong command: not "msgmerge" but "msgfmt".
> I rewrite command for verifying:
> export LANG=C; cd workdir; for i in `find pot -name "*.pot" -print|sort`; do
> msgfmt -cv -o /dev/null $i >> pots-status 2>&1; done; grep
> --before-context=0 --after-context=1 -e 'definition' pots-status >
> pots-errors
> 
> Your retrying would be much appreciated.

It still prints nothing.
Comment 5 Jean-Baptiste Faure 2017-08-01 05:12:10 UTC
Hi Kiyotaka Nishibori,

Please could you try again with a clean clone of the source code of the current 5.4 branch ?

Set status to NEEDINFO, please set it back to UNCONFIRMED once requested
informations are provided.

Best regards. JBF
Comment 6 Kiyotaka Nishibori 2017-08-04 18:59:19 UTC
(In reply to Jean-Baptiste Faure from comment #5)
> Hi Kiyotaka Nishibori,
> 
> Please could you try again with a clean clone of the source code of the
> current 5.4 branch ?
> 
> Set status to NEEDINFO, please set it back to UNCONFIRMED once requested
> informations are provided.
> 
> Best regards. JBF

Hi Jean-Baptiste Faure, 

I tried again on libreoffice-5-4 branch and 17 messages were still duplicate:
  pot/basic/source/classes.pot:893: duplicate message definition...
  pot/basic/source/classes.pot:814: ...this is the location of the first definition
  pot/sc/source/ui/src.pot:24279: duplicate message definition...
  pot/sc/source/ui/src.pot:24260: ...this is the location of the first definition
  pot/sc/source/ui/src.pot:24689: duplicate message definition...
  pot/sc/source/ui/src.pot:24670: ...this is the location of the first definition
  pot/sc/source/ui/src.pot:24739: duplicate message definition...
  pot/sc/source/ui/src.pot:24720: ...this is the location of the first definition
  pot/sc/source/ui/src.pot:24789: duplicate message definition...
  pot/sc/source/ui/src.pot:24770: ...this is the location of the first definition
  pot/scaddins/source/analysis.pot:2165: duplicate message definition...
  pot/scaddins/source/analysis.pot:2146: ...this is the location of the first definition
  pot/scaddins/source/analysis.pot:2265: duplicate message definition...
  pot/scaddins/source/analysis.pot:2256: ...this is the location of the first definition
  pot/scaddins/source/analysis.pot:2285: duplicate message definition...
  pot/scaddins/source/analysis.pot:2276: ...this is the location of the first definition
  pot/sd/source/core.pot:574: duplicate message definition...
  pot/sd/source/core.pot:565: ...this is the location of the first definition
  pot/svtools/source/misc.pot:611: duplicate message definition...
  pot/svtools/source/misc.pot:602: ...this is the location of the first definition
  pot/svx/source/dialog.pot:4385: duplicate message definition...
  pot/svx/source/dialog.pot:4236: ...this is the location of the first definition
  pot/svx/source/dialog.pot:4485: duplicate message definition...
  pot/svx/source/dialog.pot:4476: ...this is the location of the first definition
  pot/svx/source/src.pot:63: duplicate message definition...
  pot/svx/source/src.pot:54: ...this is the location of the first definition
  pot/svx/source/src.pot:133: duplicate message definition...
  pot/svx/source/src.pot:124: ...this is the location of the first definition
  pot/svx/source/src.pot:363: duplicate message definition...
  pot/svx/source/src.pot:304: ...this is the location of the first definition
  pot/svx/source/src.pot:825: duplicate message definition...
  pot/svx/source/src.pot:816: ...this is the location of the first definition
  pot/sw/source/ui/utlui.pot:1976: duplicate message definition...
  pot/sw/source/ui/utlui.pot:1957: ...this is the location of the first definition

Steps of reproduction:
  1.  git -b libreoffice-5-4 git://anongit.freedesktop.org/libreoffice/core libreoffice-5-4-testing
  2.  cd libreoffice-5-4-testing
  3. ./autogen-sh --with-help --with-lang="ja"
  4. make fetch
  5. make
  6. make translations
  7. cd workdir
  8. LANG=C; for i in `find pot -name "*.pot" -print|sort`; do msgfmt -cv -o /dev/null $i 2>&1|grep -e 'definition'; done

Version information:
Version: 5.4.1.0.0+
Build ID: b6de2875e4b87e55ccef20fb83181f651370ce9a
CPU threads: 8; OS: Linux 4.12; UI render: default; VCL: gtk3; 
Locale: ja-JP (ja_JP.utf-8); Calc: CL
Comment 7 Kiyotaka Nishibori 2017-08-04 19:08:00 UTC
> Steps of reproduction:
>   1.  git -b libreoffice-5-4 git://anongit.freedesktop.org/libreoffice/core
> libreoffice-5-4-testing

-1.  git -b libreoffice-5-4 git://anongit.freedesktop.org/libreoffice/core libreoffice-5-4-testing
+1.  git clone -b libreoffice-5-4 git://anongit.freedesktop.org/libreoffice/core libreoffice-5-4-testing
Comment 8 Buovjaga 2017-08-08 20:46:26 UTC
Kiyotaka: Caolán thinks that this problem is gone in master (6.0): https://lists.freedesktop.org/archives/libreoffice/2017-August/078243.html
Here you can find a Linux daily build: http://dev-builds.libreoffice.org/daily/master/Linux-archive-x86_64@80-updater/current/
It also includes an automatic update feature.
Comment 9 QA Administrators 2018-03-02 10:01:00 UTC Comment hidden (obsolete)
Comment 10 QA Administrators 2018-04-04 13:26:34 UTC
Dear Bug Submitter,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-20180404