From nobody Sun Jul 16 12:07:08 2023 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 4R3kV501Fdz4nJns; Sun, 16 Jul 2023 12:07:09 +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 4R3kV46h9Fz3CKq; Sun, 16 Jul 2023 12:07:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689509228; 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=QX+V3KCKEKr7IsHMLKk2W/Tt+MkH2kpWLZzOTvpKe0Q=; b=iwnplJxYkalHa5c1/jJYAgcI+vkgMrP50bzMgyMqI83TR6gicTGZfck+eL+XGMepyJMEns V8ty1UatibaS6241+O6WQ+xWzO55PI6vdE1QxcsW8nkG35kFwGQTF3Vb/TUN0b44Hvv6jU efzjv7C7IRC4hOjwLuhhORqWSfihRNgcHVERameZm/JA4+UspcaXNhFotJ+V2JDGcs12dT JhSmZ7+McrkJaDMHIkgCVlZcQzP2lo9bSlZWnfJtgwImFxg+f5O7tJZKm0h5kORR+Iy+qA XOyJRgKS3MRU39I+wQsRC1YLgMnhCLIadYauADwwkpy9vi7cOietEIKHU0KEyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689509228; 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=QX+V3KCKEKr7IsHMLKk2W/Tt+MkH2kpWLZzOTvpKe0Q=; b=kRkSd0ek8xbjGw41y9m6Uqj/uOVYqagUdAIebXH+P3BtxRIlftu+eGHqCLHLCSkISCtmnJ 2Y24H5NQPZGtLYC+xPYZR1EX1sIFLuN3Agqy24k3HWkMLae3V5ZDtoN1Zsy6e4Nu3oWUr6 sy3DkkyBPDKgNiRipGWQFfVG7UDy2K+CJH2ouBHYerBzvTqc1CCzl6vTKDDXFX8PdGEzHy MaAj24D6qdvv+fQy6idDrGjWl4FfGWpxJRsraMzoQ6kUctjCJ3hcKjrLF+jtnGnPBboZx9 2efVTM99Bd6c1kpaqWbQJXF3HnyKWQzsxN90wRBN2ZkY+B4YrvnY/izcAunVRQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1689509228; a=rsa-sha256; cv=none; b=vd5vg35PDj7cJnn7a3+gZhfL+ydZwqSnk3y39ZyCZ0YfwzrO+JR+B+sdYBnamSv08a5s9A 9b4f3QLN0/e+JqA949qnvsCYm9hoUC1fAdMtTxcbVbmYON271t828aPSwav6mwZsMJhlA8 Jx33cPjGBeDct9QmJbg3/kHGQ10GzE7gZfQ6UTw07cbiOsMAOCVHXDT5uEMrCHG7xAFYih dgF0QvFjEsrv4FzuZoJUU2fhI4uvyuUVNPdQhbJBR/w+3cq76YU5S0Ln9RVE/41fvLUjLY NGNJbdGq10q/5XUl0DYuM/mPAR7D7j7Ig3gIfB0k1xBXnrbFiBqLGMSqFsn4GA== 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 4R3kV45l1xzh50; Sun, 16 Jul 2023 12:07:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 36GC78n6033478; Sun, 16 Jul 2023 12:07:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 36GC78mL033477; Sun, 16 Jul 2023 12:07:08 GMT (envelope-from git) Date: Sun, 16 Jul 2023 12:07:08 GMT Message-Id: <202307161207.36GC78mL033477@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: f141757d5256 - main - net/savvycan: fix build on big-endian architectures 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: f141757d525640a23c7b92128272bc3d922eca47 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=f141757d525640a23c7b92128272bc3d922eca47 commit f141757d525640a23c7b92128272bc3d922eca47 Author: Piotr Kubaj AuthorDate: 2023-07-16 12:06:12 +0000 Commit: Piotr Kubaj CommitDate: 2023-07-16 12:07:06 +0000 net/savvycan: fix build on big-endian architectures ld: error: undefined symbol: unsigned long qbswap(unsigned long) >>> referenced by mqtt_bus.cpp >>> mqtt_bus.o:(MQTT_BUS::clientMessageReceived(QMQTT::Message const&)) qendian.h has a qbswap for unsigned long long, but not for unsigned long. --- net/savvycan/files/patch-connections_mqtt__bus.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/net/savvycan/files/patch-connections_mqtt__bus.cpp b/net/savvycan/files/patch-connections_mqtt__bus.cpp new file mode 100644 index 000000000000..073960c36afd --- /dev/null +++ b/net/savvycan/files/patch-connections_mqtt__bus.cpp @@ -0,0 +1,11 @@ +--- connections/mqtt_bus.cpp.orig 2023-07-16 12:01:54 UTC ++++ connections/mqtt_bus.cpp +@@ -291,7 +291,7 @@ void MQTT_BUS::clientMessageReceived(const QMQTT::Mess + uint32_t frameID = message.topic().split("/")[1].toInt(); + + QByteArray timeStampBytes = message.payload().left(8); +- uint64_t timeStamp = qFromLittleEndian(timeStampBytes.data()); ++ quint64 timeStamp = qFromLittleEndian(timeStampBytes.data()); + + int flags = message.payload()[8]; + frame_p->setPayload(message.payload().right(message.payload().count() - 9));