Default value for RALSH_DATA_DIR

11 views
Skip to first unread message

Nelo-Thara Wallus

unread,
Jan 23, 2017, 9:27:19 PM1/23/17
to lib...@googlegroups.com
Morning everybody,

after the announcement on puppet-dev I became curious and mocked an
ebuild[1] to have it available to play around with, however I've noticed
that there doesn't seem to be a default path for RALSH_DATA_DIR yet, to
place the data in after installation (on the other hand I haven't dug
into the code yet).

Is there a default planned for the near future?

For the moment I'm installing the data to /usr/share/libral/data, in
case another gentoonian wants to have a go with the ebuild.

Cheers,
Nelo

[1]: https://github.com/ntnn/gentoo-thabairne

--
/"\ ASCII Ribbon Campaign
\ / - against HTML emails
X - against proprietory attachments
/ \ http://en.wikipedia.org/wiki/ASCII_Ribbon_Campaign

David Lutterkort

unread,
Jan 23, 2017, 9:33:17 PM1/23/17
to Nelo-Thara Wallus, lib...@googlegroups.com
Hi Nelo,

I am really happy you are interested !

On Mon, Jan 23, 2017 at 6:09 PM, Nelo-Thara Wallus <ne...@wallus.de> wrote:
after the announcement on puppet-dev I became curious and mocked an
ebuild[1] to have it available to play around with, however I've noticed
that there doesn't seem to be a default path for RALSH_DATA_DIR yet, to
place the data in after installation (on the other hand I haven't dug
into the code yet).

Is there a default planned for the near future?

For the moment I'm installing the data to /usr/share/libral/data, in
case another gentoonian wants to have a go with the ebuild.

That's awesome !

There is a default planned for that, and /usr/share/libral/data or even /usr/share/libral sounds like the best place for this. The main issue is that I haven't taken the time to go figure out the best way to configure that at build time. For now you are stuck with setting an environment variable.

Come to think of it, would passing it into cmake as "cmake .. -DLIBRAL_DATA_DIR=/usr/share/libral" work for you ?

cheers,
David

Nelo-Thara Wallus

unread,
Jan 24, 2017, 3:59:48 AM1/24/17
to lib...@googlegroups.com
Hi David,

sure, that'd be sufficient, I'll update the ebuild accordingly.

However I'd still prefer to use the data subdir, that way the
possibility for additional datadirs e.g. by distribution.

Those could be put together during build time, but that's up to you.

Cheers,
Nelo

David Lutterkort

unread,
Jan 24, 2017, 2:25:51 PM1/24/17
to lib...@googlegroups.com
Great ! I'll let you know when I've wrestled cmake into shape (might be a couple of days)

David

--
You received this message because you are subscribed to the Google Groups "libral" group.
To unsubscribe from this group and stop receiving emails from it, send an email to libral+unsubscribe@googlegroups.com.
To post to this group, send email to lib...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/libral/20170124085942.GA6175%40DXKA-1YY68C2.united.domain.
For more options, visit https://groups.google.com/d/optout.

David Lutterkort

unread,
Jan 27, 2017, 10:15:31 PM1/27/17
to lib...@googlegroups.com
Hi Nelo,

I just finished making the default data dir configurable at build time. As of commit a3f54f2a, when you build with "cmake -DRALSH_DATA_DIR=<some_dir> ..." that directory now becomes the default directory to look for providers. If you don't do anything, it defaults to /usr/share/libral/data

It's now also possible to pass in additional directories with 'ralsh --include <dir> ...'.

The precompiled tarball on the website has been updated, too.

Let me know if you run into trouble with any of this,
David


On Tue, Jan 24, 2017 at 12:59 AM, Nelo-Thara Wallus <ne...@wallus.de> wrote:
--
You received this message because you are subscribed to the Google Groups "libral" group.
To unsubscribe from this group and stop receiving emails from it, send an email to libral+unsubscribe@googlegroups.com.
To post to this group, send email to lib...@googlegroups.com.

Nelo-Thara Wallus

unread,
Jan 30, 2017, 2:32:12 PM1/30/17
to David Lutterkort, lib...@googlegroups.com
Hi David,

thanks a bunch! I'll have a got at it later this week.

Cheers,
Nelo

On 2017-01-27 19:15, David Lutterkort wrote:
> Hi Nelo,
>
> I just finished making the default data dir configurable at build time. As
> of commit a3f54f2a, when you build with "cmake -DRALSH_DATA_DIR=<some_dir>
> ..." that directory now becomes the default directory to look for
> providers. If you don't do anything, it defaults to /usr/share/libral/data
>
> It's now also possible to pass in additional directories with 'ralsh
> --include <dir> ...'.
>
> The precompiled tarball <http://download.augeas.net/libral/ralsh-latest.tgz>
> > email to libral+un...@googlegroups.com.
> > To post to this group, send email to lib...@googlegroups.com.
> > To view this discussion on the web visit https://groups.google.com/d/
> > msgid/libral/20170124085942.GA6175%40DXKA-1YY68C2.united.domain.
> > For more options, visit https://groups.google.com/d/optout.
> >
>
> --
> You received this message because you are subscribed to the Google Groups "libral" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to libral+un...@googlegroups.com.
> To post to this group, send email to lib...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/libral/CAHN%2BA%2BU5bVEocxaAVTrCiogi%2Bz7RYS%2Bc%3Dt%3DLczEe1Hrf2DckEg%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages