Bug 235868 - devel/xdg-utils: xdg-screensaver doesn't suspend xserver screensaver
Summary: devel/xdg-utils: xdg-screensaver doesn't suspend xserver screensaver
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-gnome (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2019-02-19 20:54 UTC by Tijl Coosemans
Modified: 2019-03-05 17:03 UTC (History)
0 users

See Also:
tijl: maintainer-feedback-


Attachments
patch (1.21 KB, patch)
2019-02-19 20:54 UTC, Tijl Coosemans
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tijl Coosemans freebsd_committer freebsd_triage 2019-02-19 20:54:55 UTC
Created attachment 202169 [details]
patch

xdg-screensaver doesn't run "xset s off" because of a sed script that fails on FreeBSD.  FreeBSD sed interprets everything after the t command as a label.  The attached patch adds a line break.
Comment 1 commit-hook freebsd_committer freebsd_triage 2019-03-05 17:00:58 UTC
A commit references this bug:

Author: tijl
Date: Tue Mar  5 17:00:26 UTC 2019
New revision: 494714
URL: https://svnweb.freebsd.org/changeset/ports/494714

Log:
  Fix disabling of xserver screensaver by xdg-screensaver script.

  Add a newline after the t function in a sed command.  FreeBSD sed appears
  to interpret everything after the t function as a label, including
  characters that would otherwise have special meaning.

  PR:		235868
  Approved by:	maintainer timeout (2 weeks)

Changes:
  head/devel/xdg-utils/Makefile
  head/devel/xdg-utils/files/patch-scripts_xdg-screensaver.in