:: Re: [Dng] Devuan commitments - will…
Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Anto
Ημερομηνία:  
Προς: Jude Nelson
Υ/ο: dng@lists.dyne.org
Αντικείμενο: Re: [Dng] Devuan commitments - will trade-off be applied?
On 18/03/15 15:47, Jude Nelson wrote:
> That's very interesting. Devuan's dbus shouldn't depend on
> libsystemd0 at all (it builds and runs without it); if it is pulling
> in libsystemd0 as a dependency, then there's a bug in our dbus package.
>
> Can you show me the output of:
>
> $ aptitude show dbus
> $ apt-cache rdepends dbus
>
> Also, if it is convenient, can you download (but not install) dbus,
> extract the package, and run "ldd" on dbus-daemon to see whether or
> not the binary accidentally got compiled to link against libsystemd0?
>
> Thanks,
> Jude
>


Hello Jude,

I am not sure what you are trying to understand. I think "aptitude show
dbus" only provides the information on dbus package that is currently
installed. As I am using dbus package from http://angband.pl/debian/,
which clearly does not have dependency to libsystemd0, so the result is
not as you expected. Anyway, I collected the outputs that might be
relevant, a part from "apt-cache rdepends dbus" as this one provides the
list of packages that depend on dbus so I got a long list and none of
them is libsystemd0. I think the output of "ldd usr/bin/dbus-daemon"
below confirmed that dbus package on Devuan repository requires libsystemd0.

Based on the my experience so far in fighting to remove systemd
components from Debian, I think the easiest and certain way to know the
dependency that comes from the repository that we pull in is by running
"apt-get -u dist-upgrade" and hit "n", then manually check why systemd
components are being pulled by running "apt-cache depends <list of
packages>".

Kind regards,

Anto
----

<Disable all repositories but Devuan and clear /etc/apt/preferences.d
folder>

root@v01:~# apt-get update
Hit http://apt.devuan.org jessie InRelease
Hit http://apt.devuan.org jessie/main i386 Packages
Ign http://apt.devuan.org jessie/main Translation-en_US
Ign http://apt.devuan.org jessie/main Translation-en
Reading package lists... Done
root@v01:~#
root@v01:~# aptitude show dbus
Package: dbus
State: installed
Automatically installed: no
Multi-Arch: foreign
Version: 1.8.14-1.0nosystemd1
Priority: standard
Section: admin
Maintainer: Utopia Maintenance Team
<pkg-utopia-maintainers@???>
Architecture: i386
Uncompressed Size: 1,034 k
Depends: libaudit1 (>= 1:2.2.1), libc6 (>= 2.17), libcap-ng0,
libdbus-1-3 (>= 1.7.6), libexpat1 (>= 2.0.1), libselinux1 (>= 2.0.65),
adduser, lsb-base (>= 3.2-14)
Suggests: dbus-x11
Description: simple interprocess messaging system (daemon and utilities)

Homepage: http://dbus.freedesktop.org/

Tags: devel::rpc, implemented-in::c, interface::daemon, protocol::TODO,
role::program

root@v01:~#
root@v01:~# apt-cache policy dbus
dbus:
   Installed: 1.8.14-1.0nosystemd1
   Candidate: 1.8.16-1
   Version table:
      1.8.16-1 0
         500 http://apt.devuan.org/devuan/ jessie/main i386 Packages
  *** 1.8.14-1.0nosystemd1 0
         100 /var/lib/dpkg/status
root@v01:~#


<Enable all repositories but Devuan and restore preference files into
/etc/apt/preferences.d folder>

root@v01:~# apt-get update
Ign http://ftp.debian.org wheezy InRelease
Get:1 http://ftp.debian.org wheezy-backports InRelease [148 kB]
Get:2 http://security.debian.org wheezy/updates InRelease [103 kB]
Get:3 http://ftp.debian.org jessie InRelease [199 kB]
Get:4 http://angband.pl nosystemd InRelease [6,932 B]
Get:5 http://ftp.debian.org wheezy Release.gpg [1,655 B]
Get:6 http://ftp.debian.org wheezy Release [168 kB]
Get:7 http://security.debian.org wheezy/updates/main i386 Packages [273 kB]
Get:8 http://angband.pl nosystemd/main i386 Packages [27.8 kB]
Get:9 http://security.debian.org wheezy/updates/main Translation-en [154 kB]
Get:10 http://ftp.debian.org wheezy-backports/main i386 Packages [554 kB]
Get:11 http://ftp.debian.org wheezy-backports/main Translation-en [354 kB]
Get:12 http://ftp.debian.org jessie/main Translation-en [4,599 kB]
Ign http://angband.pl nosystemd/main Translation-en_US
Ign http://angband.pl nosystemd/main Translation-en
Get:13 http://ftp.debian.org wheezy/main i386 Packages [5,859 kB]
Get:14 http://ftp.debian.org wheezy/main Translation-en [3,848 kB]
Get:15 http://ftp.debian.org jessie/main i386 Packages [6,786 kB]
Fetched 23.1 MB in 15s (1,446 kB/s)
Reading package lists... Done
root@v01:~#
root@v01:~# aptitude show dbus
Package: dbus
State: installed
Automatically installed: no
Multi-Arch: foreign
Version: 1.8.14-1.0nosystemd1
Priority: standard
Section: admin
Maintainer: Utopia Maintenance Team
<pkg-utopia-maintainers@???>
Architecture: i386
Uncompressed Size: 1,034 k
Depends: libaudit1 (>= 1:2.2.1), libc6 (>= 2.17), libcap-ng0,
libdbus-1-3 (>= 1.7.6), libexpat1 (>= 2.0.1), libselinux1 (>= 2.0.65),
adduser, lsb-base (>= 3.2-14)
Suggests: dbus-x11
Description: simple interprocess messaging system (daemon and utilities)
D-Bus is a message bus, used for sending messages between
applications. Conceptually, it fits somewhere in between raw sockets and
CORBA in terms of complexity.

