From e3603da7486dcef9a07bb3f7d8f429ec72f2863f Mon Sep 17 00:00:00 2001 From: Timothée Ravier Date: Feb 01 2024 15:59:59 +0000 Subject: 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 See: https://pagure.io/workstation-ostree-config/pull-request/456 --- diff --git a/fedora-common-ostree.yaml b/fedora-common-ostree.yaml index bc45493..35fadef 100644 --- a/fedora-common-ostree.yaml +++ b/fedora-common-ostree.yaml @@ -129,4 +129,9 @@ postprocess: # Workaround for https://bugzilla.redhat.com/show_bug.cgi?id=2218006 systemctl enable nfs-client.target + + # 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"