From aa507a991da990a85d89aabff05e3ed6016754f1 Mon Sep 17 00:00:00 2001 From: Raki Dissanayaka Date: Thu, 22 Aug 2024 10:35:16 +1200 Subject: [PATCH] fix: suppress warnings for invalid url source suppress warnings for invalid url source --- images/rpmbuild-almalinux8/Dockerfile | 1 + images/rpmbuild-almalinux8/rpmlintrc.toml | 3 +++ images/rpmbuild-centos-stream9/Dockerfile | 1 + images/rpmbuild-centos-stream9/rpmlintrc.toml | 3 +++ images/rpmbuild-centos7/Dockerfile | 1 + images/rpmbuild-centos7/rpmlintrc.toml | 3 +++ images/rpmbuild-fedora/Dockerfile | 1 + images/rpmbuild-fedora/rpmlintrc.toml | 3 +++ 8 files changed, 16 insertions(+) create mode 100644 images/rpmbuild-almalinux8/rpmlintrc.toml create mode 100644 images/rpmbuild-centos-stream9/rpmlintrc.toml create mode 100644 images/rpmbuild-centos7/rpmlintrc.toml create mode 100644 images/rpmbuild-fedora/rpmlintrc.toml diff --git a/images/rpmbuild-almalinux8/Dockerfile b/images/rpmbuild-almalinux8/Dockerfile index c3f2140..011e5c2 100644 --- a/images/rpmbuild-almalinux8/Dockerfile +++ b/images/rpmbuild-almalinux8/Dockerfile @@ -6,6 +6,7 @@ RUN dnf module enable -y nodejs:20 \ # Update system RUN dnf update -y && \ dnf install -y boost automake boost-filesystem boost-iostreams \ + cp rpmlintrc.toml /etc/xdg/rpmlint/ \ boost-program-options boost-regex boost-signals boost-system \ boost-thread cairo cairo-devel dnf-plugins-core fontconfig \ fontconfig-devel freetype freetype-devel gcc gcc-c++ git glibc \ diff --git a/images/rpmbuild-almalinux8/rpmlintrc.toml b/images/rpmbuild-almalinux8/rpmlintrc.toml new file mode 100644 index 0000000..0e27fc6 --- /dev/null +++ b/images/rpmbuild-almalinux8/rpmlintrc.toml @@ -0,0 +1,3 @@ +#suppress warnings for invalid-url Source0 + +Filters = ['W: invalid-url Source*'] diff --git a/images/rpmbuild-centos-stream9/Dockerfile b/images/rpmbuild-centos-stream9/Dockerfile index e6ab3ee..f554109 100644 --- a/images/rpmbuild-centos-stream9/Dockerfile +++ b/images/rpmbuild-centos-stream9/Dockerfile @@ -4,6 +4,7 @@ FROM ghcr.io/geonet/base-images/centos:stream9 RUN dnf module enable -y nodejs:20 && \ dnf update -y && \ dnf install -y \ + cp rpmlintrc.toml /etc/xdg/rpmlint/ \ boost automake boost-filesystem boost-iostreams \ boost-program-options boost-regex boost-system \ boost-thread cairo cairo-devel dnf-plugins-core fontconfig \ diff --git a/images/rpmbuild-centos-stream9/rpmlintrc.toml b/images/rpmbuild-centos-stream9/rpmlintrc.toml new file mode 100644 index 0000000..0e27fc6 --- /dev/null +++ b/images/rpmbuild-centos-stream9/rpmlintrc.toml @@ -0,0 +1,3 @@ +#suppress warnings for invalid-url Source0 + +Filters = ['W: invalid-url Source*'] diff --git a/images/rpmbuild-centos7/Dockerfile b/images/rpmbuild-centos7/Dockerfile index 8b8d1d7..9c6313c 100644 --- a/images/rpmbuild-centos7/Dockerfile +++ b/images/rpmbuild-centos7/Dockerfile @@ -7,6 +7,7 @@ RUN curl -O https://nodejs.org/dist/latest-v20.x/node-v20.14.0-linux-x64.tar.xz # Update system RUN yum update -y && \ yum install -y autoconf automake boost boost-filesystem boost-iostreams \ + cp rpmlintrc.toml /etc/xdg/rpmlint/ \ boost-program-options boost-regex boost-signals boost-system boost-thread \ cairo cairo-devel createrepo dnf dnf-plugins-core fontconfig fontconfig-devel \ freetype freetype-devel gcc gcc-c++ git libdbi libdbi-devel libgfortran \ diff --git a/images/rpmbuild-centos7/rpmlintrc.toml b/images/rpmbuild-centos7/rpmlintrc.toml new file mode 100644 index 0000000..0e27fc6 --- /dev/null +++ b/images/rpmbuild-centos7/rpmlintrc.toml @@ -0,0 +1,3 @@ +#suppress warnings for invalid-url Source0 + +Filters = ['W: invalid-url Source*'] diff --git a/images/rpmbuild-fedora/Dockerfile b/images/rpmbuild-fedora/Dockerfile index 29f74fd..406668a 100644 --- a/images/rpmbuild-fedora/Dockerfile +++ b/images/rpmbuild-fedora/Dockerfile @@ -2,5 +2,6 @@ FROM ghcr.io/geonet/base-images/fedora:40 # Installing tools needed for rpmbuild RUN dnf update -y && \ dnf install -y \ + cp rpmlintrc.toml /etc/xdg/rpmlint/ \ rpm-build rpmdevtools rpm-sign rpmlint git dnf-plugins-core nodejs npm make automake gcc \ gcc-c++ kernel-devel python3 glibc systemd openssl fontconfig-devel freetype freetype-devel boost awscli diff --git a/images/rpmbuild-fedora/rpmlintrc.toml b/images/rpmbuild-fedora/rpmlintrc.toml new file mode 100644 index 0000000..0e27fc6 --- /dev/null +++ b/images/rpmbuild-fedora/rpmlintrc.toml @@ -0,0 +1,3 @@ +#suppress warnings for invalid-url Source0 + +Filters = ['W: invalid-url Source*']