On Mon, 22 Apr 2002, Edward Arthur wrote:
> Hi,
>
> Just thought I'd pass it on...
>
> /home/installs/modules-3.1.6/utility.c:764: the use of `tempnam' is
> dangerous, better use `mkstemp'
I have tried to eliminating this message by trying out the some
other versions, but they didn't have quite the right properties
(like using TMPDIR or /tmp, there were other issues), but opted
to stick with the StdC routine for maximum availability.
>
> Also, I've never made an RPM but I might volunteer to make one for
> modules (just to learn)
> if there is any interest. Let me know...
Had been thinking about it, but due to time constraints had never
gotten around to it. Please go ahead and make one (there's the
beginning of one in the source root as .spec).
My recommendation is to put the module init scripts and binaries
in /usr/local/Modules/3.1.x/ with a link /usr/local/Modules/default
to that dir.
The version specific modulefiles in /usr/local/Modules/versions/
and create /usr/local/Modules/modulefiles/ if not there already.
Also the rpm can install the files in /etc/custom/ as outlined
in the INSTALL.RH7x, etc.
Essential what the RKOconfigure script sets things to and what the
INSTALL.RH7x recommends.
This set-up is designed for modules software development and
allows different versions of modules to be tried out.
However, this is my preference, but others may have other ideas.
(Now I'll flip-flop to my pragmatic mode and argue against this
disasterous idea.)
Perhaps, another more pedestrian approach would be to put the modulecmd
in /usr/local/bin/, forget the versions modulefile dir,
with man files in /usr/local/man/, the init files in /usr/local/Modules/init/
and /usr/local/Modules/modulefiles. Would still need the rc file
mods and /etc/custom as described in INSTALL.RH7x. (Editing the
/etc/csh.login,csh.cshrc,bashrc,profile files.)
Most sysadms don't care about modules development and just
want to install module binaries and trust that they work as advertized.
What do the other module list think?
>
> Thanks,
> /Ed
>
R.K.
+------------------+---------------------+
| R.K.Owen,PhD | rk...@ow... |
| KooZ Software | Environment Modules |
| NERSC/LBNL | rk...@ne... |
+------------------+---------------------+
|