From nobody Wed Dec 15 20:07:29 2021 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 091F818EE06D; Wed, 15 Dec 2021 20:07:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JDmW53d4Dz3try; Wed, 15 Dec 2021 20:07:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 58DE022747; Wed, 15 Dec 2021 20:07:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BFK7Twp094155; Wed, 15 Dec 2021 20:07:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BFK7TOT094154; Wed, 15 Dec 2021 20:07:29 GMT (envelope-from git) Date: Wed, 15 Dec 2021 20:07:29 GMT Message-Id: <202112152007.1BFK7TOT094154@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Piotr Kubaj Subject: git: c66a851d1378 - main - x11/cde: fix build on powerpc64le List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pkubaj X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c66a851d13783558a8fa17ffcf64759a0c1b5bab Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639598849; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=n+ngvJ9u3Wl6MrhJ8+G4x2Bckx6h4v1LFQbKbp6lk18=; b=yJXsOZ8Z3JcJgB711Re5AxVVxrbA5CnVclSyITGQBpmF+ZCXA679kT32BX9ULCwOVYFxza dgR2tuLVNVaSUYazvHrCCaiteQCCyk4giSlIpCEIYxtJSI7VCEPsEKZcwCS3+RkUSPS0xC 9yiAXP/qPw/jnk4noL+961h/Z3BWUGPq5+qJMcf5Nla2NGdgOh2Cd7/pJ9f93KB+i0G6cq 71PrvrQWmHHahOcNI61R8NG9FjaP2TTm1L28fP3+pr/J+C5K2+nsXKT0sS9cgVQArBnxgB /HvFCGG3IdMw2J+28AvqPfJqA4ZTH5hmqhglzAX/4TdKArNyjtl10b+Qr6GJFQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639598849; a=rsa-sha256; cv=none; b=Is9Em7aj4sMZ24a5eFsOJjeHYL+c+MYKSDDfqoaUPcyAbJqKyqSzrjIGAgw+Ubsf39EKdN oSaWHm8no+R7d4EoAh3H1Ot1XmCBH6rVQLwnY6vyXp8Hkz+xoXpduqsfX7pm66p0brGrlD aFTcx1gTGuz+L93+0/Mkc3d5M6Kdb+ENp/UUFF6cPI44xOHhfAWBvPpgPiQES5JDxXSa4G +a9h9ti1A87ZPUGCH9EopllEZ4nxGepj40QV6te5xpybHzILank0HSKc35AEgxZZU2I+ip CSKxYUJQguWudtGxKfBAJyriAGReYbA5PEn6jD8n3WdINc5fnIQcT7NpQdkljw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=c66a851d13783558a8fa17ffcf64759a0c1b5bab commit c66a851d13783558a8fa17ffcf64759a0c1b5bab Author: Piotr Kubaj AuthorDate: 2021-12-15 20:01:53 +0000 Commit: Piotr Kubaj CommitDate: 2021-12-15 20:01:53 +0000 x11/cde: fix build on powerpc64le 1. Merge patches from shells/ast-ksh fixing ksh93 build. 2. Change endianness detection to what __BYTE_ORDER__ points to. The way CDE detects endianness is not correct and I got errors about running neither BE or LE. This still fails to build on powerpc64, so BROKEN_powerpc64 is not removed. --- ...programs_dtinfo_DtMmdb_btree__berkeley_compat.h | 16 ++++++++++++ ...tch-programs_dtinfo_DtMmdb_schema_store__desc.C | 30 ++++++++++++++++++++++ ...patch-programs_dtinfo_DtMmdb_storage_spointer.h | 11 ++++++++ ...-programs_dtinfo_DtMmdb_utility_atoi__pearson.C | 19 ++++++++++++++ ...ams_dtksh_ksh93_src_lib_libast_hash_hashalloc.c | 20 +++++++++++++++ ...ams_dtksh_ksh93_src_lib_libast_string_tokscan.c | 20 +++++++++++++++ 6 files changed, 116 insertions(+) diff --git a/x11/cde/files/patch-programs_dtinfo_DtMmdb_btree__berkeley_compat.h b/x11/cde/files/patch-programs_dtinfo_DtMmdb_btree__berkeley_compat.h new file mode 100644 index 000000000000..b04314918f6e --- /dev/null +++ b/x11/cde/files/patch-programs_dtinfo_DtMmdb_btree__berkeley_compat.h @@ -0,0 +1,16 @@ +--- programs/dtinfo/DtMmdb/btree_berkeley/compat.h.orig 2021-12-14 13:35:18 UTC ++++ programs/dtinfo/DtMmdb/btree_berkeley/compat.h +@@ -147,11 +147,11 @@ void * __fix_realloc __P((void*, size_t)); + #define LITTLE_ENDIAN 1234 /* LSB first: i386, vax */ + #define BIG_ENDIAN 4321 /* MSB first: 68000, ibm, net */ + +-#ifdef MMDB_LITTLE_ENDIAN ++#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ + #define BYTE_ORDER LITTLE_ENDIAN /* Set for your system. */ + #endif + +-#ifdef MMDB_BIG_ENDIAN ++#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ + #define BYTE_ORDER BIG_ENDIAN /* Set for your system. */ + #endif + diff --git a/x11/cde/files/patch-programs_dtinfo_DtMmdb_schema_store__desc.C b/x11/cde/files/patch-programs_dtinfo_DtMmdb_schema_store__desc.C new file mode 100644 index 000000000000..175de96d7e6f --- /dev/null +++ b/x11/cde/files/patch-programs_dtinfo_DtMmdb_schema_store__desc.C @@ -0,0 +1,30 @@ +--- programs/dtinfo/DtMmdb/schema/store_desc.C.orig 2021-12-14 19:59:51 UTC ++++ programs/dtinfo/DtMmdb/schema/store_desc.C +@@ -66,11 +66,11 @@ store_desc::store_desc(const char* name) : desc(name) + mode_str = strdup(""); + order_str = 0; + +-#ifdef MMDB_BIG_ENDIAN ++#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ + order_str = strdup("big_endian"); + #endif + +-#ifdef MMDB_LITTLE_ENDIAN ++#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ + order_str = strdup("little_endian"); + #endif + +@@ -87,11 +87,11 @@ store_desc::store_desc(int tp, const char* comment): + + order_str = 0; + +-#ifdef MMDB_BIG_ENDIAN ++#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ + order_str = strdup("big_endian"); + #endif + +-#ifdef MMDB_LITTLE_ENDIAN ++#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ + order_str = strdup("little_endian"); + #endif + diff --git a/x11/cde/files/patch-programs_dtinfo_DtMmdb_storage_spointer.h b/x11/cde/files/patch-programs_dtinfo_DtMmdb_storage_spointer.h new file mode 100644 index 000000000000..6b9a5a8c3be3 --- /dev/null +++ b/x11/cde/files/patch-programs_dtinfo_DtMmdb_storage_spointer.h @@ -0,0 +1,11 @@ +--- programs/dtinfo/DtMmdb/storage/spointer.h.orig 2021-12-14 10:42:39 UTC ++++ programs/dtinfo/DtMmdb/storage/spointer.h +@@ -52,7 +52,7 @@ + + struct header_t + { +-#ifdef MMDB_BIG_ENDIAN ++#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ + unsigned spointer : 14; + unsigned length : 14; + unsigned is_object : 1; diff --git a/x11/cde/files/patch-programs_dtinfo_DtMmdb_utility_atoi__pearson.C b/x11/cde/files/patch-programs_dtinfo_DtMmdb_utility_atoi__pearson.C new file mode 100644 index 000000000000..8f86f16517cb --- /dev/null +++ b/x11/cde/files/patch-programs_dtinfo_DtMmdb_utility_atoi__pearson.C @@ -0,0 +1,19 @@ +--- programs/dtinfo/DtMmdb/utility/atoi_pearson.C.orig 2021-12-14 01:08:51 UTC ++++ programs/dtinfo/DtMmdb/utility/atoi_pearson.C +@@ -107,14 +107,14 @@ atoi_pearson::~atoi_pearson() + } + + struct reg_t { +-#ifdef MMDB_BIG_ENDIAN ++#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ + unsigned b4: 8; + unsigned b3: 8; + unsigned b2: 8; + unsigned b1: 8; + #endif + +-#ifdef MMDB_LITTLE_ENDIAN ++#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ + unsigned b1: 8; + unsigned b2: 8; + unsigned b3: 8; diff --git a/x11/cde/files/patch-programs_dtksh_ksh93_src_lib_libast_hash_hashalloc.c b/x11/cde/files/patch-programs_dtksh_ksh93_src_lib_libast_hash_hashalloc.c new file mode 100644 index 000000000000..f050420f5e21 --- /dev/null +++ b/x11/cde/files/patch-programs_dtksh_ksh93_src_lib_libast_hash_hashalloc.c @@ -0,0 +1,20 @@ +--- programs/dtksh/ksh93/src/lib/libast/hash/hashalloc.c.orig 2021-12-13 19:03:46 UTC ++++ programs/dtksh/ksh93/src/lib/libast/hash/hashalloc.c +@@ -49,6 +49,7 @@ hashalloc(Hash_table_t* ref, ...) + va_list* vp = va; + Hash_region_f region = 0; + void* handle; ++ va_listarg tmpval; + + va_start(ap, ref); + +@@ -151,7 +152,8 @@ hashalloc(Hash_table_t* ref, ...) + va_copy(*vp, ap); + vp++; + } +- va_copy(ap, va_listval(va_arg(ap, va_listarg))); ++ tmpval = va_listval(va_arg(ap, va_listarg)); ++ va_copy(ap, tmpval); + break; + case 0: + if (vp > va) diff --git a/x11/cde/files/patch-programs_dtksh_ksh93_src_lib_libast_string_tokscan.c b/x11/cde/files/patch-programs_dtksh_ksh93_src_lib_libast_string_tokscan.c new file mode 100644 index 000000000000..5dcf7b11dafe --- /dev/null +++ b/x11/cde/files/patch-programs_dtksh_ksh93_src_lib_libast_string_tokscan.c @@ -0,0 +1,20 @@ +--- programs/dtksh/ksh93/src/lib/libast/string/tokscan.c.orig 2021-12-13 22:46:02 UTC ++++ programs/dtksh/ksh93/src/lib/libast/string/tokscan.c +@@ -188,6 +188,7 @@ tokscan(register char* s, char** nxt, const char* fmt, + char** p_string; + char* prv_f = 0; + va_list prv_ap; ++ va_listarg tmpval; + + va_start(ap, fmt); + if (!*s || *s == '\n') +@@ -233,7 +234,8 @@ tokscan(register char* s, char** nxt, const char* fmt, + prv_f = f; + f = va_arg(ap, char*); + va_copy(prv_ap, ap); +- va_copy(ap, va_listval(va_arg(ap, va_listarg))); ++ tmpval = va_listval(va_arg(ap, va_listarg)); ++ va_copy(ap, tmpval); + continue; + case 'c': + p_char = va_arg(ap, char*);