Ignore:
Timestamp:
2017-07-28T18:53:37+12:00 (7 years ago)
Author:
ak19
Message:

Intermediate commit for building wget with openssl. This is a working version, part of incremental commits. For now, we're still using wget-1.15-gs (that always requires --no-check-certificate if running wget), which now uses a wgetrc conf file to turn off the check-certificate default of wget, since without this, wget fails getting https pages that don't yet have a valid security certificate. This commit introduces the template wgetrc-gs.in file, which contains a flag set to not require certificate checks, is copied to gs2build/OS as wgetrc. The WGETRC env var is set in setup.bash to point to the wgetrc file so wget runs smoothly against https urls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/build-src/packages/configure

    r31824 r31829  
    150150cd "$PACKAGES/openssl"
    151151openssl_pkgname=openssl-1.0.2l
     152#openssl_pkgname=openssl-1.1.0f
    152153if test ! -d $openssl_pkgname ;
    153154then
     
    158159# configure
    159160# see the INSTALL file for OpenSSL to see config options for openssl
     161# If you ever want to have the .a libraries that building openssl generates,
     162# then use the --prefix and point it to the $bindir.
    160163# --prefix indicates where the generated lib, include and bin folders will go
    161164# --openssldir will contain the manuals and other non-essentials
     
    248251
    249252# configure wget
     253wget_pkgname=wget-1.15-gs
     254#wget_pkgname=wget-1.17.1-gs
    250255echo ""
    251256echo "Configuring wget"
    252257echo ""
    253258cd "$PACKAGES/wget"
    254 gzip -dc wget-1.15-gs.tar.gz | tar -xf -
     259gzip -dc $wget_pkgname.tar.gz | tar -xf -
    255260if test x$crossOS = "xandroid" ;
    256261then
     
    260265fi
    261266
     267# When compiling wget-1.15-gs without openssl as before:
    262268#./configure $CACHE_FILE --prefix=$PACKAGES/wget --without-ssl --bindir="$bindir" -disable-nls $HOSTTARGETFLAGS $wget_extraargs
    263269
    264 # We weren't compiling up wget statically before either
     270# We weren't compiling up wget statically before either and we still aren't
    265271# However, to compile up wget (statically or not) with openssl, see
    266272# https://stackoverflow.com/questions/9817337/compiling-wget-with-static-linking-self-compiled-openssl-library-linking-issu
    267 # Note: if the cppflags and ldflags are set during the configure stage, as we now do,
    268 # then the make command needn't additionally set them as well. So just make, make install then works
    269 echo cd "$PACKAGES/wget/wget-1.15-gs"
    270 echo CPPFLAGS="-I/$bindir/openssl/include" LDFLAGS="-L/$bindir/openssl/lib" ./configure $CACHE_FILE --prefix=$PACKAGES/wget --with-ssl=openssl --bindir="$bindir" -disable-nls $HOSTTARGETFLAGS $wget_extraargs
    271 cd "$PACKAGES/wget/wget-1.15-gs" && \
     273# Note: contrary to the instructions at the link, if the cppflags and ldflags are set during the
     274# configure stage, as we now do, then the make command needn't additionally set them as well.
     275# So just make, make install works thereafter
     276
     277echo copying "$PACKAGES/wget/wgetrc-gs.in" file to "$bindir/wgetrc"
     278cp "$PACKAGES/wget/wgetrc-gs.in" "$bindir/wgetrc"
     279echo cd "$PACKAGES/wget/$wget_pkgname"
     280
     281# for wget-1.15-gs. (can also try adding --localstatedir="$bindir/wget" --enable-iri)
     282echo CPPFLAGS="-I/$bindir/openssl/include" LDFLAGS="-L/$bindir/openssl/lib" ./configure $CACHE_FILE --prefix=$PACKAGES/wget --with-ssl=openssl --bindir="$bindir" -disable-nls $HOSTTARGETFLAGS $wget_extraarg
     283cd "$PACKAGES/wget/$wget_pkgname" && \
    272284CPPFLAGS="-I/$bindir/openssl/include" LDFLAGS="-L/$bindir/openssl/lib" ./configure $CACHE_FILE --prefix=$PACKAGES/wget --with-ssl=openssl --bindir="$bindir" -disable-nls $HOSTTARGETFLAGS $wget_extraargs
    273285
     286# for wget-1.17.1-gs. (can also try adding --localstatedir="$bindir/wget" --enable-iri)
     287#echo OPENSSL_CFLAGS="-I/$bindir/openssl/include" OPENSSL_LIBS="-L/$bindir/openssl/lib -lssl -lcrypto" ./configure $CACHE_FILE --prefix=$PACKAGES/wget --with-ssl=openssl --with-openssl=auto --with-libssl-prefix="$bindir/openssl" --bindir="$bindir" -disable-nls $HOSTTARGETFLAGS $wget_extraargs
     288#cd "$PACKAGES/wget/$wget_pkgname" && \
     289#OPENSSL_CFLAGS="-I/$bindir/openssl/include" OPENSSL_LIBS="-L/$bindir/openssl/lib -lssl -lcrypto" ./configure $CACHE_FILE --prefix=$PACKAGES/wget --with-ssl=openssl --with-openssl=auto --with-libssl-prefix="$bindir/openssl" --bindir="$bindir"  -disable-nls $HOSTTARGETFLAGS $wget_extraargs
    274290
    275291##
Note: See TracChangeset for help on using the changeset viewer.