public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: net-wireless/libxtrxll/
@ 2020-12-18 19:41 Rick Farina
  0 siblings, 0 replies; 3+ messages in thread
From: Rick Farina @ 2020-12-18 19:41 UTC (permalink / raw
  To: gentoo-commits

commit:     33658e50f87aa15ee8f2e8b69a28e75fae4cda9e
Author:     Rick Farina <zerochaos <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 18 18:55:28 2020 +0000
Commit:     Rick Farina <zerochaos <AT> gentoo <DOT> org>
CommitDate: Fri Dec 18 19:41:22 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33658e50

net-wireless/libxtrxll: xtrx hardware support

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Rick Farina <zerochaos <AT> gentoo.org>

 net-wireless/libxtrxll/Manifest                    |  1 +
 .../libxtrxll/libxtrxll-0.0_p20201202.ebuild       | 34 ++++++++++++++++++++++
 net-wireless/libxtrxll/libxtrxll-9999.ebuild       | 34 ++++++++++++++++++++++
 net-wireless/libxtrxll/metadata.xml                | 11 +++++++
 4 files changed, 80 insertions(+)

diff --git a/net-wireless/libxtrxll/Manifest b/net-wireless/libxtrxll/Manifest
new file mode 100644
index 00000000000..3bf81a89103
--- /dev/null
+++ b/net-wireless/libxtrxll/Manifest
@@ -0,0 +1 @@
+DIST libxtrxll-0.0_p20201202.tar.gz 68732 BLAKE2B f1eeeb3cd9368224a512ade5389cd5f289613e47736f2577cf9a3a7266ee6a8159e60b1523414277fb8dbdcc206d2a8b53b6a72a591af54d40f3175f2192c139 SHA512 b9c32db32e7782db5831b73ea34d801f2b09cc42773db0ea3504f500717c11303083e1b9808ef9d0c6efd19ce0dab2f97f79ef20e9b892fa15a42c52cdeb4db1

diff --git a/net-wireless/libxtrxll/libxtrxll-0.0_p20201202.ebuild b/net-wireless/libxtrxll/libxtrxll-0.0_p20201202.ebuild
new file mode 100644
index 00000000000..6e0b7183d22
--- /dev/null
+++ b/net-wireless/libxtrxll/libxtrxll-0.0_p20201202.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+DESCRIPTION="Low-level XTRX hardware abstraction library"
+HOMEPAGE="https://github.com/xtrx-sdr/libxtrxll"
+LICENSE="LGPL-2.1"
+SLOT="0/${PV}"
+
+if [[ ${PV} =~ "9999" ]]; then
+	EGIT_REPO_URI="https://github.com/xtrx-sdr/libxtrxll.git"
+	inherit git-r3
+else
+	COMMIT="1b6eddfbedc700efb6f7e3c3594e43ac6ff29ea4"
+	SRC_URI="https://github.com/xtrx-sdr/libxtrxll/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+	S="${WORKDIR}/${PN}-${COMMIT}"
+	KEYWORDS="~amd64 ~x86"
+fi
+
+IUSE="usb3380"
+
+RDEPEND="usb3380? ( net-wireless/libusb3380 )"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+	mycmakeargs=(
+		-DENABLE_PCIE=ON
+		-DENABLE_USB3380="$(usex usb3380 ON OFF)"
+	)
+	cmake_src_configure
+}

diff --git a/net-wireless/libxtrxll/libxtrxll-9999.ebuild b/net-wireless/libxtrxll/libxtrxll-9999.ebuild
new file mode 100644
index 00000000000..6e0b7183d22
--- /dev/null
+++ b/net-wireless/libxtrxll/libxtrxll-9999.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+DESCRIPTION="Low-level XTRX hardware abstraction library"
+HOMEPAGE="https://github.com/xtrx-sdr/libxtrxll"
+LICENSE="LGPL-2.1"
+SLOT="0/${PV}"
+
+if [[ ${PV} =~ "9999" ]]; then
+	EGIT_REPO_URI="https://github.com/xtrx-sdr/libxtrxll.git"
+	inherit git-r3
+else
+	COMMIT="1b6eddfbedc700efb6f7e3c3594e43ac6ff29ea4"
+	SRC_URI="https://github.com/xtrx-sdr/libxtrxll/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+	S="${WORKDIR}/${PN}-${COMMIT}"
+	KEYWORDS="~amd64 ~x86"
+fi
+
+IUSE="usb3380"
+
+RDEPEND="usb3380? ( net-wireless/libusb3380 )"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+	mycmakeargs=(
+		-DENABLE_PCIE=ON
+		-DENABLE_USB3380="$(usex usb3380 ON OFF)"
+	)
+	cmake_src_configure
+}

