diff options
author | LAN-TW <lantw44@gmail.com> | 2013-07-18 01:23:09 +0800 |
---|---|---|
committer | LAN-TW <lantw44@gmail.com> | 2013-07-18 01:23:09 +0800 |
commit | 30a7e37aa02b239007bd05221562f379aca5c8d2 (patch) | |
tree | a6edc6b1ea2ddbe10a1e41134f8cd3430bbd3b56 | |
parent | 4a1c80781b4289a4d50e3d9d48542fc3bd27d197 (diff) | |
download | AUR-PKGBUILD-30a7e37aa02b239007bd05221562f379aca5c8d2.tar AUR-PKGBUILD-30a7e37aa02b239007bd05221562f379aca5c8d2.tar.gz AUR-PKGBUILD-30a7e37aa02b239007bd05221562f379aca5c8d2.tar.bz2 AUR-PKGBUILD-30a7e37aa02b239007bd05221562f379aca5c8d2.tar.lz AUR-PKGBUILD-30a7e37aa02b239007bd05221562f379aca5c8d2.tar.xz AUR-PKGBUILD-30a7e37aa02b239007bd05221562f379aca5c8d2.tar.zst AUR-PKGBUILD-30a7e37aa02b239007bd05221562f379aca5c8d2.zip |
yaehmop: Fix implicit declarations
-rw-r--r-- | yaehmop/0002-Fix-implicit-declaration.patch | 52 | ||||
-rw-r--r-- | yaehmop/PKGBUILD | 9 |
2 files changed, 58 insertions, 3 deletions
diff --git a/yaehmop/0002-Fix-implicit-declaration.patch b/yaehmop/0002-Fix-implicit-declaration.patch new file mode 100644 index 0000000..020fcff --- /dev/null +++ b/yaehmop/0002-Fix-implicit-declaration.patch @@ -0,0 +1,52 @@ +From b6d75eb61dab7fc7921d45618244e60a82aa4769 Mon Sep 17 00:00:00 2001 +From: LAN-TW <lantw44@gmail.com> +Date: Thu, 18 Jul 2013 00:52:58 +0800 +Subject: [PATCH] Fix implicit declaration + +--- + tightbind/utils/fit_props.h | 2 ++ + tightbind/utils/genutil.c | 2 ++ + viewkel/dense_eval/dense_eval.c | 1 + + 3 files changed, 5 insertions(+) + +diff --git a/tightbind/utils/fit_props.h b/tightbind/utils/fit_props.h +index 3472da8..8fd9240 100755 +--- a/tightbind/utils/fit_props.h ++++ b/tightbind/utils/fit_props.h +@@ -4,6 +4,8 @@ + Created by greg Landrum March 1994 + ************************************************************************/ + #include <stdio.h> ++#include <stdlib.h> ++#include <string.h> + #include <math.h> + + #ifdef USING_THE_MAC +diff --git a/tightbind/utils/genutil.c b/tightbind/utils/genutil.c +index 2af48e2..e1aa471 100755 +--- a/tightbind/utils/genutil.c ++++ b/tightbind/utils/genutil.c +@@ -6,6 +6,8 @@ + * + *****************************************************************************/ + #include <stdio.h> ++#include <stdlib.h> ++#include <string.h> + + #define FATAL 0 + #define ERROR 1 +diff --git a/viewkel/dense_eval/dense_eval.c b/viewkel/dense_eval/dense_eval.c +index 9baa095..1197141 100755 +--- a/viewkel/dense_eval/dense_eval.c ++++ b/viewkel/dense_eval/dense_eval.c +@@ -32,6 +32,7 @@ + const char *_Version_="0.1b"; + + #include <stdio.h> ++#include <string.h> + #include <math.h> + #include <fcntl.h> + +-- +1.8.3.3 + diff --git a/yaehmop/PKGBUILD b/yaehmop/PKGBUILD index 6ae0dd4..5f92c2c 100644 --- a/yaehmop/PKGBUILD +++ b/yaehmop/PKGBUILD @@ -3,7 +3,7 @@ pkgname=yaehmop pkgver=3.1.0b2 -pkgrel=1 +pkgrel=2 pkgdesc="Yet Another extended Huckel Molecular Orbital Package (YAeHMOP)" arch=('x86_64' 'i686') url="http://yaehmop.sourceforge.net/" @@ -13,12 +13,14 @@ depends=('gcc-fortran' 'readline' 'libx11' 'blas' 'lapack') source=('http://downloads.sourceforge.net/project/yaehmop/yaehmop-beta/3.1.0b2/bind.3.1.0b2.tgz' 'http://downloads.sourceforge.net/project/yaehmop/yaehmop-beta/3.1.0b2/viewkel.3.1.0b.tgz' 'http://downloads.sourceforge.net/project/yaehmop/yaehmop-beta/3.1.0b2/dense_eval.3.1.0b.tgz' - '0001-Fix-build-problems.patch') + '0001-Fix-build-problems.patch' + '0002-Fix-implicit-declaration.patch') md5sums=('5a717a1f9c5dbe6cf36de15cb3c5b6ef' 'd629bface0f610f7a4a1b3d0305872ca' 'aec78fae520950777b7738cf42626d99' - '4290dcf6a1ddb040c38dbb54d8698c5b') + '4290dcf6a1ddb040c38dbb54d8698c5b' + '89ecc02032067fc72a576943b9a413e7') build() { cd "${srcdir}/${pkgname}" @@ -32,6 +34,7 @@ build() { rm -f tightbind/utils/fit_dos.o rm -f tightbind/utils/genutil.o patch -p1 < ../../0001-Fix-build-problems.patch + patch -p1 < ../../0002-Fix-implicit-declaration.patch cd tightbind make -f makefile.linux install cd ../viewkel |