Overview
Comment: | Added support for applying patches to new build system |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: | b949baf854c13dafe39a64734d1b1835f06d1c43 |
User & Date: | rkeene on 2016-09-06 05:28:25 |
Other Links: | manifest | tags |
Context
2016-09-06
| ||
05:32 | Updated new build system to use a directory structure closer resembling the old one for building check-in: c4271b4b95 user: rkeene tags: trunk | |
05:28 | Added support for applying patches to new build system check-in: b949baf854 user: rkeene tags: trunk | |
05:18 | Updated TLS package to use new simplified build system, requiring further refinement as well check-in: 79bd6dfe51 user: rkeene tags: trunk | |
Changes
Modified common/common.sh from [dbcc3cc417] to [5f5dece2ba].
3 3 targetInstallEnvironment='kitcreator' 4 4 pkgdir="$(pwd)" 5 5 internalpkgname="${pkg}" 6 6 archivedir="${pkgdir}/src" 7 7 buildsrcdir="${pkgdir}/buildsrc" 8 8 installdir="${pkgdir}/inst" 9 9 runtimedir="${pkgdir}/out" 10 +patchdir="${pkgdir}/patches" 10 11 workdir="${pkgdir}/workdir-$$${RANDOM}${RANDOM}${RANDOM}${RANDOM}.work" 11 12 12 13 _download="$(which download)" 13 14 14 15 function clean() { 15 16 rm -rf "${installdir}" "${runtimedir}" 16 17 } ................................................................................ 112 113 ) || return 1 113 114 fi 114 115 115 116 return 0 116 117 } 117 118 118 119 function apply_patches() { 119 - : 120 + local patch 121 + 122 + for patch in "${patchdir}/all"/${pkg}-${version}-*.diff "${patchdir}/${TCL_VERSION}"/${pkg}-${version}-*.diff; do 123 + if [ ! -f "${patch}" ]; then 124 + continue 125 + fi 126 + 127 + echo "Applying: ${patch}" 128 + ( cd "${workdir}" && ${PATCH:-patch} -p1 ) < "${patch}" || return 1 129 + done 130 + 131 + return 0 120 132 } 121 133 122 134 function preconfigure() { 123 135 : 124 136 } 125 137 126 138 function configure() {