[picocom] Add patch too

Kevin Fenzi kevin at fedoraproject.org
Sun Jan 29 16:41:58 UTC 2012


commit 43558e086ccadc1a0a7f8e42f68c7b7b152bbaac
Author: Kevin Fenzi <kevin at scrye.com>
Date:   Sun Jan 29 09:41:51 2012 -0700

    Add patch too

 ...ctor-out-UUCP_LOCK_DIR-for-easy-overridin.patch |   47 ++++++++++++++++++++
 1 files changed, 47 insertions(+), 0 deletions(-)
---
diff --git a/0001-Makefile-factor-out-UUCP_LOCK_DIR-for-easy-overridin.patch b/0001-Makefile-factor-out-UUCP_LOCK_DIR-for-easy-overridin.patch
new file mode 100644
index 0000000..a19d799
--- /dev/null
+++ b/0001-Makefile-factor-out-UUCP_LOCK_DIR-for-easy-overridin.patch
@@ -0,0 +1,47 @@
+From 2d4f6da1c1c18218670c6971c325b1eec204c2f2 Mon Sep 17 00:00:00 2001
+From: Scott Tsai <scottt.tw at gmail.com>
+Date: Sun, 29 Jan 2012 22:02:53 +0800
+Subject: [PATCH] Makefile: factor out UUCP_LOCK_DIR for easy overriding
+
+This patch puts UUCP_LOCK_DIR in a separate makefile variable to
+allow Linux distributions with different filesystem permission setups
+to easily override where piocom stores lock files.
+The default behavior remain unchanged.
+
+This patch is meant to fix:
+http://code.google.com/p/picocom/issues/detail?id=15
+https://bugzilla.redhat.com/show_bug.cgi?id=732360
+
+picocom's existing behavior of placing lockfiles at
+/var/lock/LCK..ttyUSB0 fails on Fedora since
+/var/lock is a symlink that (eventually) resolves to /run/lock,
+which has permissions: drwxr-xr-x. root root /run/lock/
+Building picocom with:
+make UUCP_LOCK_DIR=/run/lock/picocom
+and creating that directory with permissions:
+drwxrwxr-x. root dialout /run/lock/picocom/
+would allow users in the "dialout" to use picocom without running into
+permission denied errors.
+---
+ Makefile |    4 +++-
+ 1 files changed, 3 insertions(+), 1 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index fc9fc39..6445b63 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,8 +1,10 @@
+ 
+ VERSION=1.6
+ 
++UUCP_LOCK_DIR=/var/lock
++
+ # CC = gcc
+-CPPFLAGS=-DVERSION_STR=\"$(VERSION)\" -DUUCP_LOCK_DIR=\"/var/lock\" \
++CPPFLAGS=-DVERSION_STR=\"$(VERSION)\" -DUUCP_LOCK_DIR=\"$(UUCP_LOCK_DIR)\" \
+          -DHIGH_BAUD
+ CFLAGS = -Wall -g
+ 
+-- 
+1.7.7.6
+


More information about the scm-commits mailing list