Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 171198 - net-im/jabberd ~x86-fbsd keywording request
Summary: net-im/jabberd ~x86-fbsd keywording request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: x86 FreeBSD
: High normal (vote)
Assignee: Marko Durkovic
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-16 23:01 UTC by Pierre Guinoiseau
Modified: 2012-02-20 12:22 UTC (History)
2 users (show)

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


Attachments
diff from the original ebuild (jabberd-ebuild.diff,669 bytes, patch)
2007-03-16 23:02 UTC, Pierre Guinoiseau
Details | Diff
Patch for jabberd init script (jabberd-init-posix,1.66 KB, patch)
2007-06-13 17:33 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pierre Guinoiseau 2007-03-16 23:01:39 UTC
Hi,
I have successfuly emerged net-im/jabberd on my g/fbsd and it's running fine.
However, i had to modify the ebuild in order to get it to compile with the right sys-libs/db and not the fbsd's /usr/include/db.h. See the diff attached below.
So it can be keyworded for ~x86-fbsd, and don't forget net-im/jabber-base too.
Thanks.
Comment 1 Pierre Guinoiseau 2007-03-16 23:02:32 UTC
Created attachment 113521 [details, diff]
diff from the original ebuild
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-06-12 15:03:57 UTC
Maintainer: please apply this patch, and reassign back to BSD once that's done, so that we can keyword.

Also, sys-libs/pam dependency might need to be changed to virtual/pam, in case I'll look into it and report here tonight (hopefully), or mask the flag if it's depending on sys-libs/pam proper.
Comment 3 Marko Durkovic 2007-06-13 13:22:24 UTC
Is the db issue a problem for jabberd-2.1.6 or just jabberd-2.0.11? I assume that both versions are affected.

The jabberd-2 documentation states, that pam support is for linux only.
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-06-13 13:33:33 UTC
That would be quite strange, it might be Linux-PAM only (which is not the same as being for Linux only, Linux-PAM was used by FreeBSD 4.x, and currently by Mac OS X), and that would be acceptable, but Linux-only sounds heavily suspicious.
Anyway I'll see to look at it now; I was planning to work on the transition-overlay but I forgot the URL :(
Comment 5 Marko Durkovic 2007-06-13 14:00:38 UTC
Sorry if my comment was misleading: It is linux-pam only. No openpam support.
Comment 6 Krzysztof Pawlik (RETIRED) gentoo-dev 2007-06-13 15:04:42 UTC
I'd like to deprecate jabberd-2.0* in favor of jabberd-2.1*, so the 2.0 series is not an issue.
Comment 7 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-06-13 15:20:06 UTC
I'm currently building against OpenPAM, a quick check over the sources finds no reason to think it won't work (note that PAM API is standardised, and the only reason there is to not work with OpenPAM is if Linux-PAM's own extensions are used; and even in that case it's usually easy to rewrite the code not to sue them). The other reason could be only using modules like pam_limits.so that is available only on Linux, but that does not seem the case for jabberd.

And yes, I'm testing 2.1 not 2.0.
Comment 8 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-06-13 15:35:30 UTC
D'oh! The init script will not work with baselayout 2, as it's not POSIX-compatible.
Will try to fix it too.
Comment 9 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-06-13 17:30:02 UTC
Okay I have a patch for the init script that I'll now attach. The pam dependency should be fine changed to virtual/pam I think, but I wonder, did anybody try the pam support before?

I ask because it needs a pamd file that is _not_ installed, and even if I create it, it seems to be trying the username "flame@prakesh.flameeyes.is-a-geek.org" to authenticate, and that's not a valid username as far as I remember, for any version of PAM (@), plus is too long on FreeBSD anyway.
Comment 10 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-06-13 17:33:38 UTC
Created attachment 121951 [details, diff]
Patch for jabberd init script

Here it comes, with that patch the init script works on FreeBSD.
This and the patch to the ebuild, and jabberd can be safely keyworded ~x86-fbsd.
Comment 11 Marko Durkovic 2007-06-14 07:59:58 UTC
Thanks for testing/fixing stuff. Did you still need the db fix to be able to compile with correct sys-libs/db?

The pam behavior is "normal" at the moment, upstream is working on a fix (http://jabberd2.xiaoka.com/ticket/17).
Comment 12 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-06-14 11:48:56 UTC
Shouldn't the PAM support be disabled then, rather than given an useflag, at least till upstream fixes it?
When they do, it would also require a proper jabberd pam.d file (or it won't authenticate; myself I've been using the same as imap from mailbase -- make sure you don't use pam_stack if you provide a custom one).

And yes, I still need the db fix or it finds the libc's db.h file (which is for db 1.85). There's also another problem with db versions, but that's not jabberd2-specific, so you don't have to mind about it :)
Comment 13 Naohiro Aota gentoo-dev 2011-12-16 12:20:25 UTC
Seems net-im/jabberd is not relevant to  sys-libs/db and virtual/pam. I've added ~x86-fbsd to it. Now I'll take a look at net-im/jabberd2
Comment 14 Naohiro Aota gentoo-dev 2012-02-20 12:22:05 UTC
Added ~x86-fbsd also to jabberd2. Closing.