Assign Builder Environment Variable?

Asked by M.Hanny Sabbagh

I have an issue in building a package on Launchpad, the error message is:

"Failed to connect to D-Bus: Cannot autolaunch D-Bus without X11 $DISPLAY"

Which seems to me that I need to define $DISPLAY variable on the build machine, but how can I do it in Launchpad? I mean, in the build log, there's a section like this:

User Environment
DEB_BUILD_OPTIONS=noautodbgsym parallel=4

And I want to add a DISPLAY variable in there, is there a way to do this?

Question information

English Edit question
Launchpad itself Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Colin Watson (cjwatson) said :

You can export whatever variables you like in debian/rules.

However, just setting DISPLAY won't help you, because you won't have a running X server to talk to. Rather than setting DISPLAY, I think you want to run the relevant bit of the build inside dbus-run-session. See "man dbus-run-session" for more information.

Can you help with this problem?

Provide an answer of your own, or ask M.Hanny Sabbagh for more information if necessary.

To post a message you must log in.