unifont path for ubuntu
bkw777 opened this issue · 5 comments
ubuntu:
$ sudo apt install fonts-unifont
$ ./configure --with-unifontdir-otf=/usr/share/fonts/opentype/unifont`
What exactly is the problem you are trying to describe? The default path uses --datarootdir, which against defaults to using --prefix, so if you do not specify --prefix and/or --datarootdir, the default path will be
/usr/local/share/fonts/opentype/unifont
The is the expected autoconf default behaviour.
Since there are some default paths that are searched, that implies there is some intended effort to have the common case work out of the box. So I was just supplying the finding that this is the out of the box path on ubuntu.
Now that you say it's because of $PREFIX, I don't recall many other times where the destination prefix is more than the first default try for sources and dependencies, not the only try.
I haven't looked yet but I can't imagine that this is just the way autoconf works, since I feel like I must have noticed that sometime in the last 30 years. But you never know.
Would you mind a pr that adds searching /usr after searching prefix if they aren't the same?
I'm always open for PRs
I'm about to give up on figuring out how autotools expects one to handle a case like this "properly".
We want to be able to install to /usr/local, and then at run-time load something from /usr, and that thing does not happen to be an executable or a library, and so there is no provision for that, that I can see, other than what you're already doing which is supply a --with option.
I don't want to offer anything too hacky and there is a method to provide the path so that the program works fine at run-time, and this isn't exactly a critical piece of infrastructure utility software, so... guess I will shut up now! Maybe I'll submit a pr some time but might as well close this issue since I also might never and it's not really much of a problem anyway.