Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#76797 - [kicad] debug info?

Attached to Project: Community Packages
Opened by Seth Pellegrino (sethp0808) - Saturday, 10 December 2022, 22:57 GMT
Last edited by George Rawlinson (rawlinsong) - Monday, 12 December 2022, 07:40 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Kyle Keen (keenerd)
George Rawlinson (rawlinsong)
Filipe Laíns (FFY00)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

In trying to track down an issue upstream (https://gitlab.com/kicad/code/kicad/-/issues/13120), we discovered that the kicad package doesn't appear in the debuginfo server.

As noted on that issue, I have a patch to turn on the debug option for `makepkg` (also attached here): which seems to work fine (in that it produces debug info, if not necessarily sensible back traces).

Regarding `-DCMAKE_BUILD_TYPE=RelWithDebInfo`: I turned it on because one of the CMakeLists.txt refers to it ( https://gitlab.com/kicad/code/kicad/-/blob/master/kicad/CMakeLists.txt#L92 ), but it's entirely out of an overabundance of caution that I threw it in there (not because I know it should be).

Namcap seems pretty happy with the resuting package (output attached), though somehow makepkg missed (or knew better than to try?) stripping 'usr/lib/python3.10/site-packages/_pcbnew.so' .

This task depends upon

Closed by  George Rawlinson (rawlinsong)
Monday, 12 December 2022, 07:40 GMT
Reason for closing:  Implemented
Additional comments about closing:  6.0.9-3
Comment by Toolybird (Toolybird) - Sunday, 11 December 2022, 00:10 GMT
To date it's been up to maintainer discretion whether to turn on "debug" for individual pkgs or not. In the future it will be turned on by default for all pkgs [1]. It seems like your life could have been easier had it been on here..

[1] https://gitlab.archlinux.org/archlinux/devtools/-/commit/b64d8ebacf8268e986bde912cff839311ac74fa8
Comment by Seth Pellegrino (sethp0808) - Sunday, 11 December 2022, 14:33 GMT
Ah, yes indeed it seems like I'm a little early (or late?). Do you know when the future will arrive? i.e. when will that default flow to whatever build infrastructure populates the official repos?

Also, do you know if that would trigger a new build to populate the `kicad-debug` package?
Comment by George Rawlinson (rawlinsong) - Monday, 12 December 2022, 05:04 GMT
I’ve been meaning to add debug to build options, but keep forgetting. I’m not sure when arch will move to default debug, but I’ll most likely have enabled it before then.

Loading...