Changeset de947d2


Ignore:
Timestamp:
03/22/2012 08:42:41 PM (13 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
ablfs
Children:
dcb29a9
Parents:
cd668b9
Message:

Allows to build Python and openssl before libxml2 and subversion respectively
in BLFS tools, avoiding later recompilation

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Config.in

    rcd668b9 rde947d2  
    584584                config  DEP_GPM
    585585                bool    "GPM (optional, see help)"
    586                 default y
     586                default n
    587587                help
    588588                        #-- if you install gpm, it will be started
     
    595595                help
    596596                        #-- Subversion is needed for updating the book
    597                         #   sources. It is built without ssl support,
    598                         #   so you may have to rebuild it afterwards.
     597                        #   sources. If you want ssl support, select
     598                        #   OPENSSL below.
     599
     600                config  DEP_OPENSSL
     601                bool    "OPENSSL (optional, see help)"
     602                default n
     603                help
     604                        #-- selecting OPENSSL here allows to build
     605                        #   subversion with ssl support, avoiding a later
     606                        #   recompilation
     607
     608                config  DEP_PYTHON
     609                bool    "PYTHON 2 (optional, see help)"
     610                default n
     611                help
     612                        #-- selecting PYTHON 2 here allows to build
     613                        #   the libxml2 and libxslt python modules,
     614                        #   avoiding a later recompilation
    599615
    600616        endmenu
  • common/libs/func_install_blfs

    rcd668b9 rde947d2  
    8080  LINE_SVN='#CONFIG_subversion is not set'
    8181fi
     82if [ "$DEP_OPENSSL" = y ]; then
     83  LINE_OPENSSL='CONFIG_openssl=y'
     84else
     85  LINE_OPENSSL='#CONFIG_openssl is not set'
     86fi
     87if [ "$DEP_PYTHON" = y ]; then
     88  LINE_PYTHON='CONFIG_python2=y'
     89else
     90  LINE_PYTHON='#CONFIG_python2 is not set'
     91fi
    8292
    8393cat >$BUILDDIR$BLFS_ROOT/configuration <<EOF
     94$LINE_PYTHON
    8495$LINE_LIBXML
    8596$LINE_LIBXSLT
     
    8798$LINE_TIDY
    8899$LINE_DBXML
     100$LINE_OPENSSL
    89101$LINE_SVN
    90102$LINE_GPM
     
    131143  sed -i -e /javahl/d -e /swig/d $BUILDDIR$BLFS_ROOT/scripts/*subversion
    132144fi
     145if [ "$DEP_PYTHON" = y ]; then
     146  sed -i -e '/^make.*Doc/d' -e '/^chmod/{n;N;d}' $BUILDDIR$BLFS_ROOT/scripts/*python2
     147fi
     148if [ "$DEP_OPENSSL" = y ]; then
     149  sed -i 's/^make$/make -j1/' $BUILDDIR$BLFS_ROOT/scripts/*openssl
     150fi
    133151
    134152# At last generates the build Makefile
Note: See TracChangeset for help on using the changeset viewer.