diff mbox series

[meta-oe,v3] poppler: fix racing build issue

Message ID 20251022025948.3520973-1-hongxu.jia@windriver.com
State New
Headers show
Series [meta-oe,v3] poppler: fix racing build issue | expand

Commit Message

Hongxu Jia Oct. 22, 2025, 2:59 a.m. UTC
There is a racing issue in world build while multilib enabled:

...log.do_install...
CMake Error at utils/po/ca/cmake_install.cmake:46 (file):
  file INSTALL cannot find
  "TOPDIR/tmp/work/core2-32-wrs-linux/poppler/25.08.0/build/utils/po/ca/pdfsig.gmo":
  No such file or directory.
Call Stack (most recent call first):
  utils/po/cmake_install.cmake:47 (include)
  utils/cmake_install.cmake:243 (include)
  cmake_install.cmake:229 (include)
...log.do_install...

The issue has reported to upstream [1] and upstream tried to fix it [2],
but the issue still existed. The catalan translation of pdfsig is not
vital for poppler. So revert upstream commit "pdfsig: Catalan translation"
to workaround

[1] https://gitlab.freedesktop.org/poppler/poppler/-/issues/1551
[2] https://gitlab.freedesktop.org/poppler/poppler/-/commit/053acd5d2b310c696993dc97072d1f2b3b1dd7ac

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 .../0001-workaround-build-racing.patch        | 43 +++++++++++++++++++
 .../poppler/poppler_25.08.0.bb                |  1 +
 2 files changed, 44 insertions(+)
 create mode 100644 meta-oe/recipes-support/poppler/poppler/0001-workaround-build-racing.patch

Comments

Khem Raj Oct. 22, 2025, 3:02 a.m. UTC | #1
what changed in v2 and then v3 ? and it does not seem to be rebased on
master branch, it helps if the changes between
versions are clearly documented and feedback is addressed.

