Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(24.04): add slices for Gearman and dependencies #443

Open
wants to merge 5 commits into
base: ubuntu-24.04
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions slices/gearman-job-server.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package: gearman-job-server

essential:
- gearman-job-server_copyright

slices:
bins:
# gearman-job-server actually depends on adduser as well to create and
# remove a user during package install/removal - however we don't
# support this currently so adduser is not added here.
essential:
- libboost-program-options1.83.0_libs
- libc6_libs
- libevent-2.1-7t64_libs
- libevent-pthreads-2.1-7t64_libs
- libgcc-s1_libs
- libhiredis1.1.0_libs
- libmemcached11t64_libs
- libmysqlclient21_libs
- libpq5_libs
- libsqlite3-0_libs
- libstdc++6_libs
contents:
/usr/sbin/gearmand:

services:
contents:
/usr/lib/systemd/system/gearman-job-server.service:

copyright:
contents:
/usr/share/doc/gearman-job-server/copyright:
20 changes: 20 additions & 0 deletions slices/gearman-tools.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package: gearman-tools

essential:
- gearman-tools_copyright

slices:
bins:
essential:
- libboost-program-options1.83.0_libs
- libc6_libs
- libgcc-s1_libs
- libgearman8t64_libs
- libstdc++6_libs
contents:
/usr/bin/gearadmin:
/usr/bin/gearman:

copyright:
contents:
/usr/share/doc/gearman-tools/copyright:
17 changes: 17 additions & 0 deletions slices/libboost-program-options1.83.0.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package: libboost-program-options1.83.0

essential:
- libboost-program-options1.83.0_copyright

slices:
libs:
essential:
- libc6_libs
- libgcc-s1_libs
- libstdc++6_libs
contents:
/usr/lib/*-linux-*/libboost_program_options.so.1.83.0:

copyright:
contents:
/usr/share/doc/libboost-program-options1.83.0/copyright:
15 changes: 15 additions & 0 deletions slices/libevent-2.1-7t64.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package: libevent-2.1-7t64

essential:
- libevent-2.1-7t64_copyright

slices:
libs:
essential:
- libc6_libs
contents:
/usr/lib/*linux-*/libevent-2.1.so.7*:

copyright:
contents:
/usr/share/doc/libevent-2.1-7t64/copyright:
15 changes: 15 additions & 0 deletions slices/libevent-core-2.1-7t64.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package: libevent-core-2.1-7t64

essential:
- libevent-core-2.1-7t64_copyright

slices:
libs:
essential:
- libc6_libs
contents:
/usr/lib/*-linux-*/libevent_core-2.1.so.7*:

copyright:
contents:
/usr/share/doc/libevent-core-2.1-7t64/copyright:
16 changes: 16 additions & 0 deletions slices/libevent-pthreads-2.1-7t64.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package: libevent-pthreads-2.1-7t64

essential:
- libevent-pthreads-2.1-7t64_copyright

slices:
libs:
essential:
- libc6_libs
- libevent-core-2.1-7t64_libs
contents:
/usr/lib/*-linux-*/libevent_pthreads-2.1.so.7*:

copyright:
contents:
/usr/share/doc/libevent-pthreads-2.1-7t64/copyright:
18 changes: 18 additions & 0 deletions slices/libgearman8t64.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package: libgearman8t64

essential:
- libgearman8t64_copyright

slices:
libs:
essential:
- libc6_libs
- libgcc-s1_libs
- libstdc++6_libs
- libuuid1_libs
contents:
/usr/lib/*-linux-*/libgearman.so.8*:

copyright:
contents:
/usr/share/doc/libgearman8t64/copyright:
16 changes: 16 additions & 0 deletions slices/libhashkit2t64.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package: libhashkit2t64

essential:
- libhashkit2t64_copyright

slices:
libs:
essential:
- libc6_libs
- libssl3t64_libs
contents:
/usr/lib/*-linux-*/libhashkit.so.2*:

copyright:
contents:
/usr/share/doc/libhashkit2t64/copyright:
17 changes: 17 additions & 0 deletions slices/libhiredis1.1.0.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package: libhiredis1.1.0

essential:
- libhiredis1.1.0_copyright

slices:
libs:
essential:
- libc6_libs
- libssl3t64_libs
contents:
/usr/lib/*-linux-*/libhiredis.so.1*:
/usr/lib/*-linux-*/libhiredis_ssl.so.1*:

copyright:
contents:
/usr/share/doc/libhiredis1.1.0/copyright:
19 changes: 19 additions & 0 deletions slices/libmemcached11t64.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package: libmemcached11t64

essential:
- libmemcached11t64_copyright

slices:
libs:
essential:
- libc6_libs
- libgcc-s1_libs
- libhashkit2t64_libs
- libsasl2-2_libs
- libstdc++6_libs
contents:
/usr/lib/*-linux-*/libmemcached.so.11*:

copyright:
contents:
/usr/share/doc/libmemcached11t64/copyright:
21 changes: 21 additions & 0 deletions slices/libmysqlclient21.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package: libmysqlclient21

essential:
- libmysqlclient21_copyright

slices:
libs:
essential:
- libc6_libs
- libgcc-s1_libs
- libssl3t64_libs
- libstdc++6_libs
- libzstd1_libs
- mysql-common_config
- zlib1g_libs
contents:
/usr/lib/*-linux-*/libmysqlclient.so.21*:

copyright:
contents:
/usr/share/doc/libmysqlclient21/copyright:
15 changes: 15 additions & 0 deletions slices/mysql-common.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package: mysql-common

essential:
- mysql-common_copyright

slices:
config:
contents:
/etc/mysql/conf.d/mysql.cnf:
/etc/mysql/conf.d/mysqldump.cnf:
/etc/mysql/my.cnf.fallback:

copyright:
contents:
/usr/share/doc/mysql-common/copyright:
8 changes: 8 additions & 0 deletions tests/spread/integration/gearman-job-server/task.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
summary: Integration tests for gearman-job-server

execute: |
# Chisel a minimum number of slices to give us a runnable system that we can
# test in.
rootfs="$(install-slices gearman-job-server_bins)"

chroot "${rootfs}/" gearmand -h
9 changes: 9 additions & 0 deletions tests/spread/integration/gearman-tools/task.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
summary: Integration tests for gearman-tools

execute: |
# Chisel a minimum number of slices to give us a runnable system that we can
# test in.
rootfs="$(install-slices gearman-tools_bins)"

chroot "${rootfs}/" gearadmin --help
chroot "${rootfs}/" gearman -H
Loading