Menu

RPM lint complains for 2.19: binary / shared library defines RPATH (RUNPATH) pointing to non-system library path

gruenich
2025-12-22
2026-03-03
  • gruenich

    gruenich - 2025-12-22

    Hello,

    I tried to update openSuse's cppcheck package to version 2.19. RPM lint
    complains that

    cppcheck.x86_64: E: binary-or-shlib-defines-rpath (Badness: 10000) /usr/bin/cppcheck (RUNPATH: /home/abuild/rpmbuild/BUILD/cppcheck-2.19.0-build/cppcheck-2.19.0/build/lib:)
    cppcheck-gui.x86_64: E: binary-or-shlib-defines-rpath (Badness: 10000) /usr/bin/cppcheck-gui (RUNPATH: /home/abuild/rpmbuild/BUILD/cppcheck-2.19.0-build/cppcheck-2.19.0/build/lib:)
    The binary or shared library defines RPATH' (orRUNPATH') that points to a
    non-system library path.

    I have not yet investigated this further. I hope to get back to it in
    the upcoming days.

    Kind regards,
    Christoph

    --
    Most customers will not accept source code with compile errors in it.
    Dan Saks, CppCon 2016 (https://youtu.be/D7Sd8A6_fYU)

     
  • Oliver Stöneberg

    We do not do anything with the rpath so it looks like a packaging issues that needs to be reported upstream.

     
  • gruenich

    gruenich - 2026-03-03

    I know. I ended up using chrpath to work around this issue.
    After creating the 2.20 package, I tried to remove the work around. To my surprise, it works now. So probably a no-issue, but I still don't know what happened with 2.19.

     

Log in to post a comment.

MongoDB Logo MongoDB