[gentoo-commits] repo/gentoo:master commit in: x11-libs/cmrt/

2024-05-08 Thread Sam James
commit: 0518bf825c5834935484f672dabd5afcb08cc530
Author: Eli Schwartz  gmail  com>
AuthorDate: Wed May  8 03:26:23 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Wed May  8 19:19:30 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0518bf82

x11-libs/cmrt: mark as LTO-unsafe, strict-aliasing unsafe

The software is dead upstream. In August 2022 (almost immediately after
the package was added to the tree), the README.md was updated to say:

> Intel has ceased development and contributions including, but not
> limited to, maintenance, bug fixes, new releases, or updates, to this
> project.
>
> Intel no longer accepts patches to this project.

and the github repository was marked as archived.

No point in reporting anything, because you can't even if you want to.
Just mark it as unsafe and move on.

Closes: https://bugs.gentoo.org/864409
Signed-off-by: Eli Schwartz  gmail.com>
Signed-off-by: Sam James  gentoo.org>

 x11-libs/cmrt/cmrt-1.0.6-r3.ebuild | 20 ++--
 1 file changed, 18 insertions(+), 2 deletions(-)

diff --git a/x11-libs/cmrt/cmrt-1.0.6-r3.ebuild 
b/x11-libs/cmrt/cmrt-1.0.6-r3.ebuild
index 7ed6d16eae5e..4973586aa1ac 100644
--- a/x11-libs/cmrt/cmrt-1.0.6-r3.ebuild
+++ b/x11-libs/cmrt/cmrt-1.0.6-r3.ebuild
@@ -1,9 +1,9 @@
-# Copyright 2022-2023 Gentoo Authors
+# Copyright 2022-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-inherit autotools
+inherit autotools flag-o-matic
 
 DESCRIPTION="Intel C for Media RunTime GPU kernel manager"
 HOMEPAGE="https://github.com/intel/cmrt";
@@ -29,6 +29,22 @@ src_prepare() {
eautoreconf
 }
 
