LibXSLT

From CBLFS
Revision as of 22:55, 11 January 2007 by Kalessin (talk | contribs) (I added a note about the test suite.)
Jump to navigationJump to search
Download Source: ftp://xmlsoft.org/libxml2/libxslt-1.1.28.tar.gz
Required Patch: http://svn.cross-lfs.org/svn/repos/patches/libxslt/libxslt-1.1.28-segfault-1.patch

Introduction to LibXSLT

<Package Description Needed>

Dependencies

Required

Optional

Test Suite Notes

If you wish to run the 32-bit test suites in a 64-bit environment (i.e. the 32Bit and N32 sections), you need to use make USE_ARCH=32 check. If you do not include USE_ARCH=32, then the Python tests will fail.

Non-Multilib

Compile the package:

patch -Np1 -i ../libxslt-1.1.28-segfault-1.patch &&
./configure --prefix=/usr &&
make

Install the package

make install

Multilib

32Bit

Compile the package:

patch -Np1 -i ../libxslt-1.1.28-segfault-1.patch &&
CC="gcc ${BUILD32}" USE_ARCH=32 ./configure --prefix=/usr &&
make

Install the package

make install &&
mv -v /usr/bin/xslt-config{,-32}

N32

Compile the package:

patch -Np1 -i ../libxslt-1.1.28-segfault-1.patch &&
CC="gcc ${BUILDN32}" USE_ARCH=n32 ./configure --prefix=/usr \
    --libdir=/usr/lib32 &&
make

Install the package

make install &&
mv -v /usr/bin/xslt-config{,-n32}

64Bit

Compile the package:

patch -Np1 -i ../libxslt-1.1.28-segfault-1.patch &&
CC="gcc ${BUILD64}" USE_ARCH=64 ./configure --prefix=/usr \
    --libdir=/usr/lib64 &&
make

Install the package

make install &&
mv -v /usr/bin/xslt-config{,-64} &&
ln -sfv multiarch_wrapper /usr/bin/xslt-config

Contents

Installed Programs: xslt-config and xsltproc
Installed Libraries: libexslt.{so,a}, libxslt.{so,a} and optionally, libxsltmod.{so,a} Python modules
Installed Directories: /usr/include/lib{e}xslt, /usr/lib/libxslt-plugins, /usr/share/doc/libxslt-1.1.28, and /usr/share/doc/libxslt-python-1.1.28

Short Descriptions

xslt-config is used to find out the pre-processor, linking and compiling flags necessary to use the libxslt libraries in 3rd-party programs.
xsltproc is used to apply XSLT stylesheets to XML documents.
libxslt.{so,a} provides extensions to the libxml2 libraries to parse files that use the XSLT format.
libexslt.{so,a} is used to provide extensions to XSLT functions.