Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Aug 2012 16:12:27 -0400
From:      "Jason E. Hale" <bsdkaffee@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        umq@ueo.co.jp
Subject:   ports/170488: [PATCH] security/gnutls: Add patch to help remove warnings in other ports 
Message-ID:  <1344456747.159117.96133@mocha.verizon.net>
Resent-Message-ID: <201208082020.q78KK17s022849@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         170488
>Category:       ports
>Synopsis:       [PATCH] security/gnutls: Add patch to help remove warnings in other ports
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 08 20:20:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Jason E. Hale
>Release:        FreeBSD 9.0-RELEASE i386
>Organization:
none 
>Environment:
System: FreeBSD mocha.verizon.net 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Thu Jan 19 11:42:41 EST 2012 Jason@mocha.verizon.net:/usr/obj/usr/src/sys/MOCHA9 i386


	
>Description:
- gcrypt.h has some deprecated functions that aren't properly wrapped and
  emit warnings even if -DGCRYPT_NO_DEPRECATED is passed to the compiler
  such as:
     /usr/local/include/gcrypt.h:1336: warning: 'gcry_ac_io_mode_t' is deprecated
     /usr/local/include/gcrypt.h:1337: warning: 'gcry_ac_io_type_t' is deprecated
     /usr/local/include/gcrypt.h:1344: warning: 'gcry_ac_data_read_cb_t' is deprecated
     /usr/local/include/gcrypt.h:1358: warning: 'gcry_ac_data_write_cb_t' is deprecated
     /usr/local/include/gcrypt.h:1393: warning: 'gcry_md_algo_t' is deprecated
     /usr/local/include/gcrypt.h:1401: warning: 'gcry_md_algo_t' is deprecated
- While here: avoid installing multiple copies of the GPLv2 and LGPL21,
  they are known licenses and are in ${PORTSDIR}/Templates/Licenses
- Bump PORTREVISION since installed files will change
	
>How-To-Repeat:
- Build a port that depends on libgcrypt like devel/gwenhywfar
	
>Fix:

	
gcrypt.h.in patch created with information from:
http://lists.gnupg.org/pipermail/gcrypt-devel/2011-September/001843.html


--- 2012-08-08-libgcrypt.diff begins here ---
Index: files/patch-src__gcrypt.h.in
===================================================================
--- files/patch-src__gcrypt.h.in	(revision 0)
+++ files/patch-src__gcrypt.h.in	(working copy)
@@ -0,0 +1,19 @@
+--- ./src/gcrypt.h.in.orig	2012-08-08 07:35:27.000000000 -0400
++++ ./src/gcrypt.h.in	2012-08-08 07:37:47.000000000 -0400
+@@ -1248,7 +1248,7 @@
+    number.  */
+ gcry_error_t gcry_md_list (int *list, int *list_length);
+ 
+-
++#if !defined(GCRYPT_NO_DEPRECATED) || defined(_GCRYPT_IN_LIBGCRYPT)
+ /* Alternative interface for asymmetric cryptography.  This interface
+    is deprecated.  */
+ 
+@@ -1401,6 +1401,7 @@
+   gcry_md_algo_t md;
+ } gcry_ac_ssa_pkcs_v1_5_t _GCRY_ATTR_INTERNAL;
+ 
++#endif
+ 
+ #ifndef GCRYPT_NO_DEPRECATED
+ /* Returns a new, empty data set in DATA.  */

Property changes on: files/patch-src__gcrypt.h.in
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: fbsd:nokeywords
## -0,0 +1 ##
+yes
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Index: pkg-plist
===================================================================
--- pkg-plist	(revision 302305)
+++ pkg-plist	(working copy)
@@ -9,8 +9,6 @@
 lib/libgcrypt.so.18
 share/aclocal/libgcrypt.m4
 %%PORTDOCS%%%%DOCSDIR%%/AUTHORS
-%%PORTDOCS%%%%DOCSDIR%%/COPYING
-%%PORTDOCS%%%%DOCSDIR%%/COPYING.LIB
 %%PORTDOCS%%%%DOCSDIR%%/ChangeLog
 %%PORTDOCS%%%%DOCSDIR%%/HACKING
 %%PORTDOCS%%%%DOCSDIR%%/INSTALL
Index: Makefile
===================================================================
--- Makefile	(revision 302305)
+++ Makefile	(working copy)
@@ -6,6 +6,7 @@
 
 PORTNAME=	libgcrypt
 PORTVERSION=	1.5.0
+PORTREVISION=	1
 CATEGORIES=	security
 MASTER_SITES=	${MASTER_SITE_GNUPG}
 MASTER_SITE_SUBDIR=	${PORTNAME}
@@ -15,7 +16,6 @@
 
 LICENSE=	GPLv2 LGPL21
 LICENSE_COMB=	multi
-LICENSE_FILE=	${WRKSRC}/COPYING ${WRKSRC}/COPYING.LIB
 
 BUILD_DEPENDS=	libgpg-error>=1.8:${PORTSDIR}/security/libgpg-error
 RUN_DEPENDS=	libgpg-error>=1.8:${PORTSDIR}/security/libgpg-error
@@ -27,7 +27,7 @@
 CONFIGURE_ENV=	MAKEINFO="makeinfo --no-split"
 USE_LDCONFIG=	yes
 
-DOCS=	AUTHORS COPYING COPYING.LIB ChangeLog INSTALL NEWS README README.SVN \
+DOCS=	AUTHORS ChangeLog INSTALL NEWS README README.SVN \
 	THANKS TODO doc/HACKING doc/README.apichanges
 INFO=	gcrypt
 
--- 2012-08-08-libgcrypt.diff ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1344456747.159117.96133>