Results 1 to 6 of 6

Thread: Need help fix E: library-without-ldconfig-postun

  1. #1
    Join Date
    Oct 2018
    Location
    Atlantis
    Posts
    271

    Default Need help fix E: library-without-ldconfig-postun

    I trying to package casadi.
    https://build.opensuse.org/package/s...e_great/casadi

    I get these errors.
    Code:
    E: library-without-ldconfig-postun
    E: library-without-ldconfig-postin


    But I do have
    Code:
    %post -p /sbin/ldconfig
    %postun -p /sbin/ldconfig
    in my spec file. So what am I missing?

  2. #2
    Join Date
    Jun 2008
    Location
    East of Podunk
    Posts
    33,400
    Blog Entries
    15

    Default Re: Need help fix E: library-without-ldconfig-postun

    Quote Originally Posted by andythe_great View Post
    I trying to package casadi.
    https://build.opensuse.org/package/s...e_great/casadi

    I get these errors.
    Code:
    E: library-without-ldconfig-postun
    E: library-without-ldconfig-postin


    But I do have
    Code:
    %post -p /sbin/ldconfig
    %postun -p /sbin/ldconfig
    in my spec file. So what am I missing?
    Hi
    It needs to run against the package that has the lib files in it, eg the devel one.
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3
    Join Date
    Sep 2012
    Posts
    8,062

    Default Re: Need help fix E: library-without-ldconfig-postun

    Quote Originally Posted by andythe_great View Post
    https://build.opensuse.org/package/s...e_great/casadi
    Code:
    %files devel
    ...
    %{_libdir}/lib%{name}*
    That's wrong. -devel packages should only contain unversioned *.so files (which are used during linking). Versioned libraries (like *.so.1) must go into separate library subpackage.

    https://en.opensuse.org/openSUSE:Sha...ckaging_policy

  4. #4
    Join Date
    Oct 2018
    Location
    Atlantis
    Posts
    271

    Default Re: Need help fix E: library-without-ldconfig-postun

    Thanks, I solve it.
    Only problem left is unstripped-binary-or-object

  5. #5
    Join Date
    Oct 2018
    Location
    Atlantis
    Posts
    271

    Default Re: Need help fix E: library-without-ldconfig-postun

    Should I filed a bug report on W: unstripped-binary-or-object since the builder suppose to do it?

  6. #6
    Join Date
    Sep 2012
    Posts
    8,062

    Default Re: Need help fix E: library-without-ldconfig-postun

    Quote Originally Posted by andythe_great View Post
    Should I filed a bug report on W: unstripped-binary-or-object since the builder suppose to do it?
    No, it is up to software you build
    Code:
    [   33s] CMake Warning:
    [   33s]   Manually-specified variables were not used by the project:
    [   33s] 
    [   33s]     BUILD_STATIC_LIBS
    [   33s]     CMAKE_INSTALL_DO_STRIP

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •