Bug 123149
Summary: | RFE: include php-snmp subpackage | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 3 | Reporter: | Sean Scott <seans> |
Component: | distribution | Assignee: | Daniel Riek <riek> |
Status: | CLOSED WONTFIX | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 3.0 | CC: | dff, gpreston, jorton, shillman |
Target Milestone: | --- | Keywords: | FutureFeature |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Enhancement | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2006-08-02 16:36:18 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Sean Scott
2004-05-13 03:03:50 UTC
Thanks for the report. Bug 109697 is the RFE for inclusion of php-devel. Unfortunately, that RFE for the inclusion of php-devel does not seem to do anything about the problem regarding the php-snmp package. We have several systems here (six at the moment) that currently run RH7.3 that make use of the php-snmp package. We currently have eight new servers sitting here that we have installed RHEL3 on with plans of replacing the older servers. And much to my dismay, we can't go through with the installation because the servers are useless without the ability to run the plethera of scripts that make use of PHP's SNMP functions. Has there been any work done on including php-snmp with the RHEL3 Channels, or is this package dropped for good? We had the exact same problem - we really need php-snmp on RHEL3! Best I could manage was to either use one of the recent Fedora php-snmp rpms which seem to work (despite being compiled against a newer PHP version!), or build the shared object one from the non-Red Hat php source: 1. ensure the net-snmp-devel and elfutils-libelf-devel packages are installed 2. get the full 4.3.2 source from http://www.php.net/releases.php 3. go to the ext/snmp directory and run... #phpize #./configure --enable-shared #make #make install this builds just the snmp extension and leaves the rest of your Red Hat php installation alone. Hey presto, you should have a working /usr/lib/php4/snmp.so. Not perfect I know, but needs must... :-) I used the following method to get php-snmp working with 4.3.2-14:
1) Make the required RPM directory structure to rebuild with
useradd -d /home/rpmbuild -m rpmbuild
echo "%_topdir /home/rpmbuild/rpm" > /home/rpmbuild/.rpmmacros
echo "%_tmppath /home/rpmbuild/rpm/tmp"
>> /home/rpmbuild/.rpmmacros
su - rpmbuild
mkdir rpm; cd rpm;
mkdir SPECS SOURCES BUILD RPMS SRPMS tmp
cd ..
2) Download the latest Source RPM (SRPM) from a mirror and rebuild
rpmbuild --recompile php-VERSION.src.rpm
3) Apply php-snmp patch to php.spec file
or
Edit php.spec file by hand
patch rpm/SPECS/php.spec php-snmp.diff
or
vi rpm/SPECS/php.spec
4) Rebuild the SRPM with the new php.spec file
rpmbuild -ba rpm/SPECS/php.spec
5) Install the newly created php-snmp-VERSION.rpm
rpm -i rpm/RPMS/i386/php-snmp-VERSION.ent.i386.rpm
6) Restart Apache
/etc/init.d/httpd restart
================================================
BEGIN php-snmp.diff patch
NOTE: This patch applies to 4.3.2-14 version of
the PHP RPM and may require modification
or rebuilding to work on future versions
================================================
--- php.spec.orig 2004-09-16 08:46:30.000000000 +0200
+++ php.spec 2004-09-16 09:17:46.000000000 +0200
@@ -157,6 +157,18 @@
applications, you will need to install this package and the php
package.
+%package snmp
+Group: Development/Languages
+Requires: php = %{version}-%{release}
+Summary: A module for PHP applications that query SNMP-managed
devices.
+BuildRequires: net-snmp-devel
+
+%description snmp
+The php-snmp package contains a dynamic shared object that will add
+support for querying SNMP devices to PHP. PHP is an HTML-embeddable
+scripting language. If you need SNMP support for PHP applications,
you
+will need to install this package and the php package.
+
%if %{oracle}
%package oci8
Group: Development/Languages
@@ -331,6 +343,7 @@
--enable-dbx \
--enable-dio \
--enable-mcal \
+ --with-snmp=shared \
$* || tail -200 config.log
make %{?_smp_mflags}
@@ -387,7 +400,7 @@
ocimod=oci8
%endif
# Generate files lists and stub .ini files for each subpackage
-for mod in pgsql mysql odbc imap ldap ${ocimod}; do
+for mod in pgsql mysql odbc imap ldap ${ocimod} snmp; do
cat > $RPM_BUILD_ROOT%{_sysconfdir}/php.d/${mod}.ini <<EOF
; Enable ${mod} extension module
extension=${mod}.so
@@ -449,6 +462,8 @@
%files ldap -f files.ldap
+%files snmp -f files.snmp
+
%changelog
* Mon Jul 12 2004 Joe Orton <jorton> 4.3.2-14.ent
- have -devel require php of same release
================================================
END php-snmp.diff patch
================================================
NEEDINFO_PM has been deprecated. Changing status to NEEDINFO and changing ownership to pm manager. After carefully evaluating the benefits from adding this package in an update release versus the additional work, Product Management decided to decline this request. We are planning on adding iptraf to the next major version Red Hat Enterprise Linux 5. Product Management has reviewed and declined this request. You may appeal this decision by reopening this request. |