add pledge to textproc/par, from mp39590 at gmail com, ok maintainer
regen plist, drop rcs ids while there
This commit is contained in:
parent
0f3d923105
commit
db1ad673f9
@ -1,11 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.24 2019/07/12 20:50:10 sthen Exp $
|
||||
|
||||
COMMENT= paragraph reflow for email
|
||||
|
||||
VERSION= 1.52
|
||||
DISTNAME= Par${VERSION:S/.//}
|
||||
PKGNAME= par-${VERSION}
|
||||
REVISION= 1
|
||||
REVISION= 2
|
||||
CATEGORIES= textproc
|
||||
FIX_EXTRACT_PERMISSIONS=Yes
|
||||
|
||||
@ -16,6 +14,7 @@ MAINTAINER= Gregor Best <gbe@unobtanium.de>
|
||||
# custom
|
||||
PERMIT_PACKAGE= Yes
|
||||
|
||||
# uses pledge()
|
||||
WANTLIB += c
|
||||
|
||||
MASTER_SITES= ${HOMEPAGE}
|
||||
|
25
textproc/par/patches/patch-par_c
Normal file
25
textproc/par/patches/patch-par_c
Normal file
@ -0,0 +1,25 @@
|
||||
Index: par.c
|
||||
--- par.c.orig
|
||||
+++ par.c
|
||||
@@ -20,6 +20,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <wchar.h>
|
||||
+#include <unistd.h>
|
||||
|
||||
#undef NULL
|
||||
#define NULL ((void *) 0)
|
||||
@@ -730,6 +731,13 @@ int main(int argc, const char * const *argv)
|
||||
/* Set the current locale from the environment: */
|
||||
|
||||
setlocale(LC_ALL,"");
|
||||
+
|
||||
+/* setlocale() needs "rpath", so do the syscall after it */
|
||||
+
|
||||
+ if (pledge("stdio", NULL) == -1) {
|
||||
+ wcscpy(errmsg, L"pledge\n");
|
||||
+ goto parcleanup;
|
||||
+ }
|
||||
|
||||
/* Process environment variables: */
|
||||
|
@ -1,4 +1,3 @@
|
||||
$OpenBSD: patch-protoMakefile,v 1.1 2001/03/17 15:49:09 wilfried Exp $
|
||||
--- protoMakefile.orig Thu Feb 24 06:15:08 2000
|
||||
+++ protoMakefile Fri Mar 16 20:31:55 2001
|
||||
@@ -93,7 +93,7 @@ E =
|
||||
|
@ -1,4 +1,3 @@
|
||||
@comment $OpenBSD: PLIST,v 1.4 2009/06/25 00:33:41 jolan Exp $
|
||||
@conflict rancid-*
|
||||
bin/par
|
||||
@bin bin/par
|
||||
@man man/man1/par.1
|
||||
|
Loading…
x
Reference in New Issue
Block a user