FreeBSD Bugzilla – Attachment 163870 Details for
Bug 205039
sysutils/pesign: unbreak on pre-10.2 systems
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
use poll(2) and copy strchrnul(3) from 10.x
no_ppoll_strchrnul.diff (text/plain), 2.55 KB, created by
Jan Beich
on 2015-12-05 16:22:12 UTC
(
hide
)
Description:
use poll(2) and copy strchrnul(3) from 10.x
Filename:
MIME Type:
Creator:
Jan Beich
Created:
2015-12-05 16:22:12 UTC
Size:
2.55 KB
patch
obsolete
>Index: sysutils/pesign/Makefile >=================================================================== >--- sysutils/pesign/Makefile (revision 402854) >+++ sysutils/pesign/Makefile (working copy) >@@ -23,12 +23,9 @@ GH_ACCOUNT= rhinstaller > USES= gmake pkgconfig > USE_LDCONFIG= yes > >-.include <bsd.port.pre.mk> >+EXTRA_PATCHES= ${EXTRA_PATCHES_${OPSYS}_${OSREL:R}} >+EXTRA_PATCHES_FreeBSD_9= ${FILESDIR}/extra-patch-src_client.c > >-.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1001505 >-BROKEN= This port requires ppoll(2) system call >-.endif >- > post-patch: > @${REINPLACE_CMD} -e 's|%%CC%%|${CC}|g' ${WRKSRC}/Make.defaults > >@@ -43,4 +40,4 @@ do-install: > ${INSTALL_MAN} ${WRKSRC}/src/pesign-client.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 > ${INSTALL_MAN} ${WRKSRC}/src/pesign.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 > >-.include <bsd.port.post.mk> >+.include <bsd.port.mk> >Index: sysutils/pesign/files/extra-patch-src_client.c >=================================================================== >--- sysutils/pesign/files/extra-patch-src_client.c (nonexistent) >+++ sysutils/pesign/files/extra-patch-src_client.c (working copy) >@@ -0,0 +1,25 @@ >+--- src/client.c.orig 2014-10-24 19:51:06 UTC >++++ src/client.c >+@@ -47,6 +47,22 @@ static struct { >+ {FLAG_LIST_END, NULL}, >+ }; >+ >++#if defined(__FreeBSD__) && __FreeBSD__ < 10 >++// From lib/libc/string/strchrnul.c on FreeBSD 10+ >++char * >++strchrnul(const char *p, int ch) >++{ >++ char c; >++ >++ c = ch; >++ for (;; ++p) { >++ if (*p == c || *p == '\0') >++ return ((char *)p); >++ } >++ /* NOTREACHED */ >++} >++#endif >++ >+ static void >+ print_flag_name(FILE *f, int flag) >+ { > >Property changes on: sysutils/pesign/files/extra-patch-src_client.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: sysutils/pesign/files/patch-src-daemon.c >=================================================================== >--- sysutils/pesign/files/patch-src-daemon.c (revision 402854) >+++ sysutils/pesign/files/patch-src-daemon.c (working copy) >@@ -8,6 +8,15 @@ > #include <sys/types.h> > #include <sys/socket.h> > #include <sys/stat.h> >+@@ -839,7 +838,7 @@ shutdown: >+ do_shutdown(ctx, nsockets, pollfds); >+ return 0; >+ } >+- rc = ppoll(pollfds, nsockets, NULL, NULL); >++ rc = poll(pollfds, nsockets, INFTIM); >+ if (should_exit != 0) >+ goto shutdown; >+ if (rc < 0) { > @@ -864,8 +863,8 @@ shutdown: > > struct sockaddr_un remote;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 205039
:
163870
|
163875