Re: rpm php with mhash support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 22-Jul-04, at 1:15 PM, Michael Schwendt wrote:

On Thu, 22 Jul 2004 13:07:23 -0700, Paul Wolstenholme wrote:


On 22-Jul-04, at 12:53 PM, Alexander Dalloz wrote:

Am Do, den 22.07.2004 schrieb Paul Wolstenholme um 21:49:

I hope this isn't too off topic for this list. I am trying to install
php with mhash support from the rpm source file. However,


"rpmbuild -ba --define 'with-mhash 1' php.spec"

That is not enough. Have you closely looked at the PHP spec file?

I did but I am a bit of an rpm newbie.


Fails with the following error:

RPM build errors:
     Could not open %files file
/home/wolstena/rpm/BUILD/php-4.3.6/files.mhash: No such file or
directory


What the heck am I doing wrong?

From error above you will have to properly edit the PHP spec file, at least in the %files section.


I looked at the file section and it looked ok to me:

if %{with_mhash}
%files mhash -f files.mhash
%endif

But apparently, the "files.mhash" file was not created anywhere in the %install section.

I thought that this would have taken care of that:

# Generate files lists and stub .ini files for each subpackage
for mod in pgsql mysql odbc ldap snmp domxml xmlrpc imap \
    %{?_with_oci8:oci8} %{?_with_mssql:mssql} %{?_with_mhash:mhash}; do
    cat > $RPM_BUILD_ROOT%{_sysconfdir}/php.d/${mod}.ini <<EOF
; Enable ${mod} extension module
extension=${mod}.so
EOF
    cat > files.${mod} <<EOF
%attr(755,root,root) %{_libdir}/php4/${mod}.so
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/php.d/${mod}.ini
EOF
done





--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux