cups: fix cups.socket unit

The cups.socket unit shouldn't be part of cups.service: stopping the
service would stop the socket and break subsequent socket activations.

See https://github.com/apple/cups/issues/6005
This commit is contained in:
rnhmjoj 2022-11-28 14:46:44 +01:00
parent 9ab35fe3ad
commit a5eb3b03ff
No known key found for this signature in database
GPG key ID: BFBAF4C975F76450

View file

@ -57,6 +57,11 @@ stdenv.mkDerivation rec {
postPatch = ''
substituteInPlace cups/testfile.c \
--replace 'cupsFileFind("cat", "/bin' 'cupsFileFind("cat", "${coreutils}/bin'
# The cups.socket unit shouldn't be part of cups.service: stopping the
# service would stop the socket and break subsequent socket activations.
# See https://github.com/apple/cups/issues/6005
sed -i '/PartOf=cups.service/d' scheduler/cups.socket.in
'';
nativeBuildInputs = [ pkg-config removeReferencesTo ];