Skip to contentSkip to conversation

debian: remove device nodes from libxenomai1

PATCH In review Henning Schild 2 participants 2 messages Aug 5, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 debian: remove device nodes from libxenomai1

The library package does not seem to be the correct place for device nodes. People might install the lib for cross compilation and they will not need the nodes. If a non-root user extracts the package node-creation will fail.

On modern systems using debian packages the device nodes will be generated by udev. And on legacy systems it should probably have been a bunch of mknods in a post-install step instead of packaging the nodes.

---

I know 2.6 is discontinued and the debian subfolder is always a controversial point, i still want to share that patch.

 debian/libxenomai1.dirs | 1 -
 debian/rules            | 1 -
 2 files changed, 2 deletions(-)
debian/libxenomai1.dirs +0 -1
index 8728b8b..35f4b51 100644
@@ -1,4 +1,3 @@
 etc/modprobe.d
 etc/udev/rules.d
-dev/
 usr/share/lintian/overrides
debian/rules +0 -1
index 98b2531..fb485a8 100755
@@ -61,7 +61,6 @@ install: build
 	dh_prep
 	dh_installdirs
 	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp/
-	$(MAKE) devices DESTDIR=$(CURDIR)/debian/libxenomai1
 	dh_install --sourcedir=$(CURDIR)/debian/tmp
 	# xeno-config should be only in libxenomai-dev
 	rm -f $(CURDIR)/debian/xenomai-runtime/usr/bin/xeno-config
Signature · 1 line
2.7.3
#1 lore raw
Quoted 34 lines · Henning Schild

The library package does not seem to be the correct place for device nodes. People might install the lib for cross compilation and they will not need the nodes. If a non-root user extracts the package node-creation will fail.

On modern systems using debian packages the device nodes will be generated by udev. And on legacy systems it should probably have been a bunch of mknods in a post-install step instead of packaging the nodes.

---

I know 2.6 is discontinued and the debian subfolder is always a controversial point, i still want to share that patch.

 debian/libxenomai1.dirs | 1 -
 debian/rules            | 1 -
 2 files changed, 2 deletions(-)
debian/libxenomai1.dirs +0 -1
index 8728b8b..35f4b51 100644
@@ -1,4 +1,3 @@
 etc/modprobe.d
 etc/udev/rules.d
-dev/
 usr/share/lintian/overrides
debian/rules +0 -0
index 98b2531..fb485a8 100755

debian/rules install: build · line 66

Quoted 7 lines
debian/rules +0 -1
@@ -61,7 +61,6 @@ install: build
 	dh_prep
 	dh_installdirs
 	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp/
-	$(MAKE) devices DESTDIR=$(CURDIR)/debian/libxenomai1
 	dh_install --sourcedir=$(CURDIR)/debian/tmp
 	# xeno-config should be only in libxenomai-dev
 	rm -f $(CURDIR)/debian/xenomai-runtime/usr/bin/xeno-config

Makes sense. Merged thanks.

Signature · 1 line
Philippe.