On Tue, Oct 21, 2025 at 7:59 PM hongxu via lists.openembedded.org
<hongxu.jia=eng.windriver.com@lists.openembedded.org> wrote:
>
> There is a racing issue in world build while multilib enabled:
>
> ...log.do_install...
> CMake Error at utils/po/ca/cmake_install.cmake:46 (file):
>   file INSTALL cannot find
>   "TOPDIR/tmp/work/core2-32-wrs-linux/poppler/25.08.0/build/utils/po/ca/pdfsig.gmo":
>   No such file or directory.
> Call Stack (most recent call first):
>   utils/po/cmake_install.cmake:47 (include)
>   utils/cmake_install.cmake:243 (include)
>   cmake_install.cmake:229 (include)
> ...log.do_install...
>
> The issue has reported to upstream [1] and upstream tried to fix it [2],
> but the issue still existed. The catalan translation of pdfsig is not
> vital for poppler. So revert upstream commit "pdfsig: Catalan translation"
> to workaround
>
> [1] https://gitlab.freedesktop.org/poppler/poppler/-/issues/1551
> [2] https://gitlab.freedesktop.org/poppler/poppler/-/commit/053acd5d2b310c696993dc97072d1f2b3b1dd7ac
>
> Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
> ---
>  .../0001-workaround-build-racing.patch        | 43 +++++++++++++++++++
>  .../poppler/poppler_25.08.0.bb                |  1 +
>  2 files changed, 44 insertions(+)
>  create mode 100644 meta-oe/recipes-support/poppler/poppler/0001-workaround-build-racing.patch
>
> diff --git a/meta-oe/recipes-support/poppler/poppler/0001-workaround-build-racing.patch b/meta-oe/recipes-support/poppler/poppler/0001-workaround-build-racing.patch
> new file mode 100644
> index 0000000000..fdf4f7ff70
> --- /dev/null
> +++ b/meta-oe/recipes-support/poppler/poppler/0001-workaround-build-racing.patch
> @@ -0,0 +1,43 @@
> +From 83ad73024c69d41fda302f39acf50c381684890e Mon Sep 17 00:00:00 2001
> +From: Hongxu Jia <hongxu.jia@windriver.com>
> +Date: Tue, 21 Oct 2025 02:39:36 -0700
> +Subject: [PATCH] workaround build racing
> +
> +There is a racing issue in world build while multilib enabled:
> +
> +...log.do_install...
> +CMake Error at utils/po/ca/cmake_install.cmake:46 (file):
> +  file INSTALL cannot find
> +  "TOPDIR/tmp/work/core2-32-wrs-linux/poppler/25.08.0/build/utils/po/ca/pdfsig.gmo":
> +  No such file or directory.
> +Call Stack (most recent call first):
> +  utils/po/cmake_install.cmake:47 (include)
> +  utils/cmake_install.cmake:243 (include)
> +  cmake_install.cmake:229 (include)
> +...log.do_install...
> +
> +Revert "pdfsig: Catalan translation" to workaround
> +
> +This reverts commit 99f5416d9bfb6a34bbc5cbcb368e258b98fd3f08.
> +
> +Upstream-Status: Inappropriate [Yocto specific]
> +
> +Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
> +---
> + utils/po/ca/CMakeLists.txt | 4 ----
> + 1 file changed, 4 deletions(-)
> + delete mode 100644 utils/po/ca/CMakeLists.txt
> +
> +diff --git a/utils/po/ca/CMakeLists.txt b/utils/po/ca/CMakeLists.txt
> +deleted file mode 100644
> +index 3225131c..00000000
> +--- a/utils/po/ca/CMakeLists.txt
> ++++ /dev/null
> +@@ -1,4 +0,0 @@
> +-get_filename_component(_lang ${CMAKE_CURRENT_SOURCE_DIR} NAME)
> +-gettext_process_po_files(${_lang} ALL INSTALL_DESTINATION ${CMAKE_INSTALL_LOCALEDIR} PO_FILES
> +-  pdfsig.po
> +-)
> +--
> +2.49.0
> +
> diff --git a/meta-oe/recipes-support/poppler/poppler_25.08.0.bb b/meta-oe/recipes-support/poppler/poppler_25.08.0.bb
> index 45f94b0ae7..3b0b4b0e99 100644
> --- a/meta-oe/recipes-support/poppler/poppler_25.08.0.bb
> +++ b/meta-oe/recipes-support/poppler/poppler_25.08.0.bb
> @@ -7,6 +7,7 @@ SRC_URI = "http://poppler.freedesktop.org/${BP}.tar.xz \
>             file://0001-Do-not-overwrite-all-our-build-flags.patch \
>             file://basename-include.patch \
>             file://0001-cmake-Do-not-use-isystem.patch \
> +           file://0001-workaround-build-racing.patch \
>             "
>  SRC_URI[sha256sum] = "425ed4d4515a093bdcdbbaac6876f20617451edc710df6a4fd6c45dd67eb418d"
>
> --
> 2.34.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#120878): https://lists.openembedded.org/g/openembedded-devel/message/120878
> Mute This Topic: https://lists.openembedded.org/mt/115886629/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
Hongxu Jia Oct. 22, 2025, 3:05 a.m. UTC | #2
On 10/22/25 11:02, Khem Raj wrote:
> CAUTION: This email comes from a non Wind River email account!
> Do not click links or open attachments unless you recognize the sender and know the content is safe.
>
> what changed in v2 and then v3 ? and it does not seem to be rebased on
> master branch, it helps if the changes between
> versions are clearly documented and feedback is addressed.
The upstream defect number differs in comments between v2 and v3

https://gitlab.freedesktop.org/poppler/poppler/-/issues/1550 in v2


https://gitlab.freedesktop.org/poppler/poppler/-/issues/1551 in v3

V3 is the actual number


//Hongxu

