Skip to content

Commit

Permalink
databases/mongodb70: Fix build with python-3.11
Browse files Browse the repository at this point in the history
PR:		275494
Approved by:	portmgr(blanket, fix build)
  • Loading branch information
wenheping committed Feb 20, 2024
1 parent d265f64 commit 3a57a31
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions databases/mongodb70/Makefile
Expand Up @@ -122,6 +122,12 @@ post-patch:
${RM} -rf ${WRKSRC}/src/third_party/zlib-*
${RM} -rf ${WRKSRC}/src/third_party/zstandard

# fix build with python-3.11
${REINPLACE_CMD} -e 's#rU#r#g' ${WRKDIR}/spidermonkey-${MOZJS_TAG}/python/mozbuild/mozbuild/util.py
${REINPLACE_CMD} -e 's#rU#r#g' ${WRKDIR}/spidermonkey-${MOZJS_TAG}/python/mozbuild/mozbuild/preprocessor.py
${REINPLACE_CMD} -e 's#rU#r#g' ${WRKDIR}/spidermonkey-${MOZJS_TAG}/python/mozbuild/mozbuild/backend/base.py
${REINPLACE_CMD} -e 's#rU#r#g' ${WRKDIR}/spidermonkey-${MOZJS_TAG}/python/mozbuild/mozbuild/action/process_define_files.py

do-configure:
# Replacement of ${WRKSRC}/src/third_party/mozjs/get-sources.sh
${LN} -sF ${WRKDIR}/spidermonkey-${MOZJS_TAG} ${WRKSRC}/src/third_party/mozjs/mozilla-release
Expand Down

0 comments on commit 3a57a31

Please sign in to comment.