[Bug 195220] New: databases/riak 1.4.10 broken

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Nov 20 13:26:26 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195220

            Bug ID: 195220
           Summary: databases/riak 1.4.10 broken
           Product: Ports Tree
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: Needs Triage
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: robak at freebsd.org
          Reporter: landsidel.allen at gmail.com
          Assignee: robak at freebsd.org
             Flags: maintainer-feedback?(robak at freebsd.org)

This port is non-functional after installation.

1. File permissions are incorrect.  At runtime, the port needs write access as
the riak user ('riak') to the RIAK_HOMEDIR, RIAK_DBDIR, RIAK_LOGDIR, and
RIAK_LIBDIR.  By default these are owned by root/wheel.

2. The installed file /usr/local/lib/riak/lib/env.sh was recently (1.4.9
perhaps) modified to use su instead of sudo, but linux command line options
(specifically -c) are hard coded, and the entire command is quoted which
results in it being interpreted as a path to a file with spaces rather than a
command with arguments.  This prevents all riak-admin commands from
functioning, and perhaps others as well.

----- quick (probably incorrect) fixes

1. Change ownership for all of these directories to the riak user/group. 
Testing this change via @owner and @group directives in pkg-plist was
successful, but probably has security consequences for the system as a whole.

2. Create a patch to change this 'su' command back to 'sudo' and add sudo as a
requirement for the port ..OR.. remove the '-c' and quotes.  The first option
is preferable in order to preserve the quoting which is required in some cases,
but I've only tested the second, and it works in limited testing.

--- Comment #1 from Bugzilla Automation <bugzilla at FreeBSD.org> ---
Auto-assigned to maintainer robak at freebsd.org

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list