pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/security/pam-af Don't force unaligned memory use. Bump...
details: https://anonhg.NetBSD.org/pkgsrc/rev/ce0d8621045c
branches: trunk
changeset: 358254:ce0d8621045c
user: joerg <joerg%pkgsrc.org@localhost>
date: Wed Feb 08 00:07:38 2017 +0000
description:
Don't force unaligned memory use. Bump revision.
diffstat:
security/pam-af/Makefile | 4 +-
security/pam-af/distinfo | 3 +-
security/pam-af/patches/patch-common_pam__af.h | 40 ++++++++++++++++++++++++++
3 files changed, 44 insertions(+), 3 deletions(-)
diffs (73 lines):
diff -r 5b2d48781afc -r ce0d8621045c security/pam-af/Makefile
--- a/security/pam-af/Makefile Wed Feb 08 00:06:54 2017 +0000
+++ b/security/pam-af/Makefile Wed Feb 08 00:07:38 2017 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.14 2015/03/15 18:31:52 hiramatsu Exp $
+# $NetBSD: Makefile,v 1.15 2017/02/08 00:07:38 joerg Exp $
DISTNAME= pam_af-1.0.2
PKGNAME= ${DISTNAME:S/_/-/}
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= security
MASTER_SITES= http://mbsd.msk.ru/dist/
EXTRACT_SUFX= .tar.bz2
diff -r 5b2d48781afc -r ce0d8621045c security/pam-af/distinfo
--- a/security/pam-af/distinfo Wed Feb 08 00:06:54 2017 +0000
+++ b/security/pam-af/distinfo Wed Feb 08 00:07:38 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.11 2015/11/04 01:17:59 agc Exp $
+$NetBSD: distinfo,v 1.12 2017/02/08 00:07:38 joerg Exp $
SHA1 (pam_af-1.0.2.tar.bz2) = e3856a33d79beafa8d4e8cb44b19cbf79a3ed422
RMD160 (pam_af-1.0.2.tar.bz2) = 0c4163d811ba83de32e9b4633780ac76c8d10d8f
@@ -7,4 +7,5 @@
SHA1 (patch-aa) = 9c8e44c7b25e268777967c742a6946abe0c80316
SHA1 (patch-ab) = 2d42056f2972a34d2ec681f3c408cfdfc7c26d67
SHA1 (patch-ad) = 0f46fecfec3b920a08e2c22c14ada368214d6a69
+SHA1 (patch-common_pam__af.h) = 026b303116b80cb48987c24b5f48677e7581a346
SHA1 (patch-pam__af__tool_pam__af__tool.c) = af061bc8766cbf8406dd7a8ce95240e708085bba
diff -r 5b2d48781afc -r ce0d8621045c security/pam-af/patches/patch-common_pam__af.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/pam-af/patches/patch-common_pam__af.h Wed Feb 08 00:07:38 2017 +0000
@@ -0,0 +1,40 @@
+$NetBSD: patch-common_pam__af.h,v 1.1 2017/02/08 00:07:38 joerg Exp $
+
+Don't pessimize the build or even create unaligned access by forcing the
+structures to be packed.
+
+--- common/pam_af.h.orig 2017-01-08 20:09:41.718970211 +0000
++++ common/pam_af.h
+@@ -90,14 +90,6 @@
+ # define _PATH_BSHELL DEFSHL
+ #endif
+
+-#ifndef __packed
+-# ifdef __GNUC__
+-# define __packed __attribute__((packed))
+-# else /* __GNUC__ */
+-# define __packed
+-# endif /* __GNUC__ */
+-#endif
+-
+ #ifndef __unused
+ # ifdef __GNUC__
+ # define __unused __attribute__((unused))
+@@ -114,7 +106,7 @@ typedef struct hostrec {
+ unsigned long num;
+ time_t last_attempt;
+ unsigned long locked_for;
+-} __packed hostrec_t;
++} hostrec_t;
+
+ typedef struct hostrule {
+ uint mask;
+@@ -122,7 +114,7 @@ typedef struct hostrule {
+ long locktime;
+ char lock_cmd[MAX_CMD_LEN];
+ char unlock_cmd[MAX_CMD_LEN];
+-} __packed hostrule_t;
++} hostrule_t;
+ #define DEFAULT_ATTEMPTS ULONG_MAX
+ #define DEFAULT_LOCKTIME 0
+ #define DEFRULE "*"
Home |
Main Index |
Thread Index |
Old Index