Bug 200931

Summary: [PATCH] security/keepass: Make xsel optional
Product: Ports & Packages Reporter: Sascha Holzleiter <sascha>
Component: Individual Port(s)Assignee: Pawel Pekala <pawel>
Status: Closed FIXED    
Severity: Affects Some People CC: pawel, woodsb02
Priority: --- Keywords: patch
Version: LatestFlags: woodsb02: maintainer-feedback+
Hardware: Any   
OS: Any   
Attachments:
Description Flags
XSEL option patch
none
Patch to convert xdotool and xsel runtime dependencies to options
woodsb02: maintainer-approval+
Successful poudriere testport logs with options xsel=on and xdotool=on
none
Successful poudriere testport logs with options xsel=off and xdotool=off
none
Successful poudriere testport logs with options xsel=off and xdotool=on
none
Successful poudriere testport logs with options xsel=on and xdotool=off none

Description Sascha Holzleiter 2015-06-17 09:04:29 UTC
Created attachment 157829 [details]
XSEL option patch

For me and others i know of the installation of the xsel dependency keeps KeePass from working. Maybe it's the desktop environment or something else but with xsel i get only an empty clipboard when copying usernames or passwords. Without xsel everything works as expected.

So I propose to make xsel an optional dependency. The following patch does exactly that and sets the option as default so the default behavior of the port does not change.
Comment 1 Ben Woods freebsd_committer freebsd_triage 2015-06-17 15:04:59 UTC
Created attachment 157832 [details]
Patch to convert xdotool and xsel runtime dependencies to options

Thanks for your feedback. I have made a slight improvement on your proposal to also convert the xdotool runtime dependency to an option.

Other than that, I have tested that this works and am happy for this change to be committed.
Comment 2 Ben Woods freebsd_committer freebsd_triage 2015-06-17 15:11:31 UTC
Created attachment 157833 [details]
Successful poudriere testport logs with options xsel=on and xdotool=on
Comment 3 Ben Woods freebsd_committer freebsd_triage 2015-06-17 15:12:00 UTC
Created attachment 157834 [details]
Successful poudriere testport logs with options xsel=off and xdotool=off
Comment 4 Ben Woods freebsd_committer freebsd_triage 2015-06-17 15:12:27 UTC
Created attachment 157835 [details]
Successful poudriere testport logs with options xsel=off and xdotool=on
Comment 5 Ben Woods freebsd_committer freebsd_triage 2015-06-17 15:12:50 UTC
Created attachment 157836 [details]
Successful poudriere testport logs with options xsel=on and xdotool=off
Comment 6 commit-hook freebsd_committer freebsd_triage 2015-06-26 19:49:44 UTC
A commit references this bug:

Author: pawel
Date: Fri Jun 26 19:49:16 UTC 2015
New revision: 390665
URL: https://svnweb.freebsd.org/changeset/ports/390665

Log:
  - Make xsel run dependency optional - it makes clipboard pasting
    not working under some conditions [1]
  - Make xdotool also optional
  - Add NO_ARCH

  PR:		200931 [1]
  Submitted by:	Sascha Holzleiter <sascha@root-login.org> [1]
  Approved by:	maintainer [1]

Changes:
  head/security/keepass/Makefile