Change in osmo-ci[master]: OBS: make rpmlint shlib-fixed-dependency non-fatal

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

osmith gerrit-no-reply at lists.osmocom.org
Mon Jan 18 13:49:38 UTC 2021


osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ci/+/22281 )


Change subject: OBS: make rpmlint shlib-fixed-dependency non-fatal
......................................................................

OBS: make rpmlint shlib-fixed-dependency non-fatal

Create a rpmlint config, which makes the shlib-fixed-dependency check
non-fatal, as it caused builds for openSUSE_Leap_15.2 to fail. The check
is supposed to warn about libraries depending on specific versions of
other packages. However, for the nightly and next packages, this is
exactly what we want to do to ensure that users will always upgrade all
Osmocom packages to the builds from a specific day, and not mix them.

Messages from the check:
[  307s] libosmocodec0.armv7hl: E: shlib-fixed-dependency (Badness: 440) osmocom-nightly = 1.0.0.202101181006
...
[  307s] libosmovty4.armv7hl: E: shlib-fixed-dependency (Badness: 440) osmocom-nightly = 1.0.0.202101181006
[  307s] Your shared library package requires a fixed version of another package. The
[  307s] intention of the Shared Library Policy is to allow parallel installation of
[  307s] multiple versions of the same shared library, hard dependencies likely make
[  307s] that impossible. Please remove this dependency and instead move it to the
[  307s] runtime uses of your library.
[  307s]
[  307s] (none): E: badness 3960 exceeds threshold 1000, aborting.

Related: OS#4733
Related: https://en.opensuse.org/openSUSE:Packaging_checks#Disarming_Fatal_Errors
Change-Id: I560b4adf80b5785d396a17afefa590559ad5ca5a
---
M scripts/common-obs.sh
1 file changed, 15 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/81/22281/1

diff --git a/scripts/common-obs.sh b/scripts/common-obs.sh
index 40cacf2..ace0e81 100644
--- a/scripts/common-obs.sh
+++ b/scripts/common-obs.sh
@@ -75,6 +75,21 @@
 			"%package"*)
 				echo "Requires: $depend"
 				;;
+			# Build recipe
+			"%build"*)
+				if [ -n "$dependver" ]; then
+					cat << EOF
+# HACK: don't let rpmlint abort the build when it finds that a library depends
+# on a package with a specific version. The path used here is listed in:
+# https://build.opensuse.org/package/view_file/devel:openSUSE:Factory:rpmlint/rpmlint-mini/rpmlint-mini.config?expand=1
+# Instead of writing to the SOURCES dir, we could upload osmocom-rpmlintrc as
+# additional source for each package. But that's way more effort, not worth it.
+echo "setBadness('shlib-fixed-dependency', 0)" \\
+	> /home/abuild/rpmbuild/SOURCES/osmocom-rpmlintrc
+
+EOF
+				fi
+				;;
 		esac
 	  done < "$spec" ) > "$spec.new"
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/22281
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I560b4adf80b5785d396a17afefa590559ad5ca5a
Gerrit-Change-Number: 22281
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210118/e0768d7b/attachment.htm>


More information about the gerrit-log mailing list