x11/libSM: Update to 1.2.3

Update libSM to 1.2.3.
Rename the patch to fit FreeBSD standard naming.

Changelog:
https://lists.x.org/archives/xorg-announce/2018-October/002922.html

PR:		232798
Submitted by:	pete@nomadlogic.org
This commit is contained in:
Niclas Zeising 2018-10-30 20:10:50 +00:00
parent a6b0d1c557
commit 4ee4efe7c6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=483536
4 changed files with 15 additions and 21 deletions

View File

@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= libSM
PORTVERSION= 1.2.2
PORTREVISION= 5
PORTVERSION= 1.2.3
PORTEPOCH= 1
CATEGORIES= x11

View File

@ -1,2 +1,3 @@
SHA256 (xorg/lib/libSM-1.2.2.tar.bz2) = 0baca8c9f5d934450a70896c4ad38d06475521255ca63b717a6510fdb6e287bd
SIZE (xorg/lib/libSM-1.2.2.tar.bz2) = 348908
TIMESTAMP = 1540742700
SHA256 (xorg/lib/libSM-1.2.3.tar.bz2) = 2d264499dcb05f56438dee12a1b4b71d76736ce7ba7aa6efbf15ebb113769cbb
SIZE (xorg/lib/libSM-1.2.3.tar.bz2) = 362595

View File

@ -1,17 +0,0 @@
--- src/sm_genid.c.orig 2010-06-04 20:15:04.000000000 +0200
+++ src/sm_genid.c 2011-08-06 20:15:47.000000000 +0200
@@ -111,11 +111,13 @@ SmsGenerateClientID(SmsConn smsConn)
{
#if defined(HAVE_UUID_CREATE)
char *id;
- char **temp;
+ char *temp;
uuid_t uuid;
uint32_t status;
uuid_create(&uuid, &status);
+ if (status != uuid_s_ok)
+ return NULL;
uuid_to_string(&uuid, &temp, &status);

View File

@ -0,0 +1,11 @@
--- src/sm_genid.c.orig 2018-10-10 15:05:03 UTC
+++ src/sm_genid.c
@@ -114,6 +114,8 @@ SmsGenerateClientID(SmsConn smsConn)
size_t len;
uuid_create(&uuid, &status);
+ if (status != uuid_s_ok)
+ return NULL;
uuid_to_string(&uuid, &temp, &status);