]> git.pld-linux.org Git - packages/libgcrypt.git/commitdiff
- updated to 1.8.0 auto/th/libgcrypt-1.8.0-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 29 Jul 2017 08:59:12 +0000 (10:59 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 29 Jul 2017 08:59:12 +0000 (10:59 +0200)
- updated poll patch

libgcrypt-poll.patch
libgcrypt.spec

index dadb1e064965dfe90f1b7f31c8f1d0972e5dbde4..e8b4a473b435c8bc7395ff38fe4cddd454f0209d 100644 (file)
@@ -1,5 +1,5 @@
---- libgcrypt-1.7.1/random/rndlinux.c.orig     2016-06-08 18:18:17.000000000 +0200
-+++ libgcrypt-1.7.1/random/rndlinux.c  2016-06-22 22:26:14.692219129 +0200
+--- libgcrypt-1.8.0/random/rndlinux.c.orig     2017-06-24 13:34:29.000000000 +0200
++++ libgcrypt-1.8.0/random/rndlinux.c  2017-07-29 10:42:28.147643001 +0200
 @@ -32,6 +32,7 @@
  #include <string.h>
  #include <unistd.h>
@@ -8,7 +8,7 @@
  #if defined(__linux__) && defined(HAVE_SYSCALL)
  # include <sys/syscall.h>
  #endif
-@@ -191,8 +192,7 @@
+@@ -216,8 +217,7 @@
                   return with something we will actually use 100ms. */
    while (length)
      {
@@ -17,8 +17,8 @@
 +      struct pollfd fds;
        int rc;
  
-       /* If we collected some bytes update the progress indicator.  We
-@@ -207,20 +207,10 @@
+       /* If we have a modern Linux kernel and we want to read from the
+@@ -276,21 +276,11 @@
            any_need_entropy = 1;
          }
  
 -          FD_SET(fd, &rfds);
 -          tv.tv_sec = delay;
 -          tv.tv_usec = delay? 0 : 100000;
--          if ( !(rc=select(fd+1, &rfds, NULL, NULL, &tv)) )
 +          fds.fd = fd;
 +          fds.events = POLLIN;
-+          if ( !(rc=poll(&fds, 1, delay ? (delay*1000) : 100)) )
+           _gcry_pre_syscall ();
+-          rc = select (fd+1, &rfds, NULL, NULL, &tv);
++          rc = poll(&fds, 1, delay ? (delay*1000) : 100);
+           _gcry_post_syscall ();
+           if (!rc)
              {
-               any_need_entropy = 1;
-               delay = 3; /* Use 3 seconds henceforth.  */
-@@ -228,7 +218,7 @@
+@@ -300,7 +290,7 @@
              }
            else if( rc == -1 )
              {
index 125a09b1a76f2993d0f4b3cf348e61b302c80ba3..6fdd6f026b8612a8f8826608897431f04ddda782 100644 (file)
@@ -8,12 +8,12 @@ Summary(es.UTF-8):    Libgcrypt es una biblioteca general de desarrole embasada em
 Summary(pl.UTF-8):     Biblioteka kryptograficzna oparta na kodzie GnuPG
 Summary(pt_BR.UTF-8):  libgcrypt é uma biblioteca de criptografia de uso geral baseada no GnuPG
 Name:          libgcrypt
-Version:       1.7.8
+Version:       1.8.0
 Release:       1
 License:       LGPL v2.1+
 Group:         Libraries
 Source0:       ftp://ftp.gnupg.org/gcrypt/libgcrypt/%{name}-%{version}.tar.bz2
-# Source0-md5: 34fd2e6d230cbe56799cdf7df05f56c5
+# Source0-md5: 530db74602b558209f9ad7356a680971
 Patch0:                %{name}-info.patch
 Patch1:                %{name}-libgcrypt_config.patch
 Patch2:                %{name}-poll.patch
@@ -24,10 +24,10 @@ BuildRequires:      binutils >= 2:2.12
 %{?with_dietlibc:BuildRequires:        dietlibc-static >= 2:0.31-5}
 BuildRequires: gcc >= 5:3.2
 %{?with_libcap:BuildRequires:  libcap-devel}
-BuildRequires: libgpg-error-devel >= 1.13
+BuildRequires: libgpg-error-devel >= 1.25
 BuildRequires: libtool >= 2:2.2.6
 BuildRequires: texinfo
-Requires:      libgpg-error >= 1.13
+Requires:      libgpg-error >= 1.25
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 # for some reason known only to rpm there must be "\\|" not "\|" here
@@ -76,7 +76,7 @@ Summary(pt_BR.UTF-8): Arquivos de desenvolvimento da libgcrypt
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
 %{?with_libcap:Requires:       libcap-devel}
-Requires:      libgpg-error-devel >= 1.13
+Requires:      libgpg-error-devel >= 1.25
 
 %description devel
 Header files etc to develop libgcrypt applications.
This page took 0.154677 seconds and 4 git commands to generate.