summaryrefslogtreecommitdiff
path: root/community/mg
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-10-31 01:12:24 -0700
committerroot <root@rshg054.dnsready.net>2013-10-31 01:12:24 -0700
commitb2a6f1b28b7fa31088cab9a90b0f5ab97948534d (patch)
treeafa7b467e44b704b69c66862852a8c3118b8e308 /community/mg
parent7c151ac5589d3dbef5972f69a62b847ecf565bfa (diff)
Thu Oct 31 01:09:50 PDT 2013
Diffstat (limited to 'community/mg')
-rw-r--r--community/mg/PKGBUILD7
-rw-r--r--community/mg/cleanup.patch19
2 files changed, 20 insertions, 6 deletions
diff --git a/community/mg/PKGBUILD b/community/mg/PKGBUILD
index 607c3b6c2..176278440 100644
--- a/community/mg/PKGBUILD
+++ b/community/mg/PKGBUILD
@@ -1,21 +1,20 @@
-# $Id: PKGBUILD 99541 2013-10-29 11:42:26Z spupykin $
+# $Id: PKGBUILD 99913 2013-10-31 02:26:20Z allan $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Hannes Rist <hrist@phreeknet.org>
pkgname=mg
pkgver=20130922
-pkgrel=1
+pkgrel=2
pkgdesc="mg is Micro GNU/emacs, this is a portable version of the mg maintained by the OpenBSD team."
arch=('i686' 'x86_64')
url="http://homepage.boetes.org/software/mg/"
depends=('ncurses' 'libbsd')
makedepends=('bmake' 'libclens')
license=('custom')
-options=(!libtool)
source=(http://homepage.boetes.org/software/mg/mg-$pkgver.tar.gz
cleanup.patch)
md5sums=('35bd196ab32bae3531d6bc48be8779d0'
- '163ca88d422cf0cf0a3a44de9a2a3ac3')
+ 'abcea6e34c05425a52101b7c7fb60e7a')
prepare() {
cd $srcdir/$pkgname-$pkgver
diff --git a/community/mg/cleanup.patch b/community/mg/cleanup.patch
index b12ed8fea..d4d29c50f 100644
--- a/community/mg/cleanup.patch
+++ b/community/mg/cleanup.patch
@@ -1,6 +1,21 @@
-diff -wbBur mg-20130922/Makefile mg-20130922.y/Makefile
+diff -wbBur mg-20130922/file.c mg-20130922.q/file.c
+--- mg-20130922/file.c 2013-09-22 13:09:36.000000000 +0400
++++ mg-20130922.q/file.c 2013-10-30 15:20:47.927840374 +0400
+@@ -669,9 +669,9 @@
+ {
+ struct stat statbuf;
+ int s;
+- char *dp;
++ char *dp = malloc(strlen(fn) + 1);
+
+- dp = dirname(fn);
++ xdirname(dp, fn, strlen(fn));
+
+ if (stat(fn, &statbuf) == -1 && errno == ENOENT) {
+ errno = 0;
+diff -wbBur mg-20130922/Makefile mg-20130922.q/Makefile
--- mg-20130922/Makefile 2013-09-22 18:06:43.000000000 +0400
-+++ mg-20130922.y/Makefile 2013-10-29 15:18:18.795139731 +0400
++++ mg-20130922.q/Makefile 2013-10-30 15:20:34.201173866 +0400
@@ -4,7 +4,7 @@
NOGCCERROR= true
PROG= mg