[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: arch-dependent Ruby packages with dh_compat 12



Hey, 

On Wed 24 Jul, 2019, 17:21 , <dai@debian.org> wrote:
Hi,

On Mon, Jul 08, 2019 at 11:52:14PM +0200, Cédric Boutillier wrote:
> I tried to update ruby-oj to a new (patchlevel) version, and bumped
> debhelper compat to 12, and the build failed with the following message:

> dwz: debian/ruby-oj/usr/lib/x86_64-linux-gnu/ruby/vendor_ruby/2.5.0/oj/oj.so: Found compressed .debug_aranges section, not attempting dwz compression
> dh_dwz: dwz -q -- debian/ruby-oj/usr/lib/x86_64-linux-gnu/ruby/vendor_ruby/2.5.0/oj/oj.so returned exit code 1

I tried to update ruby-gnome2 with db compat 12 and encountered same issue.

dwz: debian/ruby-glib2/usr/lib/x86_64-linux-gnu/ruby/vendor_ruby/2.5.0/glib2.so: Found compressed .debug_aranges section, not attempting dwz compression
dh_dwz: dwz -q -- debian/ruby-glib2/usr/lib/x86_64-linux-gnu/ruby/vendor_ruby/2.5.0/glib2.so returned exit code 1

> The dwz step seems new and causes the build to fail. I will investigate
> further. In the mean time, I was wondering if someone already
> encountered this, and if this should imply some changes for gem2deb if
> we want to adapt it for debhelper-compat level 12.

I remove `-Wl,--compress-debug-sections=zlib` from RbConfig::CONFIG['DLDFLAGS'],
it has been built successfully.

I do not know any side effects, but do we need to pass
`--compress-debug-sections=no` to ruby2.5's configure for dh compat 12?

I don't know if that works, but I think disabling that would be a 2-line short patch. 
I have been meaning to do that myself, but didn't get time because of DebConf. 

Hopefully, someone would soon write a patch doing that. 

[RFE] Add support for compressed debug sections.
https://bugzilla.redhat.com/show_bug.cgi?id=1394759

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


Best,
Utkarsh 

Reply to: