Changeset df42c7c for Config.in


Ignore:
Timestamp:
07/21/2016 04:43:35 PM (8 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
new_features
Children:
e234d23
Parents:
33ff403
Message:

Porg style package management:

  • Add new variable WRAP_INSTALL in COnfig.in and jhalfs
  • Generates the install commands inside a wrapper function
  • Add files packInstall.sh.porg and packageManager.xml.porg
  • TODO: update README.PACKAGE...
  • TODO: make new templates in pkgmngt and document them
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Config.in

    r33ff403 rdf42c7c  
    828828    endmenu # test settings
    829829
    830         #--- Package Management
    831         config  PKGMNGT
    832                 bool    "Package management"
    833                 depends BOOK_LFS || BOOK_LFS_SYSD
    834                 default n
    835                 help
    836                         #-- Use package management
    837                         #
    838                         #  If set, the packages in the final phase are built
    839                         #  in a separate directory, PKG_DEST.
    840                         #  You should provide a bash function for packing
    841                         #  and installing the package.
    842                         #  Also, you have to provide the instructions
    843                         #  to build the package manager during the
    844                         #  temporary tools phase, in the form of a
    845                         #  sect1 of the book identical to a package
    846                         #  sect1. See README.PACKAGE_MANAGEMENT
    847                         #
    848                         #  For now, this only works with LFS
    849 
    850         #--- End package management
     830    #--- Package Management
     831    config  PKGMNGT
     832        bool    "Package management"
     833        depends BOOK_LFS || BOOK_LFS_SYSD
     834        default n
     835        help
     836                #-- Use package management
     837                #
     838                #  If set, you'll have to choose between
     839                #  two package management styles:
     840                #  - Build and install:
     841                #    the packages in the final phase are built
     842                #    in a separate directory, PKG_DEST.
     843                #    You should provide a bash function for
     844                #    packaing and installing the package.
     845                #  - Preload a library before install:
     846                #    Run the install instructions inside a
     847                #    wrapper command, which monitors the
     848                #    installed files.
     849                #
     850                #  Also, you have to provide the instructions
     851                #  to build the package manager during the
     852                #  temporary tools phase, in the form of a
     853                #  sect1 of the book identical to a package
     854                #  sect1. See README.PACKAGE_MANAGEMENT
     855                #
     856                #  For now, this only works with LFS
     857    choice
     858        depends PKGMNGT
     859        prompt "Package management style"
     860        default PKG_PACK
     861
     862        config PKG_PACK
     863            bool "Build and pack (pacman or dpkg style)"
     864
     865        config LIB_LOAD
     866            bool "Preload a library before installing (porg style)"
     867    endchoice
     868
     869    config WRAP_INSTALL
     870        bool
     871        default y if LIB_LOAD
     872        default n if PKG_PACK
     873    #--- End package management
    851874
    852875        #--- Installed files logs
Note: See TracChangeset for help on using the changeset viewer.