summaryrefslogtreecommitdiff
path: root/devel/prcs
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2011-11-05 23:27:16 +0000
committerdholland <dholland@pkgsrc.org>2011-11-05 23:27:16 +0000
commit540fb3251459ebf6512e7704816fe0cb54963b99 (patch)
tree713c52d13b1909c302f3d4b1664d3433a77191fa /devel/prcs
parent3c2e51db3e543674c3f2fbd9212ca1ca38072e2b (diff)
downloadpkgsrc-540fb3251459ebf6512e7704816fe0cb54963b99.tar.gz
Fix an LP64 problem. It was noted in PR 41638 that prcs doesn't work on
64-bit platforms. This fixes what gcc found, but it's probably not the whole story.
Diffstat (limited to 'devel/prcs')
-rw-r--r--devel/prcs/Makefile4
-rw-r--r--devel/prcs/distinfo3
-rw-r--r--devel/prcs/patches/patch-src_package_cc24
3 files changed, 28 insertions, 3 deletions
diff --git a/devel/prcs/Makefile b/devel/prcs/Makefile
index ad23645407d..76af36f620e 100644
--- a/devel/prcs/Makefile
+++ b/devel/prcs/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.47 2011/10/04 20:52:09 shattered Exp $
+# $NetBSD: Makefile,v 1.48 2011/11/05 23:27:16 dholland Exp $
DISTNAME= prcs-1.3.3
-PKGREVISION= 6
+PKGREVISION= 7
CATEGORIES= devel scm
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=prcs/}
diff --git a/devel/prcs/distinfo b/devel/prcs/distinfo
index 36f2ac1a96e..064f11ed0d1 100644
--- a/devel/prcs/distinfo
+++ b/devel/prcs/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.12 2011/10/09 04:53:30 dholland Exp $
+$NetBSD: distinfo,v 1.13 2011/11/05 23:27:16 dholland Exp $
SHA1 (prcs-1.3.3.tar.gz) = 0f1770289ee4e9e8028c1aee9e19fd4fae8d2da6
RMD160 (prcs-1.3.3.tar.gz) = 85d90b12eb7e00585f1fd880939ee01642293b4e
@@ -7,3 +7,4 @@ SHA1 (patch-aa) = 6890c4de21c7a15d86140d30b92dc84622ca3ce3
SHA1 (patch-ab) = d5b2db175d8ffe5297aa98739d1eb7c8e9b70974
SHA1 (patch-ac) = 3325292dc27785dc01beaa6586b23ced6cbc4c42
SHA1 (patch-ad) = 4356ab5828e3e09b257d145649b2db1855de55d1
+SHA1 (patch-src_package_cc) = c89e4a5f1ec9706b440330997cb4663f60f4031f
diff --git a/devel/prcs/patches/patch-src_package_cc b/devel/prcs/patches/patch-src_package_cc
new file mode 100644
index 00000000000..3bc53887fda
--- /dev/null
+++ b/devel/prcs/patches/patch-src_package_cc
@@ -0,0 +1,24 @@
+$NetBSD: patch-src_package_cc,v 1.1 2011/11/05 23:27:16 dholland Exp $
+
+Fix an LP64 problem.
+
+--- src/package.cc~ 2004-05-10 00:40:55.000000000 +0000
++++ src/package.cc
+@@ -212,7 +212,7 @@ static PrVoidError package_project(const
+ close(pipefd[PIPE_READ_FD]);
+ close(pipefd[PIPE_WRITE_FD]);
+
+- execl(gzip_command.path(), "-", "-f", NULL);
++ execl(gzip_command.path(), "-", "-f", (char *)NULL);
+ abort_child(gzip_command.path());
+ } else {
+ dup2(pipefd[PIPE_WRITE_FD], outfd);
+@@ -326,7 +326,7 @@ PrPrcsExitStatusError unpackage_command(
+ close(zipinpipefd[PIPE_READ_FD]);
+ close(zipinpipefd[PIPE_WRITE_FD]);
+
+- execl(gzip_command.path(), "-", "-d","-f", NULL);
++ execl(gzip_command.path(), "-", "-d","-f", (char *)NULL);
+ abort_child(gzip_command.path());
+ } else if((writepid = fork()) < 0) {
+ pthrow prcserror << "Fork failed, can't compress data" << perror;