summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnatol Pomozov2015-06-17 08:50:18 -0700
committerAnatol Pomozov2015-06-17 08:50:18 -0700
commitae94601cdb19bcec69a07d43d32fbfc4ad9b81aa (patch)
tree484792abf62fe05243ea12e8cca82ca16eab40c8
downloadaur-perl-devel-coredumper.tar.gz
Initial import
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD35
-rw-r--r--fixes.diff33
3 files changed, 83 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0bcd5af0906
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = perl-devel-coredumper
+ pkgdesc = create core dumps of the running perl interpreter, without terminating
+ pkgver = 0.02
+ pkgrel = 1
+ url = http://search.cpan.org/dist/$_cpanname/
+ arch = any
+ license = BSD
+ depends = perl
+ source = http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/Devel-CoreDump-0.02.tar.gz
+ source = fixes.diff
+ sha1sums = 9c062b63eaeaa5e01e0ed2f696d06b22a8c695be
+ sha1sums = 4b695e999b5c35c425458783722082776566158b
+
+pkgname = perl-devel-coredumper
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..de3868abb2d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>
+
+pkgname=perl-devel-coredumper
+_cpanname=Devel-CoreDump
+pkgver=0.02
+pkgrel=1
+pkgdesc='create core dumps of the running perl interpreter, without terminating'
+arch=(any)
+license=(BSD)
+depends=(perl)
+url='http://search.cpan.org/dist/$_cpanname/'
+source=(http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/$_cpanname-$pkgver.tar.gz
+ fixes.diff)
+sha1sums=('9c062b63eaeaa5e01e0ed2f696d06b22a8c695be'
+ '4b695e999b5c35c425458783722082776566158b')
+prepare() {
+ cd $_cpanname-$pkgver
+ patch -p1 < "$srcdir/fixes.diff"
+}
+
+build() {
+ cd $_cpanname-$pkgver
+ perl Makefile.PL -- INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd $_cpanname-$pkgver
+# make test
+}
+
+package() {
+ cd $_cpanname-$pkgver
+ make install DESTDIR="$pkgdir"
+}
diff --git a/fixes.diff b/fixes.diff
new file mode 100644
index 00000000000..57286f60685
--- /dev/null
+++ b/fixes.diff
@@ -0,0 +1,33 @@
+diff --git a/src/elfcore.c b/src/elfcore.c
+index 4304770..0301f0a 100644
+--- a/src/elfcore.c
++++ b/src/elfcore.c
+@@ -40,6 +40,7 @@ extern "C" {
+ #include <elf.h>
+ #include <fcntl.h>
+ #include <limits.h>
++#include <linux/sched.h>
+ #include <pthread.h>
+ #include <signal.h>
+ #include <stdint.h>
+diff --git a/src/linuxthreads.c b/src/linuxthreads.c
+index c09c68e..f7ba427 100644
+--- a/src/linuxthreads.c
++++ b/src/linuxthreads.c
+@@ -39,7 +39,7 @@ extern "C" {
+ #endif
+
+ #include <asm/stat.h>
+-#include <sched.h>
++#include <linux/sched.h>
+ #include <signal.h>
+ #include <stdlib.h>
+ #include <string.h>
+@@ -49,7 +49,6 @@ extern "C" {
+ #include <asm/fcntl.h>
+ #include <asm/posix_types.h>
+ #include <asm/types.h>
+-#include <linux/dirent.h>
+
+ #include "linux_syscall_support.h"
+ #include "thread_lister.h"