Opened 2 years ago

Closed 2 years ago

#15918 closed enhancement (fixed)

Fix incorrect printers.target in CUPS systemd unit installation

Reported by: Douglas R. Reno Owned by: Douglas R. Reno
Priority: normal Milestone: 11.1
Component: BOOK Version: systemd
Severity: normal Keywords:
Cc:

Description

Following the instructions in the book will result in the following output:

renodr [ /sources/cups-2.4.0 ]$ sudo systemctl enable cups
Created symlink /etc/systemd/system/printers.target.wants/cups.service → /usr/lib/systemd/system/cups.service.
Unit /usr/lib/systemd/system/cups.service is added as a dependency to a non-existent unit printers.target.
Created symlink /etc/systemd/system/multi-user.target.wants/cups.service → /usr/lib/systemd/system/cups.service.
Created symlink /etc/systemd/system/sockets.target.wants/cups.socket → /usr/lib/systemd/system/cups.socket.
Created symlink /etc/systemd/system/multi-user.target.wants/cups.path → /usr/lib/systemd/system/cups.path.

A pull request upstream has fixed this bug: https://github.com/OpenPrinting/cups/pull/316

While it is a harmless message, for consistency, it should be put in 'printer.target' instead of the non-existent 'printers.target'.

Change History (4)

comment:1 by Douglas R. Reno, 2 years ago

I'm going to try the following sed to fix this:

sed -e "s/printers.target/printer.target/" -i configure -i config-scripts/cups-defaults.m4

EDIT: Fixed sed

Last edited 2 years ago by Douglas R. Reno (previous) (diff)

comment:2 by Douglas R. Reno, 2 years ago

Owner: changed from blfs-book to Douglas R. Reno
Status: newassigned

comment:3 by Douglas R. Reno, 2 years ago

That sed works and places cups.service into the right target. I'll drop this in with gexiv2 and adwaita-icon-theme shortly.

comment:4 by Douglas R. Reno, 2 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.