:: Re: [Dng] A novice attempt to speed…
Top Pagina
Delete this message
Reply to this message
Auteur: Anto
Datum:  
Aan: dng
Onderwerp: Re: [Dng] A novice attempt to speed up Devuan development


On 06/05/15 05:24, Jaret Cantu wrote:
>
> eudev was forked *after* udev got got by systemd. The first code
> commit (Fork of Original Code Base: anongit.freedesktop.org/systemd,
> 2944f347d087ff24ec808e4b70fe104a772a97a0) was based on 195, which is
> after The Systemding: 182 was udev, 184 was systemd, and I don't see a
> tag for 183. Huh, must be like a 13th floor.
>
> The eudev README even calls it a fork of systemd.
>
> eudev continues to pull in relevant udev changes from the systemd tree
> (without the init-specific filth, obviously) and even provides some
> fixes of its own. It is like a window into some magical world where
> udev development continues under the old banner. Well, a similar
> banner that is one character wider, at least.
>
> Gentoo (or rather, Gentoo users) started eudev so that OpenRC could
> continue using udevd (although it does work just fine with any init
> system), so Gentoo is probably the most official place to go for it.
> The github site is listed as eudev's homepage, but there is also:
>
> https://wwwold.gentoo.org/proj/en/eudev/
>
> which I had thought contained some links to history/reasoning, and a
> source repository:
>
> http://dev.gentoo.org/~blueness/eudev/
>
> 3.0? Wow, I'm really behind.
>
>
> The only difference I've really noticed with the last version of udev
> before being cannibalized and eudev is that eudev doesn't build
> against some old (pre-3.0) kernel headers. That's really only an
> issue for crufty embedded targets, not desktops, tho'.
>
>
>
> Cheers,
>
> Jerry
>
>
>
> PS: Bonus round!
> Version 183 was apparently the merge point of systemd and udev, at
> which point systemd took udev's versioning scheme but not its
> credibility.
> -at which point systemd took udev's versioning scheme but NOT...
> ITS... FREEDOOOOOOM!
> -at which point systemd took udev's versioning scheme, like a married
> name. No hyphenated versions here! I only mention this because I have
> it on good authority (read: internet rubbish) that we are all terribly
> anti-women.


Hello Jerry,

Thanks for the information about eudev and the historical wrap up on udev.

As it is quite impossible for me to extract udev related codes from
systemd source, I am trying to use eudev as it seems easier to compile
it. However, I am having difficulties to install eudev packages.

I didn't try to remove the current udev and libudev1 as it will remove
important packages.

root@d945gclf:/home/anto/packages/eudev# dpkg --list | grep udev
ii  libudev1:amd64 215-17                           amd64        libudev 
shared library
ii  udev 215-17                           amd64        /dev/ and hotplug 
management daemon
root@d945gclf:/home/anto/packages/eudev#
root@d945gclf:/home/anto/packages/eudev#
root@d945gclf:/home/anto/packages/eudev# apt-get purge udev libudev1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
   dmsetup* grub-common* grub-pc* grub-pc-bin* grub2-common* 
initramfs-tools* libdevmapper1.02.1* libudev1* libusb-1.0-0* 
linux-image-3.16.0-4-amd64* linux-image-amd64* udev* usbutils*
0 upgraded, 0 newly installed, 13 to remove and 0 not upgraded.
After this operation, 190 MB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.
root@d945gclf:/home/anto/packages/eudev#


I would really appreciate your feedback and guideline on this. Below are
the steps I have done so far.

Cheers,

Anto
----

1. Get eudev-3.0 source from http://dev.gentoo.org/~blueness/eudev/
2. Get Debian build package of eudev from
https://git.devuan.org/pkgs-utopia-substitution/devuan-eudev
3. Change debian/changelog and debian/rules

diff -ruN devuan-eudev/debian/changelog eudev-3.0-1+devuan/debian/changelog
--- devuan-eudev/debian/changelog    2015-05-06 22:03:09.000000000 +0200
+++ eudev-3.0-1+devuan/debian/changelog    2015-05-07 07:44:41.000000000 
+0200
@@ -1,3 +1,9 @@
+eudev (3.0-1+devuan) unstable; urgency=medium
+
+  * Update to the latest upstream release.
+
+ -- Anto <whatever>  Thu, 07 May 2015 07:44:07 +0200
+
  eudev (1:2.1.1-1) unstable; urgency=medium


    * Initial release.
diff -ruN devuan-eudev/debian/rules eudev-3.0-1+devuan/debian/rules
--- devuan-eudev/debian/rules    2015-05-06 22:03:09.000000000 +0200
+++ eudev-3.0-1+devuan/debian/rules    2015-05-07 07:58:03.000000000 +0200
@@ -21,8 +21,7 @@
    --enable-static --disable-dependency-tracking
  CONFFLAGS_deb  := $(CONFFLAGS) \
    --with-rootlibdir=/lib/$(DEB_HOST_MULTIARCH) \
