Hi,

On Mon, Jul 29, 2019 at 09:59:07AM +0530, Utkarsh Gupta wrote:
> > +# do not compress debug sections for arch-dep Ruby packages with dh_compat 
> > 12
> > +configure_options += --with-compress-debug-sections=no

> Ah! Didn't know about that flag; TIL! :D
> However, if that seems to build fine and is also working fine with
> "debhelper-compat (=12)" in other packages, then I can't complain ;)

I built ruby2.5 with `--with-compress-debug-sections=no`.
Here is rbconfig.rb's wdiff:

@@ -44,7 +44,7 @@
  CONFIG["RUBY_SEARCH_PATH"] = ""
  CONFIG["UNIVERSAL_INTS"] = ""
  CONFIG["UNIVERSAL_ARCHNAMES"] = ""
  CONFIG["configure_args"] = " '--prefix=/usr' '--enable-multiarch' 
'--target=x86_64-linux-gnu' '--program-suffix=2.5' '--with-soname=ruby-2.5' 
'--enable-shared' '--disable-rpath' '--with-sitedir=/usr/local/lib/site_ruby' 
'--with-sitearchdir=/usr/local/lib/x86_64-linux-gnu/site_ruby' 
'--runstatedir=/var/run' '--localstatedir=/var' '--sysconfdir=/etc' 
'--enable-ipv6' '--with-dbm-type=gdbm_compat' 
{+'--with-compress-debug-sections=no'+} 'CFLAGS=-g -O2 
-fdebug-prefix-map=/build/ruby2.5-2.5.5=. -fstack-protector-strong -Wformat 
-Werror=format-security' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 
'CXXFLAGS=-g -O2 -fdebug-prefix-map=/build/ruby2.5-2.5.5=. 
-fstack-protector-strong -Wformat -Werror=format-security' 'FCFLAGS=-g -O2 
-fdebug-prefix-map=/build/ruby2.5-2.5.5=. -fstack-protector-strong' 'FFLAGS=-g 
-O2 -fdebug-prefix-map=/build/ruby2.5-2.5.5=. -fstack-protector-strong' 
'GCJFLAGS=-g -O2 -fdebug-prefix-map=/build/ruby2.5-2.5.5=. 
-fstack-protector-strong' 'LDFLAGS=-Wl,-z,relro -Wl,-z,now' 'OBJCFLAGS=-g -O2 
-fdebug-prefix-map=/build/ruby2.5-2.5.5=. -fstack-protector-strong -Wformat 
-Werror=format-security' 'OBJCXXFLAGS=-g -O2 
-fdebug-prefix-map=/build/ruby2.5-2.5.5=. -fstack-protector-strong -Wformat 
-Werror=format-security' 'target_alias=x86_64-linux-gnu'"
  CONFIG["CONFIGURE"] = "configure"
  CONFIG["vendorarchdir"] = "$(rubysitearchprefix)/vendor_ruby/$(ruby_version)"
  CONFIG["vendorlibdir"] = "$(vendordir)/$(ruby_version)"
@@ -129,7 +129,7 @@
  CONFIG["CCDLFLAGS"] = "-fPIC"
  CONFIG["STATIC"] = ""
  CONFIG["ARCH_FLAG"] = ""
  CONFIG["DLDFLAGS"] = "-Wl,-z,relro [--Wl,-z,now 
-Wl,--compress-debug-sections=zlib"-] {+-Wl,-z,now"+}
  CONFIG["ALLOCA"] = ""
  CONFIG["dsymutil"] = ""
  CONFIG["codesign"] = ""

I built ruby-gnome2 with this ruby2.5 with `--with-compress-debug-sections=no`,
dh_dwz ran successfully.

I created merge request:
https://salsa.debian.org/ruby-team/ruby/merge_requests/3
-- 
Regards,
        dai

GPG Fingerprint = 0B29 D88E 42E6 B765 B8D8 EA50 7839 619D D439 668E

Reply via email to