$(datarootdir) should be $(datadir)

View: New views
3 Messages — Rating Filter:   Alert me  

$(datarootdir) should be $(datadir)

by jakykong :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In section 7.2.5, when the 'datadir' directory is discussed, this
sentence appears:

"This should normally be /usr/local/share, but write it as
$(datarootdir). (If you are using Autoconf, write it as '@datadir@')"

$(datarootdir) should be $(datadir), given the section it's in.

Hope it helps!




Re: $(datarootdir) should be $(datadir)

by Karl Berry :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

    In section 7.2.5, when the 'datadir' directory is discussed, this
    sentence appears:

    "This should normally be /usr/local/share, but write it as
    $(datarootdir). (If you are using Autoconf, write it as '@datadir@')"

    $(datarootdir) should be $(datadir), given the section it's in.

Thanks for the report.  I think you are right, although given the
always-confusing situation datadir and datarootdir, I can't say I'm 100%
sure.  Can anyone else here confirm/deny?

I'll think about it and either make the change or insert an explanation.

Best,
Karl



Re: $(datarootdir) should be $(datadir)

by Ralf Wildenhues :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

* Karl Berry wrote on Fri, Jul 03, 2009 at 11:56:42PM CEST:
>     In section 7.2.5, when the 'datadir' directory is discussed, this
>     sentence appears:
>
>     "This should normally be /usr/local/share, but write it as
>     $(datarootdir). (If you are using Autoconf, write it as '@datadir@')"
>
>     $(datarootdir) should be $(datadir), given the section it's in.
>
> Thanks for the report.  I think you are right,

No, I don't think he is right.  Going through the other descriptions:
  bindir should be written as $(exec_prefix)/bin,
  datarootdir              as $(prefix)/share,
  datadir                  as $(datarootdir),

which is at least consistent.

Cheers,
Ralf