svn commit: r362849 - head/Mk/Scripts
Bryan Drewery
bdrewery at FreeBSD.org
Thu Jul 24 21:04:35 UTC 2014
On 7/24/14, 2:03 PM, Bryan Drewery wrote:
> Author: bdrewery
> Date: Thu Jul 24 21:03:10 2014
> New Revision: 362849
> URL: http://svnweb.freebsd.org/changeset/ports/362849
> QAT: https://qat.redports.org/buildarchive/r362849/
>
> Log:
> - Fix check-plist so that its 'files in plist but missing from STAGEDIR' check
> does not incorrectly ignore plist items in %%DOCSDIR%% and %%EXAMPLESDIR%%.
> It was incorrectly ignoring these items when %%PORTDOCS%% or %%PORTEXAMPLES%%
> was missing. This manifested as a failure in 'make package' later when pkg(8)
> detected the missing files.
I meant to note that an example of this issue was fixed in r362846.
>
> With hat: portmgr
>
> Modified:
> head/Mk/Scripts/check-stagedir.sh
>
> Modified: head/Mk/Scripts/check-stagedir.sh
> ==============================================================================
> --- head/Mk/Scripts/check-stagedir.sh Thu Jul 24 20:49:29 2014 (r362848)
> +++ head/Mk/Scripts/check-stagedir.sh Thu Jul 24 21:03:10 2014 (r362849)
> @@ -252,13 +252,20 @@ setup_plist_seds() {
>
> sed_plist_sub=$(echo "${PLIST_SUB_SED}" | /bin/sh ${SCRIPTSDIR}/plist_sub_sed_sort.sh)
> unset PLIST_SUB_SED
> - sed_files="s!${PREFIX}/!!g; ${sed_plist_sub} ${sed_portdocsexamples} \
> - /^share\/licenses/d;"
> + # Used for generate_plist
> + sed_files_gen="s!${PREFIX}/!!g; ${sed_plist_sub} \
> + ${sed_portdocsexamples} /^share\/licenses/d;"
> + sed_dirs_gen="s!${PREFIX}/!!g; ${sed_plist_sub} s,^, at dirrmtry ,; \
> + ${sed_portdocsexamples} \
> + s!@dirrmtry \(/.*\)!@unexec rmdir \"\1\" >/dev/null 2>\&1 || :!; \
> + /^@dirrmtry share\/licenses/d;"
>
> + # These prevent ignoring DOCS/EXAMPLES dirs with sed_portdocsexamples
> + sed_files="s!${PREFIX}/!!g; ${sed_plist_sub} /^share\/licenses/d;"
> sed_dirs="s!${PREFIX}/!!g; ${sed_plist_sub} s,^, at dirrmtry ,; \
> - ${sed_portdocsexamples} \
> s!@dirrmtry \(/.*\)!@unexec rmdir \"\1\" >/dev/null 2>\&1 || :!; \
> /^@dirrmtry share\/licenses/d;"
> +
> }
>
> # Generate plist from staged files
> @@ -269,7 +276,7 @@ generate_plist() {
> find ${STAGEDIR} -type f -o -type l | sort | \
> sed -e "s,${STAGEDIR},," >${WRKDIR}/.staged-files
> comm -13 ${WRKDIR}/.plist-files ${WRKDIR}/.staged-files | \
> - sed -e "${sed_files}" \
> + sed -e "${sed_files_gen}" \
> >>${WRKDIR}/.staged-plist || :
>
> ### HANDLE DIRS
> @@ -282,7 +289,7 @@ generate_plist() {
> >${WRKDIR}/.staged-dirs-dfs-sorted
> # Find all staged dirs and then sort them by depth-first (find -ds)
> comm -13 ${WRKDIR}/.traced-dirs ${WRKDIR}/.staged-dirs-sorted \
> - | sort_dfs | sed "${sed_dirs}" \
> + | sort_dfs | sed "${sed_dirs_gen}" \
> >>${WRKDIR}/.staged-plist || :
> }
>
>
--
Regards,
Bryan Drewery
More information about the svn-ports-all
mailing list