> On Tue, Oct 21, 2025 at 7:59 PM hongxu via lists.openembedded.org
> <hongxu.jia=eng.windriver.com@lists.openembedded.org> wrote:
>> There is a racing issue in world build while multilib enabled:
>>
>> ...log.do_install...
>> CMake Error at utils/po/ca/cmake_install.cmake:46 (file):
>>    file INSTALL cannot find
>>    "TOPDIR/tmp/work/core2-32-wrs-linux/poppler/25.08.0/build/utils/po/ca/pdfsig.gmo":
>>    No such file or directory.
>> Call Stack (most recent call first):
>>    utils/po/cmake_install.cmake:47 (include)
>>    utils/cmake_install.cmake:243 (include)
>>    cmake_install.cmake:229 (include)
>> ...log.do_install...
>>
>> The issue has reported to upstream [1] and upstream tried to fix it [2],
>> but the issue still existed. The catalan translation of pdfsig is not
>> vital for poppler. So revert upstream commit "pdfsig: Catalan translation"
>> to workaround
>>
>> [1] https://gitlab.freedesktop.org/poppler/poppler/-/issues/1551
>> [2] https://gitlab.freedesktop.org/poppler/poppler/-/commit/053acd5d2b310c696993dc97072d1f2b3b1dd7ac
>>
>> Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
>> ---
>>   .../0001-workaround-build-racing.patch        | 43 +++++++++++++++++++
>>   .../poppler/poppler_25.08.0.bb                |  1 +
>>   2 files changed, 44 insertions(+)
>>   create mode 100644 meta-oe/recipes-support/poppler/poppler/0001-workaround-build-racing.patch
>>
>> diff --git a/meta-oe/recipes-support/poppler/poppler/0001-workaround-build-racing.patch b/meta-oe/recipes-support/poppler/poppler/0001-workaround-build-racing.patch
>> new file mode 100644
>> index 0000000000..fdf4f7ff70
>> --- /dev/null
>> +++ b/meta-oe/recipes-support/poppler/poppler/0001-workaround-build-racing.patch
>> @@ -0,0 +1,43 @@
>> +From 83ad73024c69d41fda302f39acf50c381684890e Mon Sep 17 00:00:00 2001
>> +From: Hongxu Jia <hongxu.jia@windriver.com>
>> +Date: Tue, 21 Oct 2025 02:39:36 -0700
>> +Subject: [PATCH] workaround build racing
>> +
>> +There is a racing issue in world build while multilib enabled:
>> +
>> +...log.do_install...
>> +CMake Error at utils/po/ca/cmake_install.cmake:46 (file):
>> +  file INSTALL cannot find
>> +  "TOPDIR/tmp/work/core2-32-wrs-linux/poppler/25.08.0/build/utils/po/ca/pdfsig.gmo":
>> +  No such file or directory.
>> +Call Stack (most recent call first):
>> +  utils/po/cmake_install.cmake:47 (include)
>> +  utils/cmake_install.cmake:243 (include)
>> +  cmake_install.cmake:229 (include)
>> +...log.do_install...
>> +
>> +Revert "pdfsig: Catalan translation" to workaround
>> +
>> +This reverts commit 99f5416d9bfb6a34bbc5cbcb368e258b98fd3f08.
>> +
>> +Upstream-Status: Inappropriate [Yocto specific]
>> +
>> +Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
>> +---
>> + utils/po/ca/CMakeLists.txt | 4 ----
>> + 1 file changed, 4 deletions(-)
>> + delete mode 100644 utils/po/ca/CMakeLists.txt
>> +
>> +diff --git a/utils/po/ca/CMakeLists.txt b/utils/po/ca/CMakeLists.txt
>> +deleted file mode 100644
>> +index 3225131c..00000000
>> +--- a/utils/po/ca/CMakeLists.txt
>> ++++ /dev/null
>> +@@ -1,4 +0,0 @@
>> +-get_filename_component(_lang ${CMAKE_CURRENT_SOURCE_DIR} NAME)
>> +-gettext_process_po_files(${_lang} ALL INSTALL_DESTINATION ${CMAKE_INSTALL_LOCALEDIR} PO_FILES
>> +-  pdfsig.po
>> +-)
>> +--
>> +2.49.0
>> +
>> diff --git a/meta-oe/recipes-support/poppler/poppler_25.08.0.bb b/meta-oe/recipes-support/poppler/poppler_25.08.0.bb
>> index 45f94b0ae7..3b0b4b0e99 100644
>> --- a/meta-oe/recipes-support/poppler/poppler_25.08.0.bb
>> +++ b/meta-oe/recipes-support/poppler/poppler_25.08.0.bb
>> @@ -7,6 +7,7 @@ SRC_URI = "http://poppler.freedesktop.org/${BP}.tar.xz \
>>              file://0001-Do-not-overwrite-all-our-build-flags.patch \
>>              file://basename-include.patch \
>>              file://0001-cmake-Do-not-use-isystem.patch \
>> +           file://0001-workaround-build-racing.patch \
>>              "
>>   SRC_URI[sha256sum] = "425ed4d4515a093bdcdbbaac6876f20617451edc710df6a4fd6c45dd67eb418d"
>>
>> --
>> 2.34.1
>>
>>
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>> View/Reply Online (#120878): https://lists.openembedded.org/g/openembedded-devel/message/120878
>> Mute This Topic: https://lists.openembedded.org/mt/115886629/1997914
>> Group Owner: openembedded-devel+owner@lists.openembedded.org
>> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>
Khem Raj Oct. 22, 2025, 3:07 a.m. UTC | #3
On Tue, Oct 21, 2025 at 8:05 PM Hongxu Jia <hongxu.jia@windriver.com> wrote:
>
> On 10/22/25 11:02, Khem Raj wrote:
> > CAUTION: This email comes from a non Wind River email account!
> > Do not click links or open attachments unless you recognize the sender and know the content is safe.
> >
> > what changed in v2 and then v3 ? and it does not seem to be rebased on
> > master branch, it helps if the changes between
> > versions are clearly documented and feedback is addressed.
> The upstream defect number differs in comments between v2 and v3
>
> https://gitlab.freedesktop.org/poppler/poppler/-/issues/1550 in v2
>
>
> https://gitlab.freedesktop.org/poppler/poppler/-/issues/1551 in v3
>
> V3 is the actual number

Feedback on v1 is not yet addressed
https://lists.openembedded.org/g/openembedded-devel/message/120839?p=%2C%2C%2C20%2C0%2C0%2C0%3A%3Acreated%2C%2Cpoppler%2C20%2C2%2C0%2C115870675

Have you even tested this patch on the master branch ?

>
>
> //Hongxu
>
> > On Tue, Oct 21, 2025 at 7:59 PM hongxu via lists.openembedded.org
> > <hongxu.jia=eng.windriver.com@lists.openembedded.org> wrote:
> >> There is a racing issue in world build while multilib enabled:
> >>
> >> ...log.do_install...
> >> CMake Error at utils/po/ca/cmake_install.cmake:46 (file):
> >>    file INSTALL cannot find
> >>    "TOPDIR/tmp/work/core2-32-wrs-linux/poppler/25.08.0/build/utils/po/ca/pdfsig.gmo":
> >>    No such file or directory.
> >> Call Stack (most recent call first):
> >>    utils/po/cmake_install.cmake:47 (include)
> >>    utils/cmake_install.cmake:243 (include)
> >>    cmake_install.cmake:229 (include)
> >> ...log.do_install...
> >>
> >> The issue has reported to upstream [1] and upstream tried to fix it [2],
> >> but the issue still existed. The catalan translation of pdfsig is not
> >> vital for poppler. So revert upstream commit "pdfsig: Catalan translation"
> >> to workaround
> >>
> >> [1] https://gitlab.freedesktop.org/poppler/poppler/-/issues/1551
> >> [2] https://gitlab.freedesktop.org/poppler/poppler/-/commit/053acd5d2b310c696993dc97072d1f2b3b1dd7ac
> >>
> >> Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
> >> ---
> >>   .../0001-workaround-build-racing.patch        | 43 +++++++++++++++++++
> >>   .../poppler/poppler_25.08.0.bb                |  1 +
> >>   2 files changed, 44 insertions(+)
> >>   create mode 100644 meta-oe/recipes-support/poppler/poppler/0001-workaround-build-racing.patch
> >>
> >> diff --git a/meta-oe/recipes-support/poppler/poppler/0001-workaround-build-racing.patch b/meta-oe/recipes-support/poppler/poppler/0001-workaround-build-racing.patch
> >> new file mode 100644
> >> index 0000000000..fdf4f7ff70
> >> --- /dev/null
> >> +++ b/meta-oe/recipes-support/poppler/poppler/0001-workaround-build-racing.patch
> >> @@ -0,0 +1,43 @@
> >> +From 83ad73024c69d41fda302f39acf50c381684890e Mon Sep 17 00:00:00 2001
> >> +From: Hongxu Jia <hongxu.jia@windriver.com>
> >> +Date: Tue, 21 Oct 2025 02:39:36 -0700
> >> +Subject: [PATCH] workaround build racing
> >> +
> >> +There is a racing issue in world build while multilib enabled:
> >> +
> >> +...log.do_install...
> >> +CMake Error at utils/po/ca/cmake_install.cmake:46 (file):
> >> +  file INSTALL cannot find
> >> +  "TOPDIR/tmp/work/core2-32-wrs-linux/poppler/25.08.0/build/utils/po/ca/pdfsig.gmo":
> >> +  No such file or directory.
> >> +Call Stack (most recent call first):
> >> +  utils/po/cmake_install.cmake:47 (include)
> >> +  utils/cmake_install.cmake:243 (include)
> >> +  cmake_install.cmake:229 (include)
> >> +...log.do_install...
> >> +
> >> +Revert "pdfsig: Catalan translation" to workaround
> >> +
> >> +This reverts commit 99f5416d9bfb6a34bbc5cbcb368e258b98fd3f08.
> >> +
> >> +Upstream-Status: Inappropriate [Yocto specific]
> >> +
> >> +Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
> >> +---
> >> + utils/po/ca/CMakeLists.txt | 4 ----
> >> + 1 file changed, 4 deletions(-)
> >> + delete mode 100644 utils/po/ca/CMakeLists.txt
> >> +
> >> +diff --git a/utils/po/ca/CMakeLists.txt b/utils/po/ca/CMakeLists.txt
> >> +deleted file mode 100644
> >> +index 3225131c..00000000
> >> +--- a/utils/po/ca/CMakeLists.txt
> >> ++++ /dev/null
> >> +@@ -1,4 +0,0 @@
> >> +-get_filename_component(_lang ${CMAKE_CURRENT_SOURCE_DIR} NAME)
> >> +-gettext_process_po_files(${_lang} ALL INSTALL_DESTINATION ${CMAKE_INSTALL_LOCALEDIR} PO_FILES
> >> +-  pdfsig.po
> >> +-)
> >> +--
> >> +2.49.0
> >> +
> >> diff --git a/meta-oe/recipes-support/poppler/poppler_25.08.0.bb b/meta-oe/recipes-support/poppler/poppler_25.08.0.bb
> >> index 45f94b0ae7..3b0b4b0e99 100644
> >> --- a/meta-oe/recipes-support/poppler/poppler_25.08.0.bb
> >> +++ b/meta-oe/recipes-support/poppler/poppler_25.08.0.bb
> >> @@ -7,6 +7,7 @@ SRC_URI = "http://poppler.freedesktop.org/${BP}.tar.xz \
> >>              file://0001-Do-not-overwrite-all-our-build-flags.patch \
> >>              file://basename-include.patch \
> >>              file://0001-cmake-Do-not-use-isystem.patch \
> >> +           file://0001-workaround-build-racing.patch \
> >>              "
> >>   SRC_URI[sha256sum] = "425ed4d4515a093bdcdbbaac6876f20617451edc710df6a4fd6c45dd67eb418d"
> >>
> >> --
> >> 2.34.1
> >>
> >>
> >> -=-=-=-=-=-=-=-=-=-=-=-
> >> Links: You receive all messages sent to this group.
> >> View/Reply Online (#120878): https://lists.openembedded.org/g/openembedded-devel/message/120878
> >> Mute This Topic: https://lists.openembedded.org/mt/115886629/1997914
> >> Group Owner: openembedded-devel+owner@lists.openembedded.org
> >> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> >> -=-=-=-=-=-=-=-=-=-=-=-
> >>
>
Hongxu Jia Oct. 22, 2025, 3:11 a.m. UTC | #4
On 10/22/25 11:07, Khem Raj wrote:
> CAUTION: This email comes from a non Wind River email account!
> Do not click links or open attachments unless you recognize the sender and know the content is safe.
>
> On Tue, Oct 21, 2025 at 8:05 PM Hongxu Jia <hongxu.jia@windriver.com> wrote:
>> On 10/22/25 11:02, Khem Raj wrote:
>>> CAUTION: This email comes from a non Wind River email account!
>>> Do not click links or open attachments unless you recognize the sender and know the content is safe.
>>>
>>> what changed in v2 and then v3 ? and it does not seem to be rebased on
>>> master branch, it helps if the changes between
>>> versions are clearly documented and feedback is addressed.
>> The upstream defect number differs in comments between v2 and v3
>>
>> https://gitlab.freedesktop.org/poppler/poppler/-/issues/1550 in v2
>>
>>
>> https://gitlab.freedesktop.org/poppler/poppler/-/issues/1551 in v3
>>
>> V3 is the actual number
> Feedback on v1 is not yet addressed
> https://lists.openembedded.org/g/openembedded-devel/message/120839?p=%2C%2C%2C20%2C0%2C0%2C0%3A%3Acreated%2C%2Cpoppler%2C20%2C2%2C0%2C115870675
>
> Have you even tested this patch on the master branch ?

Oh, sorry, I missed it in my mailing list, I am working on it

//Hongxu

>>
>> //Hongxu
>>
>>> On Tue, Oct 21, 2025 at 7:59 PM hongxu via lists.openembedded.org
>>> <hongxu.jia=eng.windriver.com@lists.openembedded.org> wrote:
>>>> There is a racing issue in world build while multilib enabled:
>>>>
>>>> ...log.do_install...
>>>> CMake Error at utils/po/ca/cmake_install.cmake:46 (file):
>>>>     file INSTALL cannot find
>>>>     "TOPDIR/tmp/work/core2-32-wrs-linux/poppler/25.08.0/build/utils/po/ca/pdfsig.gmo":
>>>>     No such file or directory.
>>>> Call Stack (most recent call first):
>>>>     utils/po/cmake_install.cmake:47 (include)
>>>>     utils/cmake_install.cmake:243 (include)
>>>>     cmake_install.cmake:229 (include)
>>>> ...log.do_install...
>>>>
>>>> The issue has reported to upstream [1] and upstream tried to fix it [2],
>>>> but the issue still existed. The catalan translation of pdfsig is not
>>>> vital for poppler. So revert upstream commit "pdfsig: Catalan translation"
>>>> to workaround
>>>>
>>>> [1] https://gitlab.freedesktop.org/poppler/poppler/-/issues/1551
>>>> [2] https://gitlab.freedesktop.org/poppler/poppler/-/commit/053acd5d2b310c696993dc97072d1f2b3b1dd7ac
>>>>
>>>> Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
>>>> ---
>>>>    .../0001-workaround-build-racing.patch        | 43 +++++++++++++++++++
>>>>    .../poppler/poppler_25.08.0.bb                |  1 +
>>>>    2 files changed, 44 insertions(+)
>>>>    create mode 100644 meta-oe/recipes-support/poppler/poppler/0001-workaround-build-racing.patch
>>>>
>>>> diff --git a/meta-oe/recipes-support/poppler/poppler/0001-workaround-build-racing.patch b/meta-oe/recipes-support/poppler/poppler/0001-workaround-build-racing.patch
>>>> new file mode 100644
>>>> index 0000000000..fdf4f7ff70
>>>> --- /dev/null
>>>> +++ b/meta-oe/recipes-support/poppler/poppler/0001-workaround-build-racing.patch
>>>> @@ -0,0 +1,43 @@
>>>> +From 83ad73024c69d41fda302f39acf50c381684890e Mon Sep 17 00:00:00 2001
>>>> +From: Hongxu Jia <hongxu.jia@windriver.com>
>>>> +Date: Tue, 21 Oct 2025 02:39:36 -0700
>>>> +Subject: [PATCH] workaround build racing
>>>> +
>>>> +There is a racing issue in world build while multilib enabled:
>>>> +
>>>> +...log.do_install...
>>>> +CMake Error at utils/po/ca/cmake_install.cmake:46 (file):
>>>> +  file INSTALL cannot find
>>>> +  "TOPDIR/tmp/work/core2-32-wrs-linux/poppler/25.08.0/build/utils/po/ca/pdfsig.gmo":
>>>> +  No such file or directory.
>>>> +Call Stack (most recent call first):
>>>> +  utils/po/cmake_install.cmake:47 (include)
>>>> +  utils/cmake_install.cmake:243 (include)
>>>> +  cmake_install.cmake:229 (include)
>>>> +...log.do_install...
>>>> +
>>>> +Revert "pdfsig: Catalan translation" to workaround
>>>> +
>>>> +This reverts commit 99f5416d9bfb6a34bbc5cbcb368e258b98fd3f08.
>>>> +
>>>> +Upstream-Status: Inappropriate [Yocto specific]
>>>> +
>>>> +Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
>>>> +---
>>>> + utils/po/ca/CMakeLists.txt | 4 ----
>>>> + 1 file changed, 4 deletions(-)
>>>> + delete mode 100644 utils/po/ca/CMakeLists.txt
>>>> +
>>>> +diff --git a/utils/po/ca/CMakeLists.txt b/utils/po/ca/CMakeLists.txt
>>>> +deleted file mode 100644
>>>> +index 3225131c..00000000
>>>> +--- a/utils/po/ca/CMakeLists.txt
>>>> ++++ /dev/null
>>>> +@@ -1,4 +0,0 @@
>>>> +-get_filename_component(_lang ${CMAKE_CURRENT_SOURCE_DIR} NAME)
>>>> +-gettext_process_po_files(${_lang} ALL INSTALL_DESTINATION ${CMAKE_INSTALL_LOCALEDIR} PO_FILES
>>>> +-  pdfsig.po
>>>> +-)
>>>> +--
>>>> +2.49.0
>>>> +
>>>> diff --git a/meta-oe/recipes-support/poppler/poppler_25.08.0.bb b/meta-oe/recipes-support/poppler/poppler_25.08.0.bb
>>>> index 45f94b0ae7..3b0b4b0e99 100644
>>>> --- a/meta-oe/recipes-support/poppler/poppler_25.08.0.bb
>>>> +++ b/meta-oe/recipes-support/poppler/poppler_25.08.0.bb
>>>> @@ -7,6 +7,7 @@ SRC_URI = "http://poppler.freedesktop.org/${BP}.tar.xz \
>>>>               file://0001-Do-not-overwrite-all-our-build-flags.patch \
>>>>               file://basename-include.patch \
>>>>               file://0001-cmake-Do-not-use-isystem.patch \
>>>> +           file://0001-workaround-build-racing.patch \
>>>>               "
>>>>    SRC_URI[sha256sum] = "425ed4d4515a093bdcdbbaac6876f20617451edc710df6a4fd6c45dd67eb418d"
>>>>
>>>> --
>>>> 2.34.1
>>>>
>>>>
>>>> -=-=-=-=-=-=-=-=-=-=-=-
>>>> Links: You receive all messages sent to this group.
>>>> View/Reply Online (#120878): https://lists.openembedded.org/g/openembedded-devel/message/120878
>>>> Mute This Topic: https://lists.openembedded.org/mt/115886629/1997914
>>>> Group Owner: openembedded-devel+owner@lists.openembedded.org
>>>> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
>>>> -=-=-=-=-=-=-=-=-=-=-=-
>>>>
diff mbox series

Patch

diff --git a/meta-oe/recipes-support/poppler/poppler/0001-workaround-build-racing.patch b/meta-oe/recipes-support/poppler/poppler/0001-workaround-build-racing.patch
new file mode 100644
index 0000000000..fdf4f7ff70
--- /dev/null
+++ b/meta-oe/recipes-support/poppler/poppler/0001-workaround-build-racing.patch
@@ -0,0 +1,43 @@ 
+From 83ad73024c69d41fda302f39acf50c381684890e Mon Sep 17 00:00:00 2001
+From: Hongxu Jia <hongxu.jia@windriver.com>
+Date: Tue, 21 Oct 2025 02:39:36 -0700
+Subject: [PATCH] workaround build racing
+
+There is a racing issue in world build while multilib enabled:
+
+...log.do_install...
+CMake Error at utils/po/ca/cmake_install.cmake:46 (file):
+  file INSTALL cannot find
+  "TOPDIR/tmp/work/core2-32-wrs-linux/poppler/25.08.0/build/utils/po/ca/pdfsig.gmo":
+  No such file or directory.
+Call Stack (most recent call first):
+  utils/po/cmake_install.cmake:47 (include)
+  utils/cmake_install.cmake:243 (include)
+  cmake_install.cmake:229 (include)
+...log.do_install...
+
+Revert "pdfsig: Catalan translation" to workaround
+
+This reverts commit 99f5416d9bfb6a34bbc5cbcb368e258b98fd3f08.
+
+Upstream-Status: Inappropriate [Yocto specific]
+
+Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
+---
+ utils/po/ca/CMakeLists.txt | 4 ----
+ 1 file changed, 4 deletions(-)
+ delete mode 100644 utils/po/ca/CMakeLists.txt
+
+diff --git a/utils/po/ca/CMakeLists.txt b/utils/po/ca/CMakeLists.txt
+deleted file mode 100644
+index 3225131c..00000000
+--- a/utils/po/ca/CMakeLists.txt
++++ /dev/null
+@@ -1,4 +0,0 @@
+-get_filename_component(_lang ${CMAKE_CURRENT_SOURCE_DIR} NAME)
+-gettext_process_po_files(${_lang} ALL INSTALL_DESTINATION ${CMAKE_INSTALL_LOCALEDIR} PO_FILES
+-  pdfsig.po
+-)
+-- 
+2.49.0
+
diff --git a/meta-oe/recipes-support/poppler/poppler_25.08.0.bb b/meta-oe/recipes-support/poppler/poppler_25.08.0.bb
index 45f94b0ae7..3b0b4b0e99 100644
--- a/meta-oe/recipes-support/poppler/poppler_25.08.0.bb
+++ b/meta-oe/recipes-support/poppler/poppler_25.08.0.bb
@@ -7,6 +7,7 @@  SRC_URI = "http://poppler.freedesktop.org/${BP}.tar.xz \
            file://0001-Do-not-overwrite-all-our-build-flags.patch \
            file://basename-include.patch \
            file://0001-cmake-Do-not-use-isystem.patch \
+           file://0001-workaround-build-racing.patch \
            "
 SRC_URI[sha256sum] = "425ed4d4515a093bdcdbbaac6876f20617451edc710df6a4fd6c45dd67eb418d"