Fix build if POSIX semaphore enabled is
Reported by: many on ports@/python@ Patched by: beat@ Feature safe: yes
This commit is contained in:
parent
40a43e8c8f
commit
87ee28693e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=241486
@ -62,7 +62,6 @@ OPTIONS= THREADS "Enable thread support" on \
|
||||
|
||||
.if defined(WITH_SEM)
|
||||
.if ${OSVERSION} >= 701106
|
||||
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-setup.py
|
||||
SEM_MSG= ""
|
||||
.else
|
||||
IGNORE= POSIX semaphore support only works in FreeBSD 7-STABLE and later
|
||||
@ -182,6 +181,13 @@ pre-patch:
|
||||
${ECHO} "fpectl fpectlmodule.c" >> ${WRKSRC}/Modules/Setup.dist
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
.if defined(WITH_SEM)
|
||||
.if ${OSVERSION} >= 701106
|
||||
@cd ${WRKSRC} && ${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/extra-patch-setup.py
|
||||
.endif
|
||||
.endif
|
||||
|
||||
post-configure:
|
||||
${TAR} -C ${WRKSRC} -cf - . | ${TAR} -C ${SHARED_WRKSRC} -xf -
|
||||
${LN} -sf ${PYTHON_WRKSRC}/Lib ${WRKSRC}/Lib
|
||||
|
@ -4,7 +4,7 @@
|
||||
)
|
||||
libraries = []
|
||||
|
||||
- elif platform in ('freebsd4', 'freebsd5', 'freebsd6', 'freebsd7', 'freebsd8'):
|
||||
- elif platform in ('freebsd4', 'freebsd5', 'freebsd6', 'freebsd7', 'freebsd8', 'freebsd9'):
|
||||
+ elif platform in ('freebsd4', 'freebsd5', 'freebsd6'):
|
||||
# FreeBSD's P1003.1b semaphore support is very experimental
|
||||
# and has many known problems. (as of June 2008)
|
||||
|
@ -62,7 +62,6 @@ OPTIONS= THREADS "Enable thread support" on \
|
||||
|
||||
.if defined(WITH_SEM)
|
||||
.if ${OSVERSION} >= 701106
|
||||
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-setup.py
|
||||
SEM_MSG= ""
|
||||
.else
|
||||
IGNORE= POSIX semaphore support only works in FreeBSD 7-STABLE and later
|
||||
@ -182,6 +181,13 @@ pre-patch:
|
||||
${ECHO} "fpectl fpectlmodule.c" >> ${WRKSRC}/Modules/Setup.dist
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
.if defined(WITH_SEM)
|
||||
.if ${OSVERSION} >= 701106
|
||||
@cd ${WRKSRC} && ${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/extra-patch-setup.py
|
||||
.endif
|
||||
.endif
|
||||
|
||||
post-configure:
|
||||
${TAR} -C ${WRKSRC} -cf - . | ${TAR} -C ${SHARED_WRKSRC} -xf -
|
||||
${LN} -sf ${PYTHON_WRKSRC}/Lib ${WRKSRC}/Lib
|
||||
|
@ -4,7 +4,7 @@
|
||||
)
|
||||
libraries = []
|
||||
|
||||
- elif platform in ('freebsd4', 'freebsd5', 'freebsd6', 'freebsd7', 'freebsd8'):
|
||||
- elif platform in ('freebsd4', 'freebsd5', 'freebsd6', 'freebsd7', 'freebsd8', 'freebsd9'):
|
||||
+ elif platform in ('freebsd4', 'freebsd5', 'freebsd6'):
|
||||
# FreeBSD's P1003.1b semaphore support is very experimental
|
||||
# and has many known problems. (as of June 2008)
|
||||
|
Loading…
Reference in New Issue
Block a user