debian: remove device nodes from libxenomai1
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
@@ -1,4 +1,3 @@ etc/modprobe.d etc/udev/rules.d -dev/ usr/share/lintian/overrides
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
Signature · 1 line
2.7.3
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.
Signed-off-by Henning Schild <[email protected]>---
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@@ -1,4 +1,3 @@ etc/modprobe.d etc/udev/rules.d -dev/ usr/share/lintian/overridesdebian/rules +0
-0
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.