Random Bits of Open Code

Check-in [56bb32aaab]
Login

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

Overview
Comment:updates to chicken-build
Timelines: family | ancestors | trunk
Files: files | file ages | folders
SHA1:56bb32aaab843d9852199dfe0ed80c8c04f5b07d
User & Date: matt 2019-08-21 04:29:46
Context
2019-08-21
04:29
updates to chicken-build Leaf check-in: 56bb32aaab user: matt tags: trunk
2019-06-04
04:09
Adapted to mtargs from margs check-in: 483da61de7 user: matt tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to chicken-build/common.sh.

37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
..
57
58
59
60
61
62
63



64
65




66
67


68



69
70
71

72


73
74
75
76
77
78
79
...
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
...
322
323
324
325
326
327
328
329

330
331
332
333
334
335
336
...
520
521
522
523
524
525
526
527


528
529
530
531
532
533
534
535
536
    . options.cfg
    OPTIONS_LOADED=yes
fi
if [[ $OPTION=="" ]]; then
    export OPTION=std
fi


    
SYSTEM_TYPE=$(lsb_release -irs |tr ' ' '_' |tr '\n' '-')$(uname -i)-$OPTION

# Is this used?
if [[ $KTYPE == "" ]]; then
  echo 'Using KTYPE=26'
  export KTYPE=26g4
else
................................................................................
echo "Settings:"
echo SYSTEM_TYPE=$SYSTEM_TYPE
echo CDVER=$CDVER
echo IUPVER=$IUPVER
echo IMVER=$IMVER	
echo CHICKEN_VERSION=$CHICKEN_VERSION
echo CHICKEN_BASEVER=$CHICKEN_BASEVER




if [[ $proxy == "" ]]; then 




  echo 'Set the environment variable "proxy" to host.com:port (e.g. foo.com:1234) to use a proxy'
  echo PROX=""


else



  export http_proxy=http://$proxy
  export https_proxy=http://$proxy
  export PROX="-proxy $proxy"

fi



# Create some needed directories
mkdir -p tgz
if [[ $? != 0 ]]; then
    echo "Error: could not create tgz dir"
    exit 1
fi
................................................................................
	echo You may need to do the following first:
    fi
    echo "Attempting to install $pkgs"
    mkdir -p flags
    for x in $pkgs;do
	if [[ $INSTALL_DEBS = "yes" ]];then
	    if ! [[ -e flags/$x ]];then 
		sudo apt install -y $x
		touch flags/$x
	    else
		echo $x already installed
	    fi
	else
            echo sudo apt install -y $x
	fi
    done
    echo SUCCESS
}

#======================================================================
# Chicken
................................................................................
}

#======================================================================
# Chicken docs
#======================================================================

function docsfn () {
    cd `$PREFIX/bin/csi -p '(chicken-home)'`

    curl http://3e8.org/pub/chicken-doc/chicken-doc-repo.tgz | tar zx
    echo SUCCESS
}

#======================================================================
# Bunch of miscellaneous utilities, some needed to build Megatest
#======================================================================\
................................................................................
  if [[ $BUILD_IUP == "yes" ]];then
	  buildiupfn
  else
	if ! [[ -e fossils/opensrc.fossil ]];then
	    echo Retrieving the fossil db containing the IUP libraries.
	    fossil clone http://www.kiatoa.com/fossils/opensrc fossils/opensrc.fossil
	    mkdir -p opensrc
	    (cd opensrc;fossil open $PWD/../fossils/opensrc.fossil;fossil up)


	fi

	if [[ `uname -a | grep x86_64` == "" ]]; then 
	    export ARCHSIZE=''
	else
	    export ARCHSIZE=64_
	fi
	if [[ x$USEOLDIUP == "x" ]];then
	    export files="cd/cd-${CDVER}_Linux${KTYPE}_${ARCHSIZE}lib.tar.gz im/im-${IMVER}_Linux${KTYPE}_${ARCHSIZE}lib.tar.gz iup/iup-${IUPVER}_Linux${KTYPE}_${ARCHSIZE}lib.tar.gz"







<
<







 







>
>
>

<
>
>
>
>
|

>
>

>
>
>



>

>
>







 







|





|







 







|
>







 







|
>
>
|
|







37
38
39
40
41
42
43


44
45
46
47
48
49
50
..
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
...
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
...
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
...
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
    . options.cfg
    OPTIONS_LOADED=yes
fi
if [[ $OPTION=="" ]]; then
    export OPTION=std
fi



SYSTEM_TYPE=$(lsb_release -irs |tr ' ' '_' |tr '\n' '-')$(uname -i)-$OPTION

