[packages/fcgi] Up to 2.4.7

arekm arekm at pld-linux.org
Sun Nov 29 18:00:50 CET 2026


commit 3e1147c055254994a1bfb5de2aa6383a4ce2bdcb
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Nov 27 17:36:31 2026 +0100

    Up to 2.4.7
    
    Fixes CVE-2012-6687.

 fcgi-includes.patch       | 10 ----------
 fcgi-listen-backlog.patch |  4 ++--
 fcgi-no-libs.patch        |  7 ++++---
 fcgi-pc-includedir.patch  | 23 +++++++++++++++++++++++
 fcgi.spec                 | 32 +++++++++++++++++---------------
 5 files changed, 46 insertions(+), 30 deletions(-)
---
diff --git a/fcgi.spec b/fcgi.spec
index 43b5441..3a9aa9a 100644
--- a/fcgi.spec
+++ b/fcgi.spec
@@ -1,16 +1,16 @@
 Summary:	FastCGI development kit - shared libraries
 Summary(pl.UTF-8):	Zestaw dla programistów FastCGI - biblioteki współdzielone
 Name:		fcgi
-Version:	2.4.0
-Release:	5
+Version:	2.4.7
+Release:	1
 License:	distributable
 Group:		Libraries
-Source0:	http://www.fastcgi.com/dist/%{name}-%{version}.tar.gz
-# Source0-md5:	d15060a813b91383a9f3c66faf84867e
+Source0:	https://github.com/FastCGI-Archives/fcgi2/archive/%{version}/%{name}2-%{version}.tar.gz
+# Source0-md5:	063d6186074c9106d24e2301b46b03fb
 Patch0:		%{name}-no-libs.patch
 Patch1:		%{name}-listen-backlog.patch
-Patch2:		%{name}-includes.patch
-URL:		http://www.fastcgi.com/
+Patch2:		%{name}-pc-includedir.patch
+URL:		https://fastcgi-archives.github.io/
 BuildRequires:	autoconf
 BuildRequires:	automake
 BuildRequires:	libtool >= 2:1.4d-3
@@ -84,7 +84,7 @@ FastCGI static library.
 Statyczna biblioteka FastCGI.
 
 %prep
-%setup -q
+%setup -q -n %{name}2-%{version}
 %patch -P0 -p1
 %patch -P1 -p1
 %patch -P2 -p1
@@ -92,16 +92,14 @@ Statyczna biblioteka FastCGI.
 %build
 # supplied libtool is broken (relink, C++)
 %{__libtoolize}
-%{__aclocal}
+install -d m4
+%{__aclocal} -I m4
 %{__autoconf}
+%{__autoheader}
 %{__automake}
 
 CPPFLAGS="-DLISTEN_BACKLOG=1024"
-%configure \
-	--with-global \
-	--with-noassert \
-	--with-nodebug \
-	--with-notest
+%configure
 
 # parallel build broken: library is searched before it's built
 %{__make} -j1
