[ruby-core:78121] [Ruby trunk Bug#12934] Make compressed debug section optional

From: v.ondruch@...
Date: 2016-11-14 12:37:41 UTC
List: ruby-core #78121
Issue #12934 has been reported by Vit Ondruch.

----------------------------------------
Bug #12934: Make compressed debug section optional
https://bugs.ruby-lang.org/issues/12934

* Author: Vit Ondruch
* Status: Open
* Priority: Normal
* Assignee: Nobuyoshi Nakada
* ruby -v: ruby 2.4.0dev (2016-11-10 trunk 56693) [x86_64-linux]
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
r56445 introduces "--compress-debug-sections=zlib" flag to compress the debug section. Unfortunately, it seems that the compressed sections are not well handled by RPM. Ruby package build log now contains plenty of messages such as:

```
/usr/lib/rpm/debugedit: /builddir/build/BUILDROOT/ruby-2.4.0-0.1.r56693.fc26.x86_64/usr/lib64/libruby.so.2.4.0: DWARF version 0 unhandled
```

I am afraid, that the debug sections are not properly stripped of and moved into -debuginfo subpackages as the should.

I opened discussion about this on Fedora devel ML [1], but the only suggestion I get so far was to revert this patch. Since I don't think carrying patches around is good idea, would it be possible to make this configurable? I am also asking RPM guys if they can add support for the compressed debug sections.


[1]: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/225MNNCTUXP22BOI3VAGH3RE6NWGT7PC/
[2]: https://bugzilla.redhat.com/show_bug.cgi?id=1394759



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next