Page MenuHomeFreeBSD

chinese/ibus-pinyin: Fixed build with NLS=off
ClosedPublic

Authored by yuri on Jan 2 2018, 7:37 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 24, 11:33 PM
Unknown Object (File)
Fri, Apr 19, 2:11 PM
Unknown Object (File)
Wed, Apr 17, 12:12 AM
Unknown Object (File)
Wed, Apr 17, 12:12 AM
Unknown Object (File)
Wed, Apr 17, 12:12 AM
Unknown Object (File)
Tue, Apr 16, 11:52 PM
Unknown Object (File)
Fri, Apr 12, 5:40 AM
Unknown Object (File)
Feb 11 2024, 7:31 AM
Subscribers

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

chinese/ibus-pinyin/Makefile
20 ↗(On Diff #37399)

so what is the point of having an NLS option, if you have to depend on gettext anyways?

yuri marked an inline comment as done.Jan 2 2018, 8:35 AM
yuri added inline comments.
chinese/ibus-pinyin/Makefile
20 ↗(On Diff #37399)

It's a bug in GNU toolchain. It has files with double .in suffix (.in.in) that are processed by gettext unconditionally. The point of the NLS option is that translation files aren't installed when NLS=off. One way to handle this is to remove NLS and have it always on. But I would rather see the option that removes files.

yuri marked 2 inline comments as done.Jan 2 2018, 8:35 AM

This port has been breaking with the blanked NLS=off rule. There is no way we can fix GNU toolchain. So there are two options: kill NLS altogether, or keep it being able to disable the installed files.
I have a preference for the latter choice. Is this perfect? Not at all. This will never be perfect. It's just a pragmatic choice.

There's nothing more to this matter. :-)

Please double check with the maintainer that this change is what they accepted.

From my side it is fine (although I would rather have the option gone completely ^^).

This revision is now accepted and ready to land.Jan 9 2018, 9:05 PM

Please double check with the maintainer that this change is what they accepted.

Yes, I am positive that this is what he accepted. :-)

This revision was automatically updated to reflect the committed changes.

Adding all of gettext when NLS is disabled is most certainly bogus.

This should probably be:

NLS_USES=     gettext-runtime
NLS_USES_OFF= gettext-tools