Attached is a patch to add fcgi to ltib.  This package gave me a bit
of trouble.  Turned out it setting FS_DEBUG would cause the build to
fail, so there is a unset for it in Build.  The unset only lasts for
that operation and is still present in the rest of the processing.

Source location:
http://www.fastcgi.com/dist/fcgi-2.4.0.tar.gz
Index: config/userspace/packages.lkc
===================================================================
RCS file: /sources/ltib/ltib/config/userspace/packages.lkc,v
retrieving revision 1.45
diff -u -r1.45 packages.lkc
--- config/userspace/packages.lkc	31 Oct 2011 20:34:42 -0000	1.45
+++ config/userspace/packages.lkc	5 Nov 2011 11:51:20 -0000
@@ -759,6 +759,13 @@
       The fbv program allows displaying images on a framebuffer.
       Supported image formats include png, jpeg and bmp.
 
+config PKG_FCGI
+    bool "fcgi"
+    help
+      An open extension to CGI that provides high performance for 
+      all Internet applications without any of the limitations of 
+      existing Web server APIs.
+
 config PKG_FFMPEG
     depends CAP_HAS_MMU
     bool "ffmpeg"
Index: config/userspace/pkg_map
===================================================================
RCS file: /sources/ltib/ltib/config/userspace/pkg_map,v
retrieving revision 1.29
diff -u -r1.29 pkg_map
--- config/userspace/pkg_map	13 Nov 2010 19:15:45 -0000	1.29
+++ config/userspace/pkg_map	5 Nov 2011 11:51:20 -0000
@@ -305,6 +305,7 @@
 PKG_LIBXML_PLUS_PLUS             = libxml++
 PKG_JSON_C                       = json-c
 PKG_DBG                          = dbg
+PKG_FCGI                         = fcgi
 PKG_CGICC                        = cgicc
 PKG_GIFLIB                       = giflib
 PKG_LIGHTTPD                     = lighttpd
Index: dist/lfs-5.1/fcgi/fcgi.spec
===================================================================
RCS file: dist/lfs-5.1/fcgi/fcgi.spec
diff -N dist/lfs-5.1/fcgi/fcgi.spec
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ dist/lfs-5.1/fcgi/fcgi.spec	1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,42 @@
+%define pfx /opt/freescale/rootfs/%{_target_cpu}
+
+Summary         : FastCGI development kit
+Name            : fcgi
+Version         : 2.4.0
+Release         : 1
+License         : Open Market
+Vendor          : Adtec, Inc.
+Packager        : Mike Goins
+Group           : Development/Languages
+URL             : http://www.fastcgi.com
+Source          : %{name}-%{version}.tar.gz
+Patch1          : fcgi-2.4.0-header_inc.patch
+BuildRoot       : %{_tmppath}/%{name}
+Prefix          : %{pfx}
+
+%Description
+%{summary}
+An open extension to CGI that provides high performance for all Internet 
+applications without any of the limitations of existing Web server APIs.
+
+%Prep
+%setup
+%patch1 -p1 
+
+%Build
+# FS_DEBUG may cause build to fail.
+unset FS_DEBUG 
+./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build}
+
+
+%Install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT/%{pfx}
+find $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/lib/ -name "*.la" | xargs rm -f
+
+%Clean
+rm -rf $RPM_BUILD_ROOT
+
+%Files
+%defattr(-,root,root)
+%{pfx}/*
_______________________________________________
LTIB home page: http://ltib.org

Ltib mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/ltib

Reply via email to