-  --enable-gtk-doc --enable-introspection \
-  --enable-rule-generator
+  --enable-gtk-doc --enable-introspection
  CONFFLAGS_udeb := $(CONFFLAGS) \
    --with-rootlibdir=/lib


@@ -140,10 +139,8 @@
          $(DU)/sbin/
      install --mode=755 $(addprefix build-udeb/src/, \
          ata_id/ata_id cdrom_id/cdrom_id scsi_id/scsi_id ) \
-        rule_generator/write_*_rules extra/firmware.agent \
          $(DU)/lib/udev/
-    install --mode=644 rule_generator/rule_generator.functions \
-        extra/hotplug.functions \
+    install --mode=644 extra/hotplug.functions \
          $(DU)/lib/udev/
      install --mode=755 extra/udev.startup \
          $(DU)/lib/debian-installer/start-udev


4. Compile eudev

root@d945gclf:/home/anto/packages/eudev# ls -ln *.deb
-rw-r--r-- 1 1000 1000 1482824 May  7 08:10 eudev_3.0-1+devuan_amd64.deb
-rw-r--r-- 1 1000 1000    2812 May  7 08:10 
gir1.2-geudev-1.0_3.0-1+devuan_amd64.deb
-rw-r--r-- 1 1000 1000    1258 May  7 08:10 
gir1.2-gudev-1.0_3.0-1+devuan_amd64.deb
-rw-r--r-- 1 1000 1000   80330 May  7 08:10 libeudev1_3.0-1+devuan_amd64.deb
-rw-r--r-- 1 1000 1000  143944 May  7 08:10 
libeudev1-dbg_3.0-1+devuan_amd64.deb
-rw-r--r-- 1 1000 1000  267004 May  7 08:10 
libeudev-dev_3.0-1+devuan_amd64.deb
-rw-r--r-- 1 1000 1000   38916 May  7 08:10 
libgeudev-1.0-0_3.0-1+devuan_amd64.deb
-rw-r--r-- 1 1000 1000   65842 May  7 08:10 
libgeudev-1.0-dev_3.0-1+devuan_amd64.deb
-rw-r--r-- 1 1000 1000    1268 May  7 08:10 
libgudev-1.0-0_3.0-1+devuan_amd64.deb
-rw-r--r-- 1 1000 1000    1260 May  7 08:10 
libgudev-1.0-dev_3.0-1+devuan_amd64.deb
-rw-r--r-- 1 1000 1000    1248 May  7 08:10 libudev1_3.0-1+devuan_all.deb
-rw-r--r-- 1 1000 1000    1254 May  7 08:10 
libudev-dev_3.0-1+devuan_amd64.deb
-rw-r--r-- 1 1000 1000    1232 May  7 08:10 udev_3.0-1+devuan_all.deb
root@d945gclf:/home/anto/packages/eudev#


5. Install eudev (FAILED)

root@d945gclf:/home/anto/packages/eudev# dpkg --install
eudev_3.0-1+devuan_amd64.deb libeudev1_3.0-1+devuan_amd64.deb
libudev1_3.0-1+devuan_all.deb udev_3.0-1+devuan_all.deb
Selecting previously unselected package eudev.
(Reading database ... 33420 files and directories currently installed.)
Preparing to unpack eudev_3.0-1+devuan_amd64.deb ...
Unpacking eudev (3.0-1+devuan) ...
dpkg: error processing archive eudev_3.0-1+devuan_amd64.deb (--install):
trying to overwrite
'/usr/share/initramfs-tools/scripts/init-bottom/udev', which is also in
package udev 215-17
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Selecting previously unselected package libeudev1:amd64.
Preparing to unpack libeudev1_3.0-1+devuan_amd64.deb ...
Unpacking libeudev1:amd64 (3.0-1+devuan) ...
dpkg: error processing archive libeudev1_3.0-1+devuan_amd64.deb (--install):
trying to overwrite '/lib/x86_64-linux-gnu/libudev.so.1', which is
also in package libudev1:amd64 215-17
dpkg: warning: downgrading libudev1:amd64 from 215-17 to 3.0-1+devuan
Preparing to unpack libudev1_3.0-1+devuan_all.deb ...
Unpacking libudev1 (3.0-1+devuan) over (215-17) ...
dpkg: warning: downgrading udev from 215-17 to 3.0-1+devuan
Preparing to unpack udev_3.0-1+devuan_all.deb ...
Unpacking udev (3.0-1+devuan) over (215-17) ...
dpkg: warning: unable to delete old directory '/etc/udev/rules.d':
Directory not empty
dpkg: warning: unable to delete old directory '/etc/udev': Directory not
empty
dpkg: dependency problems prevent configuration of libudev1:
libudev1 depends on libeudev1; however:
Package libeudev1:amd64 is not installed.

dpkg: error processing package libudev1 (--install):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of udev:
udev depends on eudev; however:
Package eudev is not installed.

dpkg: error processing package udev (--install):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.7.0.2-5) ...
Errors were encountered while processing:
eudev_3.0-1+devuan_amd64.deb
libeudev1_3.0-1+devuan_amd64.deb
libudev1
udev
root@d945gclf:/home/anto/packages/eudev#