Univention Bugzilla – Bug 34556
ucs_registerLDAPExtension: error: --messagecatalog can only be used after --udm_module
Last modified: 2016-08-23 09:04:13 CEST
Calling ucs_registerLDAPExtension "$@" \ --messagecatalog /usr/share/univention-radius/50_networkaccess.mo leads to ucs_registerLDAPExtension: error: --messagecatalog can only be used after --udm_module . This precludes shipping translations for syntax extensions.
Created attachment 6100 [details] univention-lib-messagecatalog.patch univention-ldap and univention-directory-manager-modules need to be extended as well for this new feature, see blocking Bugs.
Moved to UCS 3.2-4-errata.
This patch and the one from #35839 applied. Code: 66879, 66880 (66881) YAML: 66879, 66880, 66882
OK: ucs_registerLDAPExtension --udm_syntax_messagecatalog OK: ucs_registerLDAPExtension --udm_hook_messagecatalog REOPEN: ucs_unregisterLDAPExtension does not remove the message catalog (both syntax and hooks) root@master30:~/test# python -c 'from univention.lib import ldap_extension; ldap_extension.ucs_registerLDAPExtension()' --packagename python-italc --packageversion 10.0.0-1 --udm_syntax example2.py --udm_syntax_messagecatalog=de.mo Object exists: cn=udm_syntax,cn=univention,dc=saml,dc=dev Object created: cn=example2,cn=udm_syntax,cn=univention,dc=saml,dc=dev Waiting for activation of the extension object example2:.OK Waiting for file example2.py: OK root@master30:~/test# md5sum /usr/share/pyshared/univention/admin/syntax.d/example2.py example2.py 2a6e1884b9cfd857165f8c9fc5bc663d /usr/share/pyshared/univention/admin/syntax.d/example2.py 2a6e1884b9cfd857165f8c9fc5bc663d example2.py root@master30:~/test# md5sum /usr/share/locale/de/LC_MESSAGES/univention-admin-syntax-example2.mo de.mo 1c30e0c1ee4b5f1182854311f6cabad5 /usr/share/locale/de/LC_MESSAGES/univention-admin-syntax-example2.mo 1c30e0c1ee4b5f1182854311f6cabad5 de.mo root@master30:~/test# python -c 'from univention.lib import ldap_extension; ldap_extension.ucs_unregisterLDAPExtension()' --udm_syntax example2 Object removed: cn=example2,cn=udm_syntax,cn=univention,dc=saml,dc=dev root@master30:~/test# md5sum /usr/share/pyshared/univention/admin/syntax.d/example2.py example2.py md5sum: /usr/share/pyshared/univention/admin/syntax.d/example2.py: Datei oder Verzeichnis nicht gefunden 2a6e1884b9cfd857165f8c9fc5bc663d example2.py root@master30:~/test# md5sum /usr/share/locale/de/LC_MESSAGES/univention-admin-syntax-example2.mo de.mo 1c30e0c1ee4b5f1182854311f6cabad5 /usr/share/locale/de/LC_MESSAGES/univention-admin-syntax-example2.mo 1c30e0c1ee4b5f1182854311f6cabad5 de.mo
(In reply to Florian Best from comment #4) > OK: ucs_registerLDAPExtension --udm_syntax_messagecatalog > OK: ucs_registerLDAPExtension --udm_hook_messagecatalog > REOPEN: ucs_unregisterLDAPExtension does not remove the message catalog > (both syntax and hooks) This seems no regression as it also doesn't work for udm_module. @Arvid: what's your opinion on this? Should the foo.mo files be removed when unregistering? Or are they left on purpose?
> Or are they left on purpose? No, the may get removed, that would be cleaner.
Fixed a typo in r66917 (11.0.2-15.1368.201601210858) that hopefully solves the uninstall problem. Please test it for me, as I have no test setup at hand.
r66917 fixed a typo that prevented the removal of message catalogs.
(In reply to Daniel Tröder from comment #7) > Fixed a typo in r66917 (11.0.2-15.1368.201601210858) that hopefully solves > the uninstall problem. Please test it for me, as I have no test setup at > hand. yes. YAML: OK
Fixed build number in advisory in 66993.
<http://errata.software-univention.de/ucs/4.1/65.html> <http://errata.software-univention.de/ucs/4.1/68.html>