diff --git a/net-wireless/libxtrxll/metadata.xml b/net-wireless/libxtrxll/metadata.xml
new file mode 100644
index 00000000000..e711f2c752d
--- /dev/null
+++ b/net-wireless/libxtrxll/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="project">
+		<email>radio@gentoo.org</email>
+		<name>Radio</name>
+	</maintainer>
+	<use>
+		<flag name="usb3380">support xtrx usb model</flag>
+	</use>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-wireless/libxtrxll/
@ 2022-07-29 20:40 Sam James
  0 siblings, 0 replies; 3+ messages in thread
From: Sam James @ 2022-07-29 20:40 UTC (permalink / raw
  To: gentoo-commits

commit:     b28779c5afaeec5ed9a6752056238e566fcf3b72
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 29 09:29:19 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jul 29 20:35:45 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b28779c5

net-wireless/libxtrxll: add github upstream metadata

Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-wireless/libxtrxll/metadata.xml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/net-wireless/libxtrxll/metadata.xml b/net-wireless/libxtrxll/metadata.xml
index e9e20887c2df..11902b1c56c2 100644
--- a/net-wireless/libxtrxll/metadata.xml
+++ b/net-wireless/libxtrxll/metadata.xml
@@ -8,4 +8,7 @@
 	<use>
 		<flag name="usb3380">support xtrx usb model</flag>
 	</use>
+	<upstream>
+		<remote-id type="github">xtrx-sdr/libxtrxll</remote-id>
+	</upstream>
 </pkgmetadata>


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-wireless/libxtrxll/
@ 2024-03-12  3:37 Sam James
  0 siblings, 0 replies; 3+ messages in thread
From: Sam James @ 2024-03-12  3:37 UTC (permalink / raw
  To: gentoo-commits

commit:     b4e704a3cb668ba1a6fc85ca9364bfde73db1e14
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Tue Mar 12 03:33:31 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Mar 12 03:36:54 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4e704a3

net-wireless/libxtrxll: mark as LTO-unsafe, strict-aliasing unsafe

Closes: https://bugs.gentoo.org/861932
Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-wireless/libxtrxll/libxtrxll-0.0_p20201202.ebuild | 12 ++++++++++--
 net-wireless/libxtrxll/libxtrxll-9999.ebuild          | 12 ++++++++++--
 2 files changed, 20 insertions(+), 4 deletions(-)

diff --git a/net-wireless/libxtrxll/libxtrxll-0.0_p20201202.ebuild b/net-wireless/libxtrxll/libxtrxll-0.0_p20201202.ebuild
index 0bf53e74f27d..dbb429f7470d 100644
--- a/net-wireless/libxtrxll/libxtrxll-0.0_p20201202.ebuild
+++ b/net-wireless/libxtrxll/libxtrxll-0.0_p20201202.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-inherit cmake
+inherit cmake flag-o-matic
 
 DESCRIPTION="Low-level XTRX hardware abstraction library"
 HOMEPAGE="https://github.com/xtrx-sdr/libxtrxll"
@@ -26,6 +26,14 @@ RDEPEND="usb3380? ( net-wireless/libusb3380 )"
 DEPEND="${RDEPEND}"
 
 src_configure() {
+	# -Werror=strict-aliasing
+	# https://bugs.gentoo.org/861932
+	# https://github.com/myriadrf/libxtrxll/issues/10
+	#
+	# Do not trust with LTO either
+	append-flags -fno-strict-aliasing
+	filter-lto
+
 	local mycmakeargs=(
 		-DENABLE_PCIE=ON
 		-DENABLE_USB3380="$(usex usb3380 ON OFF)"

diff --git a/net-wireless/libxtrxll/libxtrxll-9999.ebuild b/net-wireless/libxtrxll/libxtrxll-9999.ebuild
index 0bf53e74f27d..dbb429f7470d 100644
--- a/net-wireless/libxtrxll/libxtrxll-9999.ebuild
+++ b/net-wireless/libxtrxll/libxtrxll-9999.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-inherit cmake
+inherit cmake flag-o-matic
 
 DESCRIPTION="Low-level XTRX hardware abstraction library"
 HOMEPAGE="https://github.com/xtrx-sdr/libxtrxll"
@@ -26,6 +26,14 @@ RDEPEND="usb3380? ( net-wireless/libusb3380 )"
 DEPEND="${RDEPEND}"
 
 src_configure() {
+	# -Werror=strict-aliasing
+	# https://bugs.gentoo.org/861932
+	# https://github.com/myriadrf/libxtrxll/issues/10
+	#
+	# Do not trust with LTO either
+	append-flags -fno-strict-aliasing
+	filter-lto
+
 	local mycmakeargs=(
 		-DENABLE_PCIE=ON
 		-DENABLE_USB3380="$(usex usb3380 ON OFF)"


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-03-12  3:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-12  3:37 [gentoo-commits] repo/gentoo:master commit in: net-wireless/libxtrxll/ Sam James
  -- strict thread matches above, loose matches on Subject: below --
2022-07-29 20:40 Sam James
2020-12-18 19:41 Rick Farina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox