Attached is a patch to allow "header-only" install without building
the libs. Boost takes a really,really long time to build and many
don't use the libs, just the headers.
Index: config/userspace/packages.lkc
===================================================================
RCS file: /sources/ltib/ltib/config/userspace/packages.lkc,v
retrieving revision 1.44
diff -u -r1.44 packages.lkc
--- config/userspace/packages.lkc 13 Mar 2011 12:04:11 -0000 1.44
+++ config/userspace/packages.lkc 29 Oct 2011 12:09:18 -0000
@@ -245,6 +254,13 @@
help
Boost provides free peer-reviewed portable C++ source libraries.
+config PKG_BOOST_WANT_HEADER_ONLY
+ depends PKG_BOOST
+ bool "boost header only install"
+ default n
+ help
+ Header only option for boost build/install
+
config PKG_BRIDGE_UTILS
depends CAP_HAS_MMU
bool "bridge-utils"
Index: dist/lfs-5.1/boost/boost.spec
===================================================================
RCS file: /sources/ltib/ltib/dist/lfs-5.1/boost/boost.spec,v
retrieving revision 1.4
diff -u -r1.4 boost.spec
--- dist/lfs-5.1/boost/boost.spec 13 Mar 2011 12:04:13 -0000 1.4
+++ dist/lfs-5.1/boost/boost.spec 29 Oct 2011 12:09:18 -0000
@@ -20,31 +20,41 @@
%setup -n %{name}_1_43_0
%Build
-export PATH=$UNSPOOF_PATH
-./bootstrap.sh --prefix=$RPM_BUILD_ROOT/%{pfx}/usr --libdir=$RPM_BUILD_ROOT/%{pfx}/usr/lib
-export PATH=$SPOOF_PATH
-echo "using gcc : $GNUTARCH : ${TOOLCHAIN_PREFIX}g++ ; " > tools/build/v2/user-config.jam
-./bjam -d2 -q \
---toolset=gcc \
---layout=system \
---without-python \
--sZLIB_INCLUDE=$DEV_IMAGE/usr/include \
--sZLIB_LIBPATH=$DEV_IMAGE/usr/lib \
--sBZIP2_INCLUDE=$DEV_IMAGE/usr/include \
--sBZIP2_LIBPATH=$DEV_IMAGE/usr/lib \
-stage
+if [ "$PKG_BOOST_WANT_HEADER_ONLY" = "y" ]
+then
+ echo "Headers only, no build"
+else
+ export PATH=$UNSPOOF_PATH
+ ./bootstrap.sh --prefix=$RPM_BUILD_ROOT/%{pfx}/usr --libdir=$RPM_BUILD_ROOT/%{pfx}/usr/lib
+ export PATH=$SPOOF_PATH
+ echo "using gcc : $GNUTARCH : ${TOOLCHAIN_PREFIX}g++ ; " > tools/build/v2/user-config.jam
+ ./bjam -d2 -q \
+ --toolset=gcc \
+ --layout=system \
+ --without-python \
+ -sZLIB_INCLUDE=$DEV_IMAGE/usr/include \
+ -sZLIB_LIBPATH=$DEV_IMAGE/usr/lib \
+ -sBZIP2_INCLUDE=$DEV_IMAGE/usr/include \
+ -sBZIP2_LIBPATH=$DEV_IMAGE/usr/lib \
+ stage
+fi
%Install
rm -rf $RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT/%{pfx}/usr/
-./bjam -d2 -q \
---toolset=gcc \
---layout=system \
---without-python \
--sZLIB_INCLUDE=$DEV_IMAGE/include \
--sBZIP2_INCLUDE=$DEV_IMAGE/include \
-install
+mkdir -p $RPM_BUILD_ROOT/%{pfx}/usr/include/boost
+if [ "$PKG_BOOST_WANT_HEADER_ONLY" = "y" ]
+then
+ cp -a boost $RPM_BUILD_ROOT/%{pfx}/usr/include/
+else
+ ./bjam -d2 -q \
+ --toolset=gcc \
+ --layout=system \
+ --without-python \
+ -sZLIB_INCLUDE=$DEV_IMAGE/include \
+ -sBZIP2_INCLUDE=$DEV_IMAGE/include \
+ install
+fi
%Clean
Index: ltib
===================================================================
RCS file: /sources/ltib/ltib/ltib,v
retrieving revision 1.75
diff -u -r1.75 ltib
--- ltib 2 Apr 2011 10:56:01 -0000 1.75
+++ ltib 29 Oct 2011 12:09:13 -0000
@@ -5,7 +5,7 @@
$ENV{LANG} = 'C';
######################################################################
#
-# Copyright � Freescale Semiconductor, Inc. 2004-2009. All rights reserved.
+# Copyright � Freescale Semiconductor, Inc. 2004-2009. All rights reserved.
# Copyright (C) Zee2 Ltd, 2009. All rights reserved.
#
# Author: Stuart Hughes, seh at zee2 dot com
@@ -264,6 +264,7 @@
PKG_PPP => [ qw/PKG_PPP_WANT_FILTER/ ],
PKG_SKELL => [ qw/PKG_SKELL_WANT_TERMINFO/ ],
PKG_CAIRO => [ qw/PKG_XORG_SERVER/ ],
+ PKG_BOOST => [ qw/PKG_BOOST_WANT_HEADER_ONLY/ ],
};
# package build dependencies
_______________________________________________
LTIB home page: http://ltib.org
Ltib mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/ltib