Hi,
I'm getting the following error when rebuilding php:
+ install -m 755 -s modules/mysql.so
/var/tmp/php-root/usr/lib/php/extensions/
+ install -m 755 -s imap.so /var/tmp/php-root/usr/lib/php/extensions/
+ install -m 755 -s ldap.so /var/tmp/php-root/usr/lib/php/extensions/
+ install -m 755 -s gd.so /var/tmp/php-root/usr/lib/php/extensions/
+ install -m 644 /users/cooker/RPM/SOURCES/php.ini
/var/tmp/php-root/etc/httpd/conf/php.ini
+ install -m 644 php4.gif /var/tmp/php-root/var/www/icons
+ install -m 644 /users/cooker/RPM/SOURCES/php.conf
/var/tmp/php-root/etc/httpd/conf/addon-modules/php.conf
+ install -m 644 php4.gif '/var/tmp/php-root%{contentdir}/icons/'
install: cannot create regular file
`/var/tmp/php-root%{contentdir}/icons/': No
such file or directory
Bad exit status from /var/tmp/rpm-tmp.54697 (%install)
the .spec file contains the following:
mkdir -p $RPM_BUILD_ROOT%{_bindir}
install -m 755 -s php_standalone $RPM_BUILD_ROOT%{_bindir}/php
install -m 755 -s .libs/libphp4.so $RPM_BUILD_ROOT%{_libdir}/apache/
install -m 755 -s pgsql.so $RPM_BUILD_ROOT%{phpdir}/extensions/
install -m 755 -s modules/mysql.so $RPM_BUILD_ROOT%{phpdir}/extensions/
install -m 755 -s imap.so $RPM_BUILD_ROOT%{phpdir}/extensions/
install -m 755 -s ldap.so $RPM_BUILD_ROOT%{phpdir}/extensions/
install -m 755 -s gd.so $RPM_BUILD_ROOT%{phpdir}/extensions/
install -m 644 %{SOURCE6} $RPM_BUILD_ROOT%{apachebase}/conf/php.ini
install -m 644 *.gif $RPM_BUILD_ROOT%{apacheroot}/icons
install -m 644 %{SOURCE5}
$RPM_BUILD_ROOT%{apachebase}/conf/addon-modules/php.conf
install -m 644 *.gif $RPM_BUILD_ROOT%{contentdir}/icons/
^^^^^^^^^^^^^
is the only reference of %{contentdir} in the whole .spec file.
2 lines above it, the same *.gif files are copied to
$RPM_BUILD_ROOT%{apacheroot}/icons.
I've rebuilt the package with the %{contentdir} line commented out, and
it works.
Now, what puzzels me is that in the current cooker packages (got from
the sunet mirror) no gif files are distributed:
[stefan@stefan RPMS]$ pwd
/mirrors/cooker/Mandrake/RPMS
[stefan@stefan RPMS]$ ls *php-*
mod_php-4.0.1pl2-4mdk.i586.rpm
mod_php-pgsql-4.0.1pl2-4mdk.i586.rpm
mod_php-gd-4.0.1pl2-4mdk.i586.rpm php-4.0.1pl2-4mdk.i586.rpm
mod_php-imap-4.0.1pl2-4mdk.i586.rpm php-devel-4.0.1pl2-4mdk.i586.rpm
mod_php-ldap-4.0.1pl2-4mdk.i586.rpm php-manual-4.0.1pl2-4mdk.i586.rpm
mod_php-mysql-4.0.1pl2-4mdk.i586.rpm
php-standalone-4.0.1pl2-4mdk.i586.rpm
[stefan@stefan RPMS]$ rpm -qipl *php-* | grep gif
/usr/share/doc/php-manual-4.0.1pl2/function.imagecreatefromgif.html
/usr/share/doc/php-manual-4.0.1pl2/function.imagegif.html
/usr/share/doc/php-manual-4.0.1pl2/function.pdf-open-gif.html
In the build direcotory I could only find: php4.gif, but it's in none of
the packages. In the $RPM_BUILD_DIR I can finf php4.gif in
./var/www/icons/php4.gif ... Hmmm... is this fishy, or what?
Anyway, apply the following patch to the .spec file and it will build...
What to do with the .gif file? good question.
Off Topic: Personally I'd prefer to move the wwwroot out of the /home
arena. Having it in /home messes up my automounter (webdirectories don't
like to be automounted, esspecially if the source is on the same system
--> it gets softlinked). I've now got my homedirs in /users, which also
works fine... Of course moving the wwwroot out of /home will break the
redhat compatibility. What does FHS say about this?
Stefan
--- php.spec.orig Sun Aug 13 21:39:05 2000
+++ php.spec Sun Aug 13 22:09:18 2000
@@ -5,7 +5,7 @@
Summary(fr): Le langage de script PHP4
Name: php
Version: 4.0.1pl2
-Release: 4mdk
+Release: 5mdk
Group: Development/Languages
Source0: http://www.php.net/distributions/php-%{version}.tar.bz2
@@ -311,7 +311,7 @@
install -m 644 %{SOURCE6} $RPM_BUILD_ROOT%{apachebase}/conf/php.ini
install -m 644 *.gif $RPM_BUILD_ROOT%{apacheroot}/icons
install -m 644 %{SOURCE5} $RPM_BUILD_ROOT%{apachebase}/conf/addon-modules/php.conf
-install -m 644 *.gif $RPM_BUILD_ROOT%{contentdir}/icons/
+#install -m 644 *.gif $RPM_BUILD_ROOT%{contentdir}/icons/
cd pear
perl -pi -e "s|\@PREFIX\@|/usr|g;" php*.in
perl -pi -e "s|\@PHPINCLUDEDIR\@|%{_includedir}/php|g;" php*.in
@@ -504,6 +504,9 @@
%doc SELF-CONTAINED-EXTENSIONS
%changelog
+* Sun Aug 13 2000 Stefan van der Eijk <[EMAIL PROTECTED]> 4.0.1p12-5mdk
+- commented out contendir entry (seems to be duplicate)
+
* Wed Aug 9 2000 Jean-Michel Dault <[EMAIL PROTECTED]> 4.0.1pl2-4mdk
- Compile with latest MySQL
- Changed paths for FHS