[CentOS] Mock - Problems building Centos5 package on Centos6 - where can I ask for advice ?

Morgan Cox morgancoxuk at gmail.com
Mon Oct 10 08:19:13 UTC 2011


Hi trey.

I would prefer being able to build my own packages rather than rely on an
external repo.(that was I can always build what ever version I need to).

Its not the building of the RPM it the use of mock thats failing.

What is the best way of sending you the source RPM.

Regards




On 8 October 2011 14:22, Trey Dockendorf <treydock at gmail.com> wrote:

> On Oct 7, 2011 3:34 AM, "Morgan Cox" <morgancoxuk at gmail.com> wrote:
> >
> > Hi
> >
> > Thank you for your extremely quick (and faster than support from any
> > company..) reply.
> >
> > Sorry, can you give more detail ?
> >
> > >From the look of the error the 'mock centos5' is missing these files :-
> >
> > /usr/share/aclocal/ltoptions.m4
> > /usr/share/aclocal/ltsugar.m4
> > /usr/share/aclocal/ltversion.m4
> > /usr/share/aclocal/lt~obsolete.m4
> >
> > - which come from libtool2 (on centos6)
> >
> > Centos5 obviously doesn't have that version...
> >
> > I noticed in the .spec file it has
> >
> >
> > ---------------------------------------------------------------
> > %build
> > # aclocal workaround - to be improved
> > cat `aclocal
> > --print-ac-dir`/{libtool,ltoptions,ltsugar,ltversion,lt~obsolete}.m4
> > >>aclocal.m4
> >
> > # Force use of system libtool:
> > libtoolize --force --copy
> > cat `aclocal
> > --print-ac-dir`/{libtool,ltoptions,ltsugar,ltversion,lt~obsolete}.m4
> > >build/libtool.m4
> > ---------------------------------------------------------------
> >
> > It also has - from the original .spec file I based it on:-
> >
> > BuildRequires: bzip2, perl, libtool >= 1.4.3, gcc-c++
> >
> > I have libtool installed in the mock enviroment ...
> >
> > Anyone know what i'm doing wrong ?
> >
> > Regards !
> >
> >
> >
> >
> >
> >
> >
> > On 6 October 2011 15:57, John Hodrien <J.H.Hodrien at leeds.ac.uk> wrote:
> >
> > > On Thu, 6 Oct 2011, Morgan Cox wrote:
> > >
> > > > Hi.
> > > >
> > > > I am trying to use Mock to rebuild a .src.rpm file I have made for
> PHP
> > > 5.3.8
> > > > (for Centos6)
> > > >
> > > > I have managed to install deps fine with mock.
> > > >
> > > > When I try to rebuild the package though I get.
> > >
> > > BuildRequires are wrong, since this SRPM requires files that aren't
> being
> > > pulled in.  Add BuildRequires to satisfy these missing requirements and
> > > it'll
> > > work.
> > >
> > > jh
> > > _______________________________________________
> > > CentOS mailing list
> > > CentOS at centos.org
> > > http://lists.centos.org/mailman/listinfo/centos
> > >
> > _______________________________________________
> > CentOS mailing list
> > CentOS at centos.org
> > http://lists.centos.org/mailman/listinfo/centos
>
> If your wanting PHP-5.3 for CentOS5 you may want to look at the IUS repo.
> They provide PHP 5.2 and 5.3 for CentOS5.
>
> If you send me your SRPM offlist Ill try to build it on my Mock
> environment.
>
> - Trey
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>



More information about the CentOS mailing list