Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 6650 - jabberd violates FHS
Summary: jabberd violates FHS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 All
: High normal (vote)
Assignee: Bart Verwilst
URL: http://www.jabber.org
Whiteboard:
Keywords:
: 10125 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-08-17 13:59 UTC by Martin Klebermass
Modified: 2003-02-04 19:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Klebermass 2002-08-17 13:59:45 UTC
Wondering if it is planed or not but a warning that the jabber-server is
installed directly under /usr is i think well a little bad position for
installing software.

So a Warning bevor starting the installation would be nice so you know that it
is breaking down the FHS standarts.  Perhaps it can have a review to change the
installation positions to some /etc /usr/bin ...
Comment 1 Bart Verwilst 2002-09-15 11:12:14 UTC
WHat do you recommend then? Jabber server _has_ to be installed into 1 dir, so no /etc /usr/bin stuffs work.. 
Comment 2 Martin Klebermass 2002-09-15 11:23:32 UTC
well the xml files can be located at another position, so the would be best
placed in  /etc i think .
I know jabber has not the best type of structur, but perhaps
/opt  would be a better place then /usr.   
Perhaps i will do a review of the jabber.ebuild file sometime in the future to
make better installation format, and seperate the things a little bit better.
Comment 3 Bart Verwilst 2002-10-05 09:53:14 UTC
/opt is for binary-only installs, which jabber server isn't :$  
Comment 4 Martin Klebermass 2002-10-05 10:19:00 UTC
well thats true, but  i think a better position then usr ;)

Every position has its positives, and negatives, but i think the dir /usr is one
that should have the default  dirs and not more . 


Under /opt there are normaly binarys only i know, but  well there is at least
for every programm an own directory.   

Best would be to differ the location into /var /usr/bin /usr/lib /etc ... but
that isnt so easy .
( should be partialy posible but completly ? )

Perhaps having a look into other distributions like debian, suse, redhat, how
they solve the Problem.
Comment 5 Bart Verwilst 2002-11-16 06:10:18 UTC
*** Bug 10125 has been marked as a duplicate of this bug. ***
Comment 6 Sami Dalouche 2002-11-16 09:14:11 UTC
I think the best location is /usr/lib/jabber-1.4. /usr/lib seems ok for storing
software that can't really go to /usr/bin, /usr/ bla bla bla bla, for example,
look at postfix : 
samokk@pingoo postfix $ pwd
/usr/lib/postfix
samokk@pingoo postfix $ ls
bounce   flush  master  pipe   showq  spawn            virtual
cleanup  lmtp   nqmgr   qmgr   smtp   tlsmgr
error    local  pickup  qmqpd  smtpd  trivial-rewrite

so, what you could do is install jabber in /usr/lib/jabber-1.4, and if the
configuration files also need to be in /usr/lib/jabber-1.4, then put them in
/etc and symlink ;)

Sam
Comment 7 Bart Verwilst 2002-11-16 09:33:12 UTC
Please try jabber-server-1.4.2-r2, and tell me how it works. Please do an emerge sync first (in an hour or so), because i change it frequently :o) For now, only jabber itself and msn seem to work :(  I hope you guys can help to get the rest up and running.. thanks! 
Comment 8 Martin Klebermass 2002-11-20 05:07:25 UTC
Seems to look good now ;)
U have done a good job as much as i can see.

One simple problem i had installing at first ( because i didnt looked at the 
complete logfile) There is the ip 64.57.168.155 in the logfiles.
At <ssl port="5223">64.57.168.155</ssl> i think it isnt needed
with the <key ip="64.57.168.155">/etc/jabber/gentoo.pem</key>
hmmm perhaps insert a Class C address or something like that at least, eg 
192.168.0.1 or so .   ( the best solution would be to ask the user in the 
ssl_key generate script for the ip but , well this is something for the far 
future ;)  )
Comment 9 Bart Verwilst 2002-11-20 09:46:40 UTC
Ok, i'll fix that.. Do all the transport work for you? I installed this ebuild on our personal dev-only jabber server, but aim and icq just don't want to log on (i can register though). This is with gcc 2.95.3, because gcc 3.x systems install icqv7 instead of the aim thingy...and icqv7 hasn't been tested, and i don't have a config file for that yet... if somebody could help with this... Thanks! 
Comment 10 Martin Klebermass 2002-11-20 11:50:30 UTC
The icq transport works as much as i can see.
i dont have an aim,yaoo or msn account, so i cant test this.
The conference Service hangs while registering. if i find the problem ill tell 
it ( i had this problem also bevor with my own installation but cant solve it)

The jabber User Directory Registration seems to work as much as i could see.

a short question ( not explicit jabber, but i need it for jabber)
i want to add xdb_sql support. for this there is an extra file needed. so i 
have to download it with the ebuild file.  Because not everyone wants to 
install xdb_sql it would be cool to just download the file if needed. Any idea?