# Is this used?
if [[ $KTYPE == "" ]]; then
  echo 'Using KTYPE=26'
  export KTYPE=26g4
else
................................................................................
echo "Settings:"
echo SYSTEM_TYPE=$SYSTEM_TYPE
echo CDVER=$CDVER
echo IUPVER=$IUPVER
echo IMVER=$IMVER	
echo CHICKEN_VERSION=$CHICKEN_VERSION
echo CHICKEN_BASEVER=$CHICKEN_BASEVER
echo
echo SHELL=$SHELL
echo proxy=$proxy


# Set proxy variables and create a wrapper for proxy calls (used especially with sudo)
echo "#!/bin/bash" > wp

if [[ -z $proxy ]];then
  echo "Set the environment variable \"proxy\" to host.com:port (e.g. foo.com:1234) to use a proxy"
  echo PROX=""
  echo "exec \"$@\"" >> wp
  export PROX_WRAPPER=
else
  echo "Setting proxy variables and creating proxy wrapper script \"wp\""
  echo "export http_proxy=http://$proxy" >> wp
  echo "export https_proxy=http://$proxy" >> wp
  export http_proxy=http://$proxy
  export https_proxy=http://$proxy
  export PROX="-proxy $proxy"
  export PROXY_WRAPPER=${PWD}/wp
fi
chmod a+x wp
echo PROXY_WRAPPER=$PROXY_WRAPPER

# Create some needed directories
mkdir -p tgz
if [[ $? != 0 ]]; then
    echo "Error: could not create tgz dir"
    exit 1
fi
................................................................................
	echo You may need to do the following first:
    fi
    echo "Attempting to install $pkgs"
    mkdir -p flags
    for x in $pkgs;do
	if [[ $INSTALL_DEBS = "yes" ]];then
	    if ! [[ -e flags/$x ]];then 
		sudo $PROXY_WRAPPER apt install -y $x
		touch flags/$x
	    else
		echo $x already installed
	    fi
	else
            echo sudo $PROXY_WRAPPER apt install -y $x
	fi
    done
    echo SUCCESS
}

#======================================================================
# Chicken
................................................................................
}

#======================================================================
# Chicken docs
#======================================================================

function docsfn () {
    chicken_home=$($PREFIX/bin/csi -p '(chicken-home)')
    cd $chicken_home
    curl http://3e8.org/pub/chicken-doc/chicken-doc-repo.tgz | tar zx
    echo SUCCESS
}

#======================================================================
# Bunch of miscellaneous utilities, some needed to build Megatest
#======================================================================\
................................................................................
  if [[ $BUILD_IUP == "yes" ]];then
	  buildiupfn
  else
	if ! [[ -e fossils/opensrc.fossil ]];then
	    echo Retrieving the fossil db containing the IUP libraries.
	    fossil clone http://www.kiatoa.com/fossils/opensrc fossils/opensrc.fossil
	    mkdir -p opensrc
	    (cd opensrc;fossil open $PWD/../fossils/opensrc.fossil;fossil up;fossil uv sync)
	else
	    (cd opensrc;fossil up;fossil uv sync)
        fi
	
	if [[ `uname -a | grep x86_64` == "" ]]; then 
	    export ARCHSIZE=''
	else
	    export ARCHSIZE=64_
	fi
	if [[ x$USEOLDIUP == "x" ]];then
	    export files="cd/cd-${CDVER}_Linux${KTYPE}_${ARCHSIZE}lib.tar.gz im/im-${IMVER}_Linux${KTYPE}_${ARCHSIZE}lib.tar.gz iup/iup-${IUPVER}_Linux${KTYPE}_${ARCHSIZE}lib.tar.gz"

Added chicken-build/options.cfg.ubuntu-18.04-windows-bash.







































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# export ORIGINDIR=/home/matt/data/opensrc/utils
export OPTION=std
export PREFIX=/opt/chicken/4.13.0_18.04_WW$(date +%U)
export INSTALL_DEBS=yes
export DEBIAN_PACKAGES_NEEDED=$ALL_DEBIAN_PKGS
export BUILD_IUP=no
export KTYPE=32
export CDVER=5.11.1
export IUPVER=3.22
export IMVER=3.12
export CHICKEN_VERSION=4.13.0
export CHICKEN_BASEVER=4.13.0
export USE_GTK2=1
export STDFLAGS=-fPIC
export proxy=proxy.ch.intel.com:911
export IUP_STDINCS=/usr/include/gtk-unix-print-2.0
export LUA_SUFFIX=5.3
export LUA_INC=/usr/include/lua5.3
export LUA_LIB=/usr/lib/x86_64-linux-gnu