Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=6b60421e3fba12153408e7b1d5ef50a0d9220e10
commit 6b60421e3fba12153408e7b1d5ef50a0d9220e10 Author: James Buren <[email protected]> Date: Mon Feb 3 04:54:40 2014 -0600 picocom-1.7-1-x86_64 * new package diff --git a/source/apps-extra/picocom/FrugalBuild b/source/apps-extra/picocom/FrugalBuild new file mode 100644 index 0000000..4275525 --- /dev/null +++ b/source/apps-extra/picocom/FrugalBuild @@ -0,0 +1,29 @@ +# Compiling Time: 0.1 SBU +# Maintainer: James Buren <[email protected]> + +pkgname=picocom +pkgver=1.7 +pkgrel=1 +pkgdesc="A minimal dumb terminal emulation program." +rodepends=('lrzsz') +depends=('glibc') +groups=('apps-extra') +archs=('i686' 'x86_64') +Finclude googlecode +source=(${source[@]} fixes.patch) +sha1sums=('bde6e36af71db845913f9d61f28dee1b485218fa' \ + '2d755f34d061f71929083c044e8a2979a392f3bf') + +build() +{ + Fsed "-g" "$CFLAGS" Makefile + Fpatchall + Fmake + Fexerel /usr/bin/picocom + for i in pc[xyz]m; do + Fsed '\([sr][xbz]\)' 'l\1' $i + Fexerel /usr/bin/$i + done +} + +# optimization OK diff --git a/source/apps-extra/picocom/fixes.patch b/source/apps-extra/picocom/fixes.patch new file mode 100644 index 0000000..9b43f25 --- /dev/null +++ b/source/apps-extra/picocom/fixes.patch @@ -0,0 +1,19 @@ +diff -ur a/picocom.c b/picocom.c +--- a/picocom.c 2012-02-21 00:40:56.000000000 -0600 ++++ b/picocom.c 2014-02-03 04:47:01.393912667 -0600 +@@ -224,7 +224,14 @@ + r = read(fd, buf, sizeof(buf)); + close(fd); + /* if r == 4, lock file is binary (old-style) */ +- pid = (r == 4) ? *(int *)buf : strtol(buf, NULL, 10); ++ if(r == 4) { ++ union { char *a; int *b; } u; ++ u.a = buf; ++ pid = *u.b; ++ } ++ else { ++ pid = strtol(buf, NULL, 10); ++ } + if ( pid > 0 + && kill((pid_t)pid, 0) < 0 + && errno == ESRCH ) { _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
