Bug 237319 - x11-wm/openbox: fix openbox-xdg-autostart for Python 3
Summary: x11-wm/openbox: fix openbox-xdg-autostart for Python 3
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Roman Bogorodskiy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-16 19:38 UTC by Sebastian Schwarz
Modified: 2019-04-18 14:24 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (novel)


Attachments
openbox-xdg-autostart.diff (5.21 KB, patch)
2019-04-16 19:38 UTC, Sebastian Schwarz
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Schwarz 2019-04-16 19:38:47 UTC
Created attachment 203723 [details]
openbox-xdg-autostart.diff

Openbox includes a Python script (openbox-xdg-autostart) which implements the XDG autostart spec (https://www.freedesktop.org/wiki/Specifications/autostart-spec/).  The switch of the default Python to 3.6 in ports r498529 broke the script.  The attached patch makes the script work again with both Python 2 and 3.  Luckily the only problem was "print" being changed from a keyword to a regular function.
Comment 1 commit-hook freebsd_committer freebsd_triage 2019-04-18 14:14:35 UTC
A commit references this bug:

Author: novel
Date: Thu Apr 18 14:13:36 UTC 2019
New revision: 499266
URL: https://svnweb.freebsd.org/changeset/ports/499266

Log:
  x11-wm/openbox: fix openbox-xdg-autostart for Python 3

  Openbox includes a Python script (openbox-xdg-autostart)
  which implements the XDG autostart spec
  (https://www.freedesktop.org/wiki/Specifications/autostart-spec/).
  The switch of the default Python to 3.6 in ports r498529 broke the script.
  The added patch makes the script work again with both Python 2 and 3.
  Luckily the only problem was "print" being changed from a keyword
  to a regular function.

  PR:		237319
  Submitted by:	Sebastian Schwarz

Changes:
  head/x11-wm/openbox/Makefile
  head/x11-wm/openbox/files/patch-data_autostart_openbox-xdg-autostart
Comment 2 Roman Bogorodskiy freebsd_committer freebsd_triage 2019-04-18 14:24:55 UTC
Committed, thanks!