fedora-common-ostree: Workaround for SAMBA support in cups

RPM %triggerin are not currently supported in rpm-ostree, thus work
around this issue by manually creating the symlink.

According to the docs, `/usr/lib/cups/backend/smb` should point to `smbspool`.
Here we have the following chain:

/usr/lib/cups/backend/smb -> /usr/libexec/samba/cups_backend_smb -> /etc/alternatives/cups_backend_smb -> /usr/bin/smbspool

See: https://www.cups.org/blog/2005-06-17-printing-to-windows-servers-with-samba.html
See: https://github.com/coreos/rpm-ostree/issues/1180
See: https://github.com/fedora-silverblue/issue-tracker/issues/532
This commit is contained in:
Timothée Ravier 2024-02-01 10:41:23 +01:00
parent c3cda89090
commit f6f7b24824

View file

@ -138,4 +138,8 @@ postprocess:
rm -rf /etc/systemd/user/*
systemctl --user --global preset-all
# Fix triggerin for samba-client in cups package (not supported by rpm-ostree yet)
# https://github.com/fedora-silverblue/issue-tracker/issues/532
ln -snf /usr/libexec/samba/cups_backend_smb /usr/lib/cups/backend/smb
postprocess-script: "postprocess.sh"