dbus: remove unused daemon passhtru

This commit is contained in:
Sandro Jäckel 2022-11-21 03:03:50 +01:00
parent 8b5dd47fe0
commit c7f5becba3
29 changed files with 32 additions and 33 deletions

View file

@ -28,8 +28,8 @@ let
messagebus:x:1:
EOF
"${pkgs.dbus.daemon}/bin/dbus-daemon" --fork \
--config-file="${pkgs.dbus.daemon}/share/dbus-1/system.conf"
"${pkgs.dbus}/bin/dbus-daemon" --fork \
--config-file="${pkgs.dbus}/share/dbus-1/system.conf"
${guestAdditions}/bin/VBoxService
${(attrs.vmScript or (const "")) pkgs}

View file

@ -119,7 +119,7 @@ python3.pkgs.buildPythonApplication rec {
LC_ALL = "en_US.UTF-8";
checkInputs = [
dbus.daemon
dbus
gdk-pixbuf
glibcLocales
hicolor-icon-theme
@ -154,7 +154,7 @@ python3.pkgs.buildPythonApplication rec {
runHook preCheck
xvfb-run -s '-screen 0 1920x1080x24' \
dbus-run-session --config-file=${dbus.daemon}/share/dbus-1/session.conf \
dbus-run-session --config-file=${dbus}/share/dbus-1/session.conf \
pytest $pytestFlags
runHook postCheck

View file

@ -138,7 +138,7 @@ stdenv.mkDerivation rec {
checkPhase = ''
export NO_AT_BRIDGE=1
xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
--config-file=${dbus}/share/dbus-1/session.conf \
meson test --print-errorlogs
'';

View file

@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
checkPhase = ''
export NO_AT_BRIDGE=1
xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
--config-file=${dbus}/share/dbus-1/session.conf \
meson test --print-errorlogs
'';

View file

@ -98,7 +98,7 @@ stdenv.mkDerivation rec {
NO_AT_BRIDGE=1 \
XDG_DATA_DIRS=${folks}/share/gsettings-schemas/${folks.name} \
xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
--config-file=${dbus}/share/dbus-1/session.conf \
meson test --print-errorlogs
runHook postCheck
'';

View file

@ -56,11 +56,11 @@ python3.pkgs.buildPythonApplication rec {
++ lib.optionals enableOmemoPluginDependencies [ python-axolotl qrcode ]
++ extraPythonPackages python3.pkgs;
checkInputs = [ xvfb-run dbus.daemon ];
checkInputs = [ xvfb-run dbus ];
checkPhase = ''
xvfb-run dbus-run-session \
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
--config-file=${dbus}/share/dbus-1/session.conf \
${python3.interpreter} -m unittest discover -s test/gtk -v
${python3.interpreter} -m unittest discover -s test/no_gui -v
'';

View file

@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config libxslt ];
buildInputs = [ libxml2 dbus-glib sqlite libsoup libnice telepathy-glib gnutls python2 ];
checkInputs = [ dbus.daemon ];
checkInputs = [ dbus ];
configureFlags = [ "--with-ca-certificates=/etc/ssl/certs/ca-certificates.crt" ];

View file

@ -83,7 +83,7 @@ python3Packages.buildPythonApplication rec {
done
'';
checkInputs = [ dbus.daemon ];
checkInputs = [ dbus ];
nativeBuildInputs = [
wrapGAppsHook
@ -114,7 +114,7 @@ python3Packages.buildPythonApplication rec {
# only need to run a virtual X server + dbus but also have a large enough
# resolution, because the Cairo test tries to draw a 200x200 window.
xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
--config-file=${dbus}/share/dbus-1/session.conf \
$out/bin/paperwork-gtk chkdeps
# content of make test, without the dep on make install

View file

@ -133,7 +133,7 @@ stdenv.mkDerivation rec {
libdatrie
libxkbcommon
libepoxy
dbus.daemon
dbus
at-spi2-core
libXtst
];

View file

@ -58,7 +58,7 @@ stdenv.mkDerivation rec {
autoPatchelfHook
cairo
cups.lib
dbus.daemon.lib
dbus.lib
expat
gcc-unwrapped
gdk-pixbuf

View file

@ -101,7 +101,7 @@ stdenv.mkDerivation rec {
runHook preCheck
export NO_AT_BRIDGE=1
xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
--config-file=${dbus}/share/dbus-1/session.conf \
meson test --print-errorlogs
runHook postCheck
'';

View file

@ -73,7 +73,7 @@ stdenv.mkDerivation rec {
checkPhase = ''
export HOME=$(mktemp -d)
dbus-run-session \
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
--config-file=${dbus}/share/dbus-1/session.conf \
make check
'';

View file

@ -129,7 +129,7 @@ stdenv.mkDerivation rec {
HOME=$TMPDIR \
XDG_DATA_DIRS=$XDG_DATA_DIRS:${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}:${shared-mime-info}/share:${folks}/share/gsettings-schemas/${folks.name} \
xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
--config-file=${dbus}/share/dbus-1/session.conf \
meson test -v --no-stdsplit
runHook postCheck

View file

@ -42,7 +42,7 @@ stdenv.mkDerivation rec {
checkPhase = ''
export NO_AT_BRIDGE=1
${xvfb-run}/bin/xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
--config-file=${dbus}/share/dbus-1/session.conf \
meson test --print-errorlogs
'';

View file

@ -108,7 +108,6 @@ stdenv.mkDerivation rec {
passthru = {
dbus-launch = "${dbus.lib}/bin/dbus-launch";
daemon = dbus.out;
};
meta = with lib; {

View file

@ -226,7 +226,7 @@ stdenv.mkDerivation (finalAttrs: {
export XDG_RUNTIME_HOME="$TMP"
export HOME="$TMP"
export XDG_DATA_DIRS="${desktop-file-utils}/share:${shared-mime-info}/share"
export G_TEST_DBUS_DAEMON="${dbus.daemon}/bin/dbus-daemon"
export G_TEST_DBUS_DAEMON="${dbus}/bin/dbus-daemon"
export PATH="$PATH:$(pwd)/gobject"
echo "PATH=$PATH"
'';

View file

@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
NO_AT_BRIDGE=1 \
XDG_DATA_DIRS="$XDG_DATA_DIRS:${shared-mime-info}/share" \
xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
--config-file=${dbus}/share/dbus-1/session.conf \
make check
'';

View file

@ -79,7 +79,7 @@ stdenv.mkDerivation rec {
XDG_DATA_DIRS="$XDG_DATA_DIRS:${shared-mime-info}/share" \
xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
--config-file=${dbus}/share/dbus-1/session.conf \
meson test --no-rebuild --print-errorlogs
runHook postCheck

View file

@ -81,7 +81,7 @@ stdenv.mkDerivation rec {
XDG_DATA_DIRS="$XDG_DATA_DIRS:${shared-mime-info}/share" \
xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
--config-file=${dbus}/share/dbus-1/session.conf \
meson test --no-rebuild --print-errorlogs
runHook postCheck

View file

@ -61,7 +61,7 @@ stdenv.mkDerivation rec {
checkPhase = ''
xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
--config-file=${dbus}/share/dbus-1/session.conf \
meson test --print-errorlogs
'';

View file

@ -39,7 +39,7 @@ stdenv.mkDerivation rec {
NO_AT_BRIDGE=1 \
XDG_DATA_DIRS="$XDG_DATA_DIRS:${hicolor-icon-theme}/share" \
xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
--config-file=${dbus}/share/dbus-1/session.conf \
meson test --print-errorlogs
'';

View file

@ -87,7 +87,7 @@ stdenv.mkDerivation rec {
runHook preCheck
dbus-run-session \
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
--config-file=${dbus}/share/dbus-1/session.conf \
meson test --print-errorlogs
runHook postCheck

View file

@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake pkg-config python ];
propagatedBuildInputs = [ qtbase telepathy-farstream telepathy-glib ];
buildInputs = [ dbus-glib ];
checkInputs = [ dbus.daemon dbus-python ];
checkInputs = [ dbus dbus-python ];
# No point in building tests if they are not run
# On 0.9.7, they do not even build with QT4

View file

@ -117,7 +117,7 @@ stdenv.mkDerivation rec {
runHook preCheck
dbus-run-session \
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
--config-file=${dbus}/share/dbus-1/session.conf \
meson test \
--timeout-multiplier 2 \
--print-errorlogs

View file

@ -29,7 +29,7 @@ buildPythonPackage rec {
# test_tcp_connection_with_forwarding fails due to dbus
# creating unix socket anyway on v1.14.4
checkPhase = ''
dbus-run-session --config-file=${dbus.daemon}/share/dbus-1/session.conf \
dbus-run-session --config-file=${dbus}/share/dbus-1/session.conf \
${python.interpreter} -m pytest -sv --cov=dbus_next \
-k "not test_peer_interface and not test_tcp_connection_with_forwarding"
'';

View file

@ -45,7 +45,7 @@ buildPythonPackage {
# export NO_AT_BRIDGE=1
gsettings set org.gnome.desktop.interface toolkit-accessibility true
xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
--config-file=${dbus}/share/dbus-1/session.conf \
${python.interpreter} nix_run_setup test
runHook postCheck
'';

View file

@ -61,7 +61,7 @@ buildPythonPackage rec {
PATH="$TMP/bin:$PATH" pytest
'' else if stdenv.isLinux then ''
dbus-run-session \
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
--config-file=${dbus}/share/dbus-1/session.conf \
pytest
'' else ''
pytest

View file

@ -52,7 +52,7 @@ let
nativeBuildInputs = [ makeWrapper ];
} ''
makeWrapper ${dbus}/bin/dbus-launch $out/bin/dbus-launch \
--add-flags --config-file=${dbus.daemon}/share/dbus-1/session.conf
--add-flags --config-file=${dbus}/share/dbus-1/session.conf
'';
in

View file

@ -42,7 +42,7 @@ stdenv.mkDerivation rec {
# install check instead, when those paths will have been created.
doInstallCheck = true;
preInstallCheck = ''
export G_TEST_DBUS_DAEMON="${dbus.daemon}/bin/dbus-daemon"
export G_TEST_DBUS_DAEMON="${dbus}/bin/dbus-daemon"
patchShebangs tools/tests/test-wrapper.sh
'';
installCheckTarget = "check";