From 479992e846d3fbc88db0451d55a6fce03412ece4 Mon Sep 17 00:00:00 2001
From: "Mulas, Giacomo" <gmulas@oa-cagliari.inaf.it>
Date: Mon, 7 Apr 2025 17:21:00 +0200
Subject: [PATCH] minor update to make oneAPI debian repository trusted, since
 otherwise it fails key verification with the new seq in trixie/sid

---
 containers/docker/Dockerfile                            | 2 +-
 containers/docker/dockerstuff/intelcomps/oneAPI.list    | 1 -
 containers/docker/dockerstuff/intelcomps/oneAPI.sources | 8 ++++++++
 3 files changed, 9 insertions(+), 2 deletions(-)
 delete mode 100644 containers/docker/dockerstuff/intelcomps/oneAPI.list
 create mode 100644 containers/docker/dockerstuff/intelcomps/oneAPI.sources

diff --git a/containers/docker/Dockerfile b/containers/docker/Dockerfile
index 436d0e12..16131819 100644
--- a/containers/docker/Dockerfile
+++ b/containers/docker/Dockerfile
@@ -15,7 +15,7 @@ RUN DEBIAN_FRONTEND=noninteractive apt -y upgrade
 RUN DEBIAN_FRONTEND=noninteractive apt -y install g++ gfortran gcc-offload-nvptx g++-12 gfortran-12 gcc-12-offload-nvptx g++-13 gfortran-13 gcc-13-offload-nvptx g++-14 gfortran-14 gcc-14-offload-nvptx clang libc++-dev libc++abi-dev clang-17 clang-18 clang-19 flang-17 flang-18 flang-19 libhdf5-dev make
 # install packages needed to test with Intel OneAPI compilers
 COPY --chown=root:root containers/docker/dockerstuff/intelcomps/oneapi-archive-keyring.gpg /usr/share/keyrings/
-COPY --chown=root:root containers/docker/dockerstuff/intelcomps/oneAPI.list /etc/apt/sources.list.d/
+COPY --chown=root:root containers/docker/dockerstuff/intelcomps/oneAPI.sources /etc/apt/sources.list.d/
 RUN apt update
 RUN DEBIAN_FRONTEND=noninteractive apt -y install intel-oneapi-compiler-fortran intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic intel-oneapi-compiler-dpcpp-cpp
 # install lapacke and its dependencies, both standard and the version with 64 bit integers
diff --git a/containers/docker/dockerstuff/intelcomps/oneAPI.list b/containers/docker/dockerstuff/intelcomps/oneAPI.list
deleted file mode 100644
index 4e52297c..00000000
--- a/containers/docker/dockerstuff/intelcomps/oneAPI.list
+++ /dev/null
@@ -1 +0,0 @@
-deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] http://apt.repos.intel.com/oneapi all main
diff --git a/containers/docker/dockerstuff/intelcomps/oneAPI.sources b/containers/docker/dockerstuff/intelcomps/oneAPI.sources
new file mode 100644
index 00000000..cc0840d7
--- /dev/null
+++ b/containers/docker/dockerstuff/intelcomps/oneAPI.sources
@@ -0,0 +1,8 @@
+Types: deb
+Enabled: yes
+URIs: https://apt.repos.intel.com/oneapi
+Suites: all
+Components: main
+#Architectures: amd64
+Signed-By: /usr/share/keyrings/oneapi-archive-keyring.gpg
+Trusted: yes
-- 
GitLab