← Back to team overview

ius-coredev team mailing list archive

Re: [Question #172877]: Build php-5.3.x.u-interbase?

 

Hello Peter,

Thank you for your time,

I believe you edited the spec correctly as interbase is attempting to installed,
however I figured I would be absolutely sure (below is the config needed for SPEC):

  # %%define _with_interbase   0

  http://bazaar.launchpad.net/~ius-coredev/ius/php53u/view/head:/SPECS/php53u.spec#L28

The error you posted below makes be believe firebird is not installed:

+ --with-interbase=shared,/usr/lib/firebird --with-pdo-firebird=shared,/usr/lib/firebird
/var/tmp/rpm-tmp.98059: line 174: --with-interbase=shared,/usr/lib/firebird: No such file or directory

Since Mock installs a custom chrooted environment, packages installed on your system will not be
automatically pulled in (I believe this is you running yum list installed on your system and not the Mock environment):

yum list installed | grep firebird
firebird-devel.i386                      2.1.4.18393.0-1.el5           installed
firebird-devel.x86_64                    2.1.4.18393.0-1.el5           installed
firebird-filesystem.x86_64               2.1.4.18393.0-1.el5           installed
firebird-libfbclient.x86_64              2.1.4.18393.0-1.el5           installed
firebird-libfbembed.x86_64               2.1.4.18393.0-1.el5           installed

See this article on how to install packages that are not in the repository:

  http://fedoraproject.org/wiki/Extras/MockTricks#Building_packages_that_depend_on_packages_not_in_a_repository

---
Jeffrey Ness
Linux System Engineer
IT Operations [Development]
Rackspace Hosting & IUS Community

On Sep 30, 2011, at 5:25 PM, Peter wrote:

> New question #172877 on IUS Community Project:
> https://answers.launchpad.net/ius/+question/172877
> 
> Hi.
> 
>  Is the first time I use isu repo, had give what I need thanks.
> 
>  But exist a php module that I would like to build, is php-interbase.
> 
>  I follow the doc about how to re-buildm my own rpm, I'm not a programmer but what I understand is that if I want to enable interbase, I need to open php53u.specs and change this:
> 
> %define _with_interbase   1
> 
> to
> 
> %define _with_interbase   1
> 
> save the file and start the process right?
> 
> mock from epel didn't work, I search around the globe and on redhat list they had a issue like mine, the issue was that the version from epel wasn't enable for centos 5.6/7 someone there build a fix and is the mock version I'm using, the issue was selinux(I had disable on my rpm machine but still give me issues).
> 
> mock-1.1.14-1.el5.zyv.src.rpm
> 
> Is working, I tested didn't do any changes to php and the build process finish good.
> 
> My local belong to the mock group.
> 
> Now once I enable interbase, I got this error:
> 
> Build complete.
> 
> This is at the begging of file:
> 
> Mock Version: 1.1.14
> ENTER do(['bash', '--login', '-c', 'rpmbuild -bs --target i386 --nodeps builddir/build/SPECS/php53u.spec'], False, '/var/lib/mock/centos5-i386/root/', None, 0, True, False, 502, 103, None, logger=<mockbuild.trace_decorator.getLog object at 0xd7ab410>)
> Executing command: ['bash', '--login', '-c', 'rpmbuild -bs --target i386 --nodeps builddir/build/SPECS/php53u.spec']
> sh: lsb_release: command not found
> sh: lsb_release: command not found
> cat: /usr/include/httpd/.mmn: No such file or directory
> sh: lsb_release: command not found
> 
> ...them at the end
> 
> Don't forget to run 'make test'.
> + --with-interbase=shared,/usr/lib/firebird --with-pdo-firebird=shared,/usr/lib/firebird
> /var/tmp/rpm-tmp.98059: line 174: --with-interbase=shared,/usr/lib/firebird: No such file or directory
> error: Bad exit status from /var/tmp/rpm-tmp.98059 (%build)
> RPM build errors:
>    Bad exit status from /var/tmp/rpm-tmp.98059 (%build)
> Child returncode was: 1
> EXCEPTION: Command failed. See logs for output.
> # ['bash', '--login', '-c', 'rpmbuild -bb --target i386 --nodeps builddir/build/SPECS/php53u.spec']
> Traceback (most recent call last):
>  File "/usr/lib/python2.4/site-packages/mockbuild/trace_decorator.py", line 70, in trace
>    result = func(*args, **kw)
>  File "/usr/lib/python2.4/site-packages/mockbuild/util.py", line 328, in do
>    raise mockbuild.exception.Error, ("Command failed. See logs for output.\n # %s" % (command,), child.returncode)
> Error: Command failed. See logs for output.
> # ['bash', '--login', '-c', 'rpmbuild -bb --target i386 --nodeps builddir/build/SPECS/php53u.spec']
> LEAVE do --> EXCEPTION RAISED
> 
> I check my rpm machine:
> 
> yum list installed | grep firebird
> firebird-devel.i386                      2.1.4.18393.0-1.el5           installed
> firebird-devel.x86_64                    2.1.4.18393.0-1.el5           installed
> firebird-filesystem.x86_64               2.1.4.18393.0-1.el5           installed
> firebird-libfbclient.x86_64              2.1.4.18393.0-1.el5           installed
> firebird-libfbembed.x86_64               2.1.4.18393.0-1.el5           installed
> 
> yum list installed | grep http
> httpd.x86_64                             2.2.3-53.el5.centos.1         installed
> httpd-devel.i386                         2.2.3-53.el5.centos.1         installed
> httpd-devel.x86_64
> 
> yum list installed | grep lsb
> redhat-lsb.i386                          4.0-2.1.4.el5                 installed
> redhat-lsb.x86_64
> 
> [test@rpmbuild firebird]$ pwd
> /usr/lib/firebird
> 
> ls -l include/ ls -l lib/
> 
> include/:
> total 0
> lrwxrwxrwx 1 root root 29 Sep 29 21:39 ibase.h -> /usr/include/firebird/ibase.h
> lrwxrwxrwx 1 root root 31 Sep 29 21:39 iberror.h -> /usr/include/firebird/iberror.h
> lrwxrwxrwx 1 root root 31 Sep 29 21:39 ib_util.h -> /usr/include/firebird/ib_util.h
> lrwxrwxrwx 1 root root 28 Sep 29 21:39 perf.h -> /usr/include/firebird/perf.h
> 
> lib/:
> total 4
> lrwxrwxrwx 1 root root   46 Sep 29 21:39 libfbclient.so -> /usr/lib/firebird/lib/libfbclient.so.%{major1}
> lrwxrwxrwx 1 root root   45 Sep 29 21:39 libfbembed.so -> /usr/lib/firebird/lib/libfbembed.so.%{major2}
> -rw-r--r-- 1 root root 2596 Mar 16  2011 libib_util.so
> 
> What I miss?
> 
> 
> -- 
> You received this question notification because you are a member of IUS
> Core Development, which is an answer contact for IUS Community Project.
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~ius-coredev
> Post to     : ius-coredev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ius-coredev
> More help   : https://help.launchpad.net/ListHelp



References