Declare installer and tray dependencies in Linux packages
Require adduser on Debian and shadow on Arch for the package installation hooks. For GUI packages, derive the minimum glibc version from the tray ELF imports so the dependency follows the binary built by each runner. Checked generated Debian control files and Arch package metadata for both variants on macOS using the released tray binary (glibc 2.43). Checked shell syntax; no Rust changes or release rebuild.
This commit is contained in:
1 parent
01b51081c3
commit
8d107cf0e9
3 files changed
+21
-3
No files matched your search
Vendored
+3
-1
@@ -55,7 +55,8 @@ if [ -n "$tray" ]; then
|
||||
relations=$'conflict = tsunagi\nprovides = tsunagi\nreplaces = tsunagi\n'
|
||||
# What the tray and its window load at run time; none of it is linked in
|
||||
# statically, so pacman has to be told.
|
||||
for dep in gtk3 libayatana-appindicator libxkbcommon wayland libx11 libglvnd; do
|
||||
glibc_min=$(bash "$here/../linux/required-glibc.sh" "$tray")
|
||||
for dep in "glibc>=$glibc_min" gtk3 libayatana-appindicator libxkbcommon wayland libx11 libglvnd; do
|
||||
relations+="depend = ${dep}"$'\n'
|
||||
done
|
||||
install -D -m 0755 "$tray" "$root/usr/bin/tsunagi-tray"
|
||||
@@ -77,6 +78,7 @@ builddate = $(date +%s)
|
||||
packager = AB <ab@hexor.cy>
|
||||
size = ${size}
|
||||
arch = ${arch}
|
||||
depend = shadow
|
||||
${relations}license = WTFPL
|
||||
PKGINFO
|
||||
|
||||
|
||||
Reference in new issue
Block a user