Random Bits of Open Code

Check-in [6fc31b890f]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Adding missing STDFLAGS back so that -fPIC can be used for iup, cd and im.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:6fc31b890f4bedebeea062dfd58d4cac85f1ca98
User & Date: matt 2018-07-10 06:53:41
Context
2018-07-12
20:06
added limit and offset the qry in get-runs-info check-in: ac0641f1dd user: pjhatwal tags: trunk
2018-07-10
06:53
Adding missing STDFLAGS back so that -fPIC can be used for iup, cd and im. check-in: 6fc31b890f user: matt tags: trunk
2018-07-09
17:55
fixed spurious mv causing nanomsg fail due to logpro rules check-in: abfc4ac9ef user: bjbarcla tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

a3d/testbox/a3d.scm became a regular file.

megatest_cgisetup/cgi-bin/models became a regular file.

megatest_cgisetup/cgi-bin/pages became a regular file.

Changes to utils/chicken-installall.sh.

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
...
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
...
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
#  This program is made available under the GNU GPL version 2.0 or
#  greater. See the accompanying file COPYING for details.
# 
#  This program is distributed WITHOUT ANY WARRANTY; without even the
#  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
#  PURPOSE.





if [[ -e options.cfg ]];then
    echo Using settings in options.cfg
    . options.cfg
    OPTIONS_LOADED=yes
fi

if [[ $OPTION=="" ]]; then
    export OPTION=std
fi

DEBIAN_PKGS="libreadline-dev libwebkitgtk-dev libwebkitgtk-3.0-dev libpangox-1.0-0 zlib1g-dev libfreetype6-dev cmake libssl-dev  uuid-dev cmake curl ruby wget libgl1-mesa-dev libglu1-mesa-dev libgtk2.0-dev lua5.3 liblua5.1-0-dev liblua5.3-dev libsqlite3-dev libpq-dev libgtk-3-dev asciidoctor libftgl-dev"

echo You may need to do the following first:
mkdir -p flags
for x in $DEBIAN_PKGS;do
    if [[ $INSTALL_DEBS = "yes" ]];then
	if ! [[ -e flags/$x ]];then 
            sudo apt install $x
	    touch flags/$x
................................................................................
    fi
    cd $BUILDHOME
}

# NOTE: We do the check for successful running inside this function, thus not needed around
#       the call.
function mknanomsgfn () {
    if ! [[ -e 1.0.0.tar.gz ]];then
	wget --no-check-certificate https://github.com/nanomsg/nanomsg/archive/1.0.0.tar.gz

        if [[ -e 1.0.0 ]]; then
   	    mv 1.0.0 1.0.0.tar.gz

        fi
    fi

    if ! [[ -e nanomsg-1.0.0 ]]; then
       tar xf 1.0.0.tar.gz
    fi
    cd nanomsg-1.0.0


    ./configure --prefix=$PREFIX
    make
    make install
    CSC_OPTIONS="-I$PREFIX/include -L$PREFIX/lib -L$PREFIX/lib64" $CHICKEN_INSTALL $PROX nanomsg
    if [[ -e $PREFIX/lib64/libnanomsg.so.1.0.0 || -e $PREFIX/lib/libnanomsg.so.1.0.0 ]];then
	echo SUCCESS
    fi
    cd $BUILDHOME
................................................................................
	    echo Skipping untar of $TGZFILE, already extracted
        fi
    done
    ln -sf $BUILDHOME/iup_build/lua-5.3.4 $BUILDHOME/iup_build/lua53
    cd $BUILDHOME
    # NO_LUA=1 <== doesn't seem to consistently work
    # || echo Install broken, contining...
    cmd="make USE_PKGCONFIG=Yes USE_PKGCONFIG=Yes USE_GTK2=1 GTK=/usr USE_LUA53=Yes" 
    # Stuff seems to depend on lua even when it is turned off
    bigmessage "Build lua"
    (cd iup_build/lua53;make linux INSTALL_TOP=$PREFIX;make -k linux INSTALL_TOP=$PREFIX install) || exit
    for d in im cd iup;do
	bigmessage "Build $d"
	(cd iup_build/$d;$cmd)
    done







>
>
>
>










|
<







 







|

>
|
<
>
|
<
<

|


>
>
|







 







|







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
...
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
...
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
#  This program is made available under the GNU GPL version 2.0 or
#  greater. See the accompanying file COPYING for details.
# 
#  This program is distributed WITHOUT ANY WARRANTY; without even the
#  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
#  PURPOSE.

DEBIAN_PKGS_NEEDED="libreadline-dev libwebkitgtk-dev libwebkitgtk-3.0-dev libpangox-1.0-0 zlib1g-dev libfreetype6-dev cmake libssl-dev  uuid-dev cmake curl ruby wget libgl1-mesa-dev libglu1-mesa-dev libgtk2.0-dev lua5.3 liblua5.1-0-dev liblua5.3-dev libsqlite3-dev libpq-dev libgtk-3-dev libftgl-dev"

DEBIAN_PKGS_EXTRA=asciidoctor

if [[ -e options.cfg ]];then
    echo Using settings in options.cfg
    . options.cfg
    OPTIONS_LOADED=yes
fi

if [[ $OPTION=="" ]]; then
    export OPTION=std
fi

DEBIAN_PKGS="$DEBIAN_PKGS_NEEDED $DEBIAN_PKGS_EXTRA"

echo You may need to do the following first:
mkdir -p flags
for x in $DEBIAN_PKGS;do
    if [[ $INSTALL_DEBS = "yes" ]];then
	if ! [[ -e flags/$x ]];then 
            sudo apt install $x
	    touch flags/$x
................................................................................
    fi
    cd $BUILDHOME
}

