luakit icon indicating copy to clipboard operation
luakit copied to clipboard

Automated Debian package build process with pbuilder fail in Makefile's apidoc target rule

Open groolot opened this issue 7 years ago • 14 comments

Context

I'm trying to make a Debian package from this repository. I've setup a 'debianization' branch in my fork groolot/luakit an started automating creation of Debian package with pbuilder in a chroot.

Issue

When calling pbuilder to build the package, this error outputs:

./luakit --log=error -c build-utils/docgen/process.lua > doc/apidocs/module_info.lua
Unable to init server: Could not connect: Connection refused

(luakit:31746): Gtk-WARNING **: cannot open display: 
Makefile:73: recipe for target 'apidoc' failed

Reason

I think this is due to the gtk_init in luakit.c that try to setup environment within a DISPLAY, that do not exist at all in the pbuilder process.

Propositions

  • Define a new command line option called --nodisplay that bypass everything that need a display.
  • Do not depend apidoc creation on luakit launching.
  • As discussed in #317 use xvfb to launch luakit

groolot avatar Jun 06 '17 09:06 groolot