+src_configure() {
+   # -Werror=strict-aliasing
+   # https://bugs.gentoo.org/864409
+   #
+   #  > Intel has ceased development and contributions including, but not
+   #  > limited to, maintenance, bug fixes, new releases, or updates, to 
this
+   #  > project. Intel no longer accepts patches to this project.
+   # No point in submitting a bug report or trying to get this into good 
shape.
+   #
+   # Do not trust with LTO either.
+   append-flags -fno-strict-aliasing
+   filter-lto
+
+   default
+}
+
 src_install() {
default
find "${ED}" -type f -name '*.la' -delete || die



[gentoo-commits] repo/gentoo:master commit in: x11-libs/cmrt/

2023-08-15 Thread Sam James
commit: f0f73dd1de6b49f0f13c523c53f90da636539eae
Author: Sam James  gentoo  org>
AuthorDate: Wed Aug 16 02:19:46 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Aug 16 02:19:46 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0f73dd1

x11-libs/cmrt: Stabilize 1.0.6-r3 amd64, #912306

Signed-off-by: Sam James  gentoo.org>

 x11-libs/cmrt/cmrt-1.0.6-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/x11-libs/cmrt/cmrt-1.0.6-r3.ebuild 
b/x11-libs/cmrt/cmrt-1.0.6-r3.ebuild
index 6ccae4fc9c5d..7ed6d16eae5e 100644
--- a/x11-libs/cmrt/cmrt-1.0.6-r3.ebuild
+++ b/x11-libs/cmrt/cmrt-1.0.6-r3.ebuild
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/intel/cmrt/archive/refs/tags/${PV}.tar.gz -> ${P}.ta
 
 LICENSE="MIT"
 SLOT="0"
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="amd64 ~x86 ~amd64-linux ~x86-linux"
 
 BDEPEND="virtual/pkgconfig"
 DEPEND="



[gentoo-commits] repo/gentoo:master commit in: x11-libs/cmrt/

2023-03-03 Thread Sam James
commit: 9ce84c7bee4858ef56bbf8f2594853ed508a1818
Author: Sam James  gentoo  org>
AuthorDate: Sat Mar  4 07:17:26 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Mar  4 07:18:18 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ce84c7b

x11-libs/cmrt: fix copyright

Signed-off-by: Sam James  gentoo.org>

 x11-libs/cmrt/cmrt-1.0.6-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/x11-libs/cmrt/cmrt-1.0.6-r3.ebuild 
b/x11-libs/cmrt/cmrt-1.0.6-r3.ebuild
index aa680ed31eb5..6ccae4fc9c5d 100644
--- a/x11-libs/cmrt/cmrt-1.0.6-r3.ebuild
+++ b/x11-libs/cmrt/cmrt-1.0.6-r3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2022 Gentoo Authors
+# Copyright 2022-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8



[gentoo-commits] repo/gentoo:master commit in: x11-libs/cmrt/files/, x11-libs/cmrt/

2023-03-03 Thread Sam James
commit: 1d924399b054a41948bd19970a4de9b13fd69685
Author: Kai-Chun Ning  gmail  com>
AuthorDate: Thu Mar  2 23:47:09 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Mar  4 07:18:11 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d924399

x11-libs/cmrt: fix build on musl

Signed-off-by: Kai-Chun Ning  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/29904
Signed-off-by: Sam James  gentoo.org>

 .../cmrt/{cmrt-1.0.6-r2.ebuild => cmrt-1.0.6-r3.ebuild}   |  4 
 x11-libs/cmrt/files/cmrt-1.0.6-musl-fix.patch | 15 +++
 2 files changed, 19 insertions(+)

diff --git a/x11-libs/cmrt/cmrt-1.0.6-r2.ebuild 
b/x11-libs/cmrt/cmrt-1.0.6-r3.ebuild
similarity index 92%
rename from x11-libs/cmrt/cmrt-1.0.6-r2.ebuild
rename to x11-libs/cmrt/cmrt-1.0.6-r3.ebuild
index 335b0341d47e..aa680ed31eb5 100644
--- a/x11-libs/cmrt/cmrt-1.0.6-r2.ebuild
+++ b/x11-libs/cmrt/cmrt-1.0.6-r3.ebuild
@@ -20,6 +20,10 @@ DEPEND="
 "
 RDEPEND="${DEPEND}"
 
+PATCHES=(
+   "${FILESDIR}/${P}-musl-fix.patch"
+)
+
 src_prepare() {
default
eautoreconf

diff --git a/x11-libs/cmrt/files/cmrt-1.0.6-musl-fix.patch 
b/x11-libs/cmrt/files/cmrt-1.0.6-musl-fix.patch
new file mode 100644
index ..91bae74ed8a1
--- /dev/null
+++ b/x11-libs/cmrt/files/cmrt-1.0.6-musl-fix.patch
@@ -0,0 +1,15 @@
+diff --git a/src/os_defs.h b/src/os_defs.h
+index 82794f5..13539ee 100644
+--- a/src/os_defs.h
 b/src/os_defs.h
+@@ -109,6 +109,10 @@ typedef struct tagRECT {
+ 
+ #define CONST const
+ 
++#ifndef __CONCAT
++  #define __CONCAT( a1, a2 ) a1 ## a2
++#endif
++
+ #define __UNIQUENAME( a1, a2 )  __CONCAT( a1, a2 )
+ #define UNIQUENAME( __text )__UNIQUENAME( __text, __COUNTER__ )
+ #define STATIC_ASSERT(e)  typedef char UNIQUENAME(STATIC_ASSERT_)[(e)?1:-1]



[gentoo-commits] repo/gentoo:master commit in: x11-libs/cmrt/

2022-06-05 Thread Conrad Kostecki
commit: 7cfd921c420b9dc8e32a8e0951dddb949f591da9
Author: Kai-Chun Ning  gmail  com>
AuthorDate: Mon May 30 19:24:42 2022 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Sun Jun  5 23:06:46 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7cfd921c

x11-libs/cmrt: require video_cards_intel for dependency x11-libs/libdrm

Signed-off-by: Kai-Chun Ning  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/25695
Signed-off-by: Conrad Kostecki  gentoo.org>

 x11-libs/cmrt/{cmrt-1.0.6-r1.ebuild => cmrt-1.0.6-r2.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/x11-libs/cmrt/cmrt-1.0.6-r1.ebuild 
b/x11-libs/cmrt/cmrt-1.0.6-r2.ebuild
similarity index 92%
rename from x11-libs/cmrt/cmrt-1.0.6-r1.ebuild
rename to x11-libs/cmrt/cmrt-1.0.6-r2.ebuild
index ea02e47a44ae..055afcf4d2e6 100644
--- a/x11-libs/cmrt/cmrt-1.0.6-r1.ebuild
+++ b/x11-libs/cmrt/cmrt-1.0.6-r2.ebuild
@@ -15,7 +15,7 @@ KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
 
 BDEPEND="virtual/pkgconfig"
 DEPEND="
-   >=x11-libs/libdrm-2.4.23
+   >=x11-libs/libdrm-2.4.23[video_cards_intel]
>=x11-libs/libva-2.0.0
 "
 RDEPEND="${DEPEND}"



[gentoo-commits] repo/gentoo:master commit in: x11-libs/cmrt/

2022-05-23 Thread Conrad Kostecki
commit: f58d4a109a2cf6d0e2a5481362582fc87efc0fb1
Author: Conrad Kostecki  gentoo  org>
AuthorDate: Mon May 23 13:46:41 2022 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Mon May 23 13:50:29 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f58d4a10

x11-libs/cmrt: don't install *.la files

Closes: https://bugs.gentoo.org/847100
Signed-off-by: Conrad Kostecki  gentoo.org>

 x11-libs/cmrt/{cmrt-1.0.6.ebuild => cmrt-1.0.6-r1.ebuild} | 5 +
 1 file changed, 5 insertions(+)

diff --git a/x11-libs/cmrt/cmrt-1.0.6.ebuild 
b/x11-libs/cmrt/cmrt-1.0.6-r1.ebuild
similarity index 87%
rename from x11-libs/cmrt/cmrt-1.0.6.ebuild
rename to x11-libs/cmrt/cmrt-1.0.6-r1.ebuild
index 811508e5bbc1..ea02e47a44ae 100644
--- a/x11-libs/cmrt/cmrt-1.0.6.ebuild
+++ b/x11-libs/cmrt/cmrt-1.0.6-r1.ebuild
@@ -24,3 +24,8 @@ src_prepare() {
default
eautoreconf
 }
+
+src_install() {
+   default
+   find "${ED}" -type f -name '*.la' -delete || die
+}



[gentoo-commits] repo/gentoo:master commit in: x11-libs/cmrt/

2022-05-23 Thread Conrad Kostecki
commit: 5f242aa61b5cefd9fb2cc5ed4975e407fa08b57d
Author: Kai-Chun Ning  gmail  com>
AuthorDate: Wed May  4 16:19:52 2022 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Mon May 23 11:56:47 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f242aa6

x11-libs/cmrt: new package, add 1.0.6

Signed-off-by: Kai-Chun Ning  gmail.com>
Signed-off-by: Conrad Kostecki  gentoo.org>

 x11-libs/cmrt/Manifest  |  1 +
 x11-libs/cmrt/cmrt-1.0.6.ebuild | 26 ++
 x11-libs/cmrt/metadata.xml  | 18 ++
 3 files changed, 45 insertions(+)

diff --git a/x11-libs/cmrt/Manifest b/x11-libs/cmrt/Manifest
new file mode 100644
index ..848ba8490df6
--- /dev/null
+++ b/x11-libs/cmrt/Manifest
@@ -0,0 +1 @@
+DIST cmrt-1.0.6.tar.gz 3717552 BLAKE2B 
0bfb121f37b9b2e9e672d6129a6b7207ccfc3455ea613c8ae000965ee49260e56a154fba8595d8f3b022d153c9d84c7ded7b9f0914f7387eeca826acca9acfa0
 SHA512 
de115e86e4dc65e617e5e39dd1a14a4baa301480915d1ef31245b759acebbd2c85647e3affb9ccda3b55f7f9008b03d561689d2b63a61a70feba72c9a62b6505

diff --git a/x11-libs/cmrt/cmrt-1.0.6.ebuild b/x11-libs/cmrt/cmrt-1.0.6.ebuild
new file mode 100644
index ..811508e5bbc1
--- /dev/null
+++ b/x11-libs/cmrt/cmrt-1.0.6.ebuild
@@ -0,0 +1,26 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="Intel C for Media RunTime GPU kernel manager"
+HOMEPAGE="https://github.com/intel/cmrt";
+SRC_URI="https://github.com/intel/cmrt/archive/refs/tags/${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+
+BDEPEND="virtual/pkgconfig"
+DEPEND="
+   >=x11-libs/libdrm-2.4.23
+   >=x11-libs/libva-2.0.0
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+   default
+   eautoreconf
+}

diff --git a/x11-libs/cmrt/metadata.xml b/x11-libs/cmrt/metadata.xml
new file mode 100644
index ..debd0b7111b7
--- /dev/null
+++ b/x11-libs/cmrt/metadata.xml
@@ -0,0 +1,18 @@
+
+https://www.gentoo.org/dtd/metadata.dtd";>
+
+  
+media-vi...@gentoo.org
+  
+  
+kaichun.n...@gmail.com
+Kai-Chun Ning
+  
+  
+proxy-ma...@gentoo.org
+Proxy Maintainers
+  
+  
+intel/cmrt
+  
+