← Back to team overview

epoptes team mailing list archive

[Bug 1226094] Re: epotes-client relies on /lib/lsb/init-functions, which may not provide the desired functionality in non-Debian-based distros

 

This still affects the client which does not have /lib/lsb/init-
functions to server which has that file.

data/client-functions on the server sends log_end_msg to client which
should just send  echo "[ OK ]"

-- 
You received this bug notification because you are a member of Epoptes
Developers, which is subscribed to Epoptes.
https://bugs.launchpad.net/bugs/1226094

Title:
  epotes-client relies on /lib/lsb/init-functions, which may not provide
  the desired functionality in non-Debian-based distros

Status in Epoptes:
  New

Bug description:
  Current epoptes-client main script sources /lib/lsb/init-functions,
  which provide logging functions "log_begin_msg()" and "log_end_msg()"
  on Debian-based distros.

  However, openSUSE 12.3's /lib/lsb/init-functions doesn't provide these
  functions. Instead, it provides "log_success_msg()",
  "log_warning_msg()" and "log_failure_msg()".

  Moreover, it sources another openSUSE-specific config file named
  "/etc/rc.status", which exports LC_ALL=POSIX. This will set
  LC_ALL=POSIX in the environment of any command executed by Epoptes'
  execute dialog, which can lead to applications being opened in
  english, instead of user's default locale.

  So, before sourcing /lib/lsb/init-functions, epoptes-client should
  check if distro is Debian-based (check for /etc/debian_version?). If
  sourcing /lib/lsb/init-functions is still desirable in openSUSE,
  please notice that

  - the logging functions are different (see above),
  - you should explicitly source file /etc/profile.d/lang.sh to get rid of LC_ALL, if its value is other than $LANG.

To manage notifications about this bug go to:
https://bugs.launchpad.net/epoptes/+bug/1226094/+subscriptions


References