[Clam-devel] Re: clam 0.98 src and suse packages

Fernando Lopez-Lezcano nando at ccrma.Stanford.EDU
Fri Feb 23 09:46:24 PST 2007


On Fri, 2007-02-23 at 18:11 +0100, David García Garzón wrote:
> At last the mock init worked. I don't know how long it has run but at last i 
> have a FC6 chroot and now i will try to build some packages with it.

If it took a really long time but finished then the reason might be that
you are talking to a very slow fedora mirror. You could try editing the
mock configuration files and explicitly pointing to a fedora mirror near
you that has good bandwidth (that's where all the packages come from). 

> The setup i used is someway complex. I could not manage to run mock in ubuntu 
> but i run mock chrooting from ubuntu to my existing FC6 partition. Being sda5 
> my fedora partition i did
> 
> ubuntu$ sudo mount /dev /media/sda5/dev --bind
> ubuntu$ sudo chroot /media/sda5
> fedora# mount /proc
> fedora# mount /sys
> fedora# vim /etc/groups    <- to add myuser to the mock group
> fedora# su myuser
> fedora$ mock -r fedora-4-i386-core init
>   .... some hours waiting

Wow... yes, "somewhat complex" indeed... :-)

-- Fernando


> On Friday 23 February 2007 03:46:59 David García Garzón wrote:
> > Ups... Sorry for not warning you about that. It seems that you don't have
> > the latests changes (svn 9740) we did yesterday on
> > NetworkEditor/SConstruct. Update your working copy and hopefully it will
> > work (or i hope so...).
> >
> > Those changes makes moc use the $QTDIR/include when available
> > and /usr/include/qt4 when not (Debian based). Before the changes, it
> > used /usr/include/qt4 for any linux.
> >
> > After all the only -I that we needed is /usr/include which is not on the
> > moc command line but it is the first one on the g++ commandline.
> >
> > The commit also removed a useless dependency on cppunit as suggested by
> > Toni.
> >
> > On Dijous 22 Febrer 2007, Fernando Lopez-Lezcano wrote:
> > > On Thu, 2007-02-22 at 13:54 -0800, Fernando Lopez-Lezcano wrote:
> > > > On Thu, 2007-02-22 at 21:51 +0100, David García Garzón wrote:
> > > > > On Thursday 22 February 2007 19:02:38 Fernando Lopez-Lezcano wrote:
> > > > > > On Thu, 2007-02-22 at 18:54 +0100, David García Garzón wrote:
> > > > > > > We did a commit for the NetworkEditor to use the QTDIR when
> > > > > > > available. In FedoraCore you should define QTDIR=/usr
> > > > > >
> > > > > > Do you also use QTINC? Because that seems to be part of the problem
> > > > > > in this case (ie: includes are in /usr/include/Qt, not
> > > > > > /usr/qt4/include)
> > > > >
> > > > > No. We tested it today in a FC6 and it works just by defining
> > > > > QTDIR=/usr. Yes, at last we have a FC to test on!
> > >
> > > Good!
> > >
> > > > > Don't get messed with /usr/include/Qt. It is like
> > > > > /usr/include/QtCore. I mean, in debian the same dir is at
> > > > > /usr/include/qt4/Qt. You don't have to specify it anywhere.
> > > > >
> > > > > In summary: Annotator and NetworkEditor need QTDIR=/usr but CLAM and
> > > > > SMSTools need QTDIR=/usr/lib/qt3.3 and that should be all.
> > >
> > > Should, but apparently is not :-(
> > > I must be missing something trivial (this is for version 0.4.4, just in
> > > case). I'm including the output of the build process just in case
> > > somebody spots the problem.
> > > The scons invocation is:
> > >
> > > scons install install_prefix=/var/tmp/scons-build/usr clam_prefix=/usr
> > >
> > > and I am exporting QTDIR=/usr
> > > It fails here:
> > >
> > >   /usr/bin/moc-qt4 -I/usr/include/qt4 -o ...
> > >
> > > /usr/include/qt4 does not exist.
> > >
> > > If I add more '-I" statements to this last invocation (borrowed from the
> > > previous invocation of gcc) I can make it eventually link without
> > > errors...
> 





More information about the clam-devel mailing list