]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
d/control: fix lua dependencies for librgw2 60666/head
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 6 Nov 2024 14:06:09 +0000 (15:06 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 7 Nov 2024 16:42:42 +0000 (17:42 +0100)
One can attach lua scripts as sort of hooks to implement dynamic
checks or transformations of RGW requests since Ceph Pacific. Thus, a
lua library is now required for base support and optionally one can
use the luarocks deployment and management system for Lua modules to
use more advanced scripts/modules.

With commit 46500cace6c ("rgw/test/lua: add lua integration tests
suite") the dependency relations got cleaned up, as the respective
entries were missing completely from debian/control.

But that commit is pulling in much more than required due to adding
the devel package `liblua5.3-dev` instead of the library-only
`liblua5.3-0` one, and having `luarocks` as hard dependency compared
to an optional Suggests. Fixing that avoids pulling in a whole
build/compiler/autotools/... stack with 65 new packages just when one
wants to use librgw2 or python3-rgw for simple RGW requests, or just
needs the ceph-common package, which pulls in librgw2 transitively.

This was reported by prolific community member Neobin on the Proxmox
forum [0], and then discussed on the original PR, adding the
dependencies [1].

[0]: https://forum.proxmox.com/threads/156433/post-715148
[1]: https://github.com/ceph/ceph/pull/52931#issuecomment-2441253989

Fixes: https://tracker.ceph.com/issues/68873
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
debian/control

index d31a82bbc759cb9f8fdd8a22a907b1a9fe5541ac..123fe39ef927f677eb197de273fc7a95a2bd6e42 100644 (file)
@@ -944,10 +944,10 @@ Package: librgw2
 Architecture: linux-any
 Section: libs
 Depends: librados2 (= ${binary:Version}),
+         liblua5.3-0,
          ${misc:Depends},
          ${shlibs:Depends},
-         liblua5.3-dev,
-         luarocks,
+Suggests: luarocks,
 Description: RADOS Gateway client library
  RADOS is a distributed object store used by the Ceph distributed
  storage system.  This package provides a REST gateway to the