Changes In Branch install Through [6346f60bb6] Excluding Merge-Ins
This is equivalent to a diff from 0d71b71cc8 to 6346f60bb6
2020-01-30
| ||
07:13 | Push r15 in linux x64 syscall This was causing the static, release, build of kcli.testbin to subtly segfault shortly after writing the first buffer. Still not sure why kcore.testbin seemingly wasn't affected, nor why the shared build still breaks worse. check-in: 6022ec08ab user: glowpelt tags: trunk | |
2020-01-24
| ||
21:18 | Remove the $to check entirely and have more output in install.sh Sourcing a file doesn't need it to be executable, so global/common.sh can have it's executable bit removed and the $to check in it entirely removed. Adds some `say`s to install.sh to let you know it did something and help in case of error. Closed-Leaf check-in: 50b709b0d3 user: glowpelt tags: install | |
2020-01-23
| ||
07:10 | Make install.sh actually try to install. Just a first pass at the problem for now, but it seems to work fine finally with some quick testing. check-in: 6346f60bb6 user: glowpelt tags: install | |
2020-01-22
| ||
00:58 | Add a err.c for every module, and compile them all in. This fixes the build of the shared library version, as there are no more undefined symbols. `kexplain` likely will still not work, but it didn't work in the first place. Closed-Leaf check-in: bdc1191d6f user: glowpelt tags: fixshared | |
2020-01-19
| ||
04:12 | Partially fix shared library build by making sure that data_objects are linked in. This means that internal.ident.o is properly linked in, but internal.ident.o itself still references undefined symbols, so this is only a partial fix. check-in: 0d71b71cc8 user: glowpelt tags: trunk | |
2020-01-05
| ||
17:52 | Fix _start to properly find the environment. The arguments and environment are directly on the initial stack, which means that more work is needed to find the start of the environment properly. Also remove the hack in _boot that made it work if there were no arguments, as all of the math is being done in _start now. check-in: 62fd1bfe97 user: glowpelt tags: trunk | |
Modified global/common.sh from [582c735deb] to [0a6c6a9052].
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
check() {
var=$1
test "${!var}" == "" || return 0
say "we were not able to detect a default value for the configuration variable \$$var. please set this variable to $2 and try again."
exit 1
}
test "$to" = "" && {
say "\$to environment variable must be set to your build directory - are you running this script by hand? run [1m./build.sh[m in the root directory instead!"
exit 2
}
reqpack() {
if ! has "$1"; then
say "to $2 for [1mlibk[m, install the [1m$1[m package and try again"
exit 3
fi
}
|
| | | < > |
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
check() { var=$1 test "${!var}" == "" || return 0 say "we were not able to detect a default value for the configuration variable \$$var. please set this variable to $2 and try again." exit 1 } #test "$to" = "" && { # say "\$to environment variable must be set to your build directory - are you running this script by hand? run [1m./build.sh[m in the root directory instead!" # exit 2 #} reqpack() { if ! has "$1"; then say "to $2 for [1mlibk[m, install the [1m$1[m package and try again" exit 3 fi } |
Modified install.sh from [b7dc8d033f] to [ca0001a46e].
1 2 3 4 |
#!/usr/bin/env bash
source global/common.sh
say "this component of the build system does not yet exist"
|
| > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > |
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 |
#!/usr/bin/env bash source global/common.sh check "prefix" "a directory to install to" build="${build:-out}" bindir="$prefix/bin" libdir="$prefix/lib" if [ "$prefix" = "/" ]; then say "installing docs and headers into usr instad of /" sharedir="$prefix/usr/share" incdir="$prefix/usr/include" else incdir="$prefix/include" sharedir="$prefix/share" fi # Libraries # These may or may not exist, depending on what library build is done, so check [ -e "$build/libk.a" ] && install -Dm644 -t "$libdir" "$build/libk.a" [ -e "$build/libk.so" ] && install -Dm644 -t "$libdir" "$build/libk.so" [ -e "$build/boot.o" ] && install -Dm644 -t "$libdir/libk" "$build/boot.o" # Binaries install -Dm755 -t "$bindir" "$build/kcore.testbin" install -Dm755 -t "$bindir" "$build/kcli.testbin" install -Dm755 -t "$bindir" "$build/kgraft.attach" # Includes for inc in "$build"/k/*; do install -Dm644 -t "$incdir/k" "$inc" done # Documentation for man in "$build"/doc/man/*; do install -Dm644 -t "$sharedir/man" "$man" done for html in "$build"/doc/html/*; do install -Dm644 -t "$sharedir/doc/libk/html" "$html" done for pdf in "$build"/doc/pdf/*; do install -Dm644 -t "$sharedir/doc/libk/pdf" "$pdf" done |