Changes In Branch packages Through [aa58b7fc45] Excluding Merge-Ins
This is equivalent to a diff from 17bbfdc417 to aa58b7fc45
2014-11-06
| ||
18:23 | Updated to include OS and arch in package CPIO archive filename check-in: 86cac376ec user: rkeene tags: packages | |
18:21 | Upgraded linux-headers check-in: aa58b7fc45 user: rkeene tags: packages | |
18:20 | Added Linux headers package check-in: e138f0dde7 user: rkeene tags: packages | |
2014-09-18
| ||
05:14 | Added support for a "platform" symlink pointing to the current platform check-in: 7ef423f980 user: rkeene tags: trunk | |
04:43 | Added package building branch check-in: 07e806db4e user: rkeene tags: packages | |
2014-09-16
| ||
18:21 | Removed blank line check-in: 17bbfdc417 user: rkeene tags: trunk | |
2014-09-14
| ||
04:36 | Updated to normalize CPU/OS check-in: ee1a499a2e user: rkeene tags: trunk | |
Modified .fossil-settings/ignore-glob from [5155de6731] to [171004757d].
|
| | < < > | 1 2 | workdir-* ARCHIVE |
Deleted Makefile version [be705a2fe3].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted README.md version [209ceb6ce4].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted appfs-mkfs version [994caae026].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted appfsd.c version [f1b76341ae].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Deleted appfsd.tcl version [fc1c954390].
|
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < |
Added build version [88d46e0f28].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 | #! /usr/bin/env bash # Set timezone to default TZ=UTC export TZ targetmode='install' if [ "$1" == '--cpio' ]; then targetmode='archive' shift fi pkg="$(echo "$1" | sed 's@/*$@@;s@^\.*/*@@')" if [ -z "${pkg}" ]; then echo "Usage: build [--cpio] <package>" 2>&1 exit 1 fi function download() { if [ ! -e "${pkgarchive}" ]; then # Download ## Cleanup rm -f src.new ## Fetch file wget -O src.new "${url}" || exit 1 ## Verify signature src_sha256="$(openssl sha256 'src.new' | sed 's@^.*= @@')" if [ "${src_sha256}" != "${sha256}" ]; then echo "SHA256 mismatch: Downloaded: ${src_sha256} != Expected: ${sha256}" >&2 exit 1 fi ## Move file into place mv src.new "${pkgarchive}" fi } function extract() { local decompress # Decompress archive ## Determine type of archive case "${url}" in *.tar.xz|*.tar.xz'?'*|*.txz) decompress='xz' ;; *.tar.gz|*.tar.gz'?'*|*.tgz) decompress='gzip' ;; *.tar.bz2|*.tar.bz2'?'*|*.tbz2) decompress='bzip2' ;; *.zip|*.zip'?'*) decompress='unzip' ;; *) echo "Unknown compression method: ${url}" >&2 exit 1 ;; esac ## Do decompression case "${decompress}" in unzip) unzip "${pkgarchive}" || die 'Unable to uncompress archive' ;; *) "${decompress}" -dc "${pkgarchive}" | tar -xf - || die 'Unable to uncompress archive' ;; esac } function verifyRequiredPackages() { local pkg pkgdomain pkgversion local pkgdir pkgconfigdir pkgfound for pkg in "${require[@]}"; do pkgdomain='' pkgversion='' case "${pkg}" in */*@*) pkgdomain="$(echo "${pkg}" | cut -f 2 -d '@')" pkgversion="$(echo "${pkg}" | cut -f 2 -d '/' | cut -f 1 -d '@')" pkg="$(echo "${pkg}" | cut -f 1 -d '/')" ;; */*) pkgversion="$(echo "${pkg}" | cut -f 2 -d '/')" pkg="$(echo "${pkg}" | cut -f 1 -d '/')" ;; *@*) pkgdomain="$(echo "${pkg}" | cut -f 2 -d '@')" pkg="$(echo "${pkg}" | cut -f 1 -d '@')" ;; esac if [ -z "${pkgdomain}" ]; then pkgdomain="${domain}" fi pkgfound='0' for pkgdir in "/opt/appfs/${pkgdomain}/${pkg}/platform"/${pkgversion:-*}; do pkgconfigdir="${pkgdir}/lib/pkgconfig" if [ -d "${pkgdir}" ]; then pkgfound='1' fi CFLAGS="${CFLAGS} -I${pkgdir}/include" CPPFLAGS="${CPPFLAGS} -I${pkgdir}/include" LDFLAGS="${LDFLAGS} -L${pkgdir}/lib -Wl,-rpath,${pkgdir}/lib" PATH="${PATH}:${pkgdir}/bin" export CFLAGS CPPFLAGS LDFLAGS PATH if [ -d "${pkgconfigdir}" ]; then PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:${pkgconfigdir}" export PKG_CONFIG_PATH fi done if [ "${pkgfound}" = '0' ]; then die "Package ${pkg}/${pkgversion:-*}@${pkgdomain} not found." fi done } function verifyPrerequisites() { : } function determineOsArch() { os="$(uname -s | dd conv=lcase 2>/dev/null)" arch="$(uname -m | dd conv=lcase 2>/dev/null)" case "${arch}" in i?86) arch='ix86' ;; esac } function determinePrefix() { determineOsArch prefixsuffix="${pkg}/${os}-${arch}/${version}" prefix="/opt/appfs/${domain}/${prefixsuffix}" destdir="$(pwd)/INST" mkdir "${destdir}" || die } function preconfigure() { : } function postconfigure() { : } function configure() { glibcvers=2.20 glibcdir="/opt/appfs/core.appfs.rkeene.org/glibc/platform/${glibcvers}" dynlinker="$(ls "${glibcdir}"/lib/ld-linux*.so.* | tail -n 1)" if [ ! -d "${glibcdir}" ]; then die 'glibc directory is not available (appfs running/working?)' fi CFLAGS="${CFLAGS} -I${glibcdir}/include" CPPFLAGS="${CPPFLAGS} -I${glibcdir}/include" LDFLAGS="${LDFLAGS} -Wl,--rpath,${glibcdir}/lib -Wl,--dynamic-linker,${dynlinker}" PKG_CONFIG_LIBDIR="${glibcdir}/lib/pkgconfig" export CFLAGS CPPFLAGS LDFLAGS PKG_CONFIG_LIBDIR ./configure --prefix="${prefix}" --sysconfdir=/etc --localstatedir=/var "${configure_extra[@]}" } function prebuild() { : } function postbuild() { : } function build() { grep "DESTDIR" Makefile >/dev/null || die "Don't know how to build this software" make } function preinstall() { : } function postinstall() { : } function install() { make install DESTDIR="${destdir}" } function cleanup() { cd "${workdir}" || exit 1 cd .. || exit 1 rm -rf "${workdir}" } function die() { local message message="$1" if [ -n "${message}" ]; then echo "error: ${message}" >&2 fi cleanup exit 1 } scriptdir="$(cd "$(dirname "$(which "$0")")" && pwd)" if [ -z "${scriptdir}" ]; then echo "Unable to locate script directory" >&2 exit 1 fi cd "${scriptdir}" || exit 1 if [ -f 'build.conf' ]; then . 'build.conf' fi if [ -d "pkgs/${pkg}" ]; then pkgdir="pkgs/${pkg}" pkgfile="${pkgdir}/info" else pkgfile="pkgs/${pkg}" pkgdir="${pkgfile}" fi if [ ! -e "${pkgfile}" ]; then echo "Invalid package." >&2 exit 1 fi pkgdate="$(for artifact in $(find "${pkgdir}" -type f -print0 | xargs -n 1 -0 fossil finfo --limit 1 --width 0 2>/dev/null | grep '^[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] ' | sed 's@^[^ ]* \[@@;s@\].*@@' | sort -u); do fossil info "${artifact}" | awk '/^uuid:/{ print $3 $4 }' | sed 's@[-:]@@g;s@..$@\.&@'; done | sort -n | tail -n 1)" if [ -z "${pkgdate}" ]; then pkgdate="$(find "${pkgdir}" -type f -printf '%TY%Tm%Td%TH%TM.%TS\n' 2>/dev/null | cut -f 1-2 -d '.' | sort -n | tail -n 1)" fi . "${pkgfile}" archivedir="$(pwd)/ARCHIVE" workdir="workdir-$$${RANDOM}${RANDOM}${RANDOM}" pkgarchive="${archivedir}/${pkg}-${version}" mkdir "${archivedir}" >/dev/null 2>/dev/null mkdir "${workdir}" || exit 1 cd "${workdir}" || exit 1 workdir="$(pwd)" # Download download # Extract extract # If we just have one directory, use that directory dir="$(echo *)" if [ -e "${dir}" ]; then mv "${dir}"/* . fi # Verify pre-requisites are met verifyRequiredPackages || die 'Required packages missing' verifyPrerequisites || die 'Prerequisities failed' # Start logging set -x # Determine properties determinePrefix # Start the build preconfigure || die 'preconfigure failed' configure || die 'configure failed' postconfigure || die 'postconfigure failed' prebuild || die 'prebuild failed' build || die 'build failed' postbuild || die 'postbuild failed' preinstall || die 'preinstall failed' install || die 'install failed' postinstall || die 'postinstall failed' ( case "${targetmode}" in install) appdir="$(appfsinstalldir)/${prefixsuffix}" mkdir -p "${appdir}" cd "${destdir}/${prefix}" || exit 1 cp -rp * "${appdir}" find "${appdir}" -print0 | xargs -0 touch -t "${pkgdate}" find "${appdir}" -print0 | xargs -0 touch -m -t "${pkgdate}" find "${appdir}" -print0 | xargs -0 touch -a -t "${pkgdate}" ;; archive) archivefile="${scriptdir}/${pkg}-${version}-$(echo "${pkgdate}" | sed 's@\.@@g')-${domain}.cpio" cd "${destdir}/${prefix}/../../.." || exit 1 find "${prefixsuffix}" -print0 | xargs -0 touch -t "${pkgdate}" find "${prefixsuffix}" -print0 | xargs -0 touch -m -t "${pkgdate}" find "${prefixsuffix}" -print0 | xargs -0 touch -a -t "${pkgdate}" find "${prefixsuffix}" | sort | cpio --owner 0:0 -H newc -o > "${archivefile}" ;; esac ) || die 'final installation failed' cleanup exit 0 |
Added build.conf version [501534cf12].
> > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | domain=rkeene.org function appfsinstalldir() { case "${domain}" in rkeene.org) echo "/web/rkeene/appfs/applications" ;; appfs.rkeene.org) echo "/web/customers/appfs.rkeene.org/appfs/applications" ;; core.appfs.rkeene.org) echo "/web/static/core.appfs.rkeene.org/appfs/applications" ;; esac } |
Added pkgs/binutils version [c2b1e3701b].
> > > > > > > | 1 2 3 4 5 6 7 | #! /usr/bin/env bash version=2.24 url="http://ftp.gnu.org/gnu/binutils/binutils-2.24.tar.gz" domain=core.appfs.rkeene.org sha256='4930b2886309112c00a279483eaef2f0f8e1b1b62010e0239c16b22af7c346d4' require=(zlib) |
Added pkgs/glibc version [a1708aed89].
> > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #! /usr/bin/env bash version=2.20 url="http://ftp.gnu.org/gnu/glibc/glibc-${version}.tar.xz" domain=core.appfs.rkeene.org sha256='f84b6d42aecc288d593c397b0a3d02260a33ee686bce0c634eb9b32798f36ba5' function configure() { mkdir BUILD cd BUILD ../configure --prefix="${prefix}" --sysconfdir=/etc --localstatedir=/var || return 1 echo '# Ignore: DESTDIR' >> Makefile } |
Added pkgs/linux-headers version [e14114f6de].
> > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #! /usr/bin/env bash version='3.17.2' url="https://www.kernel.org/pub/linux/kernel/v3.x/linux-${version}.tar.xz" domain=core.appfs.rkeene.org sha256='f9221dc0878955318ab57b8bb5ea1f26cbbaa39359c91d0f6c8de74d68aea796' function configure() { : } function build() { make defconfig || die } function install() { make INSTALL_HDR_PATH="${destdir}/${prefix}/include" headers_install || die } |
Added pkgs/readline version [4f5b78a41f].
> > > > > > | 1 2 3 4 5 6 | #! /usr/bin/env bash version=6.3 url="https://ftp.gnu.org/gnu/readline/readline-${version}.tar.gz" domain=core.appfs.rkeene.org sha256='56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43' |
Added pkgs/zlib version [e788328143].
> > > > > > | 1 2 3 4 5 6 | #! /usr/bin/env bash version=1.2.8 url="http://zlib.net/zlib-${version}.tar.gz" domain=core.appfs.rkeene.org sha256='36658cb768a54c1d4dec43c3116c27ed893e88b02ecfcb44f2166f9c0b7f2a0d' |