pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/gnome-vfs gnome-vfs: fix build with openssl-1.1.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f9b75d22ee28
branches:  trunk
changeset: 375595:f9b75d22ee28
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Fri Feb 16 13:18:26 2018 +0000

description:
gnome-vfs: fix build with openssl-1.1.

struct SSL is opaque in openssl-1.1; and the SSL_free() man page
says that one should not free members of it manually (in both
the openssl-1.0 and openssl-1.1 man pages).

Regen two other patches (NFC for these).

Bump PKGREVISION.

diffstat:

 sysutils/gnome-vfs/Makefile                                  |   4 +-
 sysutils/gnome-vfs/distinfo                                  |   7 +-
 sysutils/gnome-vfs/patches/patch-ae                          |   6 +-
 sysutils/gnome-vfs/patches/patch-ar                          |  24 +++++-----
 sysutils/gnome-vfs/patches/patch-libgnomevfs_gnome-vfs-ssl.c |  26 ++++++++++++
 5 files changed, 47 insertions(+), 20 deletions(-)

diffs (170 lines):

diff -r 91fc8ef2f293 -r f9b75d22ee28 sysutils/gnome-vfs/Makefile
--- a/sysutils/gnome-vfs/Makefile       Fri Feb 16 12:47:55 2018 +0000
+++ b/sysutils/gnome-vfs/Makefile       Fri Feb 16 13:18:26 2018 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.115 2018/01/28 20:10:38 wiz Exp $
+# $NetBSD: Makefile,v 1.116 2018/02/16 13:18:26 wiz Exp $
 
-PKGREVISION=           33
+PKGREVISION=           34
 
 PKGCONFIG_OVERRIDE=    gnome-vfs-2.0.pc.in
 PKGCONFIG_OVERRIDE+=   gnome-vfs-module-2.0.pc.in
diff -r 91fc8ef2f293 -r f9b75d22ee28 sysutils/gnome-vfs/distinfo
--- a/sysutils/gnome-vfs/distinfo       Fri Feb 16 12:47:55 2018 +0000
+++ b/sysutils/gnome-vfs/distinfo       Fri Feb 16 13:18:26 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.37 2015/11/04 01:32:16 agc Exp $
+$NetBSD: distinfo,v 1.38 2018/02/16 13:18:26 wiz Exp $
 
 SHA1 (gnome-vfs-2.24.4.tar.bz2) = 0dc634e7dd979fd218f378902c0ca1af80738961
 RMD160 (gnome-vfs-2.24.4.tar.bz2) = 6a5952bea02dfc96782b6f1129fe765f5313a75b
@@ -6,14 +6,14 @@
 Size (gnome-vfs-2.24.4.tar.bz2) = 1890370 bytes
 SHA1 (patch-aa) = a5a3ac6be3e2a888eaaab108807d2aff651e62db
 SHA1 (patch-ab) = 6320180870f234a150dfe40f8f990deec7a2a0b5
-SHA1 (patch-ae) = 42f8f07f8729ad1fb88bd9f0032d7450c6d2c8c5
+SHA1 (patch-ae) = 22db92bc83d869f75ca7e2d467f1929b006d2521
 SHA1 (patch-af) = 6724c4a43d0d9525f5361ba7380c91adbf656e56
 SHA1 (patch-ai) = 6afefb35bfe3fc37e84048b95ccc272a01542ec2
 SHA1 (patch-am) = 4e037da71db0d3aae236475a0f2ead12738f35f9
 SHA1 (patch-ao) = 0cc64574f6d430ca385f22d28690b9cea9181390
 SHA1 (patch-ap) = cf09ffdef9e1b03425d60e69302e8e589928d370
 SHA1 (patch-aq) = 1d5ed4d6c1b3a282e68bedf6892fa8a9678ea39b
-SHA1 (patch-ar) = 33bac387ffe861141f9cd6564c24956d3e9e4cb4
+SHA1 (patch-ar) = 8979e4d3281c382ed70acff1706e134a7b654053
 SHA1 (patch-au) = e3c681dd445d0774981a50eb22ae14ff4db5902c
 SHA1 (patch-ax) = 6b9b11df5d530b7b3aa6a3997feb7c1c93e7b2db
 SHA1 (patch-ba) = 5299eb32ff0c14eb98d8f7dd5e104cd931a02b51
@@ -24,4 +24,5 @@
 SHA1 (patch-cc) = 010674b9e7674cc4b84a57ac680a5769c5cffd29
 SHA1 (patch-cd) = 64ce812ca541dc34705586b4b01446b29bab8613
 SHA1 (patch-ce) = 718d7de318e85e58b7412345496263ca559e9a73
+SHA1 (patch-libgnomevfs_gnome-vfs-ssl.c) = f5e1017cdbc32815ae448f59f0804788eadecef8
 SHA1 (patch-modules_inotify-kernel.c) = 049236b40569358a91c6a58881c13be63a16aff5
diff -r 91fc8ef2f293 -r f9b75d22ee28 sysutils/gnome-vfs/patches/patch-ae
--- a/sysutils/gnome-vfs/patches/patch-ae       Fri Feb 16 12:47:55 2018 +0000
+++ b/sysutils/gnome-vfs/patches/patch-ae       Fri Feb 16 13:18:26 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-ae,v 1.11 2013/10/12 04:39:01 richard Exp $
+$NetBSD: patch-ae,v 1.12 2018/02/16 13:18:26 wiz Exp $
 
 builtin krb5-config in platforms such as solaris do not support
 the gssapi option, and need an explicit -lgss
@@ -27,8 +27,8 @@
  }
  _ACEOF
 @@ -15717,9 +15719,14 @@ fi
