octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bootstrap, sha1sum, gsha1sum and such things?


From: John W. Eaton
Subject: Re: bootstrap, sha1sum, gsha1sum and such things?
Date: Tue, 15 Dec 2009 12:18:32 -0500

On 15-Dec-2009, Thomas Treichl wrote:

| Ha, brain flash ;) Got it. It works now, thanks Shai and Tatsuro! Someone 
needs 
| to change that bootstrap file - the file always checks for sha1sum and such, 
| even if I tell the program to use the local copy... I therefore changed the 
line 
| 191 of bootstrap
| 
|    # Find sha1sum, named gsha1sum on MacPorts.
|    find_tool SHA1SUM sha1sum gsha1sum
| 
| into this
| 
|    # Find sha1sum, named gsha1sum on MacPorts.
|    if test x"$GNULIB_SRCDIR" = x; then
|      find_tool SHA1SUM sha1sum gsha1sum
|    fi
| 
| and also moved these lines under the options parsing... A simple "hg diff 
| bootstrap >bootstrap.diff" is attached, does this work on other systems and 
is 
| this the best solution?

Probably not.  Looking at the bootstrap script (which itself is copied
from gnulib), the sha1sum utility is used to verify language
translation files.  Using it or not is independent of where the gnulib
source tree is stored.  But we are also not using any language
translation files in Octave, so we should not need sha1sum, at least
for now.  The problem is that the check for sha1sum is performed
unconditionally, but it is only used in the update_po_files function,
and that function is only called if the --skip-po option is not
supplied to the bootstrap script and either of the directories "po" or
"runtime-po" exist.  So I think a better solution would be to only
check for sha1sum if it is actually going to be used by the bootstrap
script.

In any case, I would expect that building a current copy of coreutils
should be relatively easy.  You wouldn't need to replace the system
utilities installed in /bin or /usr/bin on your system.  If you don't
want to modify your path to use all of the coreutils utilities in
place of your system utilities, then you could just install the ones
you need like sha1sum in /usr/local/bin or in your personal ~/bin
directory...

jwe


reply via email to

[Prev in Thread] Current Thread [Next in Thread]