D-Bus supports broadcast messages, asynchronous messages (thus
decreasing latency), authentication, and more. It is designed to be
low-overhead; messages are sent using a binary protocol,
not using XML. D-Bus also supports a method call mapping for its
messages, but it is not required; this makes using the system quite simple.

It comes with several bindings, including GLib, Python, Qt and Java.

This package contains the D-Bus daemon and related utilities.

The client-side library can be found in the libdbus-1-3 package, as it
is no longer contained in this package.
Homepage: http://dbus.freedesktop.org/

Tags: devel::rpc, implemented-in::c, interface::daemon, protocol::TODO,
role::program

root@v01:~#
root@v01:~# apt-cache policy dbus
dbus:
   Installed: 1.8.14-1.0nosystemd1
   Candidate: 1.8.14-1.0nosystemd1
   Package pin: 1.8.14-1.0nosystemd1
   Version table:
      1.8.16-1 990
         110 http://ftp.debian.org/debian/ jessie/main i386 Packages
  *** 1.8.14-1.0nosystemd1 990
          -1 http://angband.pl/debian/ nosystemd/main i386 Packages
         100 /var/lib/dpkg/status
      1.6.8-1+deb7u6 990
         800 http://security.debian.org/ wheezy/updates/main i386 Packages
      1.6.8-1+deb7u5 990
         700 http://ftp.debian.org/debian/ wheezy/main i386 Packages
root@v01:~#
root@v01:~# wget 
http://apt.devuan.org/devuan/pool/main/d/dbus/dbus_1.8.16-1_i386.deb
--2015-03-18 18:16:42-- 
http://apt.devuan.org/devuan/pool/main/d/dbus/dbus_1.8.16-1_i386.deb
Resolving apt.devuan.org (apt.devuan.org)... 94.23.108.49
Connecting to apt.devuan.org (apt.devuan.org)|94.23.108.49|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 316180 (309K) [application/octet-stream]
Saving to: ‘dbus_1.8.16-1_i386.deb’


dbus_1.8.16-1_i386.deb
100%[=======================================================================================================>]
308.77K --.-KB/s in 0.05s

2015-03-18 18:16:42 (6.46 MB/s) - ‘dbus_1.8.16-1_i386.deb’ saved
[316180/316180]

root@v01:~# ls -ltr
total 316
-rw-r--r-- 1 root root 316180 Mar 10 06:43 dbus_1.8.16-1_i386.deb
root@v01:~#
root@v01:~# ar x dbus_1.8.16-1_i386.deb
root@v01:~# ls -ltr
total 636
-rw-r--r-- 1 root root 316180 Mar 10 06:43 dbus_1.8.16-1_i386.deb
-rw-r--r-- 1 root root      4 Mar 18 18:18 debian-binary
-rw-r--r-- 1 root root 312640 Mar 18 18:18 data.tar.xz
-rw-r--r-- 1 root root   3347 Mar 18 18:18 control.tar.gz
root@v01:~#
root@v01:~# tar xJf data.tar.xz
root@v01:~#
root@v01:~# ls -ltr
total 652
drwxr-xr-x 3 root root   4096 Feb  9 16:44 var
drwxr-xr-x 5 root root   4096 Feb  9 16:44 usr
drwxr-xr-x 3 root root   4096 Feb  9 16:44 lib
drwxr-xr-x 5 root root   4096 Feb  9 16:44 etc
-rw-r--r-- 1 root root 316180 Mar 10 06:43 dbus_1.8.16-1_i386.deb
-rw-r--r-- 1 root root      4 Mar 18 18:18 debian-binary
-rw-r--r-- 1 root root 312640 Mar 18 18:18 data.tar.xz
-rw-r--r-- 1 root root   3347 Mar 18 18:18 control.tar.gz
root@v01:~#
root@v01:~# find . -name "*daemon*"
./usr/bin/dbus-daemon
./usr/lib/dbus-1.0/dbus-daemon-launch-helper
./usr/share/man/man1/dbus-daemon.1.gz
root@v01:~#
root@v01:~# ldd usr/bin/dbus-daemon
     linux-gate.so.1 (0xb7763000)
     libsystemd.so.0 => not found
     libexpat.so.1 => /lib/i386-linux-gnu/libexpat.so.1 (0xb772f000)
     libselinux.so.1 => /lib/i386-linux-gnu/libselinux.so.1 (0xb7707000)
     libaudit.so.1 => /lib/i386-linux-gnu/libaudit.so.1 (0xb76e0000)
     libcap-ng.so.0 => /usr/lib/i386-linux-gnu/libcap-ng.so.0 (0xb76da000)
     libpthread.so.0 => /lib/i386-linux-gnu/i686/cmov/libpthread.so.0 
(0xb76be000)
     libc.so.6 => /lib/i386-linux-gnu/i686/cmov/libc.so.6 (0xb7514000)
     libpcre.so.3 => /lib/i386-linux-gnu/libpcre.so.3 (0xb74a3000)
     libdl.so.2 => /lib/i386-linux-gnu/i686/cmov/libdl.so.2 (0xb749d000)
     /lib/ld-linux.so.2 (0xb7764000)
root@v01:~#