Changeset 9b95f2a


Ignore:
Timestamp:
08/23/2006 06:45:03 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
experimental
Children:
431520b
Parents:
aea74cb
Message:

Fixed an oditie with x-window-system (I think).
Test if DEP has been already installed after packages remaping.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BLFS/libs/func_dependencies

    raea74cb r9b95f2a  
    178178  > xincludes/$PKG.xinc.tmp
    179179  for DEP in `cat dependencies/$PKG.dep`; do
     180
     181    # Special packages that need be remaped
     182    case $DEP in
     183
     184      db ) continue ;; # The proper version of DB is installed in LFS
     185
     186        # Don't have their own XML file
     187      hal-requirements | hal-runtime-dependencies ) continue ;;
     188      perl-* | tk-perl )         DEP=perl-modules ;;
     189
     190        # Orphan links (proper link must be created when generating the book)
     191      arts )                     DEP=aRts ;;
     192      kde )                      DEP=kde-core ;;
     193
     194        # Set values for alternative packages
     195      LPRng | cups )             DEP=$PRINT_SERVER ;;
     196      mitkrb | heimdal )         DEP=$KBR5 ;;
     197      gs | espgs )               DEP=$GHOSTSCRIPT ;;
     198      server-mail )              DEP=$MAIL_SERVER ;;
     199      x-window-system )
     200        case $X11 in
     201          xorg7 ) DEP=xorg7 ;;
     202              * )
     203                  pkg_ver=$(grep "^${X11}[[:space:]]" ../packages | cut -f3)
     204                  inst_ver=$(grep "^${X11}[[:space:]]" ../packages | cut -f4)
     205                  [ -n "${pkg_ver}" ] && [ "x${pkg_ver}" = "x${inst_ver}" ] && continue
     206                  ;;
     207        esac
     208        ;;
     209    esac
     210
    180211    # If DEP has been previouly installed, skip it
    181212    pkg_ver=$(grep "^${DEP}[[:space:]]" ../packages | cut -f3)
    182213    inst_ver=$(grep "^${DEP}[[:space:]]" ../packages | cut -f4)
    183214    [ -n "${pkg_ver}" ] && [ "x${pkg_ver}" = "x${inst_ver}" ] && continue
    184 
    185     # Special packages (a lot of hacks)
    186     case $DEP in
    187 
    188       db ) continue ;; # The proper version of DB is installed in LFS
    189 
    190         # Don't have their own XML file
    191       hal-requirements | hal-runtime-dependencies ) continue ;;
    192       perl-* | tk-perl )         DEP=perl-modules ;;
    193 
    194         # Orphan links (proper link must be created when generating the book)
    195       arts )                     DEP=aRts ;;
    196       kde )                      DEP=kde-core ;;
    197 
    198         # Set values for alternative packages
    199         # X is a meta-package, thus handled in another way.
    200       LPRng | cups )             DEP=$PRINT_SERVER ;;
    201       mitkrb | heimdal )         DEP=$KBR5 ;;
    202       gs | espgs )               DEP=$GHOSTSCRIPT ;;
    203       server-mail )              DEP=$MAIL_SERVER ;;
    204     esac
    205215
    206216    #------------------
     
    273283          cp ../libs/kde-core.dep dependencies/
    274284          ;;
    275         x-window-system ) # X11 alternatives
     285        x-window-system ) # When X11 is not Xorg7
    276286          echo -e "x-config\nx-setup\n$X11" > dependencies/x-window-system.dep
    277287          ;;
    278         xorg7 ) # At dependencies level, remove x-config and x-setup
     288        xorg7 )
    279289          cp ../libs/xorg7.dep dependencies/
    280           sed -i '/x-config/d;/x-setup/d' dependencies/xorg7.dep
    281290          ;;
    282291        * ) xsltproc --stringparam dependencies $DEP_LV \
Note: See TracChangeset for help on using the changeset viewer.