Comment 11 Bart Verwilst 2002-11-20 13:50:34 UTC
conference works fine here.. (make sure the passwords match in the config files, i committed a fixed tarball for that, don't know if you installed the latest :o)  About the sql thingy, what file is it that you are talking about? 
Comment 12 Sami Dalouche 2002-12-11 15:00:40 UTC
Hi,

I (finally, couldn't do it before because of finals...) tried to compile the
masked version you provided, but here's the problem :

gcc -march=pentium-mmx -O3 -pipe -g -Wall -I. -I.. -I/usr/include/openssl
-DHAVE_SSL -I/usr/include -fPIC -I../jabberd  `glib-config --cflags`   -c -o
yahoo-transport.o yahoo-transport.c
/bin/sh: line 1: glib-config: command not found
In file included from yahoo-transport.c:26:
yahoo-transport.h:49:18: glib.h: No such file or directory
In file included from yahoo-transport.c:26:
yahoo-transport.h:108: parse error before "guchar"
yahoo-transport.h:108: warning: no semicolon at end of struct or union
yahoo-transport.h:112: parse error before "logged_in"
yahoo-transport.h:112: warning: type defaults to `int' in declaration of `logged_in'
yahoo-transport.h:112: warning: data definition has no type or storage class
yahoo-transport.h:123: parse error before '}' token
make: *** [yahoo-transport.o] Error 1

!!! ERROR: net-im/jabber-server-1.4.2-r2 failed.
!!! Function src_compile, Line 64, Exitcode 2
!!! (no error message)

Some infos :
root@pingoo jabber-server # qpkg -v -I | grep glibc
sys-libs/glibc-2.3.1-r2 *

root@pingoo jabber-server # qpkg -v -I | grep make
sys-devel/make-3.80 *

root@pingoo jabber-server # uname -a
Linux pingoo.skoobi 2.4.19-gentoo-r9 #1 Sat Oct 26 10:43:03 CEST 2002 i586
Pentium MMX GenuineIntel GNU/Linux

root@pingoo jabber-server # qpkg -v -I | grep gcc
sys-devel/gcc-3.2.1 *
sys-devel/gcc-config-1.2.1 *
Comment 13 Sami Dalouche 2002-12-11 15:05:52 UTC
Well, actually,

I just read the INSTALL file in the yahoo transport (the module that didn't
compile),and I realised it needed glib.
so actually, the problem doesn't have anything to do with the modifications you
did to -r2, it's just that the ebuild lacks the glib dependance

Sorry for the convenience
sam
Comment 14 Bart Verwilst 2002-12-11 15:09:48 UTC
Please do emerge -s glib (glib.h isn't from glibc.. :) )    If you don't have it, try to emerge it, and re-emerge jabber-server. Let me know if that works,  and i'll add it as a dep. Thanks!  
Comment 15 Bart Verwilst 2002-12-11 15:12:59 UTC
Aha, could you please tell me whether everything works from now on? so i can release it to stable. Thanks 
Comment 16 Sami Dalouche 2002-12-11 16:04:07 UTC
Hmm, actually, still the same problem...
I still don't have the glib-config command even though I installed the glib
ebuild...  
could you tell me which package does contain the glib-config command on your
system ? (qpkg -fp glib-config)
ohh, and look at the errors.. isn't there some kind of syntax error ?
coz parse error doesn't sound good.. maybe you could get some more up2date
version from upstream ?

Thanks
sam

--
_SSL -I/usr/include -fPIC -I../jabberd  `glib-config --cflags`   -c -o
yahoo-transport.o yahoo-transport.c
/bin/sh: line 1: glib-config: command not found
In file included from yahoo-transport.c:26:
yahoo-transport.h:49:18: glib.h: No such file or directory
In file included from yahoo-transport.c:26:
yahoo-transport.h:108: parse error before "guchar"
yahoo-transport.h:108: warning: no semicolon at end of struct or union
yahoo-transport.h:112: parse error before "logged_in"
yahoo-transport.h:112: warning: type defaults to `int' in declaration of `logged_in'
yahoo-transport.h:112: warning: data definition has no type or storage class
yahoo-transport.h:123: parse error before '}' token
make: *** [yahoo-transport.o] Error 1

!!! ERROR: net-im/jabber-server-1.4.2-r2 failed.
!!! Function src_compile, Line 65, Exitcode 2
!!! (no error message)
Comment 17 Martin Klebermass 2002-12-12 13:03:39 UTC
well im nearly finished with the xdb_sql  part, but i still dont know how to
solve this problem with the extra download. ( well xdb_sql isnt the biggest
addon it has only 48 k but well if u dont need it why should u dl it). An extra
package isnt posible because it needs the complete  source dir of jabber, with
its compiled parts ( so in an extra package it would need an own recompilation).
Ill add my  jabber-server ebuild file, as i fixed all minor bugs in there
Comment 18 Sami Dalouche 2002-12-12 14:41:47 UTC
I compiled jabber-server w/o yahoo transport support (glib-config is still
missing). the jabber server seems to work, so does the msn-transport. but
aim/icq doesn't seem to work

jabber-server outputs :
20021212T20:46:50: [notice] (aim.pingoo.skoobi): bouncing a packet to
aim.pingoo.skoobi from samokk@pingoo.skoobi/myJabber: Internal Timeout

and my /etc/hosts has the aim.pingoo.skoobi & icq.pingoo.skoobi aliases
the relevant part of aimtrans.xml is :

  <service id='aim.pingoo.skoobi'>
    <load><aim_transport>/usr/lib/jabber/aimtrans.so</aim_transport></load>

    <aimtrans xmlns='jabber:config:aimtrans'>
      <aimbinarydir>/usr/lib/jabber</aimbinarydir>
      <vCard>
        <FN>AIM Transport</FN>
        <DESC>AIM Transport!</DESC>
        <URL>http://aim.pingoo.skoobi/</URL>
      </vCard>

    </aimtrans>
  </service>

some people here seem to have jabber running w/ icq / aim. what's your setup ?

sam
Comment 19 Bart Verwilst 2003-01-02 06:40:35 UTC
Those are probably configuration issues or some kind.. Maybe ask in #jdev on jabber groupchat, server conference.jabber.org.. Thanks! Closing, since it's in stable now.