Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Sep 2013 06:51:09 -0500
From:      Bryan Drewery <bryan@shatow.net>
To:        Big Lebowski <spankthespam@gmail.com>
Cc:        freebsd-ports <freebsd-ports@freebsd.org>
Subject:   Re: Help in testing Basho Riak port
Message-ID:  <523ED9AD.7060104@shatow.net>
In-Reply-To: <CAHcXP%2BeBqLRzdCQd5QZLgW3mBgfSJusrdVD2J884ZrD-EEvyhg@mail.gmail.com>
References:  <CAHcXP%2Be15099FK7ch3NhktHXJKcSL%2BstANhSSZ-zwfOtB6%2BLfA@mail.gmail.com> <20130920212653.GG74496@admin.xzibition.com> <CAHcXP%2Bcnprajvazyw01fyNQaCo8QhiDycDfo59Arfj1anohx_g@mail.gmail.com> <CAHcXP%2Bd4LQ-Uesbj2X5mmEOfU9safLa75e--=y3VGwWDzea_7A@mail.gmail.com> <523E1BDF.5090305@shatow.net> <CAHcXP%2BeBqLRzdCQd5QZLgW3mBgfSJusrdVD2J884ZrD-EEvyhg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> On Sep 22, 2013, at 4:38, Big Lebowski <spankthespam@gmail.com> wrote:
> 
>> On Sat, Sep 21, 2013 at 11:21 PM, Bryan Drewery <bryan@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@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?523ED9AD.7060104>