kpeeters / cadabra2

A field-theory motivated approach to computer algebra.
https://cadabra.science/
GNU General Public License v3.0
223 stars 37 forks source link

Need to have ENABLE_GETTEXT=ON/OFF to allow users not have libintl linked #13

Closed yurivict closed 2 years ago

yurivict commented 8 years ago

Some people prefer to not have all translations installed. Please add such option.

For an example, please see the freeminer project: https://github.com/freeminer/freeminer/blob/master/src/CMakeLists.txt

kpeeters commented 8 years ago

I don't quite understand what you mean. Cadabra only comes in one language.

yurivict commented 8 years ago

The reason I created this bug is that one binary links to libintl in the FreeBSD port:

====> Running Q/A tests (stage-qa)
Error: /usr/local/bin/cadabra-gtk is linked to /usr/local/lib/libintl.so.8 from devel/gettext-runtime but it is not declared as a dependency
Warning: you need USES+=gettext-runtime

If libintl is linked by mistake then you should fix this. Otherwise there should be a way to turn gettext off.

kpeeters commented 2 years ago

Cadabra doesn't link to libintl explicitly, so this must be an implicit dependency pulled in through another library. I suspect it's glib or gtk which is at fault, but I have no resources to verify this on FreeBSD.