ports/186479: irc/anope: port doesn't work
Tim Bishop
tim at bishnet.net
Wed Feb 5 11:50:01 UTC 2014
>Number: 186479
>Category: ports
>Synopsis: irc/anope: port doesn't work
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Feb 05 11:50:01 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator: Tim Bishop
>Release: 10.0 amd64
>Organization:
>Environment:
FreeBSD myhost 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014 root at snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
This port appears to have numerous issues. I've done my best to summarise them here.
1. It has the following configure flag: --with-rungroup=ircdru
The port does not create this group so the application will not start.
Looking at the Subversion history and related PR, I can't see any
reason why this was added. I'd guess it's for someone's rather
specific setup.
2. It fails on FreeBSD 10 with errors like this:
/usr/local/share/anope/modules/runtime/inspircd20.so.3Tbklm: Undefined symbol "del_exception"
I'm expecting this is a compiler issue, although I've not
investigated. It works on FreeBSD 9. (both amd64)
3. It installs its runtime data in ${DATADIR}.
It then expects to be able to write here at runtime, which it may be
able to if it's running as root, but it should probably be under /var
somewhere instead.
It also logs to it's current working directory, so the RC script would
need to chdir here before running.
4. The RC script suggests setting the following:
anope_user="nobody"
anope_chroot="/usr/local/share/anope"
The first won't work because the files (see 3) are owned by root. The
second doesn't work because ${command} then no longer points at the
binary.
>How-To-Repeat:
>Fix:
1. This can be fixed by just removing the configure flag.
2. I'm not sure about this one, sorry. Maybe setting USE_GCC would do it, but someone with more of an insight in this area might be able to fix it.
3 and 4. These could possibly be resolved by modifing the RC script:
- The port can't install its data directly to /var, but the RC script
could copy the tree there on first run if it doesn't exist, and then
chown it to ${anope_user}.
- The RC script can set ${anope_chdir} to the directory under /var,
and also set ${command_args} to "-dir /var/whatever".
I've not tested this thoroughly or produced a patch, sorry. But it
works in principal.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list