• Will Thompson's avatar
    debian/rules: pass --auto-servernum to xvfb-run · 308998cc
    Will Thompson authored
    I've noticed a few builds of this package fail on Endless's OBS package
    builders:
    
           debian/rules override_dh_auto_test
        make[1]: Entering directory '/usr/src/packages/BUILD'
        mkdir -p -m0700 /usr/src/packages/BUILD/debian/tmp-home/run
        touch /usr/src/packages/BUILD/debian/tmp-home/.gtk-bookmarks
        env \
           HOME=/usr/src/packages/BUILD/debian/tmp-home \
           XDG_RUNTIME_DIR=/usr/src/packages/BUILD/debian/tmp-home/run \
           dbus-run-session -- xvfb-run dh_auto_test
        xvfb-run: error: Xvfb failed to start
        make[1]: *** [debian/rules:33: override_dh_auto_test] Error 1
        make[1]: Leaving directory '/usr/src/packages/BUILD'
        make: *** [debian/rules:13: binary] Error 2
        dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
    
    The failures went away when I triggered a rebuild.  I believe this is
    because xvfb-run, by default, tries to use X server number 99, and fails
    if it is not available:
    
        $ xvfb-run  bash -c 'echo first: $DISPLAY && sleep 30' & \
          sleep 5; xvfb-run  bash -c 'echo second: $DISPLAY'
        [1] 7499
        first: :99
        xvfb-run: error: Xvfb failed to start
    
    Passing --auto-servernum causes xvfb-run to find the first usable X
    server number, starting from 99.
    308998cc
Name
Last commit
Last update
build-aux Loading commit data...
data Loading commit data...
debian Loading commit data...
docs Loading commit data...
eel Loading commit data...
extensions Loading commit data...
icons Loading commit data...
libnautilus-extension Loading commit data...
po Loading commit data...
src Loading commit data...
subprojects/libgd Loading commit data...
test Loading commit data...
.triage-policies.yml Loading commit data...
LICENSE Loading commit data...
NEWS Loading commit data...
README.md Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...
nautilus.doap Loading commit data...