From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 10FE7591AE for ; Fri, 12 Feb 2016 08:50:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 81F84E0866; Fri, 12 Feb 2016 08:50:22 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 231EEE0866 for ; Fri, 12 Feb 2016 08:50:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F3B82340BF6 for ; Fri, 12 Feb 2016 08:50:20 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7E89F8EB for ; Fri, 12 Feb 2016 08:50:19 +0000 (UTC) From: "Jeroen Roovers" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jeroen Roovers" Message-ID: <1455267017.30bdbd6c5ddc734020e35260ac1fb0848d769488.jer@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-wireless/bluez/files/, net-wireless/bluez/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-wireless/bluez/bluez-5.37.ebuild net-wireless/bluez/files/bluez-5.37-endian.patch X-VCS-Directories: net-wireless/bluez/files/ net-wireless/bluez/ X-VCS-Committer: jer X-VCS-Committer-Name: Jeroen Roovers X-VCS-Revision: 30bdbd6c5ddc734020e35260ac1fb0848d769488 X-VCS-Branch: master Date: Fri, 12 Feb 2016 08:50:19 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 17558852-2c88-4394-ac97-0b5aff5e7439 X-Archives-Hash: 30c878b1218e694f9c1f8e9bdfda9bf2 commit: 30bdbd6c5ddc734020e35260ac1fb0848d769488 Author: Jeroen Roovers gentoo org> AuthorDate: Fri Feb 12 08:49:55 2016 +0000 Commit: Jeroen Roovers gentoo org> CommitDate: Fri Feb 12 08:50:17 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30bdbd6c net-wireless/bluez: Fix endian compile error (bug #574092). Package-Manager: portage-2.2.27 net-wireless/bluez/bluez-5.37.ebuild | 3 ++ net-wireless/bluez/files/bluez-5.37-endian.patch | 51 ++++++++++++++++++++++++ 2 files changed, 54 insertions(+) diff --git a/net-wireless/bluez/bluez-5.37.ebuild b/net-wireless/bluez/bluez-5.37.ebuild index fd9b88a..e3704f8 100644 --- a/net-wireless/bluez/bluez-5.37.ebuild +++ b/net-wireless/bluez/bluez-5.37.ebuild @@ -92,6 +92,9 @@ src_prepare() { # ??? epatch "${FILESDIR}"/0004-agent-Assert-possible-infinite-loop.patch + # bug 574092 + epatch "${FILESDIR}"/${PN}-5.37-endian.patch + if use cups; then sed -i \ -e "s:cupsdir = \$(libdir)/cups:cupsdir = $(cups-config --serverbin):" \ diff --git a/net-wireless/bluez/files/bluez-5.37-endian.patch b/net-wireless/bluez/files/bluez-5.37-endian.patch new file mode 100644 index 0000000..1ffa350 --- /dev/null +++ b/net-wireless/bluez/files/bluez-5.37-endian.patch @@ -0,0 +1,51 @@ +--- a/profiles/audio/a2dp-codecs.h ++++ b/profiles/audio/a2dp-codecs.h +@@ -149,6 +149,17 @@ + uint16_t codec_id; + } __attribute__ ((packed)) a2dp_vendor_codec_t; + ++typedef struct { ++ a2dp_vendor_codec_t info; ++ uint8_t channel_mode:4; ++ uint8_t frequency:4; ++} __attribute__ ((packed)) a2dp_aptx_t; ++ ++typedef struct { ++ a2dp_vendor_codec_t info; ++ uint8_t unknown[2]; ++} __attribute__ ((packed)) a2dp_ldac_t; ++ + #if __BYTE_ORDER == __LITTLE_ENDIAN + + typedef struct { +@@ -183,17 +194,6 @@ + uint8_t bitrate3; + } __attribute__ ((packed)) a2dp_aac_t; + +-typedef struct { +- a2dp_vendor_codec_t info; +- uint8_t channel_mode:4; +- uint8_t frequency:4; +-} __attribute__ ((packed)) a2dp_aptx_t; +- +-typedef struct { +- a2dp_vendor_codec_t info; +- uint8_t unknown[2]; +-} __attribute__ ((packed)) a2dp_ldac_t; +- + #elif __BYTE_ORDER == __BIG_ENDIAN + + typedef struct { +@@ -228,12 +228,6 @@ + uint8_t bitrate3; + } __attribute__ ((packed)) a2dp_aac_t; + +-typedef struct { +- a2dp_vendor_codec_t info; +- uint8_t frequency:4; +- uint8_t channel_mode:4; +-} __attribute__ ((packed)) a2dp_aptx_t; +- + #else + #error "Unknown byte order" + #endif