Date: Friday, January 16, 2015 @ 07:50:59 Author: lfleischer Revision: 229309
Update lirc * Add important build fixes and bug fixes from upstream. * Fix local state dir (/var/ instead of /usr/var/). * Fix optdepends description. Added: lirc/trunk/0001-doc-Add-Doxyfile-to-tarball.patch lirc/trunk/0002-lirc.pc-Fix-bad-variable-reference-ordering-86.patch lirc/trunk/0004-lirc-lsplugins-Bugfix.patch lirc/trunk/0005-lirc_options.conf-Add-effective-user-to-template.patch lirc/trunk/0006-doc-Clean-up-irsend-1-manpage.patch lirc/trunk/0009-lib-lirc_log-Add-priority-labels-info-error.-to-sysl.patch lirc/trunk/0010-lirc-setup-Fix-remote-config-file-display-problems.patch lirc/trunk/0012-lib-Bad-bugfix-for-finding-.lircrc.patch lirc/trunk/0013-tools-Make-make_rel_symlink.py-use-python3.patch Modified: lirc/trunk/PKGBUILD Deleted: lirc/trunk/0001-tools-Make-make_rel_symlink.py-use-python3.patch -----------------------------------------------------------------+ 0001-doc-Add-Doxyfile-to-tarball.patch | 25 +++ 0001-tools-Make-make_rel_symlink.py-use-python3.patch | 42 ------ 0002-lirc.pc-Fix-bad-variable-reference-ordering-86.patch | 26 +++ 0004-lirc-lsplugins-Bugfix.patch | 25 +++ 0005-lirc_options.conf-Add-effective-user-to-template.patch | 24 +++ 0006-doc-Clean-up-irsend-1-manpage.patch | 55 +++++++ 0009-lib-lirc_log-Add-priority-labels-info-error.-to-sysl.patch | 70 ++++++++++ 0010-lirc-setup-Fix-remote-config-file-display-problems.patch | 38 +++++ 0012-lib-Bad-bugfix-for-finding-.lircrc.patch | 27 +++ 0013-tools-Make-make_rel_symlink.py-use-python3.patch | 42 ++++++ PKGBUILD | 37 ++++- 11 files changed, 364 insertions(+), 47 deletions(-) Added: 0001-doc-Add-Doxyfile-to-tarball.patch =================================================================== --- 0001-doc-Add-Doxyfile-to-tarball.patch (rev 0) +++ 0001-doc-Add-Doxyfile-to-tarball.patch 2015-01-16 06:50:59 UTC (rev 229309) @@ -0,0 +1,25 @@ +From 945e44ffe2296bc37dc58363e5beaf5b4eca73fa Mon Sep 17 00:00:00 2001 +From: Alec Leamas <[email protected]> +Date: Thu, 11 Dec 2014 05:34:26 +0100 +Subject: [PATCH 01/13] doc: Add Doxyfile to tarball. + +--- + doc/Makefile.am | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/doc/Makefile.am b/doc/Makefile.am +index 8a05a7d..1b6730e 100644 +--- a/doc/Makefile.am ++++ b/doc/Makefile.am +@@ -3,6 +3,8 @@ ACLOCAL_AMFLAGS = -I m4 + + DISTCLEANFILES = man/* html/* man-html/* + ++EXTRA_DIST = Doxyfile ++ + LIB_SRC = $(srcdir)/../lib + API_SRC = $(LIB_SRC)/*.c \ + $(LIB_SRC)/*.h \ +-- +2.2.2 + Deleted: 0001-tools-Make-make_rel_symlink.py-use-python3.patch =================================================================== --- 0001-tools-Make-make_rel_symlink.py-use-python3.patch 2015-01-16 06:50:40 UTC (rev 229308) +++ 0001-tools-Make-make_rel_symlink.py-use-python3.patch 2015-01-16 06:50:59 UTC (rev 229309) @@ -1,42 +0,0 @@ -From 4c30c6f87dda6614978dfab69d417ef3ca83dccf Mon Sep 17 00:00:00 2001 -From: Alec Leamas <[email protected]> -Date: Thu, 11 Dec 2014 04:44:49 +0100 -Subject: [PATCH] tools: Make make_rel_symlink.py use python3. - ---- - tools/make_rel_symlink.py | 8 ++++---- - 1 file changed, 4 insertions(+), 4 deletions(-) - -diff --git a/tools/make_rel_symlink.py b/tools/make_rel_symlink.py -index 5c89305..896637f 100755 ---- a/tools/make_rel_symlink.py -+++ b/tools/make_rel_symlink.py -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/usr/bin/env python3 - - import os - import os.path -@@ -32,16 +32,16 @@ if sys.argv[1] == "-p": - sys.argv = sys.argv[ 1:] - - if len( sys.argv ) != 3: -- print USAGE -+ print(USAGE) - sys.exit( 1 ) - - if os.path.isdir( sys.argv[2] ): -- print "Removing link target dir:" + sys.argv[2] -+ print("Removing link target dir:" + sys.argv[2]) - shutil.rmtree( sys.argv[2]) - - link_path = relative_ln_s( sys.argv[1], sys.argv[2] ) - if just_print: -- print link_path -+ print(link_path) - else: - os.chdir( os.path.dirname( sys.argv[2])) - target = os.path.basename( sys.argv[2]) --- -2.2.2 - Added: 0002-lirc.pc-Fix-bad-variable-reference-ordering-86.patch =================================================================== --- 0002-lirc.pc-Fix-bad-variable-reference-ordering-86.patch (rev 0) +++ 0002-lirc.pc-Fix-bad-variable-reference-ordering-86.patch 2015-01-16 06:50:59 UTC (rev 229309) @@ -0,0 +1,26 @@ +From d733314ef8293a447568ef48af8b0ddd83a4ad42 Mon Sep 17 00:00:00 2001 +From: Inando <[email protected]> +Date: Mon, 29 Dec 2014 14:45:08 +0100 +Subject: [PATCH 02/13] lirc.pc: Fix bad variable reference/ordering (#86) + +--- + lirc.pc.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lirc.pc.in b/lirc.pc.in +index 43f2b9b..432f51a 100644 +--- a/lirc.pc.in ++++ b/lirc.pc.in +@@ -2,8 +2,8 @@ Name: lirc + Description: LIRC Linux Infrared Control client libs. + Version: @VERSION@ + +-datarootdir=@datarootdir@ + prefix=@prefix@ ++datarootdir=@datarootdir@ + exec_prefix=@exec_prefix@ + libdir=@libdir@ + includedir=@includedir@ +-- +2.2.2 + Added: 0004-lirc-lsplugins-Bugfix.patch =================================================================== --- 0004-lirc-lsplugins-Bugfix.patch (rev 0) +++ 0004-lirc-lsplugins-Bugfix.patch 2015-01-16 06:50:59 UTC (rev 229309) @@ -0,0 +1,25 @@ +From ad094a827e37219b76cf6b6bf3d6fab49a32e913 Mon Sep 17 00:00:00 2001 +From: Alec Leamas <[email protected]> +Date: Fri, 9 Jan 2015 12:46:36 +0100 +Subject: [PATCH 04/13] lirc-lsplugins: Bugfix. + +--- + tools/lirc-lsplugins.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tools/lirc-lsplugins.c b/tools/lirc-lsplugins.c +index 10403a7..9eceb3b 100644 +--- a/tools/lirc-lsplugins.c ++++ b/tools/lirc-lsplugins.c +@@ -212,7 +212,7 @@ static void line_print_long(const line_t* line) + } + + printf("Plugin path:\t%s\n", line->path); +- printf("Driver name:\t%s\n", line->path ? line->name : "-"); ++ printf("Driver name:\t%s\n", line->name ? line->name : "-"); + printf("Load state:\t%s\n", loadstate); + printf("Timing info:\t%s\n", handles_timing); + printf("Can send:\t%s\n", can_send); +-- +2.2.2 + Added: 0005-lirc_options.conf-Add-effective-user-to-template.patch =================================================================== --- 0005-lirc_options.conf-Add-effective-user-to-template.patch (rev 0) +++ 0005-lirc_options.conf-Add-effective-user-to-template.patch 2015-01-16 06:50:59 UTC (rev 229309) @@ -0,0 +1,24 @@ +From 502af4fcca53c81025446bb73fa29570abb34feb Mon Sep 17 00:00:00 2001 +From: Alec Leamas <[email protected]> +Date: Thu, 11 Dec 2014 10:28:47 +0100 +Subject: [PATCH 05/13] lirc_options.conf: Add effective-user to template. + +--- + lirc_options.conf | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/lirc_options.conf b/lirc_options.conf +index 9dc672a..9346de8 100644 +--- a/lirc_options.conf ++++ b/lirc_options.conf +@@ -12,6 +12,7 @@ plugindir = /usr/lib/lirc/plugins + permission = 666 + allow-simulate = No + repeat-max = 600 ++#effective-user = + #listen = [address:]port + #connect = host[:port] + #debug = 6 +-- +2.2.2 + Added: 0006-doc-Clean-up-irsend-1-manpage.patch =================================================================== --- 0006-doc-Clean-up-irsend-1-manpage.patch (rev 0) +++ 0006-doc-Clean-up-irsend-1-manpage.patch 2015-01-16 06:50:59 UTC (rev 229309) @@ -0,0 +1,55 @@ +From ed1eab5e685df76426709b2c12284d61de0470b5 Mon Sep 17 00:00:00 2001 +From: Alec Leamas <[email protected]> +Date: Tue, 16 Dec 2014 11:18:00 +0100 +Subject: [PATCH 06/13] doc: Clean up irsend(1) manpage. + +--- + doc/man-source/irsend.1 | 18 ++++++++---------- + 1 file changed, 8 insertions(+), 10 deletions(-) + +diff --git a/doc/man-source/irsend.1 b/doc/man-source/irsend.1 +index 51f57ab..12d2db8 100644 +--- a/doc/man-source/irsend.1 ++++ b/doc/man-source/irsend.1 +@@ -1,4 +1,4 @@ +-.TH IRSEND "1" "Last change: Sep 2014" "irsend @version@" "User Commands" ++.TH IRSEND "1" "Last change: Dec 2014" "irsend @version@" "User Commands" + .SH NAME + irsend - basic LIRC program to send infra-red commands + .SH SYNOPSIS +@@ -63,6 +63,12 @@ connect to lircd at this address + .TP + \-# \fB\-\-count\fR=\fIn\fR + send command n times ++ ++.SH ENVIRONMENT ++.TP 4 ++LIRC_SOCKET_PATH ++The lircd socket to connect to, defaults to a hardcoded default value ++usually /var/run/lirc/lircd + .SH FILES + .TP + .I /etc/lirc/lircd.conf +@@ -94,18 +100,10 @@ irsend SIMULATE "0000000000000476 00 OK TECHNISAT_ST3004S" + Drivers are loaded dynamically. The directory used for this is determined by (falling + priority): + .IP \- 2 +-The --plugindir option if available. +-.IP \- 2 + The 'plugindir' entry in the [lircd] section of the lirc_options.conf file. + .IP \- 2 + The environment variable LIRC_PLUGINDIR. + .IP \- 2 + A hardcoded default (usually /usr/lib[64]/lirc/plugins). + .SH "SEE ALSO" +-The documentation for +-.B lirc +-is maintained as html pages. They are located under html/ in the +-documentation directory. +- +-.BR lircd(8), mode2(1), xmode2(1) +-.BR irrecord(1) irw(1), http://www.lirc.org . ++.B lircd(8), mode2(1), xmode2(1), irrecord(1), irw(1) +-- +2.2.2 + Added: 0009-lib-lirc_log-Add-priority-labels-info-error.-to-sysl.patch =================================================================== --- 0009-lib-lirc_log-Add-priority-labels-info-error.-to-sysl.patch (rev 0) +++ 0009-lib-lirc_log-Add-priority-labels-info-error.-to-sysl.patch 2015-01-16 06:50:59 UTC (rev 229309) @@ -0,0 +1,70 @@ +From dfe0f3c3170a029a47edd9adf2a1b9a975d496ae Mon Sep 17 00:00:00 2001 +From: Alec Leamas <[email protected]> +Date: Sat, 10 Jan 2015 01:30:32 +0100 +Subject: [PATCH 09/13] lib/lirc_log: Add priority labels (info, error...) to + syslog msg (#89). + +--- + lib/lirc_log.c | 23 +++++++---------------- + 1 file changed, 7 insertions(+), 16 deletions(-) + +diff --git a/lib/lirc_log.c b/lib/lirc_log.c +index 307fb77..cf37e6d 100644 +--- a/lib/lirc_log.c ++++ b/lib/lirc_log.c +@@ -2,22 +2,8 @@ + ** lircd.c ***************************************************************** + **************************************************************************** + * +- * lircd - LIRC Decoder Daemon ++ * lirc_log - simple logging module. + * +- * Copyright (C) 1996,97 Ralph Metzler <[email protected]> +- * Copyright (C) 1998,99 Christoph Bartelmus <[email protected]> +- * +- * ======= +- * HISTORY +- * ======= +- * +- * 0.1: 03/27/96 decode SONY infra-red signals +- * create mousesystems mouse signals on pipe /dev/lircm +- * 04/07/96 send ir-codes to clients via socket (see irpty) +- * 05/16/96 now using ir_remotes for decoding +- * much easier now to describe new remotes +- * +- * 0.5: 09/02/98 finished (nearly) complete rewrite (Christoph) + * + */ + +@@ -59,6 +45,8 @@ const char *logfile = "syslog"; + char progname[128] = {'?','\0'}; + static int nodaemon = 0; + ++static const int PRIO_LEN = 16; /**< Longest priority label, some margin. */ ++ + + static const char* prio2text(int prio) + { +@@ -246,6 +234,7 @@ void logprintf(loglevel_t prio, const char *format_str, ...) + { + int save_errno = errno; + va_list ap; ++ char buff[PRIO_LEN + strlen(format_str)]; + + #ifdef SYSTEMD_LOGPERROR_FIX + if (nodaemon && prio <= loglevel) { +@@ -258,8 +247,10 @@ void logprintf(loglevel_t prio, const char *format_str, ...) + } + #endif + if (use_syslog) { ++ snprintf(buff, sizeof(buff), ++ "%s: %s", prio2text(prio), format_str); + va_start(ap, format_str); +- vsyslog(prio, format_str, ap); ++ vsyslog(prio, buff, ap); + va_end(ap); + } else if (lf && prio <= loglevel) { + time_t current; +-- +2.2.2 + Added: 0010-lirc-setup-Fix-remote-config-file-display-problems.patch =================================================================== --- 0010-lirc-setup-Fix-remote-config-file-display-problems.patch (rev 0) +++ 0010-lirc-setup-Fix-remote-config-file-display-problems.patch 2015-01-16 06:50:59 UTC (rev 229309) @@ -0,0 +1,38 @@ +From f3714b04a20069b70b9cbba7558bb3cb5d28caa9 Mon Sep 17 00:00:00 2001 +From: Alec Leamas <[email protected]> +Date: Wed, 14 Jan 2015 01:13:00 +0100 +Subject: [PATCH 10/13] lirc-setup: Fix remote config file display problems. + +--- + tools/lirc-setup/mvc_control.py | 2 +- + tools/lirc-setup/mvc_view.py | 1 + + 2 files changed, 2 insertions(+), 1 deletion(-) + +diff --git a/tools/lirc-setup/mvc_control.py b/tools/lirc-setup/mvc_control.py +index a922df5..8cf216b 100644 +--- a/tools/lirc-setup/mvc_control.py ++++ b/tools/lirc-setup/mvc_control.py +@@ -244,7 +244,7 @@ class Controller(object): + errors='ignore') + except urllib.error.URLError as ex: + text = "Sorry: cannot download: " + uri + ' (' + str(ex) + ')' +- self.view.show_text(text, 'lirc: download error') ++ self.view.show_text(text, 'lirc: Remote config file') + + + def main(): +diff --git a/tools/lirc-setup/mvc_view.py b/tools/lirc-setup/mvc_view.py +index a50ce73..19e8df7 100644 +--- a/tools/lirc-setup/mvc_view.py ++++ b/tools/lirc-setup/mvc_view.py +@@ -156,6 +156,7 @@ class View(baseview.Baseview): + else: + return True + ++ text = text.replace("&", "&") + self.builder.get_object("show_text_label").set_markup(text) + w = self.builder.get_object('view_text_window') + w.set_title(title) +-- +2.2.2 + Added: 0012-lib-Bad-bugfix-for-finding-.lircrc.patch =================================================================== --- 0012-lib-Bad-bugfix-for-finding-.lircrc.patch (rev 0) +++ 0012-lib-Bad-bugfix-for-finding-.lircrc.patch 2015-01-16 06:50:59 UTC (rev 229309) @@ -0,0 +1,27 @@ +From 96292ce20b75ef27851ba75aed1aafb15a207a79 Mon Sep 17 00:00:00 2001 +From: Alec Leamas <[email protected]> +Date: Thu, 15 Jan 2015 02:01:57 +0100 +Subject: [PATCH 12/13] lib: Bad bugfix for finding ~/.lircrc + +Basically, the common library code did not find ~/.lircrc, just +~/.config/lircrc. Fixed. +--- + lib/lirc_client.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/lirc_client.c b/lib/lirc_client.c +index c441803..df2eaef 100644 +--- a/lib/lirc_client.c ++++ b/lib/lirc_client.c +@@ -807,7 +807,7 @@ static char *lirc_getfilename(const char *file, const char *current_file) + if (filename == NULL) { + return NULL; + } +- strcat(filename, LIRCRC_USER_FILE); ++ strcat(filename, "/" LIRCRC_USER_FILE); + } + filename = realloc(filename, strlen(filename) + 1); + } else if (strncmp(file, "~/", 2) == 0) { +-- +2.2.2 + Added: 0013-tools-Make-make_rel_symlink.py-use-python3.patch =================================================================== --- 0013-tools-Make-make_rel_symlink.py-use-python3.patch (rev 0) +++ 0013-tools-Make-make_rel_symlink.py-use-python3.patch 2015-01-16 06:50:59 UTC (rev 229309) @@ -0,0 +1,42 @@ +From 4c30c6f87dda6614978dfab69d417ef3ca83dccf Mon Sep 17 00:00:00 2001 +From: Alec Leamas <[email protected]> +Date: Thu, 11 Dec 2014 04:44:49 +0100 +Subject: [PATCH 13/13] tools: Make make_rel_symlink.py use python3. + +--- + tools/make_rel_symlink.py | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/tools/make_rel_symlink.py b/tools/make_rel_symlink.py +index 5c89305..896637f 100755 +--- a/tools/make_rel_symlink.py ++++ b/tools/make_rel_symlink.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/env python3 + + import os + import os.path +@@ -32,16 +32,16 @@ if sys.argv[1] == "-p": + sys.argv = sys.argv[ 1:] + + if len( sys.argv ) != 3: +- print USAGE ++ print(USAGE) + sys.exit( 1 ) + + if os.path.isdir( sys.argv[2] ): +- print "Removing link target dir:" + sys.argv[2] ++ print("Removing link target dir:" + sys.argv[2]) + shutil.rmtree( sys.argv[2]) + + link_path = relative_ln_s( sys.argv[1], sys.argv[2] ) + if just_print: +- print link_path ++ print(link_path) + else: + os.chdir( os.path.dirname( sys.argv[2])) + target = os.path.basename( sys.argv[2]) +-- +2.2.2 + Modified: PKGBUILD =================================================================== --- PKGBUILD 2015-01-16 06:50:40 UTC (rev 229308) +++ PKGBUILD 2015-01-16 06:50:59 UTC (rev 229309) @@ -12,18 +12,34 @@ license=('GPL') depends=('alsa-lib' 'libx11' 'libftdi-compat' 'libirman') makedepends=('help2man' 'alsa-lib' 'libx11' 'libftdi-compat' 'libirman' 'python') -optdepends=('python: pronto2lirc utility') +optdepends=('python: for lirc-setup, irdb-get and pronto2lirc') provides=('lirc-utils') replaces=('lirc-utils') backup=('etc/lirc/lirc_options.conf' 'etc/lirc/lircd.conf' 'etc/lirc/lircmd.conf') install=lirc.install source=("http://prdownloads.sourceforge.net/${pkgname}/${pkgname}-${_pkgver}.tar.bz2" - 0001-tools-Make-make_rel_symlink.py-use-python3.patch + 0001-doc-Add-Doxyfile-to-tarball.patch + 0002-lirc.pc-Fix-bad-variable-reference-ordering-86.patch + 0004-lirc-lsplugins-Bugfix.patch + 0005-lirc_options.conf-Add-effective-user-to-template.patch + 0006-doc-Clean-up-irsend-1-manpage.patch + 0009-lib-lirc_log-Add-priority-labels-info-error.-to-sysl.patch + 0010-lirc-setup-Fix-remote-config-file-display-problems.patch + 0012-lib-Bad-bugfix-for-finding-.lircrc.patch + 0013-tools-Make-make_rel_symlink.py-use-python3.patch lirc.logrotate irexec.service lirc.tmpfiles) md5sums=('3afc84e79c0839823cc20e7a710dd06d' - 'bef13bd33bafcba828ec8175652474bc' + '1e1a68f08c2ecb2b766973e4f1721bae' + 'c04b2ed646dbaaec2fa9f4e1ad2cc802' + '2e60e1b3c19b0898d1d5f69e76891a60' + '9fe1e650858ca91e3a0fe4d63ee4b946' + '8b5c11ab325d4bef998c41b5b1160513' + '96475d718dbeb336a3282a5e9f9fdadd' + '308c3e1fd769b38caa6fd548f54f2440' + '497c4bb4ac8fc6febac94abe1922595c' + 'e68b73d848302ee0f76791f60dbd3581' '3deb02604b37811d41816e9b4385fcc3' '32df3b9bc859565d6acf5f0e5b747083' 'febf25c154a7d36f01159e84f26c2d9a') @@ -30,13 +46,24 @@ prepare() { cd "${srcdir}/lirc-${_pkgver}" - patch -p1 -i 0001-tools-Make-make_rel_symlink.py-use-python3.patch + + patch -p1 -i ../0001-doc-Add-Doxyfile-to-tarball.patch + patch -p1 -i ../0002-lirc.pc-Fix-bad-variable-reference-ordering-86.patch + patch -p1 -i ../0004-lirc-lsplugins-Bugfix.patch + patch -p1 -i ../0005-lirc_options.conf-Add-effective-user-to-template.patch + patch -p1 -i ../0006-doc-Clean-up-irsend-1-manpage.patch + patch -p1 -i ../0009-lib-lirc_log-Add-priority-labels-info-error.-to-sysl.patch + patch -p1 -i ../0010-lirc-setup-Fix-remote-config-file-display-problems.patch + patch -p1 -i ../0012-lib-Bad-bugfix-for-finding-.lircrc.patch + patch -p1 -i ../0013-tools-Make-make_rel_symlink.py-use-python3.patch + + autoreconf } build() { cd "${srcdir}/lirc-${_pkgver}" - ./configure --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc \ + ./configure --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc --localstatedir=/var \ --with-transmitter --enable-sandboxed make }