@@ -123,20 +121,24 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README LICENSE.TERMS doc/*.1
+%doc README.md LICENSE
 %attr(755,root,root) %{_bindir}/cgi-fcgi
 %attr(755,root,root) %{_libdir}/libfcgi.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/libfcgi.so.0
 %attr(755,root,root) %{_libdir}/libfcgi++.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/libfcgi++.so.0
+%{_mandir}/man1/cgi-fcgi.1*
 
 %files devel
 %defattr(644,root,root,755)
-%doc doc/*.htm* doc/*.gif doc/fastcgi-* doc/*.3
+%doc doc/*.htm* doc/*.gif doc/fastcgi-*
 %attr(755,root,root) %{_libdir}/libfcgi.so
 %attr(755,root,root) %{_libdir}/libfcgi++.so
 %{_libdir}/libfcgi.la
 %{_libdir}/libfcgi++.la
+%{_pkgconfigdir}/fcgi.pc
+%{_pkgconfigdir}/fcgi++.pc
+%{_mandir}/man3/FCGI_*.3*
 %{_includedir}
 %{_examplesdir}/%{name}-%{version}
 
diff --git a/fcgi-includes.patch b/fcgi-includes.patch
deleted file mode 100644
index c1ae73a..0000000
--- a/fcgi-includes.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- fcgi-2.4.0/libfcgi/fcgio.cpp.orig	2002-02-24 21:12:22.000000000 +0100
-+++ fcgi-2.4.0/libfcgi/fcgio.cpp	2012-01-21 14:56:28.110884937 +0100
-@@ -23,6 +23,7 @@
- #endif
- 
- #include <limits.h>
-+#include <stdio.h>
- #include "fcgio.h"
- 
- using std::streambuf;
diff --git a/fcgi-listen-backlog.patch b/fcgi-listen-backlog.patch
index 4c9443f..0ab4ad2 100644
--- a/fcgi-listen-backlog.patch
+++ b/fcgi-listen-backlog.patch
@@ -1,8 +1,8 @@
 This patch allows compile time define for listen backlog.
 Defaults to previous behaviour: 5
 
---- fcgi-2.4.0/cgi-fcgi/cgi-fcgi.c~	2001-09-01 03:14:28.000000000 +0200
-+++ fcgi-2.4.0/cgi-fcgi/cgi-fcgi.c	2005-05-09 18:09:17.000000000 +0300
+--- fcgi2-2.4.7/cgi-fcgi/cgi-fcgi.c~	2001-09-01 03:14:28.000000000 +0200
++++ fcgi2-2.4.7/cgi-fcgi/cgi-fcgi.c	2005-05-09 18:09:17.000000000 +0300
 @@ -52,6 +52,9 @@
  #include "fastcgi.h"
  #include "fcgios.h"
diff --git a/fcgi-no-libs.patch b/fcgi-no-libs.patch
index ed65622..6d3284e 100644
--- a/fcgi-no-libs.patch
+++ b/fcgi-no-libs.patch
@@ -1,6 +1,7 @@
---- fcgi-2.4.0/configure.in.orig	2003-01-19 18:19:41.000000000 +0100
-+++ fcgi-2.4.0/configure.in	2003-05-10 23:54:21.000000000 +0200
-@@ -45,8 +45,8 @@
+# upstream links -lnsl/-lsocket unconditionally when the libraries exist; only link them if needed
+--- fcgi2-2.4.7.orig/configure.ac
++++ fcgi2-2.4.7/configure.ac
+@@ -47,8 +47,8 @@
  
  AC_LANG([C])
  
diff --git a/fcgi-pc-includedir.patch b/fcgi-pc-includedir.patch
new file mode 100644
index 0000000..6b4a927
--- /dev/null
+++ b/fcgi-pc-includedir.patch
@@ -0,0 +1,23 @@
+# .pc files hardcode ${exec_prefix}/include, but PLD installs headers in %{_includedir}/fastcgi
+--- fcgi2-2.4.7.orig/fcgi.pc.in
++++ fcgi2-2.4.7/fcgi.pc.in
+@@ -1,7 +1,7 @@
+ prefix=@prefix@
+ exec_prefix=@exec_prefix@
+ libdir=@libdir@
+-includedir=${exec_prefix}/include
++includedir=@includedir@
+ 
+ Name: fcgi
+ Description: FastCGI Developer's Kit
+--- fcgi2-2.4.7.orig/fcgi++.pc.in
++++ fcgi2-2.4.7/fcgi++.pc.in
+@@ -1,7 +1,7 @@
+ prefix=@prefix@
+ exec_prefix=@exec_prefix@
+ libdir=@libdir@
+-includedir=${exec_prefix}/include
++includedir=@includedir@
+ 
+ Name: fcgi
+ Description: FastCGI C++ Developer's Kit
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/fcgi.git/commitdiff/3e1147c055254994a1bfb5de2aa6383a4ce2bdcb



More information about the pld-cvs-commit mailing list