pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/ipmitool ipmitool: Avoid defines that result ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b2906cdef337
branches:  trunk
changeset: 312550:b2906cdef337
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu Sep 06 09:47:02 2018 +0000

description:
ipmitool: Avoid defines that result in getpass() failures on Darwin.

Inspired by a Homebrew patch, fixes joyent/pkgsrc#79.  Bump PKGREVISION.

diffstat:

 sysutils/ipmitool/Makefile                       |   3 ++-
 sysutils/ipmitool/distinfo                       |   3 ++-
 sysutils/ipmitool/patches/patch-lib_ipmi__main.c |  20 ++++++++++++++++++++
 3 files changed, 24 insertions(+), 2 deletions(-)

diffs (52 lines):

diff -r a47f6d4ba076 -r b2906cdef337 sysutils/ipmitool/Makefile
--- a/sysutils/ipmitool/Makefile        Thu Sep 06 09:44:23 2018 +0000
+++ b/sysutils/ipmitool/Makefile        Thu Sep 06 09:47:02 2018 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.19 2017/12/22 21:45:23 markd Exp $
+# $NetBSD: Makefile,v 1.20 2018/09/06 09:47:02 jperkin Exp $
 #
 
 DISTNAME=              ipmitool-1.8.18
+PKGREVISION=           1
 CATEGORIES=            sysutils
 MASTER_SITES=          ${MASTER_SITE_SOURCEFORGE:=ipmitool/}
 
diff -r a47f6d4ba076 -r b2906cdef337 sysutils/ipmitool/distinfo
--- a/sysutils/ipmitool/distinfo        Thu Sep 06 09:44:23 2018 +0000
+++ b/sysutils/ipmitool/distinfo        Thu Sep 06 09:47:02 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.10 2018/01/08 22:37:57 jperkin Exp $
+$NetBSD: distinfo,v 1.11 2018/09/06 09:47:02 jperkin Exp $
 
 SHA1 (ipmitool-1.8.18.tar.gz) = b85b7d01a3b8296227505ee0ad078134fc2c81ff
 RMD160 (ipmitool-1.8.18.tar.gz) = d1426f799b76f26aa98357c0c36fa68f3fa3c883
@@ -7,4 +7,5 @@
 SHA1 (patch-ad) = 4af586b36f1744d263c66ed28aa17a9f9840a415
 SHA1 (patch-ae) = 67828b62b46a30b204dd436681c5ecac39bb29b3
 SHA1 (patch-lib_ipmi__cfgp.c) = 3b16d340fce1bdaee66b15430c25f19f4d38ae08
+SHA1 (patch-lib_ipmi__main.c) = 4d90e86dda16ea0b596573d88833e348c11ffb24
 SHA1 (patch-src_plugins_lanplus_lanplus__crypt__impl.c) = 8aaa1c6328bd6c0559ae9863cad671cdd32ab514
diff -r a47f6d4ba076 -r b2906cdef337 sysutils/ipmitool/patches/patch-lib_ipmi__main.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/ipmitool/patches/patch-lib_ipmi__main.c  Thu Sep 06 09:47:02 2018 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-lib_ipmi__main.c,v 1.1 2018/09/06 09:47:02 jperkin Exp $
+
+Avoid defines that result in getpass() failures on Darwin.
+
+--- lib/ipmi_main.c.orig       2016-07-31 06:56:33.000000000 +0000
++++ lib/ipmi_main.c
+@@ -29,11 +29,13 @@
+  * LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
+  * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+  */
++#if !defined(__APPLE__)
+ #define _XOPEN_SOURCE 700
+ #define _BSD_SOURCE || \
+       (_XOPEN_SOURCE >= 500 || \
+       _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED) && \
+       !(_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600)
++#endif
+ 
+ #include <stdlib.h>
+ #include <stdio.h>



Home | Main Index | Thread Index | Old Index