summaryrefslogtreecommitdiff
path: root/java/java-rxtx/0003-lockdir-location.patch
diff options
context:
space:
mode:
authorMárcio Alexandre Silva Delgado <coadde@lavabit.com>2012-11-11 19:57:22 -0200
committerMárcio Alexandre Silva Delgado <coadde@lavabit.com>2012-11-11 19:57:22 -0200
commit246bf186da93a3852240ac92428f54b41c58e1db (patch)
tree8f0e6a272bf36d3c00a15d60bb69d9b01c3e022b /java/java-rxtx/0003-lockdir-location.patch
parent7ad962cb59151982416803f4c42bf114dbc9c4ee (diff)
parent57c4a12d7c00bb82275af154cbcdbb7ec871c57c (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'java/java-rxtx/0003-lockdir-location.patch')
-rw-r--r--java/java-rxtx/0003-lockdir-location.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/java/java-rxtx/0003-lockdir-location.patch b/java/java-rxtx/0003-lockdir-location.patch
new file mode 100644
index 000000000..78a757f81
--- /dev/null
+++ b/java/java-rxtx/0003-lockdir-location.patch
@@ -0,0 +1,18 @@
+Fix the location of device lock files.
+
+Use the new semi-standard device lock file directory on GNU/Linux. This is
+nescessary on (at least) Arch Linux and Parabola GNU/Linux.
+
+http://lists.freedesktop.org/archives/systemd-devel/2011-March/001823.html
+
+--- RXTX.orig/src/SerialImp.h
++++ RXTX/src/SerialImp.h
+@@ -109,7 +109,7 @@
+ /* Ports known on the OS */
+ #if defined(__linux__)
+ # define DEVICEDIR "/dev/"
+-# define LOCKDIR "/var/lock"
++# define LOCKDIR "/var/lock/lockdev"
+ # define LOCKFILEPREFIX "LCK.."
+ # define FHS
+ #endif /* __linux__ */