Changes

Page updated to new template
Line 1: Line 1: −
Welcome to Simone Giustetti's wiki pages.
+
{{header_en|title=How-to build TDE base packages| keyword={{Template:keyword_en_tde}}| description=Building, installing and configuring working packages for TDE base on Slackware Linux | link_page=TDE_14.0.0_pacchetti_base}}
 
  −
 
  −
Languages: '''English''' - [http://www.giustetti.net/wiki/index.php?title=TDE_14.0.0_pacchetti_base Italiano]
  −
 
  −
----
      
== '''Base Packages''' ==
 
== '''Base Packages''' ==
[[En/trinity_desktop_environment_14.0.0]]
+
[[En/trinity_desktop_environment_14.0.0 | Trinity Desktop Environment 14.0.0]]
    
You built and installed '''TDE prerequisites''' packages it's now time to move on to the real '''desktop environment'''. Being a huge and complex environment its source code is split among several packages, around thirty, depending on its scope and the functions it provides. All main daemons and bulk applications are grouped among two packages only labeled '''base packages''': '''tdelibs''' and '''tdebase'''. The two packages together make up the '''Trinity Desktop Environment''' skeleton and should be installed first. After installing both packages it will be possible to start the desktop environment and test some basic functionality like creating and moving a window, starting an application, but not much more. All of the programs and configuration tools making TDE useful and productive won't be available.
 
You built and installed '''TDE prerequisites''' packages it's now time to move on to the real '''desktop environment'''. Being a huge and complex environment its source code is split among several packages, around thirty, depending on its scope and the functions it provides. All main daemons and bulk applications are grouped among two packages only labeled '''base packages''': '''tdelibs''' and '''tdebase'''. The two packages together make up the '''Trinity Desktop Environment''' skeleton and should be installed first. After installing both packages it will be possible to start the desktop environment and test some basic functionality like creating and moving a window, starting an application, but not much more. All of the programs and configuration tools making TDE useful and productive won't be available.
Line 17: Line 12:  
=== Common Build Script Structure ===
 
=== Common Build Script Structure ===
   −
Code written for the prerequisite packages build scripts was reused as much as possible to maintain a certain degree of homogeneity. Please check the corresponding page for better details: [[TDE_14.0.0_prerequisites#Common_Build_Script_Structure]].
+
Code written for the prerequisite packages build scripts was reused as much as possible to maintain a certain degree of homogeneity. Please check the corresponding page for better details: [[TDE_14.0.0_prerequisites#Common_Build_Script_Structure |Common Build Script Structure]].
    
=== Generic Options ===
 
=== Generic Options ===
   −
Generic options used for both packages uniform to the ones detailed in the [http://www.cmake.org/ cmake] section of the TDE prerequisites page. You are again welcome to check the related page for further details: [[TDE_14.0.0_prerequisites#Generic_Options]].
+
Generic options used for both packages uniform to the ones detailed in the [http://www.cmake.org/ cmake] section of the TDE prerequisites page. You are again welcome to check the related page for further details: [[TDE_14.0.0_prerequisites#Generic_Options |Generic Options]].
    
=== Custom Options ===
 
=== Custom Options ===
Line 41: Line 36:  
The tdebase package includes some '''window managers''': programs that draw application windows on screen. A new window manager was introduced in TDE 14.0.0: '''[https://github.com/chjj/compton Compton]''' that replaces the old,  
 
The tdebase package includes some '''window managers''': programs that draw application windows on screen. A new window manager was introduced in TDE 14.0.0: '''[https://github.com/chjj/compton Compton]''' that replaces the old,  
 
out of support, no more in development '''Kompmgr composition manager''' which once shipped with '''KDE 3'''. Sadly the TDE distributed version of Compton is afflicted by some compile issues making it impossible to build a working binary file. As a temporary work around '''the SlackBuild script removes the Compton dependency''':
 
out of support, no more in development '''Kompmgr composition manager''' which once shipped with '''KDE 3'''. Sadly the TDE distributed version of Compton is afflicted by some compile issues making it impossible to build a working binary file. As a temporary work around '''the SlackBuild script removes the Compton dependency''':
   ( '''cd''' ${TMP}/tmp-${PRGNAM}/${DIR_SRC}; '''sed''' ''-i'' "twin/CMakeLists.txt" ''-e'' "/compton-tde/ s/^/#/" )
+
<syntaxhighlight lang="bash">
 +
   ( cd ${TMP}/tmp-${PRGNAM}/${DIR_SRC}; sed -i "twin/CMakeLists.txt" -e "/compton-tde/ s/^/#/" )
 +
</syntaxhighlight>
 
Therefore the window manager '''won't be built'''.  
 
Therefore the window manager '''won't be built'''.  
   Line 47: Line 44:     
To configure and build the package recurring to [http://www.cmake.org/ cmake] a lot of parameters are required. A likely command line should look something like:
 
To configure and build the package recurring to [http://www.cmake.org/ cmake] a lot of parameters are required. A likely command line should look something like:
   '''cmake''' ${TMP}/tmp''-${PRGNAM}/${DIR_SRC} \
+
<syntaxhighlight lang="bash">
       ''-DCMAKE_C_FLAGS:STRING=''"${SLKCFLAGS}" \
+
   cmake ${TMP}/tmp-${PRGNAM}/${DIR_SRC} \
       ''-DCMAKE_CXX_FLAGS:STRING=''"${SLKCFLAGS} $DEBUG_CMAKE_OPT" \
+
       -DCMAKE_C_FLAGS:STRING="${SLKCFLAGS}" \
       ''-DCMAKE_INSTALL_PREFIX=''${PREFIX} \
+
       -DCMAKE_CXX_FLAGS:STRING="${SLKCFLAGS} $DEBUG_CMAKE_OPT" \
       ''-DCMAKE_SKIP_RPATH=''"OFF" \
+
       -DCMAKE_INSTALL_PREFIX=${PREFIX} \
       ''-DLIB_SUFFIX=''${LIBDIRSUFFIX} \
+
       -DCMAKE_SKIP_RPATH="OFF" \
       ''-DMAN_INSTALL_DIR=''${MANDIR} \
+
       -DLIB_SUFFIX=${LIBDIRSUFFIX} \
       ''-DSYSCONF_INSTALL_DIR=''${SYSCONFDIR} \
+
       -DMAN_INSTALL_DIR=${MANDIR} \
       ''-DBUILD_CRASHTEST=''ON \
+
       -DSYSCONF_INSTALL_DIR=${SYSCONFDIR} \
       ''-DWITH_ARTS=''ON \
+
       -DBUILD_CRASHTEST=ON \
       ''-DWITH_HAL=''OFF \
+
       -DWITH_ARTS=ON \
       ''-DWITH_LDAP=''ON \
+
       -DWITH_HAL=OFF \
       ''-DWITH_LIBRAW1394=''ON \
+
       -DWITH_LDAP=ON \
       ''-DWITH_OPENEXR=''ON \
+
       -DWITH_LIBRAW1394=ON \
       ''-DWITH_PAM=''OFF \
+
       -DWITH_OPENEXR=ON \
       ''-DWITH_GCC_VISIBILITY=''OFF \
+
       -DWITH_PAM=OFF \
       ''-DWITH_SAMBA=''ON \
+
       -DWITH_GCC_VISIBILITY=OFF \
       ''-DWITH_SASL=''ON \
+
       -DWITH_SAMBA=ON \
       ''-DWITH_SHADOW=''ON \
+
       -DWITH_SASL=ON \
       ''-DWITH_TDEHWLIB=''ON \
+
       -DWITH_SHADOW=ON \
       ''-DWITH_USBIDS=''"/usr/share/hwdata/usb.ids" \
+
       -DWITH_TDEHWLIB=ON \
       ''-DWITH_XCOMPOSITE=''ON \
+
       -DWITH_USBIDS="/usr/share/hwdata/usb.ids" \
       ''-DWITH_XCURSOR=''ON \
+
       -DWITH_XCOMPOSITE=ON \
       ''-DWITH_XDAMAGE=''ON \
+
       -DWITH_XCURSOR=ON \
       ''-DWITH_XDMCP=''ON \
+
       -DWITH_XDAMAGE=ON \
       ''-DWITH_XEXT=''ON \
+
       -DWITH_XDMCP=ON \
       ''-DWITH_XFIXES=''ON \
+
       -DWITH_XEXT=ON \
       ''-DWITH_XINERAMA=''ON \
+
       -DWITH_XFIXES=ON \
       ''-DWITH_XRANDR=''ON \
+
       -DWITH_XINERAMA=ON \
       ''-DWITH_XRENDER=''ON \
+
       -DWITH_XRANDR=ON \
       ''-DWITH_XTEST=''ON \
+
       -DWITH_XRENDER=ON \
       ''-DBUILD_ALL=''ON
+
       -DWITH_XTEST=ON \
 +
       -DBUILD_ALL=ON
 +
</syntaxhighlight>
    
After compiling the source code and installing the obtained binary files some tasks need taking care of: adding scripts, configuration files and some more stuff needed by the environment to work flawlessly:
 
After compiling the source code and installing the obtained binary files some tasks need taking care of: adding scripts, configuration files and some more stuff needed by the environment to work flawlessly:
 +
<syntaxhighlight lang="bash">
 
   # Add some configuration files / scripts needed by TDE.
 
   # Add some configuration files / scripts needed by TDE.
 
   mkdir -p ${PKG}/etc/trinity
 
   mkdir -p ${PKG}/etc/trinity
Line 117: Line 117:  
   cat ${SRCDIR}/xinit/xwmconfig > ${PKG}/usr/bin/xwmconfig.new
 
   cat ${SRCDIR}/xinit/xwmconfig > ${PKG}/usr/bin/xwmconfig.new
 
   chmod +x ${PKG}/usr/bin/xwmconfig.new
 
   chmod +x ${PKG}/usr/bin/xwmconfig.new
 +
</syntaxhighlight>
    
A compressed archive containing the SlackBuild script and the related configuration files can be downloaded from the following [http://www.giustetti.net/resource/slackbuild/tde/1400/tdebase.tar.gz link].
 
A compressed archive containing the SlackBuild script and the related configuration files can be downloaded from the following [http://www.giustetti.net/resource/slackbuild/tde/1400/tdebase.tar.gz link].
Line 136: Line 137:     
To configure the source code, please run [http://www.cmake.org/ cmake] passing it the '''-DCMAKE_SKIP_RPATH''' option and some other useful parameters:
 
To configure the source code, please run [http://www.cmake.org/ cmake] passing it the '''-DCMAKE_SKIP_RPATH''' option and some other useful parameters:
   '''cmake''' ${TMP}/tmp-${PRGNAM}/${DIR_SRC} \
+
<syntaxhighlight lang="bash">
       ''-DCMAKE_C_FLAGS:STRING=''"${SLKCFLAGS}" \
+
   cmake ${TMP}/tmp-${PRGNAM}/${DIR_SRC} \
       ''-DCMAKE_CXX_FLAGS:STRING=''"${SLKCFLAGS} $DEBUG_CMAKE_OPT" \
+
       -DCMAKE_C_FLAGS:STRING="${SLKCFLAGS}" \
       ''-DCMAKE_INSTALL_PREFIX=''${PREFIX} \
+
       -DCMAKE_CXX_FLAGS:STRING="${SLKCFLAGS} $DEBUG_CMAKE_OPT" \
       ''-DCMAKE_SKIP_RPATH=''"OFF" \
+
       -DCMAKE_INSTALL_PREFIX=${PREFIX} \
       ''-DLIB_SUFFIX=''${LIBDIRSUFFIX} \
+
       -DCMAKE_SKIP_RPATH="OFF" \
       ''-DMAN_INSTALL_DIR=''${MANDIR} \
+
       -DLIB_SUFFIX=${LIBDIRSUFFIX} \
       ''-DSYSCONF_INSTALL_DIR=''${SYSCONFDIR} \
+
       -DMAN_INSTALL_DIR=${MANDIR} \
       ''-DBUILD_ALL=''ON
+
       -DSYSCONF_INSTALL_DIR=${SYSCONFDIR} \
 +
       -DBUILD_ALL=ON
 +
</syntaxhighlight>
 
Then run the '''make''' command.
 
Then run the '''make''' command.
   Line 168: Line 171:  
----
 
----
   −
Languages: '''English''' - [http://www.giustetti.net/wiki/index.php?title=TDE_14.0.0_pacchetti_base Italiano]
+
{{footer_en | link_page=TDE_14.0.0_pacchetti_base}}