You are not logged in.

#1 2020-04-09 03:41:45

archbish
Member
Registered: 2020-04-09
Posts: 1

DBGSRCDIR won't copy source files to destination

I specify (debug !strip) options to have debug symbols in my shared objects (I have it as a single package, opposite to the two-packages way). Also I specify DBGSRCDIR="/usr/src/debug" so that DWARF records in shared objects ELF point to sources within that dir. I check objdump -g, debug symbols indeed point to that destination. But the sources are instantly deleted when tarball is created with makepkg. They are not copied to DBGSRCDIR. From man makepkg.conf I read:

If strip and debug are specified in the OPTIONS array, this variable will
           instruct makepkg where to place source files for installed binaries. The
           binaries will be modified to link this directory for the debugger search
           path.

Second condition is satisfied, as I stated. First one — not quite.

Here is my PKGBUILD: https://termbin.com/m0pz

Thanks!

Offline

#2 2020-04-13 22:12:25

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: DBGSRCDIR won't copy source files to destination

archbish wrote:

Second condition is satisfied, as I stated. First one — not quite.

Then you have not quite matched the documented requirements for DBGSRCDIR to be used? What's the question?

If you want to save sources to DBGSRCDIR you must satisfy both requirements as this is a feature which was designed to only be activated for split -debug packages.

archbish wrote:

Here is my PKGBUILD: https://termbin.com/m0pz

Thanks!

Note that this is my AUR glibc-git package, so you can use my custom repo with semi-regular builds available. I last rebuilt this package on March 25 with version 2.31.r286.g4eda036f5b-1

My custom repo does have splitdebug packages (the two-packages way).

Last edited by eschwartz (2020-04-13 22:13:44)


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB