Bug 243680

Summary: net/liferea: Re-enable headless build
Product: Ports & Packages Reporter: v1ne2go
Component: Individual Port(s)Assignee: Christoph Moench-Tegeder <cmt>
Status: Closed FIXED    
Severity: Affects Some People CC: cmt, kwm
Priority: --- Flags: tobik: maintainer-feedback? (kwm)
Version: Latest   
Hardware: Any   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243677
https://github.com/lwindolf/liferea/issues/767
Attachments:
Description Flags
Patch to make it build again none

Description v1ne2go 2020-01-28 20:38:46 UTC
Created attachment 211141 [details]
Patch to make it build again

At the moment, net/liferea hangs during the build because WebKit tries to connect to an X server/Wayland/Broadway. During the build, there is no graphical environment. Instead of failing, WebKit just waits. Setting the environment variable WEBKIT_DISABLE_COMPOSITING_MODE=1 makes WebKit initialize without any graphics environment. The port build successfully with this setting.

Quick fix found here: https://github.com/lwindolf/liferea/issues/767
Comment 1 Tobias Kortkamp freebsd_committer freebsd_triage 2020-01-28 20:43:33 UTC
Seems like a potentially better solution than bug #243677 ;-)
Comment 2 commit-hook freebsd_committer freebsd_triage 2020-01-29 21:53:30 UTC
A commit references this bug:

Author: cmt
Date: Wed Jan 29 21:53:16 UTC 2020
New revision: 524609
URL: https://svnweb.freebsd.org/changeset/ports/524609

Log:
  net/liferea: unbreak build

  liferea tries to initialize it's graphics backend even when being run
  for gobject introspection only - and that causes webkit to crash or
  hang when there is no X server or similar available (e.g. during package
  build in poudriere). This environment variable makes webkit survive
  the package build.

  PR:		243680
  Submitted by:	v1ne2go
  Approved by:	portmgr blanket (trivial and tested build fix)

Changes:
  head/net/liferea/Makefile
Comment 3 Christoph Moench-Tegeder freebsd_committer freebsd_triage 2020-01-29 21:57:13 UTC
If only I had known that there was such an simple solution...

committed as ports r524609 - thank you very much.
Comment 4 Jan Beich freebsd_committer freebsd_triage 2020-01-29 22:11:29 UTC
Do you plan to MFH to 2020Q1?