Results 1 to 3 of 3

Thread: How to create -debuginfo subpackage?

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

    Default How to create -debuginfo subpackage?

    Hello, its me again.

    I am trying to create a debuginfo package for LibreCAD_3 https://build.opensuse.org/package/s...reat/LibreCAD3
    but I got the error saying

    Code:
    LibreCAD_3.x86_64: E: suse-filelist-forbidden-debuginfo (Badness: 10000) /usr/lib/debug/usr may only be packaged in the -debuginfo subpackage 
    LibreCAD_3.x86_64: E: suse-filelist-forbidden-debuginfo (Badness: 10000) /usr/lib/debug/usr/local may only be packaged in the -debuginfo subpackage
    LibreCAD_3.x86_64: E: suse-filelist-forbidden-debuginfo (Badness: 10000) /usr/lib/debug/usr/local/lib may only be packaged in the -debuginfo subpackage
    LibreCAD_3.x86_64: E: suse-filelist-forbidden-debuginfo (Badness: 10000) /usr/lib/debug/usr/local/lib/liblckernel.so-0.0+git20200308.908b0fad-0.x86_64.debug may only be packaged in the -debuginfo subpackage
    LibreCAD_3.x86_64: E: suse-filelist-forbidden-debuginfo (Badness: 10000) /usr/lib/debug/usr/local/lib/liblcluascript.so-0.0+git20200308.908b0fad-0.x86_64.debug may only be packaged in the -debuginfo subpackage 
    LibreCAD_3.x86_64: E: suse-filelist-forbidden-debuginfo (Badness: 10000) /usr/lib/debug/usr/local/lib/libpersistence.so-0.0+git20200308.908b0fad-0.x86_64.debug may only be packaged in the -debuginfo subpackage 
    LibreCAD_3.x86_64: E: suse-filelist-forbidden-debuginfo (Badness: 10000) /usr/lib/debug/usr/local/lib/libtinyspline.so-0.0+git20200308.908b0fad-0.x86_64.debug may only be packaged in the -debuginfo subpackage 
    LibreCAD_3.x86_64: E: suse-filelist-forbidden-debuginfo (Badness: 10000) /usr/lib/debug/usr/local/lib/libtinysplinecpp.so-0.0+git20200308.908b0fad-0.x86_64.debug may only be packaged in the -debuginfo subpackage
    I read on this documentation:
    https://en.opensuse.org/openSUSEackaging_guidelines
    https://old-en.opensuse.org/Packaging/Debuginfo

    But could not find example of spec file to make -debuginfo subpackage.

    I tried adding a debuginfo package as such:

    Code:
    %package  debuginfo
    Summary:   Debug information for package %{name}
    Group:     Development/Libraries/C and C++
    #BuildArch: noarch
     
    %description debuginfo
    Debug information for package %{name}.
    But I got this error:
    Code:
    line 75: %package  debuginfo: package LibreCAD_3-debuginfo already exists
    So I disabled it.

    I tried adding debug info %files list as well but it does not work.
    Code:
    %files debuginfo
    /usr/lib/debug
    /usr/lib/debug/usr
    /usr/lib/debug/usr/local
    /usr/lib/debug/usr/local/lib
    /usr/lib/debug/usr/local/lib/liblckernel.so-0.0+git20200308.908b0fad-0.x86_64.debug.debug
    /usr/lib/debug/usr/local/lib/liblcluascript.so-0.0+git20200308.908b0fad-0.x86_64.debug.debug
    /usr/lib/debug/usr/local/lib/libpersistence.so-0.0+git20200308.908b0fad-0.x86_64.debug.debug
    /usr/lib/debug/usr/local/lib/libtinyspline.so-0.0+git20200308.908b0fad-0.x86_64.debug.debug
    /usr/lib/debug/usr/local/lib/libtinysplinecpp.so-0.0+git20200308.908b0fad-0.x86_64.debug.debug
    Thanks.

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    28,528
    Blog Entries
    15

    Default Re: How to create -debuginfo subpackage?

    Hi
    You add the %debug_package macro before %prep and then ensure you enable the debug flags in the repository, no additional changes or sub packages need creating in the spec file.
    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
    Oct 2018
    Location
    Atlantis
    Posts
    117

    Default Re: How to create -debuginfo subpackage?

    Quote Originally Posted by malcolmlewis View Post
    Hi
    You add the %debug_package macro before %prep and then ensure you enable the debug flags in the repository, no additional changes or sub packages need creating in the spec file.
    Thanks, I just fond out I don't need to package .debug file.

Posting Permissions

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