Package: scrypt / 1.1.6+svn31-1


Package Version Patches format
scrypt 1.1.6+svn31-1 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0001 version.patch | (download) | 3 1 + 2 - 0 !
1 file changed, 1 insertion(+), 2 deletions(-) version

autoconf gets annoyed if does not contain a literal
version argument in AC_INIT.  The upstream code tries to figure out
the version from the directory name and include it in.  This has a few problems:

* The code to do this is in Makefile, and is overwritten by autotools.
* The code doesn't work in Debian because the directory name does
  not necessarily encode the version.
* The file containing the version is not present in the upstream sources,
  and must be created by running "make", and autoconf fails if it is not
* The Makefile in the sources uses a syntactic extension not supported
  by GNU make, which errors out with "missing separator".

This patch passes a literal version number to AC_INIT.


0002 automake options.patch | (download) | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 automake options

Add two automake options.  The first, subdir-objects, is to avoid
zillions of warnings concerning refering to source files in
subdirectories.  The second, -Wall, has no discernible effect, which
is good.

0003 include acscrypt.m4.patch | (download) | 1 1 + 0 - 0 !
1 file changed, 1 insertion(+) include acscrypt.m4

acscrypt.m4 contains the macro CHECK_SYSCTL_HW_USERMEM.  This should
be put in check_sysctl_hw_usermem.m4 so it can be found automatically,
but that would be more appropriate to do upstream, and this is a
minimal patch.

0004 clock_gettime.patch | (download) | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-) clock_gettime

Instead of always including -lrt when linking with it provides
clock_gettime, only link to it when clock_gettime is not available
without -lrt.  This is the recommended procedure.  To quote the
autoconf 2.69 info pages:

     'AC_CHECK_LIB' requires some care ... it is normally better to
     use 'AC_SEARCH_LIBS([gethostbyname], [nsl])' instead of
     'AC_CHECK_LIB([nsl], [gethostbyname])'.