Fedora Account System
Red Hat Associate
Red Hat Customer
When I modify po/Makevars file with `PO_DEPENDS_ON_POT = no` and `DIST_DEPENDS_ON_UPDATE_PO = no` against ibus-1.5.35.tar.xz, the parallel build frequently is failed with multiple CPUS. ``` diff --git a/po/Makevars b/po/Makevars index 1d16cc98..af639586 100644 --- a/po/Makevars +++ b/po/Makevars @@ -44,5 +44,5 @@ MSGID_BUGS_ADDRESS = $(PACKAGE_BUGREPORT) EXTRA_LOCALE_CATEGORIES = # https://wiki.gnome.org/Initiatives/GnomeGoals/GettextMigration -PO_DEPENDS_ON_POT = "no" -DIST_DEPENDS_ON_UPDAE_PO = "no" +PO_DEPENDS_ON_POT = no +DIST_DEPENDS_ON_UPDATE_PO = no ``` My CI runs `make -j4` and the following is the example failure: https://github.com/fujiwarat/ibus/actions/runs/41947628117/job/126983657386 ``` ... rm -f id.gmo && /usr/sbin/msgfmt -c --statistics --verbose -o id.gmo id.po ia.po: 127 translated messages, 28 untranslated messages. hu.po: 544 translated messages. rm -f it.gmo && /usr/sbin/msgfmt -c --statistics --verbose -o it.gmo it.po rm -f it.gmo && /usr/sbin/msgfmt -c --statistics --verbose -o it.gmo it.po id.po: 629 translated messages. id.po: 629 translated messages. mv: cannot stat 't-id.gmo': No such file or directory make[4]: *** [Makefile:200: id.gmo] Error 1 make[4]: *** Waiting for unfinished jobs.... ... ``` Seems `rm -f it.gmo && /usr/sbin/msgfmt -c --statistics --verbose -o it.gmo it.po` runs many times and failed. The workaround is to run `make -j1` or add `.NOTPARALLEL:` in po/Makevars file: ``` diff --git a/po/Makevars b/po/Makevars index af639586..8d5acb8f 100644 --- a/po/Makevars +++ b/po/Makevars @@ -46,3 +46,6 @@ EXTRA_LOCALE_CATEGORIES = # https://wiki.gnome.org/Initiatives/GnomeGoals/GettextMigration PO_DEPENDS_ON_POT = no DIST_DEPENDS_ON_UPDATE_PO = no + +# Force sequential execution inside the po directory to protect msgfmt +.NOTPARALLEL: ``` Both po/Makevars and po/Makefile.in.in are owned by gettext. Reproducible: Sometimes Steps to Reproduce: Explained the steps above. Expected Results: No build failure. Additional Information: https://github.com/fujiwarat/ibus/pull/16 The build failure sometimes happens in Fedora 44, 45 and Ubuntu.