Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Apr 2021 11:46:36 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 384a632a34a4 - main - sysutils/passwordsafe: fix build on powerpc64le
Message-ID:  <202104141146.13EBkafF011625@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=384a632a34a4c6d047226fbcec23875891fed0be

commit 384a632a34a4c6d047226fbcec23875891fed0be
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-04-14 11:46:56 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2021-04-14 11:46:56 +0000

    sysutils/passwordsafe: fix build on powerpc64le
    
    powerpc64le is little endian.
---
 sysutils/passwordsafe/files/patch-src_core_PwsPlatform.h | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/sysutils/passwordsafe/files/patch-src_core_PwsPlatform.h b/sysutils/passwordsafe/files/patch-src_core_PwsPlatform.h
index 89659d384036..37aa546fdf55 100644
--- a/sysutils/passwordsafe/files/patch-src_core_PwsPlatform.h
+++ b/sysutils/passwordsafe/files/patch-src_core_PwsPlatform.h
@@ -1,10 +1,13 @@
---- src/core/PwsPlatform.h.orig	2019-03-26 09:46:50 UTC
+--- src/core/PwsPlatform.h.orig	2020-10-28 19:48:24 UTC
 +++ src/core/PwsPlatform.h
-@@ -140,6 +140,8 @@
- #define LTC_NO_ROLC
- #if defined(__i386__) || defined(__amd64__)
+@@ -116,8 +116,10 @@
+ // * FreeBSD on Intel                           *
+ // **********************************************
+ #elif defined(__FreeBSD) || defined(__FreeBSD__)
+-#if defined(__i386__) || defined(__amd64__)
++#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
  #define PWS_LITTLE_ENDIAN
-+#elif defined(__ppc__)
++#else
 +#define PWS_BIG_ENDIAN
  #endif
  // **********************************************



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