-
-
+ 
+ 
  if test "x$KRB5_CONFIG" != "xnone"; then
 -   GSSAPI_LIBS="`${KRB5_CONFIG} --libs gssapi`"
 -   GSSAPI_CFLAGS="`${KRB5_CONFIG} --cflags gssapi`"
diff -r 91fc8ef2f293 -r f9b75d22ee28 sysutils/gnome-vfs/patches/patch-ar
--- a/sysutils/gnome-vfs/patches/patch-ar       Fri Feb 16 12:47:55 2018 +0000
+++ b/sysutils/gnome-vfs/patches/patch-ar       Fri Feb 16 13:18:26 2018 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-ar,v 1.1 2007/09/19 22:22:40 wiz Exp $
+$NetBSD: patch-ar,v 1.2 2018/02/16 13:18:26 wiz Exp $
 
---- libgnomevfs/gnome-vfs-pty.c.orig   Tue Nov 22 15:10:17 2005
-+++ libgnomevfs/gnome-vfs-pty.c        Wed Apr 26 23:15:08 2006
-@@ -306,7 +306,7 @@ _gnome_vfs_pty_run_on_pty(int fd, gboole
+--- libgnomevfs/gnome-vfs-pty.c.orig   2010-02-09 12:16:14.000000000 +0000
++++ libgnomevfs/gnome-vfs-pty.c
+@@ -330,7 +330,7 @@ _gnome_vfs_pty_run_on_pty(int fd, gboole
                chdir(directory);
        }
  
@@ -11,7 +11,7 @@
        /* This sets stdin, stdout, stderr to the socket */     
        if (login && login_tty (fd) == -1) {
                g_printerr ("mount child process login_tty failed: %s\n", strerror (errno));
-@@ -629,6 +629,7 @@ _gnome_vfs_pty_set_size(int master, int 
+@@ -654,6 +654,7 @@ _gnome_vfs_pty_set_size(int master, int 
  static char *
  _gnome_vfs_pty_ptsname(int master)
  {
@@ -19,7 +19,7 @@
  #if defined(HAVE_PTSNAME_R)
        gsize len = 1024;
        char *buf = NULL;
-@@ -674,6 +675,7 @@ _gnome_vfs_pty_ptsname(int master)
+@@ -699,6 +700,7 @@ _gnome_vfs_pty_ptsname(int master)
                return g_strdup_printf("/dev/pts/%d", pty);
        }
  #endif
@@ -27,7 +27,7 @@
        return NULL;
  }
  
-@@ -681,10 +683,10 @@ static int
+@@ -706,10 +708,10 @@ static int
  _gnome_vfs_pty_getpt(void)
  {
        int fd, flags;
@@ -40,7 +40,7 @@
        fd = posix_openpt(O_RDWR | O_NOCTTY);
  #else
        /* Try to allocate a pty by accessing the pty master multiplex. */
-@@ -703,7 +705,7 @@ _gnome_vfs_pty_getpt(void)
+@@ -728,7 +730,7 @@ _gnome_vfs_pty_getpt(void)
  static int
  _gnome_vfs_pty_grantpt(int master)
  {
@@ -49,7 +49,7 @@
        return grantpt(master);
  #else
        return 0;
-@@ -713,6 +715,9 @@ _gnome_vfs_pty_grantpt(int master)
+@@ -738,6 +740,9 @@ _gnome_vfs_pty_grantpt(int master)
  static int
  _gnome_vfs_pty_unlockpt(int fd)
  {
@@ -59,11 +59,11 @@
  #ifdef HAVE_UNLOCKPT
        return unlockpt(fd);
  #elif defined(TIOCSPTLCK)
-@@ -720,6 +725,7 @@ _gnome_vfs_pty_unlockpt(int fd)
-       return ioctl(fd, TIOCSPTLCK, &zero);
+@@ -746,6 +751,7 @@ _gnome_vfs_pty_unlockpt(int fd)
  #else
        return -1;
+ #endif
 +#endif
- #endif
  }
  
+ static int
diff -r 91fc8ef2f293 -r f9b75d22ee28 sysutils/gnome-vfs/patches/patch-libgnomevfs_gnome-vfs-ssl.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/gnome-vfs/patches/patch-libgnomevfs_gnome-vfs-ssl.c      Fri Feb 16 13:18:26 2018 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-libgnomevfs_gnome-vfs-ssl.c,v 1.1 2018/02/16 13:18:26 wiz Exp $
+
+struct SSL is opaque in openssl-1.1; and the SSL_free() man page
+says that one should not free members of it manually (in both
+the openssl-1.0 and openssl-1.1 man pages).
+
+--- libgnomevfs/gnome-vfs-ssl.c.orig   2010-02-09 12:16:14.000000000 +0000
++++ libgnomevfs/gnome-vfs-ssl.c
+@@ -400,9 +400,6 @@ gnome_vfs_ssl_create_from_fd (GnomeVFSSS
+                       }
+               }
+ 
+-                if (ssl->private->ssl->ctx)
+-                        SSL_CTX_free (ssl->private->ssl->ctx);
+-
+                 SSL_free (ssl->private->ssl);
+               g_free (ssl->private);
+               g_free (ssl);
+@@ -705,7 +702,6 @@ gnome_vfs_ssl_destroy (GnomeVFSSSL *ssl,
+               }
+       }
+       
+-      SSL_CTX_free (ssl->private->ssl->ctx);
+       SSL_free (ssl->private->ssl);
+       close (ssl->private->sockfd);
+       if (ssl->private->timeout)



Home | Main Index | Thread Index | Old Index