Help in testing Basho Riak port

Bryan Drewery bryan at shatow.net
Sun Sep 22 11:51:12 UTC 2013


> On Sep 22, 2013, at 4:38, Big Lebowski <spankthespam at gmail.com> wrote:
> 
>> On Sat, Sep 21, 2013 at 11:21 PM, Bryan Drewery <bryan at shatow.net> wrote:
>> 
>>> On 9/21/2013 5:08 PM, Big Lebowski wrote:
>>>> On Fri, Sep 20, 2013 at 10:26 PM, Bryan Drewery <bryan at shatow.net>
>>> wrote:
>>> 
>>>> You also need this in the pkg-plist to fix it being a leftover:
>>>> 
>>>>  @dirrmtry %%RIAK_DBDIR%%
>>> 
>>> Unfortunately this doesnt work, because it gets expanded to
>>> /usr/local//var/db/riak from pkg-plist. That's why its not there.
>> 
>> 
>>  RIAK_DBDIR?=    /var/db/${PORTNAME}
>> 
>> You have it right there as /var/db, there is no PREFIX there for
>> /usr/local to slip in.
> 
> 
> This is correct, but I've tried it, and '@dirrmtry %%RIAK_DBDIR%%' results
> in /usr/local//var/db.riak - which doesnt exist.
> 
> 
>> Perhaps you have RIAK_DBDIR=/usr/local/var/db in
>> your make.conf?
> 
> 
> No, I dont, my RIAK_DBDIR is the one that's default in Makefile.
> 
> 
>> And even if you do, it should try to remove any
>> directory it creates on uninstall. It doesn't matter where it is.
> 
> Of course, I understand that, but the problem is, that I dont see how to do
> it: the proper @dirrmtry doesnt work as expected, and @unexec with rm will
> delete everything, even when there's data inside, what I think should not
> be done.

This is the de facto to way to do it. Something is wrong on your system.

Can you run in the port dir and show results?

  make -V RIAK_DBDIR -V PLIST_SUB

Also, can you show the exact error you get when using "@dirrmtry
%%RIAK_DBDIR%% at the end of the plist?

Also for the pkg-list you should use %%ETCDIR%% in place of "etc/riak"
lines.

> 
> 
>> 
>> Having a leftover like that means the port will not be committed.
> 
> I would love to fix it, but I've no idea how.
> 
> B.
> 
> 
>> 
>>> 
>>> B.
>>> 
>>> 
>>>> 
>>>> That will only remove the directory if it is empty.
>>>> 
>>>>> On Fri, Sep 20, 2013 at 06:57:52PM +0100, Big Lebowski wrote:
>>>>> Hi list!
>>>>> 
>>>>> I've been working for couple last days on porting Basho Riak database
>>>>> (latest version 1.4.2) and finally I think it is ready to be presented:
>>>>> https://www.dropbox.com/s/2ztu2bdiip1u2un/riak.tgz
>>>>> 
>>>>> Please, grab the port and test it on anything you can, break it in any
>>>> way
>>>>> possible, and comment on anything you see that's been done wrong - I am
>>>>> open to any suggestion on how to make it worthy candidate for send-pr
>>>> with
>>>>> port submission.
>>>>> 
>>>>> Any help will be highly appreciated and will motivate me to port more
>>>> cool
>>>>> software to FreeBSD! ;)
>>>>> 
>>>>> Kind regards,
>>>>> S.


More information about the freebsd-ports mailing list