I'm trying to build a new upstream release of gscan2pdf -- but a lot of other upstream software also looks affected, this is the build failure:
/usr/bin/perl -MExtUtils::Command -e 'mkpath' -- /builddir/build/BUILDROOT/gscan2pdf-1.2.5-1.fc21.noarch/usr/share/locale/ab/LC_MESSAGES msgfmt -c po/gscan2pdf-ab.po -o /builddir/build/BUILDROOT/gscan2pdf-1.2.5-1.fc21.noarch/usr/share/locale/ab/LC_MESSAGES/gscan2pdf.mo po/gscan2pdf-ab.po:7: header field 'Last-Translator' still has the initial default value po/gscan2pdf-ab.po:7: warning: header field 'Language' missing in header msgfmt: found 2 fatal errors
This builds fine in F20. I think a newer gettext may be being more strict about Last-Translator and Language -- any ideas or best practices on how to fix it? Patching 33 .po files in a spec file seems like the Wrong Way (tm).
Thanks,
Richard.
Richard Hughes hughsient@gmail.com writes:
po/gscan2pdf-ab.po:7: header field 'Last-Translator' still has the initial default value po/gscan2pdf-ab.po:7: warning: header field 'Language' missing in header msgfmt: found 2 fatal errors
This builds fine in F20. I think a newer gettext may be being more strict about Last-Translator and Language
For the record, this change has been introduced as a fix of: https://savannah.gnu.org/bugs/index.php?40262
any ideas or best practices on how to fix it? Patching 33 .po files in a spec file seems like the Wrong Way (tm).
However, the non-warning errors have been there for a long time. Isn't it time to fix them? If this is really too strict, we can revert this in the next minor release and advise users until the next major release.
(But, oh, msgfmt seems to mistreat the warning here. Sorry about that and will fix it ASAP.)
Regards, -- Daiki Ueno
On 2 June 2014 10:02, Daiki Ueno ueno@fedoraproject.org wrote:
However, the non-warning errors have been there for a long time. Isn't it time to fix them? If this is really too strict, we can revert this in the next minor release and advise users until the next major release.
I think quite a lot of software will fail to rebuild (mostly stuff using rosetta) with this change in the pending F21 mass rebuild.
(But, oh, msgfmt seems to mistreat the warning here. Sorry about that and will fix it ASAP.)
I think a warning is fine, an error is somewhat draconian IMHO :)
Richard.
Richard Hughes hughsient@gmail.com writes:
I think quite a lot of software will fail to rebuild (mostly stuff using rosetta) with this change in the pending F21 mass rebuild.
(But, oh, msgfmt seems to mistreat the warning here. Sorry about that and will fix it ASAP.)
I think a warning is fine, an error is somewhat draconian IMHO :)
I see. So, just applied a patch to turn the missing-header errors into warnings (should be available as 0.19-2).
Thanks for catching this quickly.
Regards, -- Daiki Ueno
On 2 June 2014 11:23, Daiki Ueno ueno@fedoraproject.org wrote:
I see. So, just applied a patch to turn the missing-header errors into warnings (should be available as 0.19-2).
Works great, thanks!
Richard.