summaryrefslogtreecommitdiff
path: root/security/pam-af
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2011-03-23 08:10:33 +0000
committerobache <obache@pkgsrc.org>2011-03-23 08:10:33 +0000
commit8826e81333f0f1a55ff8a04045c59b143672299c (patch)
tree4c902f7eec8b077e14bc30005f52a9e684751afb /security/pam-af
parentd44d630616443ec9e1b89f2c9c3053c270593817 (diff)
downloadpkgsrc-8826e81333f0f1a55ff8a04045c59b143672299c.tar.gz
remove needless assignment, it break strict-aliasing.
Diffstat (limited to 'security/pam-af')
-rw-r--r--security/pam-af/Makefile4
-rw-r--r--security/pam-af/distinfo4
-rw-r--r--security/pam-af/patches/patch-ad19
3 files changed, 23 insertions, 4 deletions
diff --git a/security/pam-af/Makefile b/security/pam-af/Makefile
index 2407d794615..0255d0b079f 100644
--- a/security/pam-af/Makefile
+++ b/security/pam-af/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2011/03/23 07:49:47 obache Exp $
+# $NetBSD: Makefile,v 1.6 2011/03/23 08:10:33 obache Exp $
DISTNAME= pam_af-1.0.1
PKGNAME= ${DISTNAME:S/_/-/}
@@ -16,6 +16,8 @@ PKG_DESTDIR_SUPPORT= user-destdir
.include "../../mk/bsd.prefs.mk"
+CPPFLAGS+= -Wstrict-aliasing
+
.if ${OPSYS} == "Linux"
.include "../../databases/gdbm/buildlink3.mk"
.endif
diff --git a/security/pam-af/distinfo b/security/pam-af/distinfo
index d1cc0b96272..5a69ed34cb1 100644
--- a/security/pam-af/distinfo
+++ b/security/pam-af/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2011/01/25 09:08:25 obache Exp $
+$NetBSD: distinfo,v 1.6 2011/03/23 08:10:33 obache Exp $
SHA1 (pam_af-1.0.1.tar.bz2) = f953e50791db0d13f124ce0346f1db43b9d0bafa
RMD160 (pam_af-1.0.1.tar.bz2) = 6fd33ef36b810eac58a59cd6ae0eb918548205e3
@@ -6,5 +6,5 @@ Size (pam_af-1.0.1.tar.bz2) = 18006 bytes
SHA1 (patch-aa) = 90efac36df429a51461b7a912f3ea0db923f630e
SHA1 (patch-ab) = 3a8518c5e2a91d470d8861a866c37640985cd85c
SHA1 (patch-ac) = 4be5f4fac51d4f848723e463c09ee759f64740c0
-SHA1 (patch-ad) = a51e5d35437584309dec9b5e9240a287debc7d32
+SHA1 (patch-ad) = 83c3c96f42a26cde7d5a66b31f48bc12ee059ae4
SHA1 (patch-ae) = 353c2c1e13b564adee72f4fcd3b4006b968d123d
diff --git a/security/pam-af/patches/patch-ad b/security/pam-af/patches/patch-ad
index e7dcf4c92a0..5e2ebfde332 100644
--- a/security/pam-af/patches/patch-ad
+++ b/security/pam-af/patches/patch-ad
@@ -1,6 +1,7 @@
-$NetBSD: patch-ad,v 1.1 2011/01/25 09:07:58 obache Exp $
+$NetBSD: patch-ad,v 1.2 2011/03/23 08:10:33 obache Exp $
* Recent OpemPAM define `OPENPAM', not `_OPENPAM'.
+* Remove needless assignment, it break strict-aliasing
--- common/subr.c.orig 2006-11-07 00:22:37.000000000 +0000
+++ common/subr.c
@@ -13,3 +14,19 @@ $NetBSD: patch-ad,v 1.1 2011/01/25 09:07:58 obache Exp $
# include <security/pam_mod_misc.h>
# include <security/openpam.h>
# endif
+@@ -181,7 +181,6 @@ my_getnameinfo(addr, addrlen, buf, bufle
+
+ sockaddr = (struct sockaddr *)&sa;
+ salen = sizeof(sa);
+- sockaddr->sa_family = PF_INET;
+ break;
+
+ case IPV6SZ:
+@@ -192,7 +191,6 @@ my_getnameinfo(addr, addrlen, buf, bufle
+
+ sockaddr = (struct sockaddr *)&sa6;
+ salen = sizeof(sa6);
+- sockaddr->sa_family = PF_INET6;
+ break;
+
+ default: