LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   RHEL3 - how do i make the php-mcrypt rpm (https://www.linuxquestions.org/questions/linux-enterprise-47/rhel3-how-do-i-make-the-php-mcrypt-rpm-467827/)

Ratclaws 07-26-2006 09:02 AM

RHEL3 - how do i make the php-mcrypt rpm
 
Some Info
Using RHEL ES 3.
We decided to upgrade to MySQL 5.0 using mysql's rh3 rpms. This all went perfectly. Obviously we had to recompile the php-mysql rpm to use mysql5. To do this we get the php source using up2date --get-source, and installed the src rpm. Then I looked at the spec file, and commented out pgsql (i didn't see any other way to disable it), and installed whatever other dependancies there were.

The end result gave us a few rpms, one of which was php-mysql. this worked perfectly. In the process however, we managed to break mcrypt. I'm not sure how it broke, as we didn't change any of the base php rpm's, and mcrypt was working for about 1 week. None the less, the php-mcrypt rpm i had to get from a DAG repository. I don't want to keep having to fetch rpm's from random places to stay up2date, nevermind the security risk.

Question
So, how can i create the php-mcrypt-4.3.2-33.rpm? I have the mcrypt libs installed, and i can build php with mcrypt manually, I just can't do it in RPM. I have edited the spec file and tried to mimic what they did to make the php-mysql rpm.. I would think that adding modules would be a common task, especially for php.


with my edited spec file: rpmbuild -bb php.spec
Code:

php = 4.3.2-33.ent
Obsoletes: mod_php3-mysql stronghold-php-mysql
Processing files: php-odbc-4.3.2-33.ent
Provides: config(php-odbc) = 4.3.2-33.ent odbc.so php_database
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: config(php-odbc) = 4.3.2-33.ent libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1.3) libodbc.so.1 libodbcpsql.so.2 php = 4.3.2-33.ent
Obsoletes: stronghold-php-odbc


RPM build errors:
    File not found: /var/tmp/php-root/usr/lib/php4/mcrypt.so


Lenard 07-26-2006 09:28 AM

Think about this you installed php 5 and are attempting to build php-mcrypt which is looking for the shared lib mcrypt.so for php-4.

Maybe you want;

ftp://download.fedora.redhat.com/pub...-3.fc4.src.rpm
ftp://download.fedora.redhat.com/pub...-1.fc5.src.rpm

Ratclaws 07-26-2006 10:31 AM

where did you get php5 from? In the post i said it was 4.3.2 (build 33).

If i move to version 5, then i'll have a lot of code to start digging through, at a very inopportune time. Also, compiling 5 on rhel3 with it's very outdated versions of software will be a nightmare. While i don't mind grabbing thousands of packages and compiling them on gentoo or bsd, in rhel i want to stay compatible with it's rpm system. Otherwise, why bother using rhel at all.


All times are GMT -5. The time now is 02:57 PM.