ShellCheck-debuginfo-0.3.3-2.fc22 contains no sources. Usually this is a sign of $RPM_OPT_FLAGS not being used, but I don't know how to affect compiler flags to use with ghc packages.
Let me move this to ghc-rpm-macros since I think that is the right place to deal with this.
*** Bug 1139050 has been marked as a duplicate of this bug. ***
(In reply to Jens Petersen from bug 1139050 comment 1) > Hmm need to look into why the debuginfo is empty - probably need > to pass -g to gcc somehow. While at it, I suppose it'd be best to make sure that all of $RPM_OPT_FLAGS end up being passed to the C compiler, ditto $RPM_LD_FLAGS to the linker if applicable.
ghc-hjsmin-0.1.4.7-3.fc22 has grown an empty -debuginfo as well.
Ditto ghc-reflection 1.5.1-1.fc22.
Just a few more comments: - Rawhide will move soon to ghc-7.8 and all packages using ghc-rpm-macros will be rebuilt. - I am not sure how rpm debuginfo generation works - presumably it uses elfutils etc to pull out the source filenames from the debug obj files? So I need to check if the Haskell generated debuginfo files contain the source filenames too. Perhaps they don't which might be why no source files are being included. Otherwise I am not really sure how to do it, but let me look at least. - I am not sure how useful the debuginfo .so files are but they might still be better than nothing - so I feel it is better to ship debuginfo .so files even without source files for now if it is hard to include them but if there are strong objections I don't mind to revert to no debuginfo. Alternatively maybe some hack^Wmacro could be added to the debuginfo generation for Haskell to add the C source files to the debuginfo subpackage.
One more: The debuginfo files are only empty on arm since it currently does not have shared libraries, but it will have once we move to ghc-7.8. I should check: is the complaint about the empty debuginfo packages (on ARM) or the lack of source files, or both? :)
I hadn't even looked at ARM packages, but examined x86_64 ones only. Comments 4 and 5 are incorrect in mentioning empty debuginfos, what I really meant was that they lack sources.
Not sure if it's the same issue, but an empty (yes, completely empty this time) gtk2hs-buildtools-debuginfo-0.13.0.1-1.fc22 has surfaced.
Thanks, I committed a change to gtk2hs-buildtools to disable debuginfo. http://pkgs.fedoraproject.org/cgit/gtk2hs-buildtools.git/commit/?id=ec87fbb2c39d4444547a9bbac882ff175cee8f0b Maybe we should just disable debuginfo again for Haskell packages, if it is not useful? The total amount of C code is really small and mostly just wrappers and things. Do you use some script to track debuginfo content? Is it available it somewhere?
By all means disable debuginfos if they cannot be made useful. More info about the script I use: http://lists.baseurl.org/pipermail/yum/2009-April/022537.html https://phab.qadevel.cloud.fedoraproject.org/T63 (Not 100% certain if the fedorapeople copy is the latest one, will check later.)
(In reply to Ville Skyttä from comment #11) > Not 100% certain if the fedorapeople copy is the latest one It is.
I made a bit of progress finally. ghc-rpm-macros-1.3.9-1.fc22 should now generate proper debuginfo for Haskell libraries with cbits in them. I am not sure yet why it is not working for Haskell executables, which are still completely empty as you observed. In the worst case we could disable debuginfo still for executables (eg for gtk2hs-buildtools, etc). Quite a number of spec files also need to be refreshed to disable debuginfo since they don't contain C files: eg ghc-hjsmin and ghc-reflection mentioned earlier.
ghc-rpm-macros-1.2.17-1.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/ghc-rpm-macros-1.2.17-1.fc21
ghc-rpm-macros-1.2.17-1.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.
I disabled debuginfo again for rawhide in ghc-rpm-macros-1.4.0-1.fc22 which is going into f22-ghc now. ghc-7.10 will have some support for dwarf debugging output so we can revisit this again when we come to build 7.10. I will close this bug after the fix goes into f22, having verified no (empty) debuginfo is being generated for Haskell packages.
http://dl.fedoraproject.org/pub/fedora/linux/development/22/x86_64/debug/g/