summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2018-07-13 17:34:41 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2018-07-13 17:34:41 +0200
commit96f7fdc1ac0736a741e13e838f98517beac36db0 (patch)
tree123b6a6ffa5eff98e934b0ed16772244b841de83
parent005e0eb072418456055783491f907fc08cb42fd7 (diff)
Packaging: ignore expected rpmlint warnings
Change-Id: I397efcf9076ac002f82d1e8eb226733a5e095028 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
-rw-r--r--conf.d/packaging/obs/_service.in1
-rw-r--r--conf.d/packaging/rpm/agl-xds-agent.spec1
-rw-r--r--conf.d/packaging/rpm/rpmlintrc6
3 files changed, 8 insertions, 0 deletions
diff --git a/conf.d/packaging/obs/_service.in b/conf.d/packaging/obs/_service.in
index 795d0c6..b6c8640 100644
--- a/conf.d/packaging/obs/_service.in
+++ b/conf.d/packaging/obs/_service.in
@@ -5,6 +5,7 @@
<param name="version">@VERSION@</param>
<param name="revision">@REVISION@</param>
<param name="extract">conf.d/packaging/rpm/agl-xds-agent.spec</param>
+ <param name="extract">conf.d/packaging/rpm/rpmlintrc</param>
<param name="extract">conf.d/packaging/deb/agl-xds-agent.dsc</param>
<param name="extract">conf.d/packaging/deb/agl-xds-agent.install</param>
<param name="extract">conf.d/packaging/deb/debian.changelog</param>
diff --git a/conf.d/packaging/rpm/agl-xds-agent.spec b/conf.d/packaging/rpm/agl-xds-agent.spec
index 66373c4..47c76ad 100644
--- a/conf.d/packaging/rpm/agl-xds-agent.spec
+++ b/conf.d/packaging/rpm/agl-xds-agent.spec
@@ -12,6 +12,7 @@ License: Apache-2.0
Summary: XDS agent/client tool
Url: https://gerrit.automotivelinux.org/gerrit/p/src/xds/xds-agent.git
Source0: xds-agent_linux-amd64-%{version}.zip
+Source1: rpmlintrc
BuildRequires: unzip
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Group: Development/Tools/Debuggers
diff --git a/conf.d/packaging/rpm/rpmlintrc b/conf.d/packaging/rpm/rpmlintrc
new file mode 100644
index 0000000..eb7b233
--- /dev/null
+++ b/conf.d/packaging/rpm/rpmlintrc
@@ -0,0 +1,6 @@
+# Note that while they are architecture-dependent, they are named to avoid
+# conflicts (and we make sure of that in the RPM through go_arch).
+addFilter("W: position-independent-executable-suggested")
+
+# We want to use /opt/AGL
+addFilter("W: suse-filelist-forbidden-opt")