View previous topic :: View next topic |
Author |
Message |
PhanLord Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 19 Nov 2002 Posts: 175
|
Posted: Thu Feb 27, 2003 6:02 pm Post subject: GNET 1.5 with glib2.0 |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Air-Op n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Megaman/megamanjetpack.gif)
Joined: 02 Apr 2003 Posts: 52
|
Posted: Thu Apr 24, 2003 6:53 pm Post subject: arg, more details please? |
|
|
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 Evil :twisted:](images/smiles/icon_twisted.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|