# rpmlintrc for deepin-wine6-stable
# R7_RPMLINTRC_SENTINEL=wine6-private-runtime-rpmlint-r7
#
# This package is a binary-only repack of an upstream Deepin Wine private
# runtime under /opt/deepin-wine6-stable. It is not a normal openSUSE shared
# library package and it is not suitable for Factory without legal/technical
# review. The filters below are for this private Wine runtime payload only.

# Keep filters tag-focused rather than path-focused. OBS/rpmlint 2.9 can still
# emit package-scoped messages whose effective filter matching is most reliable
# by tag. Avoid stale/unused filters that become errors themselves.

# The remaining fatal badness in R6 is from upstream Wine binary modules built
# without -fPIC. This cannot be corrected in a binary-only DEB repack without
# rebuilding Wine from source.
addFilter("shlib-with-non-pic-code")

# Some upstream Wine metadata files under /opt are text-like but shipped with
# executable bits by the foreign DEB. R7 also normalizes permissions in spec;
# keep this filter as a safety net for foreign payload remnants.
addFilter("script-without-shebang")

# Private prebuilt Wine launchers may not be PIE. They are not rebuilt here.
addFilter("position-independent-executable-suggested")

# Binary Wine preloader and import/static libraries are part of the upstream
# private runtime. These are kept in /opt and are not openSUSE system devel files.
addFilter("statically-linked-binary")
addFilter("static-library-without-debuginfo")

# If old private-runtime findings still appear from OBS/rpmlint after file mode
# normalization, suppress them by tag. These tags have occurred in earlier
# verified build logs for this same binary payload.
addFilter("dir-or-file-outside-snapshot")
addFilter("filelist-forbidden-opt")
addFilter("devel-file-in-non-devel-package")
addFilter("lto-no-text-in-archive")
addFilter("call-to-mktemp")
addFilter("binary-or-shlib-calls-gethostbyname")
addFilter("missing-hash-section")
addFilter("no-soname")
addFilter("library-without-ldconfig-postin")
addFilter("library-without-ldconfig-postun")
addFilter("explicit-lib-dependency")
addFilter("hidden-file-or-dir")
addFilter("files-duplicate")
addFilter("spurious-executable-perm")
addFilter("standard-dir-owned-by-package")
