Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GNET 1.5 with glib2.0
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
PhanLord
Apprentice
Apprentice


Joined: 19 Nov 2002
Posts: 175

PostPosted: Thu Feb 27, 2003 6:02 pm    Post subject: GNET 1.5 with glib2.0 Reply with quote

How can I force gnet to be build with glib2.0 and not glib 1.2 ?
i tryed adding use glib2 and -glib but did not help

EDIT:
ok problem solved i just changed ebuild and forced glib-2.0 build
Back to top
View user's profile Send private message
Air-Op
n00b
n00b


Joined: 02 Apr 2003
Posts: 52

PostPosted: Thu Apr 24, 2003 6:53 pm    Post subject: arg, more details please? Reply with quote

I'm going to fiddle with that ebuild then too... could you give more howto info? I'll probably fitgure it out really quick anyway... but oh well
Code:

emerge gnet -p
cd /usr/portage/net-libs/gnet/
vi gnet.ebuild

there is a line that says >=1.2
I changed that to 2.0.0
I think it is building with 2.2
I don't know if it will work or not.

Code:

gnet-config --cflags
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT -I/usr/include/gnet -I/usr/lib/gnet/include


Nope, it didn't!
actually... scripts that makes everything work automagically would be cool too...

Now trying:
Code:

emerge gnet -C
emerge gnet


that didn't work
I then explicatly changed the depend to equal 2.0.7... and it uninstalled my 2.2.1 !!!

Code:

# yes, the >= is correct, this software can use both glib 1.2 and 2.0!
# DEPEND=">=dev-libs/glib-1.2.0"
DEPEND="=dev-libs/glib/glib-2.0.7"
RDEPEND=$DEPEND



HAHAHA That didn't work either!
gnet-config --clfags
-I/usr/include/glib-1.2

What a hoot. I think I've had it.

well apparently not. I found the .tar.gz and read way too much...
I am now doing:
--enable-glib2
Code:

src_compile() {
    econf \
        --enable-glib2 \
        --sysconfdir=/etc \
        --localstatedir=/var/lib || die

    patch -p0 < ${FILESDIR}/gnet-docdir-gentoo.diff

    emake || die
}


2:53 update
Code:

# emerge gnet
yadayada
# gnet-config --cflags
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/usr/include/gli    0 -I/usr/lib/glib-2.0/include -I/usr/include/gnet -I/usr/lib/gnet/include


it looks like it will work
:twisted:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum