Index: head/devel/st/Makefile =================================================================== --- head/devel/st/Makefile (revision 374837) +++ head/devel/st/Makefile (revision 374838) @@ -1,37 +1,37 @@ # Created by: tobez # $FreeBSD$ PORTNAME= st PORTVERSION= 1.9 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel MASTER_SITES= SF/${PORTNAME}ate-threads/${PORTNAME}ate-threads/${PORTVERSION} -MAINTAINER= lippe@FreeBSD.org +MAINTAINER= tobez@FreeBSD.org COMMENT= State Threads Library for Internet Applications USES= uidfix USE_LDCONFIG= yes ONLY_FOR_ARCHS= i386 alpha amd64 DOCS= fig.gif notes.html reference.html st.html \ timeout_heap.txt EXAMPLES= Makefile README error.c lookupdns.c proxy.c \ res.c server.c OPTIONS_DEFINE= DOCS EXAMPLES post-patch: @${RM} -f ${WRKSRC}/Makefile ${WRKSRC}/examples/Makefile @${CP} ${FILESDIR}/Makefile.main ${WRKSRC}/Makefile @${CP} ${FILESDIR}/Makefile.examples ${WRKSRC}/examples/Makefile post-install: ${INSTALL_DATA} ${WRKSRC}/public.h ${STAGEDIR}${PREFIX}/include/st.h ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/docs/,} ${STAGEDIR}${DOCSDIR}/ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${EXAMPLES:S,^,${WRKSRC}/examples/,} \ ${STAGEDIR}${EXAMPLESDIR}/ .include Index: head/devel/st/files/Makefile.main =================================================================== --- head/devel/st/files/Makefile.main (revision 374837) +++ head/devel/st/files/Makefile.main (revision 374838) @@ -1,14 +1,14 @@ # FreeBSD port Makefile for devel/st PREFIX?= /usr/local LIBDIR= ${PREFIX}/lib SHLIB_MAJOR= 1 SHLIB_MINOR= 1 LIB= st NO_PROFILE= yes SRCS= io.c key.c sched.c stk.c sync.c event.c -CFLAGS+= -DFREEBSD +CFLAGS+= -DFREEBSD -DMD_HAVE_KQUEUE .include Index: head/devel/st/files/patch-md.h =================================================================== --- head/devel/st/files/patch-md.h (nonexistent) +++ head/devel/st/files/patch-md.h (revision 374838) @@ -0,0 +1,22 @@ +--- md.h 2009-10-01 20:46:43.000000000 +0200 ++++ md.h 2014-12-16 22:52:34.000000000 +0100 +@@ -161,6 +161,19 @@ + #define MD_JB_SP 34 + #elif defined(__amd64__) + #define MD_JB_SP 2 ++/* ++ * The following comment is taken from src/lib/libc/amd64/gen/makecontext.c ++ * It explains why we specifically break the alignment to 64 byte boundary ++ * that is unconditionally enforced by sched.c, by setting MD_STACK_PAD_SIZE ++ * to this funky value. ++ * Without this, anything using va_start() & friends fails unpredictably. ++ */ ++ /* ++ * Account for arguments on stack and do the funky C entry alignment. ++ * This means that we need an 8-byte-odd alignment since the ABI expects ++ * the return address to be pushed, thus breaking the 16 byte alignment. ++ */ ++#define MD_STACK_PAD_SIZE 8 + #else + #error Unknown CPU architecture + #endif Property changes on: head/devel/st/files/patch-md.h ___________________________________________________________________ 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