FreeBSD Bugzilla – Attachment 184080 Details for
Bug 220214
Try to handle man files for USE_PYTHON=concurrent
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
minor update
man.diff (text/plain), 3.95 KB, created by
Fukang Chen
on 2017-07-05 14:39:50 UTC
(
hide
)
Description:
minor update
Filename:
MIME Type:
Creator:
Fukang Chen
Created:
2017-07-05 14:39:50 UTC
Size:
3.95 KB
patch
obsolete
>Index: Mk/Uses/python.mk >=================================================================== >--- Mk/Uses/python.mk (revision 444620) >+++ Mk/Uses/python.mk (working copy) >@@ -469,14 +469,21 @@ > .endif > UNIQUE_PREFIX= ${PYTHON_PKGNAMEPREFIX} > UNIQUE_SUFFIX= -${PYTHON_VER} >+UNIQUE_SUFFIX_TYPES+= SUFFIX_MAN >+UNIQUE_SUFFIX_MAN_WITH_EXT= .[1-9ln] > > .if defined(_PYTHON_FEATURE_AUTOPLIST) > UNIQUE_FIND_SUFFIX_FILES= \ > ${SED} -e 's|^${PREFIX}/||' ${_PYTHONPKGLIST} ${TMPPLIST} | \ > ${EGREP} -e '^bin/.*$$|^sbin/.*$$|^libexec/.*$$' >+UNIQUE_FIND_SUFFIX_MAN_FILES= \ >+ ${SED} -e 's|^${PREFIX}/||' ${_PYTHONPKGLIST} ${TMPPLIST} | \ >+ ${EGREP} -e '^man/man[1-9ln]/.*$$' > .else > UNIQUE_FIND_SUFFIX_FILES= \ > ${EGREP} -he '^bin/.*$$|^sbin/.*$$|^libexec/.*$$' ${TMPPLIST} 2>/dev/null >+UNIQUE_FIND_SUFFIX_MAN_FILES= \ >+ ${EGREP} -he '^man/man[1-9ln]/.*$$' ${TMPPLIST} 2>/dev/null > .endif > .endif # defined(_PYTHON_FEATURE_CONCURRENT) > >Index: Mk/Uses/uniquefiles.mk >=================================================================== >--- Mk/Uses/uniquefiles.mk (revision 444620) >+++ Mk/Uses/uniquefiles.mk (working copy) >@@ -69,6 +69,8 @@ > UNIQUE_PREFIX_FILES?= # empty > UNIQUE_SUFFIX_FILES?= # empty > >+UNIQUE_SUFFIX_TYPES+= SUFFIX >+ > .if ${uniquefiles_ARGS:Mdirs} > DOCSDIR= ${PREFIX}/share/doc/${UNIQUE_PREFIX}${PORTNAME} > EXAMPLESDIR= ${PREFIX}/share/examples/${UNIQUE_PREFIX}${PORTNAME} >@@ -134,13 +136,20 @@ > done; > .endif > >-.if ${UNIQUE_SUFFIX_FILES} || ${UNIQUE_FIND_SUFFIX_FILES} >+.for sufxtype in ${UNIQUE_SUFFIX_TYPES} >+. if (defined(UNIQUE_${sufxtype}_FILES) && ${UNIQUE_${sufxtype}_FILES}) || \ >+ (defined(UNIQUE_FIND_${sufxtype}_FILES) && ${UNIQUE_FIND_${sufxtype}_FILES}) >+. if defined(UNIQUE_${sufxtype}_WITH_EXT) && ${UNIQUE_${sufxtype}_WITH_EXT} >+ @${ECHO_MSG} "===> Creating unique files: Move ${sufxtype:S|SUFFIX_||} files needing SUFFIX"; >+. else > @${ECHO_MSG} "===> Creating unique files: Move files needing SUFFIX"; >-.endif >-.for entry in ${UNIQUE_SUFFIX_FILES} >+. endif >+. endif >+. for entry in ${UNIQUE_${sufxtype}_FILES} > @fname=${entry}; \ > if [ -e ${STAGEDIR}${PREFIX}/$${fname} -o -L ${STAGEDIR}${PREFIX}/$${fname} ]; then \ >- newf=$${fname%/*}/$${fname##*/}${UNIQUE_SUFFIX}; \ >+ ofname=$${fname##*/}; \ >+ newf=$${fname%/*}/$${ofname%${UNIQUE_${sufxtype}_WITH_EXT}}${UNIQUE_SUFFIX}$${ofname#$${ofname%${UNIQUE_${sufxtype}_WITH_EXT}}}; \ > ${ECHO_MSG} "Move: $${fname} --> $${newf}"; \ > ${MV} ${STAGEDIR}${PREFIX}/$${fname} ${STAGEDIR}${PREFIX}/$${newf}; \ > ${ECHO_CMD} MOVED:$${fname}:$${newf} >> ${_UNIQUEPKGLIST}; \ >@@ -149,11 +158,12 @@ > ${ECHO_MSG} "Makefile error: UNIQUE (suffix): $${fname} not found"; \ > ${FALSE}; \ > fi; >-.endfor >-.if ${UNIQUE_FIND_SUFFIX_FILES} >- @for fname in `${UNIQUE_FIND_SUFFIX_FILES}`; do \ >+. endfor >+. if defined(UNIQUE_FIND_${sufxtype}_FILES) && ${UNIQUE_FIND_${sufxtype}_FILES} >+ @for fname in `${UNIQUE_FIND_${sufxtype}_FILES}`; do \ > if [ -e ${STAGEDIR}${PREFIX}/$${fname} -o -L ${STAGEDIR}${PREFIX}/$${fname} ]; then \ >- newf=$${fname%/*}/$${fname##*/}${UNIQUE_SUFFIX}; \ >+ ofname=$${fname##*/}; \ >+ newf=$${fname%/*}/$${ofname%${UNIQUE_${sufxtype}_WITH_EXT}}${UNIQUE_SUFFIX}$${ofname#$${ofname%${UNIQUE_${sufxtype}_WITH_EXT}}}; \ > ${ECHO_MSG} "Move: $${fname} --> $${newf}"; \ > ${MV} ${STAGEDIR}${PREFIX}/$${fname} ${STAGEDIR}${PREFIX}/$${newf}; \ > ${ECHO_CMD} MOVED:$${fname}:$${newf} >> ${_UNIQUEPKGLIST}; \ >@@ -163,7 +173,8 @@ > ${FALSE}; \ > fi; \ > done; >-.endif >+. endif >+.endfor > > # Using .if exists(${_UNIQUEPKGPLIST} below instead of the sh test > # does not work in poudriere. It works fine on the CLI, though... >@@ -172,6 +183,8 @@ > @if [ -e ${_UNIQUEPKGLIST} ]; then \ > orgIFS=$$IFS; IFS=":"; while read command entry newentry; do \ > IFS=$$orgIFS; \ >+ case $$entry in man/man[0-9ln]/*) entry="$$entry.gz" ;; esac; \ >+ case $$newentry in man/man[0-9ln]/*) newentry="$$newentry.gz" ;; esac; \ > case $${command} in \ > MOVED) \ > ${REINPLACE_CMD} -e "s|^$${entry}$$|$${newentry}|" ${TMPPLIST}; \
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 Raw
Actions:
View
Attachments on
bug 220214
:
183717
|
184080
|
188715
|
188835