Changes

150 bytes added ,  15:09, 21 December 2016
Page updated to new template
Line 1: Line 1: −
Welcome to Simone Giustetti's wiki pages.
+
{{header_en|title=Building an Utils package for TDE| keyword={{Template:keyword_en_tde}}| description=Building, installing and configuring a working Utils package for TDE and Slackware Linux | link_page=TDE_tdeutils}}
 
  −
 
  −
Languages: '''English''' - [http://www.giustetti.net/wiki/index.php?title=TDE_tdeutils Italiano]
  −
 
  −
----
      
== TDEUTILS ==
 
== TDEUTILS ==
[[En/trinity_desktop_environment#Base_Packages]]
+
[[En/trinity_desktop_environment#Base_Packages | TDE - Base Packages]]
    
The '''TDE Utilities''' package contains many common use applications built for the '''Trinity Desktop Environment'''. Those applications permit to execute common tasks like file compression / decompression, or easy configuration management tasks like printer setup and printer queues monitoring. Some of the applications are listed below:
 
The '''TDE Utilities''' package contains many common use applications built for the '''Trinity Desktop Environment'''. Those applications permit to execute common tasks like file compression / decompression, or easy configuration management tasks like printer setup and printer queues monitoring. Some of the applications are listed below:
Line 26: Line 21:  
*'''kwikdisk''': Shares the same function of kdf, but its window is smaller and better suited for persistent monitoring.
 
*'''kwikdisk''': Shares the same function of kdf, but its window is smaller and better suited for persistent monitoring.
 
Tdeutils '''replaces the old kdeutils package for KDE3'''.
 
Tdeutils '''replaces the old kdeutils package for KDE3'''.
 +
    
== Tdeutils and Slackware ==
 
== Tdeutils and Slackware ==
   −
Tdeutils is a replacement for kdeutils as a consequence the latter one build script can be used as a template for the former. The build system has not been ported to '''[http://www.cmake.org cmake]''' yet and still relies on '''autotools''', but some updates were anyway needed to '''adapt the kdeutils 3.5 build script to tdeutils'''. Accordingly to the project guidelines '''/opt/trinity''' was configured as root directory for the package instead of '''/usr'''. The source code extracted from the archive lacks some configuration files needed by the build procedure. The missing files were created running command '''make''' in the source code root directory. Last '''a patch was applied''' to '''solve a libtool release inconsistency''' between the source code expected version, 2.2.6, and the Slackware 14.0 installed one: 2.4.2. Some script lines of code and related comments follow.
+
Tdeutils is a replacement for kdeutils as a consequence the latter one build script can be used as a template for the former. The build system has not been ported to '''[http://www.cmake.org cmake]''' yet and still relies on '''autotools''', but some updates were anyway needed to '''adapt the kdeutils 3.5 build script to tdeutils'''. Accordingly to the project guidelines ''/opt/trinity'' was configured as root directory for the package instead of '''/usr'''. The source code extracted from the archive lacks some configuration files needed by the build procedure. The missing files were created running command '''make''' in the source code root directory. Last '''a patch was applied''' to '''solve a libtool release inconsistency''' between the source code expected version, 2.2.6, and the Slackware 14.0 installed one: 2.4.2. Some script lines of code and related comments follow.
    
Some configuration scripts required by the build procedure are missing from the source tarball. We create the makefiles using the make command:
 
Some configuration scripts required by the build procedure are missing from the source tarball. We create the makefiles using the make command:
 +
<syntaxhighlight lang="bash">
 
   # Prepare the package for building (Create the configure script).
 
   # Prepare the package for building (Create the configure script).
 
   echo "(II) admin makefile run here" >> ${OUTPUT}/${PRGNAM}_configure.log
 
   echo "(II) admin makefile run here" >> ${OUTPUT}/${PRGNAM}_configure.log
 
   make -f admin/Makefile.common \
 
   make -f admin/Makefile.common \
 
       2>&1 | tee -a ${OUTPUT}/${PRGNAM}_configure.log
 
       2>&1 | tee -a ${OUTPUT}/${PRGNAM}_configure.log
 +
</syntaxhighlight>
 
A patch is needed to solve a '''libtool''' package version mismatch conflict:
 
A patch is needed to solve a '''libtool''' package version mismatch conflict:
 +
<syntaxhighlight lang="bash">
 
   # Patch the admin/ltmain.sh script in order to solve a version mismatch.
 
   # Patch the admin/ltmain.sh script in order to solve a version mismatch.
 
   patch -p0 -i ${SRCDIR}/ltmain_version_update.patch
 
   patch -p0 -i ${SRCDIR}/ltmain_version_update.patch
 +
</syntaxhighlight>
 
'''The script specifically sets Qt libraries paths''' in order for other scripts to find them at build time:
 
'''The script specifically sets Qt libraries paths''' in order for other scripts to find them at build time:
 +
<syntaxhighlight lang="bash">
 
   # Add temporary paths to handle new libraries during build
 
   # Add temporary paths to handle new libraries during build
 
   export QTDIR=/opt/trinity
 
   export QTDIR=/opt/trinity
Line 46: Line 47:  
   export LD_LIBRARY_PATH=/usr/lib${LIBDIRSUFFIX}:/opt/trinity/lib${LIBDIRSUFFIX}
 
   export LD_LIBRARY_PATH=/usr/lib${LIBDIRSUFFIX}:/opt/trinity/lib${LIBDIRSUFFIX}
 
   export PKG_CONFIG_PATH=:/usr/lib${LIBDIRSUFFIX}/pkgconfig:/opt/trinity/lib${LIBDIRSUFFIX}/pkgconfig:$PKG_CONFIG_PATH
 
   export PKG_CONFIG_PATH=:/usr/lib${LIBDIRSUFFIX}/pkgconfig:/opt/trinity/lib${LIBDIRSUFFIX}/pkgconfig:$PKG_CONFIG_PATH
 +
</syntaxhighlight>
 
Finally the script runs the '''./configure''' command with the proper option list. Option '''--enable-closure''' is the only peculiarity for the package:
 
Finally the script runs the '''./configure''' command with the proper option list. Option '''--enable-closure''' is the only peculiarity for the package:
 +
<syntaxhighlight lang="bash">
 
   # Configure the package
 
   # Configure the package
 
   LDFLAGS="${SLKLDFLAGS}" \
 
   LDFLAGS="${SLKLDFLAGS}" \
Line 60: Line 63:  
       --with-qt-libraries=${PREFIX}/lib${LIBDIRSUFFIX} \
 
       --with-qt-libraries=${PREFIX}/lib${LIBDIRSUFFIX} \
 
       --disable-rpath \
 
       --disable-rpath \
       '''--enable-closure''' \
+
       --enable-closure \
 
       2>&1 | tee -a ${OUTPUT}/${PRGNAM}_configure.log
 
       2>&1 | tee -a ${OUTPUT}/${PRGNAM}_configure.log
 +
</syntaxhighlight>
 
Once the configuration successfully concludes, the script runs the make command then goes on with packaging the software.
 
Once the configuration successfully concludes, the script runs the make command then goes on with packaging the software.
   Line 71: Line 75:     
External Links
 
External Links
 +
 
----
 
----
 +
 
* [http://www.trinitydesktop.org/wiki/bin/view/Developers/HowToBuild TDE build guide]
 
* [http://www.trinitydesktop.org/wiki/bin/view/Developers/HowToBuild TDE build guide]
 
* [http://utils.kde.org KDE Utilities page]
 
* [http://utils.kde.org KDE Utilities page]
Line 78: Line 84:  
----
 
----
   −
Languages: '''English''' - [http://www.giustetti.net/wiki/index.php?title=TDE_tdeutils Italiano]
+
{{footer_en | link_page=TDE_tdeutils}}