Drop architecture specific build dependency configuration
In the current form, apt fails with:
$ sudo apt -qy -o APT::Get::Build-Dep-Automatic=yes -o Acquire::http::Pipeline-Depth=0 -o Debug=true build-dep .
[sudo] password for rrs:
Note, using directory '.' to get the build dependencies
terminate called after throwing an instance of 'std::length_error'
what(): basic_string::_M_create
Aborted
Analyzing the coredump shows:
Module libsystemd.so.0 from deb systemd-252.6-1.amd64
Module libudev.so.1 from deb systemd-252.6-1.amd64
Stack trace of thread 158831:
#0 0x00007f3b9d2a9ccc __pthread_kill_implementation (libc.so.6 + 0x8accc)
#1 0x00007f3b9d25aef2 __GI_raise (libc.so.6 + 0x3bef2)
#2 0x00007f3b9d245472 __GI_abort (libc.so.6 + 0x26472)
#3 0x00007f3b9d49d919 n/a (libstdc++.so.6 + 0x9d919)
#4 0x00007f3b9d4a8e1a n/a (libstdc++.so.6 + 0xa8e1a)
#5 0x00007f3b9d4a8e85 _ZSt9terminatev (libstdc++.so.6 + 0xa8e85)
#6 0x00007f3b9d4a90d8 __cxa_throw (libstdc++.so.6 + 0xa90d8)
#7 0x00007f3b9d4a01e9 _ZSt20__throw_length_errorPKc (libstdc++.so.6 + 0xa01e9)
#8 0x00007f3b9d53f8b9 _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm (libstdc++.so.6 + 0x13f8b9)
#9 0x00007f3b9d8490aa n/a (libapt-pkg.so.6.0 + 0x1000aa)
#10 0x00007f3b9d84b3f2 _ZN13debListParser12ParseDependsEPKcS1_RN3APT10StringViewES4_RjbbbNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE (libapt-pkg.so.6.0 + 0x1023f2)
#11 0x00007f3b9d84bde3 _ZN13debListParser12ParseDependsEPKcS1_RNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_RjRKbSB_SB_RKS7_ (libapt-pkg.so.6.0 + 0x102de3)
#12 0x00007f3b9d86404c n/a (libapt-pkg.so.6.0 + 0x11b04c)
#13 0x00007f3b9d99dafe n/a (libapt-private.so.0.0 + 0x59afe)
#14 0x00007f3b9d9a1da3 _Z10DoBuildDepR11CommandLine (libapt-private.so.0.0 + 0x5dda3)
#15 0x00007f3b9d816097 _ZN11CommandLine11DispatchArgEPKNS_8DispatchEb (libapt-pkg.so.6.0 + 0xcd097)
#16 0x00007f3b9d96453e _Z19DispatchCommandLineR11CommandLineRKSt6vectorINS_8DispatchESaIS2_EE (libapt-private.so.0.0 + 0x2053e)
#17 0x000056202509f29f n/a (apt + 0x229f)
#18 0x00007f3b9d24618a __libc_start_call_main (libc.so.6 + 0x2718a)
#19 0x00007f3b9d246245 __libc_start_main_impl (libc.so.6 + 0x27245)
#20 0x000056202509f371 n/a (apt + 0x2371)
ELF object binary architecture: AMD x86-64
In particular:
#10 0x00007f3b9d84b3f2 _ZN13debListParser12ParseDependsEPKcS1_RN3APT10StringViewES4_RjbbbNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE (libapt-pkg.so.6.0 + 0x1023f2)
#11 0x00007f3b9d84bde3 _ZN13debListParser12ParseDependsEPKcS1_RNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_RjRKbSB_SB_RKS7_ (libapt-pkg.so.6.0 + 0x102de3)
Tools like wrap-and-sort
did not counter the problem. So, instead,
given that for Apertis this architecture list in build-depends isn't
critical, we drop it. This, makes apt
to not crash, at least.
Signed-off-by: Ritesh Raj Sarraf ritesh.sarraf@collabora.com