# rpmlint filters for drbd-utils
#
# post-without-tmpfile-creation:
#   The spec does call %tmpfiles_create in %post. Since openSUSE moved
#   tmpfiles.d handling to systemd file triggers, that macro is a
#   documented NOP (see /usr/lib/rpm/macros.d/macros.systemd), so the
#   scriptlet no longer contains the literal "systemd-tmpfiles --create"
#   string rpmlint greps for. False positive.
addFilter("post-without-tmpfile-creation /usr/lib/tmpfiles\.d/drbd\.conf")

# binary-or-shlib-calls-gethostbyname:
#   Upstream drbdadm/drbdsetup still use gethostbyname. Porting them to
#   getaddrinfo is an upstream change we deliberately do not carry as a
#   downstream patch.
addFilter("binary-or-shlib-calls-gethostbyname /usr/sbin/drbdadm")
addFilter("binary-or-shlib-calls-gethostbyname /usr/sbin/drbdsetup")
