<p>osmith has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ci/+/22281">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">OBS: make rpmlint shlib-fixed-dependency non-fatal<br><br>Create a rpmlint config, which makes the shlib-fixed-dependency check<br>non-fatal, as it caused builds for openSUSE_Leap_15.2 to fail. The check<br>is supposed to warn about libraries depending on specific versions of<br>other packages. However, for the nightly and next packages, this is<br>exactly what we want to do to ensure that users will always upgrade all<br>Osmocom packages to the builds from a specific day, and not mix them.<br><br>Messages from the check:<br>[  307s] libosmocodec0.armv7hl: E: shlib-fixed-dependency (Badness: 440) osmocom-nightly = 1.0.0.202101181006<br>...<br>[  307s] libosmovty4.armv7hl: E: shlib-fixed-dependency (Badness: 440) osmocom-nightly = 1.0.0.202101181006<br>[  307s] Your shared library package requires a fixed version of another package. The<br>[  307s] intention of the Shared Library Policy is to allow parallel installation of<br>[  307s] multiple versions of the same shared library, hard dependencies likely make<br>[  307s] that impossible. Please remove this dependency and instead move it to the<br>[  307s] runtime uses of your library.<br>[  307s]<br>[  307s] (none): E: badness 3960 exceeds threshold 1000, aborting.<br><br>Related: OS#4733<br>Related: https://en.opensuse.org/openSUSE:Packaging_checks#Disarming_Fatal_Errors<br>Change-Id: I560b4adf80b5785d396a17afefa590559ad5ca5a<br>---<br>M scripts/common-obs.sh<br>1 file changed, 15 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/81/22281/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/scripts/common-obs.sh b/scripts/common-obs.sh</span><br><span>index 40cacf2..ace0e81 100644</span><br><span>--- a/scripts/common-obs.sh</span><br><span>+++ b/scripts/common-obs.sh</span><br><span>@@ -75,6 +75,21 @@</span><br><span>                       "%package"*)</span><br><span>                               echo "Requires: $depend"</span><br><span>                           ;;</span><br><span style="color: hsl(120, 100%, 40%);">+                    # Build recipe</span><br><span style="color: hsl(120, 100%, 40%);">+                        "%build"*)</span><br><span style="color: hsl(120, 100%, 40%);">+                          if [ -n "$dependver" ]; then</span><br><span style="color: hsl(120, 100%, 40%);">+                                        cat << EOF</span><br><span style="color: hsl(120, 100%, 40%);">+# HACK: don't let rpmlint abort the build when it finds that a library depends</span><br><span style="color: hsl(120, 100%, 40%);">+# on a package with a specific version. The path used here is listed in:</span><br><span style="color: hsl(120, 100%, 40%);">+# https://build.opensuse.org/package/view_file/devel:openSUSE:Factory:rpmlint/rpmlint-mini/rpmlint-mini.config?expand=1</span><br><span style="color: hsl(120, 100%, 40%);">+# Instead of writing to the SOURCES dir, we could upload osmocom-rpmlintrc as</span><br><span style="color: hsl(120, 100%, 40%);">+# additional source for each package. But that's way more effort, not worth it.</span><br><span style="color: hsl(120, 100%, 40%);">+echo "setBadness('shlib-fixed-dependency', 0)" \\</span><br><span style="color: hsl(120, 100%, 40%);">+      > /home/abuild/rpmbuild/SOURCES/osmocom-rpmlintrc</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+EOF</span><br><span style="color: hsl(120, 100%, 40%);">+                           fi</span><br><span style="color: hsl(120, 100%, 40%);">+                            ;;</span><br><span>           esac</span><br><span>           done < "$spec" ) > "$spec.new"</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ci/+/22281">change 22281</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-ci/+/22281"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ci </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I560b4adf80b5785d396a17afefa590559ad5ca5a </div>
<div style="display:none"> Gerrit-Change-Number: 22281 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>