Package: awesome
Version: 4.2-2
Severity: minor

After upgrading to awesome 4.2-2, my rc.lua failed to load due to the
use of module() in some supporting config files. I gather that this was
the "right" way to do modules in lua 5.0, and was deprecated over the
course of 5.1 and 5.2, and is now completely gone in 5.3. I was able to
fix it by updating my config files to the "new" way.

It might be worth dropping a note in NEWS.Debian to point people in the
right direction. I don't know how common it is to have config so
elaborate that it requires sub-modules, but the lua format sort of
encourages it. :)

I used http://lua-users.org/wiki/ModulesTutorial to figure out how to
convert, but I'm not clueful enough to know whether there are better
resources. The "short" answer is to swap out:

  module("foo")
  function bar ...

for:

  local foo = {}
  function foo.bar ...
  return foo

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.13.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages awesome depends on:
ii  dbus-x11 [dbus-session-bus]  1.11.22-1
ii  gir1.2-freedesktop           1.54.1-1
ii  gir1.2-pango-1.0             1.40.12-1
ii  libc6                        2.24-17
ii  libcairo2                    1.15.8-2
ii  libdbus-1-3                  1.11.22-1
ii  libgdk-pixbuf2.0-0           2.36.11-1
ii  libglib2.0-0                 2.54.2-1
ii  liblua5.3-0                  5.3.3-1
ii  libstartup-notification0     0.12-4+b2
ii  libx11-6                     2:1.6.4-3
ii  libxcb-cursor0               0.1.1-4
ii  libxcb-icccm4                0.4.1-1+b1
ii  libxcb-keysyms1              0.4.0-1+b2
ii  libxcb-randr0                1.12-1
ii  libxcb-render0               1.12-1
ii  libxcb-shape0                1.12-1
ii  libxcb-util0                 0.3.8-3+b2
ii  libxcb-xinerama0             1.12-1
ii  libxcb-xkb1                  1.12-1
ii  libxcb-xrm0                  1.0-3
ii  libxcb-xtest0                1.12-1
ii  libxcb1                      1.12-1
ii  libxdg-basedir1              1.2.0-1
ii  libxkbcommon-x11-0           0.7.1-2
ii  libxkbcommon0                0.7.1-2
ii  lua-lgi                      0.9.1-1.2
ii  menu                         2.1.47+b1

Versions of packages awesome recommends:
pn  feh                <none>
pn  rlwrap             <none>
ii  x11-xserver-utils  7.7+7+b1

Versions of packages awesome suggests:
pn  awesome-doc  <none>

-- no debconf information

Reply via email to