PHP iconv extension

2004-01-23 Thread Stuart Bingë
Hi there,

Attached are two patches, one for apache.spec and one for php.spec, from the 
OpenPKG-current packages apache-1.3.29-20040121.src.rpm and 
php-4.3.4-20040121.src.rpm, respectively.

These are simple patches that enable support for PHPs iconv extension for each 
package - they add a new with_XXX variable, and the relevant PHP 
./configure flag if the variable is set.

Hope this can be of some help to the project.

Regards,

-- 
Stuart Bingë
Code Fusion cc. http://www.codefusion.co.za/
Tel: +27 11 391 1412
Mobile: +27 83 298 9727
Email: [EMAIL PROTECTED]
--- php-old.spec	2004-01-23 09:16:56.0 +0200
+++ php.spec	2004-01-23 09:27:20.0 +0200
@@ -68,6 +68,7 @@
 %option   with_versioningno
 %option   with_pear  no
 %option   with_snmp  no
+%option   with_iconv no
 
 #   fixing implicit extension dependencies and correlations
 %if %{with_pear} == yes
@@ -364,6 +365,9 @@
 %if %{with_snmp} == yes
 --with-snmp=%{l_prefix} \
 %endif
+%if %{with_iconv} == yes
+--with-iconv=%{l_prefix} \
+%endif
 --enable-cli \
 --enable-cgi \
 --enable-force-cgi-redirect \
--- apache-old.spec	2004-01-23 10:18:35.0 +0200
+++ apache.spec	2004-01-23 10:19:26.0 +0200
@@ -131,6 +131,7 @@
 %option   with_mod_php_mbstring no
 %option   with_mod_php_pear no
 %option   with_mod_php_exif no
+%option   with_mod_php_iconvno
 
 #   package options (optional PHP3 specific settings; requires with_mod_php3)
 %option   with_mod_php3_ftp no
@@ -691,6 +692,9 @@
 %if %{with_mod_php_exif} == yes
   --with-exif \
 %endif
+%if %{with_mod_php_iconv} == yes
+  --with-iconv=%{l_prefix} \
+%endif
 %if %{with_mod_php_pear} == yes
   --enable-cli \
   --with-pear \


apache-1.3.29-20031231 mod_auth_ldap problem

2004-01-06 Thread Stuart Bingë
Hi there,

When compiling the latest Apache source rpm (apache-1.3.29-20031231.src.rpm) 
from OpenPKG-current, with '--define with_mod_auth_ldap yes' specified, the 
rpm build exits with the following error:

snip
+ cd mod_auth_ldap
rpm-tmp: line 53: cd: mod_auth_ldap: No such file or directory
+ cp mod_auth_ldap.c ../apache_1.3.29/src/modules/extra/
cp: cannot stat `mod_auth_ldap.c': No such file or directory
+ exit 1
error: Bad exit status from rpm-tmp (%build)
/snip

As far as I can tell the problem lies with the mod_auth_ldap.tar.gz archive 
included in the Apache source rpm - this archive extracts its contents to a 
'modauthldap' subdirectory, however apache.spec looks for the files in a 
'mod_auth_ldap' subdirectory (note the underscores), which consequently does 
not exist.

The mod_auth_ldap.tar.gz archive obtained from mod_auth_ldap's source 
(http://www.muquit.com/muquit/software/mod_auth_ldap/mod_auth_ldap.tar.gz) 
extracts to the correct 'mod_auth_ldap' subdirectory, so I'm guessing the 
problem lies with an invalid mod_auth_ldap.tar.gz included in the source rpm?

Regards,
Stuart Bingë

__
The OpenPKG Projectwww.openpkg.org
User Communication List  [EMAIL PROTECTED]


Re: OpenPKG-current Apache RPM: PHP PEAR include directories broken ***SOLVED***

2003-12-17 Thread Stuart Bingë
As far as I can tell I've solved the problem, so I thought I'd post the 
solution here for discussion...

This one-line patch modifies apache.spec from the OpenPKG-current apache 
source rpm (apache-1.3.29-20031128.src.rpm). The problem arises when 
'make install'ing the php package, where currently the 'prefix' variable 
is overwritten to point to the temporary RPM install directory. The 
'prefix' variable is however also set when ./configure'ing, which is 
where it is supposed to be set. The correct variable to change when 
'make install'ing is INSTALL_ROOT - this can be set to the temporary RPM 
install directory and does not end up modifying the relevant PHP scripts 
which continue to use the previously defined 'prefix' variable.

There may be other places where this fix could be applied (e.g. the PHP3 
package), however as I only needed the PHP4 package it is the only one I 
fixed in the spec file.

Regards,
Stuart Bingë
--- apache.spec.old	2003-12-17 12:02:26.536340576 +0200
+++ apache.spec	2003-12-17 12:02:48.292033208 +0200
@@ -688,7 +688,7 @@
   -e s;^\\(PEAR_INSTALLDIR = \\)\\(%{l_prefix}\\);\\1$RPM_BUILD_ROOT\\2; \
   config_vars.mk
   %{l_make} %{l_mflags} install \
-  prefix=$RPM_BUILD_ROOT%{l_prefix}
+  INSTALL_ROOT=$RPM_BUILD_ROOT
 ) || exit $?
 %endif