# NOTE: We do the check for successful running inside this function, thus not needed around
#       the call.
function mknanomsgfn () {
    if ! [[ -e tgz/nanomsg-1.0.0.tar.gz ]];then
	wget --no-check-certificate https://github.com/nanomsg/nanomsg/archive/1.0.0.tar.gz
    fi
    if [[ -e 1.0.0 ]]; then

        mv 1.0.0 $BUILDHOME/tgz/nanomsg-1.0.0.tar.gz
    fi


    if ! [[ -e nanomsg-1.0.0 ]]; then
       tar xf $BUILDHOME/tgz/nanomsg-1.0.0.tar.gz
    fi
    cd nanomsg-1.0.0
    mkdir build;cd build
    cmake ../  -DCMAKE_INSTALL_PREFIX=$PREFIX
    # ./configure --prefix=$PREFIX
    make
    make install
    CSC_OPTIONS="-I$PREFIX/include -L$PREFIX/lib -L$PREFIX/lib64" $CHICKEN_INSTALL $PROX nanomsg
    if [[ -e $PREFIX/lib64/libnanomsg.so.1.0.0 || -e $PREFIX/lib/libnanomsg.so.1.0.0 ]];then
	echo SUCCESS
    fi
    cd $BUILDHOME
................................................................................
	    echo Skipping untar of $TGZFILE, already extracted
        fi
    done
    ln -sf $BUILDHOME/iup_build/lua-5.3.4 $BUILDHOME/iup_build/lua53
    cd $BUILDHOME
    # NO_LUA=1 <== doesn't seem to consistently work
    # || echo Install broken, contining...
    cmd="make USE_PKGCONFIG=Yes USE_PKGCONFIG=Yes USE_GTK2=1 GTK=/usr USE_LUA53=Yes STDFLAGS=$STDFLAGS" 
    # Stuff seems to depend on lua even when it is turned off
    bigmessage "Build lua"
    (cd iup_build/lua53;make linux INSTALL_TOP=$PREFIX;make -k linux INSTALL_TOP=$PREFIX install) || exit
    for d in im cd iup;do
	bigmessage "Build $d"
	(cd iup_build/$d;$cmd)
    done

Added utils/options.cfg.gemini.





































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
export BUILD_IUP=yes
export CDVER=5.11.1
export CHICKEN_BASEVER=4.13.0
export CHICKEN_VERSION=4.13.0
export IMVER=3.12
export INSTALL_DEBS=yes
export IUPVER=3.22
# export IUP_STDINCS=/usr/include/gtk-unix-print-2.0
export KTYPE=32
export LUA_INC=/usr/include/lua5.3
export LUA_LIB=/usr/lib/arm-linux-gnueabihf
export LUA_SUFFIX=5.3
export OPTION=std
export ORIGINDIR=/home/data/opensrc/utils
export PREFIX=/opt/chicken/4.13
export STDFLAGS=-fPIC
export USE_GTK2=1
export DEBIAN_PKGS_EXTRA=""