Mariano Alvarez Fernandez wrote:
Frank, I have modified makefiles for linux/x11 to create the instalation subdirs and to install the info manual as suggested. But there are two problems: 1) a normal user can't run install-info
He can run it -- but only in a directory where he has write access. So if he installs in his home directory or builds a binary package, it will work just fine. And he can't install the other files in the system directories, anyway, so that's no additional restriction.
- running it with
root makes a "dir" file in the installation subdirectory, but "info grx" don't work, except if you are in this subdirectory.
Indeed. install-info can only work correctly if installing in the global directories directly. If installing in a temp directory or below home, it will leave a dir file there which contains only the GRX entry. I've seen this with other packages, and it can be a problem -- if a careless user installs such a binary package, he might overwrite his existing dir file. So it might be better to run install-info only if the dir file exists already.
Another question seems to be about /etc/info-dir. I don't know which systems use it (mine doesn't, and I've seen no support for it in other packages I've checked, only in GRX). Anyway, if there are systems that have it, we can do the same with it, i.e. update it only if it exists and we have write permissions (which probably means we are root, though another privileged user should also work). A `-w' test will check both existence and writability, so I hope this will be ok for all of our different needs now. (diff18)
As I said in an earlier mail, I think it should be possible via makedefs settings to disable shared libs. I've added this now (INCLUDE_SHARED_SUPPORT, default y). (diff14)
All other issues I've mentioned in previous mails are solved now. :-)
Some other things:
For the Pascal interface: I think it would be better if GrAllocEgaColors, GrGetScanline, etc. return a pointer to an array of GrColor, rather than to a single GrColor (in C it's the same, so it's only a question of grx.pas). (diff15)
I wrote a little Pascal program to demonstrate to someone how to load PNGs. I've now added JPEG support as well, and would like to contribute the program (imgviewer) to GRX as a demo. Another program (colortest) has proved useful to me to examine the behaviour on various kinds on xterms with different color depths etc. (both in diff16)
Is it important to you to run `ar' in verbose mode? I prefer to run `make -s' to see nothing but real error and warning messages, and the `ar' output is disturbing it, so I'd prefer to change this (i.e., invoke it with `-r' instead if `-rv'). (diff17)
Frank