Skip to content

Commit

Permalink
feat(24.04): add slices for Gearman and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
eunufe committed Dec 30, 2024
1 parent 3801300 commit e338190
Show file tree
Hide file tree
Showing 14 changed files with 238 additions and 0 deletions.
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

Check failure on line 9 in slices/gearman-job-server.yaml

View workflow job for this annotation

GitHub Actions / Lint / Lint

9:70 [trailing-spaces] trailing spaces
# 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:

Check failure on line 23 in slices/gearman-job-server.yaml

View workflow job for this annotation

GitHub Actions / Lint / Lint

23:14 [trailing-spaces] trailing spaces
/usr/sbin/gearmand:

services:
contents:

Check failure on line 27 in slices/gearman-job-server.yaml

View workflow job for this annotation

GitHub Actions / Lint / Lint

27:14 [trailing-spaces] trailing spaces
/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
- libgearman8t64_libs
- libgcc-s1_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

Check failure on line 1 in slices/libmemcached11t64.yaml

View workflow job for this annotation

GitHub Actions / Lint / Lint

1:27 [trailing-spaces] trailing spaces

essential:
- libmemcached11t64_copyright

slices:
libs:
essential:
- libc6_libs
- libgcc-s1_libs
- libhashkit2t64_libs
- libsasl2-2_libs
- libstdc++6_libs
contents:

Check failure on line 14 in slices/libmemcached11t64.yaml

View workflow job for this annotation

GitHub Actions / Lint / Lint

14:14 [trailing-spaces] trailing spaces
/usr/lib/*-linux-*/libmemcached.so.11*:

Check failure on line 16 in slices/libmemcached11t64.yaml

View workflow job for this annotation

GitHub Actions / Lint / Lint

16:1 [trailing-spaces] trailing spaces
copyright:
contents:

Check failure on line 18 in slices/libmemcached11t64.yaml

View workflow job for this annotation

GitHub Actions / Lint / Lint

18:14 [trailing-spaces] trailing spaces
/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:

Check failure on line 16 in slices/libmysqlclient21.yaml

View workflow job for this annotation

GitHub Actions / Lint / Lint

16:14 [trailing-spaces] trailing spaces
/usr/lib/*-linux-*/libmysqlclient.so.21*:

Check failure on line 18 in slices/libmysqlclient21.yaml

View workflow job for this annotation

GitHub Actions / Lint / Lint

18:1 [trailing-spaces] trailing spaces
copyright:
contents:

Check failure on line 20 in slices/libmysqlclient21.yaml

View workflow job for this annotation

GitHub Actions / Lint / Lint

20:14 [trailing-spaces] trailing spaces
/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

0 comments on commit e338190

Please sign in to comment.