Changeset a4564466 for x/lib/qt5.xml


Ignore:
Timestamp:
12/20/2020 05:46:31 PM (3 years ago)
Author:
Pierre Labastie <pieere@…>
Branches:
qt5new
Children:
dc062c9
Parents:
96f41f4 (diff), 1c429ed (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merge trunk up to revision 24005

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/qt5new@24006 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • x/lib/qt5.xml

    r96f41f4 ra4564466  
    195195
    196196    <para>
    197       Next create two utility functions, one for module building, the other
    198       for switching to user <systemitem class="username">root</systemitem>:
    199     </para>
    200 
    201 <screen><userinput>module_build() {
    202 # MD5_ENTRY contains the md5sum entry from the .md5 file for this module
    203 md5sum -c - &lt;&lt;&lt; $MD5_ENTRY
    204 }</userinput></screen>
     197      Next create two utility functions, one for switching to user
     198      <systemitem class="username">root</systemitem>, the other for
     199      module building:
     200    </para>
     201
     202<screen><userinput>as_root() {
     203  if   [ "$EUID" = 0 ];      then $*
     204  elif [ -x /usr/bin/sudo ]; then sudo $*
     205  else                            su -c \\"$*\\"
     206  fi
     207}
     208
     209export -f as_root
     210
     211module_build() {
     212  # MD5_ENTRY contains the md5sum entry from the .md5 file for this module
     213  echo $MD5_ENTRY | read md5 tarball
     214
     215  # download
     216  wget &qt5-dwonload-http;$tarball
     217  md5sum -c - &lt;&lt;&lt; "$MD5_ENTRY" || exit 1
     218
     219  packagedir=${tarball%.tar*}
     220
     221  tar -xf $file
     222  pushd $packagedir
     223    # OPTIONS contains the qmake options
     224    if[ -n "$OPTIONS" ]; then
     225      qmake -- $OPTIONS
     226    else
     227      qmake
     228    fi
     229    make
     230    as_root make install
     231  popd
     232
     233  rm -rf $packagedir
     234  as_root /sbin/ldconfig
     235}
     236
     237export -f module_build</userinput></screen>
    205238  </sect2>
    206239
    207240  <sect2 id="qt-basic">
    208     <title>Installation of Basic Modules</title>
     241    <title>Basic Qt5 Modules</title>
     242
     243    <para role="required">
     244      The modules in this group only depend on <xref linkend="qtbase"/>
     245      and a properly set <envar>QTDIR</envar> environment variable.
     246    </para>
     247
    209248    <para>
    210249      Install the basic modules with the following instructions:
    211250    </para>
     251
     252<screen><userinput>( # start a subshell
     253set -e # exit the subshell in case of error
     254
     255unset OPTIONS
     256sed -n "/Begin basic/,/End basic/p" | while read MD5_ENTRY; do
     257  if [ -z "${MD5_ENTRY%\#*}" ]; then continue; fi
     258  module_build
     259done
     260)
    212261  </sect2>
    213262
Note: See TracChangeset for help on using the changeset viewer.