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.

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

mercurial