openpkg/dot.bash_login

Fri, 16 Jan 2009 10:58:21 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2009 10:58:21 +0100
changeset 92
645923d1e875
child 428
f880f219c566
permissions
-rw-r--r--

Correct and improve code logic, buildconf, and packaging. In particular:
1. Use descriptive variable names <var>libs instead of just <var>.
2. Although Nokia states in all Qt builds that 'NOTE: When linking
against OpenSSL, you can override the default library names
through OPENSSL_LIBS.' and even gives an example, their own
configuration logic rejects such an attempt. Correct this by
hard coding the OpenSSL library string in the configure script.
3. Consistently use the whitespace substitution [\t ] throughout.
4. Patch the buggy INCPATH of SQL plugin Qmake project files.
5. Add the 'x11' configuration variable to the qtconfig Qmake
project using the src/gui/gui.pro file as a model. This is
needed for qtconfig although not in other tools, because
the qtconfig buildconf indirectly includes qt_x11_p.h which
is dependent on X11 headers.
6. Avoid 'ld.so: fatal: hardware capability unsupported: SSE2 AMD_3DNow'
on platforms for which the config.tests/unix/[3dnow|sse2] succeed
although unsopported at run time by testing for the x86-64
instruction set at build time and regulating hardware capabilities.
7. Correctly install the desinger plugin by explicitly building it.
8. Remove custom plugin installation logic which is unnecessary.
9. Correct removal of temporary paths from shared object files.

michael@13 1 ##
michael@13 2 ## @l_prefix@/.bash_login -- Local Bash Login Script
michael@13 3 ##
michael@13 4
michael@13 5 # provide user and host information in default prompt
michael@13 6 PS1="\u@\h\$ "
michael@13 7
michael@13 8 # environment permissions
michael@13 9 umask 022
michael@13 10 ulimit -c 16384
michael@13 11
michael@13 12 # history functionality
michael@13 13 shopt -s histappend
michael@13 14 HISTSIZE=100
michael@13 15 HISTFILESIZE=100
michael@13 16
michael@13 17 # various additional variables
michael@13 18 export TMPDIR=/tmp
michael@13 19 export BLOCKSIZE=1024
michael@13 20
michael@13 21 # activate the bootstrapping Bourne-Shell
michael@13 22 # environment of the OpenPKG hierarchy
michael@13 23 eval `@l_prefix@/bin/openpkg rc --eval openpkg env`
michael@13 24
michael@13 25 # make sure some non-standard but usually
michael@13 26 # important executable directories are active
michael@13 27 test -d /usr/ccs/bin && PATH="$PATH:/usr/ccs/bin"
michael@13 28 test -d /usr/local/bin && PATH="$PATH:/usr/local/bin"
michael@13 29
michael@13 30 # initially adjust $PWD to symbolic path
michael@13 31 cd $HOME
michael@13 32
michael@13 33 # path to bash environment init script
michael@13 34 BASH_ENV=$HOME/.bashrc
michael@13 35
michael@13 36 # source the standard environment script
michael@13 37 . $BASH_ENV
michael@13 38

mercurial