[CentOS] rpmbuild dwz error

Leon Fauster leonfauster at googlemail.com
Sat Aug 22 11:25:13 UTC 2015


Am 22.08.2015 um 00:18 schrieb Ned Slider <ned at unixmail.co.uk>:
> 
> On 21/08/15 22:46, Andrew Neuschwander wrote:
>> On 08/21/2015 02:04 PM, Leon Fauster wrote:
>>> Am 21.08.2015 um 21:08 schrieb Александр Кириллов <nevis2us at infoline.su>:
>> 
>> I set %_tmppath (in ~/.rpmmacros) and $TMPPATH (xz called by
>> find-debuginfo.sh uses it) and more parts of the build process used my
>> custom tmppath. But dwz still uses large temporary files in /tmp.
>> 
>>> 
>>> 
>>> and if you do not need the debug packages, add
>>> 
>>> %_enable_debug_packages  0
>>> 
>>> into your .rpmmacros file
>>> 
>>> -- 
>>> LF
>>> 
>> 
>> I tried disabling the debug packages but then rpmbuild just leaves the
>> debuginfo in the binaries and I ended up with a 30GB binary rpm.
>> 
>> -A
> 
> That sounds like the package hasn't been stripped. You can manually
> strip the debug information (see man strip), but rpmbuild should do this
> as part of the build process.


this addresses debuging symbols in the binaries. 
A bit different to the mentioned debug packages.



> Rather than disabling debuginfo packages system wide as suggested above,
> try disabling in package SPEC file:

specific user wide, not system wide :-)


> %define  debug_package  %{nil}

also feasible.

--
LF






More information about the CentOS mailing list