You are not logged in.

#1 2018-08-13 16:05:58

necktwi
Member
Registered: 2018-07-12
Posts: 20

[solved]how to install sources and debug symbols with pacman

I want to debug pam library. How can I install its sources and debug symbols?

Last edited by necktwi (2018-08-19 17:54:41)

Offline

#2 2018-08-13 16:07:59

loqs
Member
Registered: 2014-03-06
Posts: 17,195

Re: [solved]how to install sources and debug symbols with pacman

Offline

#3 2018-08-14 10:58:07

necktwi
Member
Registered: 2018-07-12
Posts: 20

Re: [solved]how to install sources and debug symbols with pacman

I've done the following but didn't find any sources installed

echo "OPTIONS+=(debug strip)" >> ~/.makepkg.conf
asp checkout pam
cd pam/trunk
makepkg --syncdeps
pacman -U pam-1.3.1-1-x86_64.pkg.tar.xz
pacman -U pam-debug-1.3.1-1-x86_64.pkg.tar.xz
pacman -Ql pam

pacman -Ql pam out put is at https://pastebin.com/CFuFqWt1
I don't see any C source files installed in /usr/src or /usr/local/src

Offline

#4 2018-08-14 13:00:55

loqs
Member
Registered: 2014-03-06
Posts: 17,195

Re: [solved]how to install sources and debug symbols with pacman

It does not install the sources are the debug symbols not enough?

Offline

#5 2018-08-14 13:11:04

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

Re: [solved]how to install sources and debug symbols with pacman

1) That's only a small part of the pacman -Ql pam output.

2) to see the sources and debug symbols use pacman -Ql pam-debug (to list the debug package...)


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

Offline

#6 2018-08-14 14:00:11

necktwi
Member
Registered: 2018-07-12
Posts: 20

Re: [solved]how to install sources and debug symbols with pacman

https://pastebin.com/NzesDRii has the output of pacman -Ql pam-debug. debug symbols got installed but not sources. /usr/src/ is empty. How to install C source files?

Thank you!

Offline

#7 2018-08-14 14:03:56

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

Re: [solved]how to install sources and debug symbols with pacman

Given that you're still modifying the output before pastebinning it, how should I know?


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

Offline

#8 2018-08-14 14:11:08

necktwi
Member
Registered: 2018-07-12
Posts: 20

Re: [solved]how to install sources and debug symbols with pacman

yeah! I removed the .build list of files as they are hidden. I'm sorry, https://pastebin.com/LcUn7CeF has unmodified output. any way my concern is about .c and .cpp files

Offline

#9 2018-08-14 14:21:42

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

Re: [solved]how to install sources and debug symbols with pacman

Well, in the meantime I tried building this myself and I got the following filelist:

[eschwartz@soyuz trunk]$ pacman -Qlp /home/eschwartz/cache/pkgdest/pam-debug-1.3.1-1-x86_64.pkg.tar.xz
pam-debug /usr/
pam-debug /usr/lib/
pam-debug /usr/lib/debug/
pam-debug /usr/lib/debug/.build-id/
pam-debug /usr/lib/debug/.build-id/00/
pam-debug /usr/lib/debug/.build-id/00/153454bce2b83c8287c82aae87c5e510adeab0
pam-debug /usr/lib/debug/.build-id/00/153454bce2b83c8287c82aae87c5e510adeab0.debug
pam-debug /usr/lib/debug/.build-id/07/
pam-debug /usr/lib/debug/.build-id/07/df90d04eca236233d67a6459d0eed587559efc
pam-debug /usr/lib/debug/.build-id/07/df90d04eca236233d67a6459d0eed587559efc.debug
pam-debug /usr/lib/debug/.build-id/0e/
pam-debug /usr/lib/debug/.build-id/0e/3e7482942c90ccbc46e02f1e36bf4a7eb24bdf
pam-debug /usr/lib/debug/.build-id/0e/3e7482942c90ccbc46e02f1e36bf4a7eb24bdf.debug
pam-debug /usr/lib/debug/.build-id/13/
pam-debug /usr/lib/debug/.build-id/13/9acde0158b4cde7153aadd0a2070f8f627a083
pam-debug /usr/lib/debug/.build-id/13/9acde0158b4cde7153aadd0a2070f8f627a083.debug
pam-debug /usr/lib/debug/.build-id/16/
pam-debug /usr/lib/debug/.build-id/16/453c70c2c2c89117f8ba9793b4857055345b77
pam-debug /usr/lib/debug/.build-id/16/453c70c2c2c89117f8ba9793b4857055345b77.debug
pam-debug /usr/lib/debug/.build-id/1e/
pam-debug /usr/lib/debug/.build-id/1e/77ac4ded77265427156425e1acf5500b7b1542
pam-debug /usr/lib/debug/.build-id/1e/77ac4ded77265427156425e1acf5500b7b1542.debug
pam-debug /usr/lib/debug/.build-id/2b/
pam-debug /usr/lib/debug/.build-id/2b/0fc74c31d93cd0f928a86f88b0e9a6f06cc7f1
pam-debug /usr/lib/debug/.build-id/2b/0fc74c31d93cd0f928a86f88b0e9a6f06cc7f1.debug
pam-debug /usr/lib/debug/.build-id/2d/
pam-debug /usr/lib/debug/.build-id/2d/87cd05b45268b55604780f603adf49b4f76497
pam-debug /usr/lib/debug/.build-id/2d/87cd05b45268b55604780f603adf49b4f76497.debug
pam-debug /usr/lib/debug/.build-id/2f/
pam-debug /usr/lib/debug/.build-id/2f/9d5644c1ea39c672a64434a03ea09dd9c94c73
pam-debug /usr/lib/debug/.build-id/2f/9d5644c1ea39c672a64434a03ea09dd9c94c73.debug
pam-debug /usr/lib/debug/.build-id/38/
pam-debug /usr/lib/debug/.build-id/38/96940dbbce6cc7957b42a5d1fb1cfe05f4f3dc
pam-debug /usr/lib/debug/.build-id/38/96940dbbce6cc7957b42a5d1fb1cfe05f4f3dc.debug
pam-debug /usr/lib/debug/.build-id/39/
pam-debug /usr/lib/debug/.build-id/39/5ec080f84a3802f702e0e0c8484f02a9a18a23
pam-debug /usr/lib/debug/.build-id/39/5ec080f84a3802f702e0e0c8484f02a9a18a23.debug
pam-debug /usr/lib/debug/.build-id/3e/
pam-debug /usr/lib/debug/.build-id/3e/290cac232cdd75bdac2576ca19be8dbb0da785
pam-debug /usr/lib/debug/.build-id/3e/290cac232cdd75bdac2576ca19be8dbb0da785.debug
pam-debug /usr/lib/debug/.build-id/46/
pam-debug /usr/lib/debug/.build-id/46/ee6daf1451e78f0ffe7a3df434abac59f31b66
pam-debug /usr/lib/debug/.build-id/46/ee6daf1451e78f0ffe7a3df434abac59f31b66.debug
pam-debug /usr/lib/debug/.build-id/4a/
pam-debug /usr/lib/debug/.build-id/4a/59cb12e2dd85698cf6af16379f7d1c6c466495
pam-debug /usr/lib/debug/.build-id/4a/59cb12e2dd85698cf6af16379f7d1c6c466495.debug
pam-debug /usr/lib/debug/.build-id/56/
pam-debug /usr/lib/debug/.build-id/56/caf3d522d841a545898c5a335d2f3e1e7990ac
pam-debug /usr/lib/debug/.build-id/56/caf3d522d841a545898c5a335d2f3e1e7990ac.debug
pam-debug /usr/lib/debug/.build-id/5a/
pam-debug /usr/lib/debug/.build-id/5a/1e4b28f9cd0c8c72f9c78e3412ad90611e1060
pam-debug /usr/lib/debug/.build-id/5a/1e4b28f9cd0c8c72f9c78e3412ad90611e1060.debug
pam-debug /usr/lib/debug/.build-id/5b/
pam-debug /usr/lib/debug/.build-id/5b/ebf397c1c3ba333d0e2aa9ec776ea791a8d4e9
pam-debug /usr/lib/debug/.build-id/5b/ebf397c1c3ba333d0e2aa9ec776ea791a8d4e9.debug
pam-debug /usr/lib/debug/.build-id/5d/
pam-debug /usr/lib/debug/.build-id/5d/341c882e4f863addde16b0cc570c91cb664d8c
pam-debug /usr/lib/debug/.build-id/5d/341c882e4f863addde16b0cc570c91cb664d8c.debug
pam-debug /usr/lib/debug/.build-id/60/
pam-debug /usr/lib/debug/.build-id/60/8117fe835f5d997028aa9fcb5908379adb2a09
pam-debug /usr/lib/debug/.build-id/60/8117fe835f5d997028aa9fcb5908379adb2a09.debug
pam-debug /usr/lib/debug/.build-id/64/
pam-debug /usr/lib/debug/.build-id/64/f22ebfd502a536e0c7992b6a15774f010fe194
pam-debug /usr/lib/debug/.build-id/64/f22ebfd502a536e0c7992b6a15774f010fe194.debug
pam-debug /usr/lib/debug/.build-id/6e/
pam-debug /usr/lib/debug/.build-id/6e/c955b6e83aa128348ca784669c29f8dc5e9f4f
pam-debug /usr/lib/debug/.build-id/6e/c955b6e83aa128348ca784669c29f8dc5e9f4f.debug
pam-debug /usr/lib/debug/.build-id/7b/
pam-debug /usr/lib/debug/.build-id/7b/ef81e4bf342d9426e198adf5387814b073c394
pam-debug /usr/lib/debug/.build-id/7b/ef81e4bf342d9426e198adf5387814b073c394.debug
pam-debug /usr/lib/debug/.build-id/7d/
pam-debug /usr/lib/debug/.build-id/7d/d0210a971b73a0c18e6be605133b745ac24593
pam-debug /usr/lib/debug/.build-id/7d/d0210a971b73a0c18e6be605133b745ac24593.debug
pam-debug /usr/lib/debug/.build-id/7e/
pam-debug /usr/lib/debug/.build-id/7e/3aa873b317b275593228f8c86a5f8566d5ced4
pam-debug /usr/lib/debug/.build-id/7e/3aa873b317b275593228f8c86a5f8566d5ced4.debug
pam-debug /usr/lib/debug/.build-id/7e/b30de79574a0794627a7154179f2dffaa330e0
pam-debug /usr/lib/debug/.build-id/7e/b30de79574a0794627a7154179f2dffaa330e0.debug
pam-debug /usr/lib/debug/.build-id/81/
pam-debug /usr/lib/debug/.build-id/81/fe7a330a2084b2be8f2ed18927f22024b054c0
pam-debug /usr/lib/debug/.build-id/81/fe7a330a2084b2be8f2ed18927f22024b054c0.debug
pam-debug /usr/lib/debug/.build-id/84/
pam-debug /usr/lib/debug/.build-id/84/30ecd14f7a8933f344a0728eb2fad20e2074c6
pam-debug /usr/lib/debug/.build-id/84/30ecd14f7a8933f344a0728eb2fad20e2074c6.debug
pam-debug /usr/lib/debug/.build-id/8e/
pam-debug /usr/lib/debug/.build-id/8e/1778e6a263717a46a5421f11961a0776ce03b2
pam-debug /usr/lib/debug/.build-id/8e/1778e6a263717a46a5421f11961a0776ce03b2.debug
pam-debug /usr/lib/debug/.build-id/90/
pam-debug /usr/lib/debug/.build-id/90/256fb9ae27483b6a7ea85d24e3a440a9563f08
pam-debug /usr/lib/debug/.build-id/90/256fb9ae27483b6a7ea85d24e3a440a9563f08.debug
pam-debug /usr/lib/debug/.build-id/93/
pam-debug /usr/lib/debug/.build-id/93/8aadf2b458765dd4b7ebce1cefc4fa02ddf006
pam-debug /usr/lib/debug/.build-id/93/8aadf2b458765dd4b7ebce1cefc4fa02ddf006.debug
pam-debug /usr/lib/debug/.build-id/98/
pam-debug /usr/lib/debug/.build-id/98/6169ac606ba6e1977a211a09cf7df38939f29f
pam-debug /usr/lib/debug/.build-id/98/6169ac606ba6e1977a211a09cf7df38939f29f.debug
pam-debug /usr/lib/debug/.build-id/9b/
pam-debug /usr/lib/debug/.build-id/9b/f6aba05ef876edb08ffef0ad00cce541342b78
pam-debug /usr/lib/debug/.build-id/9b/f6aba05ef876edb08ffef0ad00cce541342b78.debug
pam-debug /usr/lib/debug/.build-id/9f/
pam-debug /usr/lib/debug/.build-id/9f/352ab1d17542006203f5ddb026cafd128f2be2
pam-debug /usr/lib/debug/.build-id/9f/352ab1d17542006203f5ddb026cafd128f2be2.debug
pam-debug /usr/lib/debug/.build-id/a1/
pam-debug /usr/lib/debug/.build-id/a1/3bd8a5f0380ee481e64d350f27a668e2259236
pam-debug /usr/lib/debug/.build-id/a1/3bd8a5f0380ee481e64d350f27a668e2259236.debug
pam-debug /usr/lib/debug/.build-id/a6/
pam-debug /usr/lib/debug/.build-id/a6/5a711bd991ef478c67d60deac44c9469434016
pam-debug /usr/lib/debug/.build-id/a6/5a711bd991ef478c67d60deac44c9469434016.debug
pam-debug /usr/lib/debug/.build-id/a8/
pam-debug /usr/lib/debug/.build-id/a8/eeec4c454b521c80262cbbcd6c0a9e66fef7bb
pam-debug /usr/lib/debug/.build-id/a8/eeec4c454b521c80262cbbcd6c0a9e66fef7bb.debug
pam-debug /usr/lib/debug/.build-id/ae/
pam-debug /usr/lib/debug/.build-id/ae/fc27a56d61658502e6282cf0cf420ca87b9177
pam-debug /usr/lib/debug/.build-id/ae/fc27a56d61658502e6282cf0cf420ca87b9177.debug
pam-debug /usr/lib/debug/.build-id/c0/
pam-debug /usr/lib/debug/.build-id/c0/6c8d8013d6b4c7dbd7a7efcbf048e644d75ab6
pam-debug /usr/lib/debug/.build-id/c0/6c8d8013d6b4c7dbd7a7efcbf048e644d75ab6.debug
pam-debug /usr/lib/debug/.build-id/c5/
pam-debug /usr/lib/debug/.build-id/c5/c4ace440d6e46087975ded33de47810c0169d1
pam-debug /usr/lib/debug/.build-id/c5/c4ace440d6e46087975ded33de47810c0169d1.debug
pam-debug /usr/lib/debug/.build-id/d2/
pam-debug /usr/lib/debug/.build-id/d2/837c0e450e263ba24ba1e33b1988939eb9e6bc
pam-debug /usr/lib/debug/.build-id/d2/837c0e450e263ba24ba1e33b1988939eb9e6bc.debug
pam-debug /usr/lib/debug/.build-id/d4/
pam-debug /usr/lib/debug/.build-id/d4/b833992f10314c98c69c21771463d06758731e
pam-debug /usr/lib/debug/.build-id/d4/b833992f10314c98c69c21771463d06758731e.debug
pam-debug /usr/lib/debug/.build-id/d8/
pam-debug /usr/lib/debug/.build-id/d8/0a8e83f3e52167876ff932095b708316c8cecd
pam-debug /usr/lib/debug/.build-id/d8/0a8e83f3e52167876ff932095b708316c8cecd.debug
pam-debug /usr/lib/debug/.build-id/d8/f696b9deae278c46b81014ce392d4c1efb9e87
pam-debug /usr/lib/debug/.build-id/d8/f696b9deae278c46b81014ce392d4c1efb9e87.debug
pam-debug /usr/lib/debug/.build-id/dc/
pam-debug /usr/lib/debug/.build-id/dc/c3758a5e61cff1a4984987652749232a6dc5a7
pam-debug /usr/lib/debug/.build-id/dc/c3758a5e61cff1a4984987652749232a6dc5a7.debug
pam-debug /usr/lib/debug/.build-id/e1/
pam-debug /usr/lib/debug/.build-id/e1/7312f3e94beb19dd9b470b675533124e0e2cfd
pam-debug /usr/lib/debug/.build-id/e1/7312f3e94beb19dd9b470b675533124e0e2cfd.debug
pam-debug /usr/lib/debug/.build-id/e7/
pam-debug /usr/lib/debug/.build-id/e7/db26a1e04c7082bef07afe15210d97fafdeff9
pam-debug /usr/lib/debug/.build-id/e7/db26a1e04c7082bef07afe15210d97fafdeff9.debug
pam-debug /usr/lib/debug/.build-id/eb/
pam-debug /usr/lib/debug/.build-id/eb/eb66ce1d6f9b4c1aabbfec5bdd47ab15f0c57d
pam-debug /usr/lib/debug/.build-id/eb/eb66ce1d6f9b4c1aabbfec5bdd47ab15f0c57d.debug
pam-debug /usr/lib/debug/.build-id/f4/
pam-debug /usr/lib/debug/.build-id/f4/c59ed79049f3fce56dde1385ebf385848fecb9
pam-debug /usr/lib/debug/.build-id/f4/c59ed79049f3fce56dde1385ebf385848fecb9.debug
pam-debug /usr/lib/debug/.build-id/fc/
pam-debug /usr/lib/debug/.build-id/fc/83e66ceb4036fde3cd315998ce18da84c0caa9
pam-debug /usr/lib/debug/.build-id/fc/83e66ceb4036fde3cd315998ce18da84c0caa9.debug
pam-debug /usr/lib/debug/.build-id/fe/
pam-debug /usr/lib/debug/.build-id/fe/35d5b249f8ae9cc7c4974f6fe2a45513ad44ff
pam-debug /usr/lib/debug/.build-id/fe/35d5b249f8ae9cc7c4974f6fe2a45513ad44ff.debug
pam-debug /usr/lib/debug/usr/
pam-debug /usr/lib/debug/usr/bin/
pam-debug /usr/lib/debug/usr/bin/mkhomedir_helper.debug
pam-debug /usr/lib/debug/usr/bin/pam_tally.debug
pam-debug /usr/lib/debug/usr/bin/pam_tally2.debug
pam-debug /usr/lib/debug/usr/bin/pam_timestamp_check.debug
pam-debug /usr/lib/debug/usr/bin/unix_chkpwd.debug
pam-debug /usr/lib/debug/usr/bin/unix_update.debug
pam-debug /usr/lib/debug/usr/lib/
pam-debug /usr/lib/debug/usr/lib/libpam.so.0.84.2.debug
pam-debug /usr/lib/debug/usr/lib/libpam_misc.so.0.82.1.debug
pam-debug /usr/lib/debug/usr/lib/libpamc.so.0.82.1.debug
pam-debug /usr/lib/debug/usr/lib/security/
pam-debug /usr/lib/debug/usr/lib/security/pam_access.so.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_cracklib.so.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_debug.so.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_deny.so.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_echo.so.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_env.so.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_exec.so.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_faildelay.so.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_filter.so.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_filter/
pam-debug /usr/lib/debug/usr/lib/security/pam_filter/upperLOWER.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_ftp.so.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_group.so.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_issue.so.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_keyinit.so.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_lastlog.so.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_limits.so.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_listfile.so.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_localuser.so.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_loginuid.so.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_mail.so.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_mkhomedir.so.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_motd.so.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_namespace.so.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_nologin.so.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_permit.so.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_pwhistory.so.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_rhosts.so.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_rootok.so.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_securetty.so.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_shells.so.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_stress.so.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_succeed_if.so.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_tally.so.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_tally2.so.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_time.so.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_timestamp.so.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_umask.so.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_unix.so.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_warn.so.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_wheel.so.debug
pam-debug /usr/lib/debug/usr/lib/security/pam_xauth.so.debug
pam-debug /usr/src/
pam-debug /usr/src/debug/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/libpam/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/libpam/pam_account.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/libpam/pam_audit.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/libpam/pam_auth.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/libpam/pam_data.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/libpam/pam_delay.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/libpam/pam_dispatch.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/libpam/pam_dynamic.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/libpam/pam_end.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/libpam/pam_env.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/libpam/pam_get_authtok.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/libpam/pam_handlers.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/libpam/pam_item.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/libpam/pam_misc.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/libpam/pam_modutil_cleanup.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/libpam/pam_modutil_getgrgid.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/libpam/pam_modutil_getgrnam.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/libpam/pam_modutil_getlogin.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/libpam/pam_modutil_getpwnam.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/libpam/pam_modutil_getpwuid.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/libpam/pam_modutil_getspnam.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/libpam/pam_modutil_ingroup.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/libpam/pam_modutil_ioloop.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/libpam/pam_modutil_priv.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/libpam/pam_modutil_sanitize.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/libpam/pam_password.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/libpam/pam_prelude.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/libpam/pam_session.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/libpam/pam_start.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/libpam/pam_strerror.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/libpam/pam_syslog.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/libpam/pam_vprompt.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/libpam_misc/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/libpam_misc/help_env.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/libpam_misc/misc_conv.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/libpamc/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/libpamc/pamc_client.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/libpamc/pamc_converse.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/libpamc/pamc_load.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_access/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_access/pam_access.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_cracklib/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_cracklib/pam_cracklib.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_debug/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_debug/pam_debug.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_deny/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_deny/pam_deny.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_echo/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_echo/pam_echo.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_env/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_env/pam_env.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_exec/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_exec/pam_exec.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_faildelay/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_faildelay/pam_faildelay.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_filter/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_filter/pam_filter.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_filter/upperLOWER/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_filter/upperLOWER/upperLOWER.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_ftp/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_ftp/pam_ftp.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_group/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_group/pam_group.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_issue/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_issue/pam_issue.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_keyinit/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_keyinit/pam_keyinit.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_lastlog/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_lastlog/pam_lastlog.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_limits/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_limits/pam_limits.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_listfile/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_listfile/pam_listfile.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_localuser/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_localuser/pam_localuser.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_loginuid/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_loginuid/pam_loginuid.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_mail/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_mail/pam_mail.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_mkhomedir/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_mkhomedir/mkhomedir_helper.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_mkhomedir/pam_mkhomedir.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_motd/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_motd/pam_motd.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_namespace/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_namespace/argv_parse.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_namespace/md5.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_namespace/pam_namespace.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_nologin/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_nologin/pam_nologin.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_permit/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_permit/pam_permit.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_pwhistory/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_pwhistory/opasswd.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_pwhistory/pam_pwhistory.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_rhosts/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_rhosts/pam_rhosts.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_rootok/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_rootok/pam_rootok.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_securetty/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_securetty/pam_securetty.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_shells/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_shells/pam_shells.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_stress/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_stress/pam_stress.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_succeed_if/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_succeed_if/pam_succeed_if.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_tally/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_tally/pam_tally.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_tally/pam_tally_app.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_tally2/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_tally2/pam_tally2.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_tally2/pam_tally2_app.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_time/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_time/pam_time.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_timestamp/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_timestamp/hmacsha1.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_timestamp/pam_timestamp.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_timestamp/pam_timestamp_check.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_timestamp/sha1.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_umask/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_umask/pam_umask.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_unix/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_unix/bigcrypt.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_unix/md5_broken.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_unix/md5_good.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_unix/pam_unix_acct.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_unix/pam_unix_auth.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_unix/pam_unix_passwd.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_unix/pam_unix_sess.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_unix/passverify.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_unix/support.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_unix/unix_chkpwd.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_unix/unix_update.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_unix/yppasswd_xdr.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_warn/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_warn/pam_warn.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_wheel/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_wheel/pam_wheel.c
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_xauth/
pam-debug /usr/src/debug/Linux-PAM-1.3.1/modules/pam_xauth/pam_xauth.c

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

Offline

#10 2018-08-14 14:36:29

necktwi
Member
Registered: 2018-07-12
Posts: 20

Re: [solved]how to install sources and debug symbols with pacman

Did you set any other options? Why couldn't I install sources? Please suggest where I might have gone wrong.

Offline

#11 2018-08-14 14:49:06

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

Re: [solved]how to install sources and debug symbols with pacman

I'm not sure... I used makechrootpkg from the devtools package, so it was a completely clean build.

Previous versions of makepkg did not store source files at all, but they didn't create the /usr/src/debug directory either...

For some reason, the "copy source files" step is simply failing to find anything. https://git.archlinux.org/pacman.git/tr … v5.1.1#n58

Was there any weird output after "  -> Stripping unneeded symbols from binaries and libraries..." to indicate something going wrong? Could you upload the pam-debug package so I could take a look at one of the *.debug files?


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

Offline

#12 2018-08-14 16:58:21

necktwi
Member
Registered: 2018-07-12
Posts: 20

Re: [solved]how to install sources and debug symbols with pacman

sorry for the delay

https://www.dropbox.com/s/0rso3agnasv99 … ar.xz?dl=0
https://www.dropbox.com/s/il2rlx801ywwj … ar.xz?dl=0

==> Tidying install...
  -> Removing empty directories...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> WARNING: backup entry file not in package : etc/default/passwd
==> Creating package "pam"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Creating package "pam-debug"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
touch: setting times of './usr/lib/debug/.build-id/c4/e637ca9d46d91e5cf09f8b8976f448dc73fd55': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/7d/3bf76bb4e92549a25b2ac071fde8fccc43c8ca': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/4a/abd622496962ca643bdfa80f517113f950b863': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/3c/b528bda9552f7e4990b570c328680076fc836f': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/31/591927edf8efbc58d2be93c27637664441e71c': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/dc/1a9c76aed9e3c28a923b5efe491c52e1bf2764': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/dc/f37b4c00d11c099e9ba23922d5b05b3adfa128': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/ab/0ff67ae4162b45d06a4601972870280766fec4': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/ab/282ae90ccb27b048eba69c014fb7a65f90ee15': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/09/3b52f1f57981957abb8b2339b71f8009cc5720': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/3f/8649669f8cafb0a914de4ce324d605924396fd': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/e3/623e4a0347eac1c02e51c4a73806ecfbec8a10': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/7f/ddf857dd38f6dad89c3202aca801d77c0cd883': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/5b/95e1e4655ca1735c7a35c7e782718e9dbfded6': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/fe/a8aaac4ee0869a9cbe3e3c69beb951b41a1734': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/b3/87075193db0f91fe12182c72afa06c105dea60': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/cc/fa8347ec4267e27a1ac2f619da817d111f8430': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/1a/0beea8eacf5c48802e1cac861a6902961b72ac': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/49/15514d401f52f22da11742dbd8a1995ce96d24': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/ce/ad0904c485f39a3920ec2c19e08373b296b860': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/72/20de5e1fd62736a3157093de96262533d376e6': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/6e/47596c9960abb8ccbf5012fa92abfa9fb435ff': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/1c/1c8a6b3d939e1b48ddb333d1ab8dd210b2603f': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/1c/523f0d6a100805b4747a245b223bfb175d5488': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/66/9838b3f1b28d97dc41da58ac8fc227a17db345': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/9c/c6d3d928a4fa2c886783aeee9120eeb84fb767': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/9c/f9b99d1c9672e8081369f173331d67d40b054a': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/2b/580b2e01d029fb23a065e3bde32b9480e6eadf': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/8c/a13f9c60d5342fd8b1ac1e1b8b21d3a8d1441c': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/f2/8b4e7ec524199abfacbe497c50a30e0762901b': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/34/83e32ab7ae10fd26d303c4b07291a11f60e27d': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/af/a56040f971d885c61ed6ac691061b8ab2412d9': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/f4/200989a6ad8a5b01572efabfd48869f0f269fe': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/94/1b41f3e8485d50acf4867296e8440add95c7e8': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/a8/d765c0e9f2c6e664f2df99a7b92e920a72d25a': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/bc/82a48b3add05f438a65e4c9b021ceff42c2909': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/5a/443a25a09a31f288864a3b3e77e89a09bbea60': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/92/94d7315c12bb296be7200fa3b81d6f7435d358': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/b5/a9569fdfc8d54baaaf5694473639a19d539112': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/77/2b32e7618c72aaa7a6ee2f48670000afca5ca8': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/bf/e06f0d29bcca6707364851e7566cc65df34607': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/40/7c98bd892552914466ddde5d5db2934ba75274': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/05/dd5acd0fc001229dff879abc25b0a5c1c8afb3': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/f3/20f6619c9df20df260e1ce37c3e2f30d4ae0b1': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/1e/c2d385db16b035eef288959fd63c0a9f29c215': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/2d/09927d714e693a795c3edc521d59600c2c88d8': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/c8/11da229f1c1477c522a662eba129787d4e1fce': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/ed/a7b74a8f4aba8886fba2b04764efc9d3355277': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/ec/5e5dcf7b9902e0d7d32b23fa8b5bf01c864b00': No such file or directory
touch: setting times of './usr/lib/debug/.build-id/87/6b404cbaf236acc0a20e51d8582454fde3ca05': No such file or directory
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: pam 1.3.1-1 (Tue 14 Aug 2018 10:16:26 PM IST)

nothing weird with stripping unneeded symbols but generating .BUILDINFO has error

Offline

#13 2018-08-14 17:18:27

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

Re: [solved]how to install sources and debug symbols with pacman

The debug package is:

1) a lot smaller than it should be:

$ du -sh /var/lib/archbuild/extra-x86_64/eschwartz/build/pam/pkg/pam-debug/usr/lib/debug/
1.9M	/var/lib/archbuild/extra-x86_64/eschwartz/build/pam/pkg/pam-debug/usr/lib/debug/

$ du -sh /home/eschwartz/Downloads/pam-debug-1.3.1-1-x86_64.pkg/usr/lib
812K	/home/eschwartz/Downloads/pam-debug-1.3.1-1-x86_64.pkg/usr/lib

2) completely lacking in lots of debug info:

$ readelf --debug-dump /var/lib/archbuild/extra-x86_64/eschwartz/build/pam/pkg/pam-debug/usr/lib/debug/usr/lib/libpam.so.0.84.2.debug | wc -l
77769

$ readelf --debug-dump /home/eschwartz/Downloads/pam-debug-1.3.1-1-x86_64.pkg/usr/lib/debug/usr/lib/libpam.so.0.84.2.debug | wc -l
0

So, the resulting package simply had no such debug info to begin with.

...

What are your makepkg.conf CFLAGS?


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

Offline

#14 2018-08-14 17:22:39

necktwi
Member
Registered: 2018-07-12
Posts: 20

Re: [solved]how to install sources and debug symbols with pacman

$ cat /etc/makepkg.conf

#!/hint/bash
#
# /etc/makepkg.conf
#

#########################################################################
# SOURCE ACQUISITION
#########################################################################
#
#-- The download utilities that makepkg should use to acquire sources
#  Format: 'protocol::agent'
DLAGENTS=('file::/usr/bin/curl -gqC - -o %o %u'
          'ftp::/usr/bin/curl -gqfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
          'http::/usr/bin/curl -gqb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
          'https::/usr/bin/curl -gqb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
          'rsync::/usr/bin/rsync --no-motd -z %u %o'
          'scp::/usr/bin/scp -C %u %o')

# Other common tools:
# /usr/bin/snarf
# /usr/bin/lftpget -c
# /usr/bin/wget

#-- The package required by makepkg to download VCS sources
#  Format: 'protocol::package'
VCSCLIENTS=('bzr::bzr'
            'git::git'
            'hg::mercurial'
            'svn::subversion')

#########################################################################
# ARCHITECTURE, COMPILE FLAGS
#########################################################################
#
CARCH="x86_64"
CHOST="x86_64-pc-linux-gnu"

#-- Compiler and Linker Flags
CPPFLAGS="-D_FORTIFY_SOURCE=2"
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt"
CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
#-- Make Flags: change this for DistCC/SMP systems
#MAKEFLAGS="-j2"
#-- Debugging flags
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"

#########################################################################
# BUILD ENVIRONMENT
#########################################################################
#
# Defaults: BUILDENV=(!distcc !color !ccache check !sign)
#  A negated environment option will do the opposite of the comments below.
#
#-- distcc:   Use the Distributed C/C++/ObjC compiler
#-- color:    Colorize output messages
#-- ccache:   Use ccache to cache compilation
#-- check:    Run the check() function if present in the PKGBUILD
#-- sign:     Generate PGP signature file
#
BUILDENV=(!distcc color !ccache check !sign)
#
#-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
#-- specify a space-delimited list of hosts running in the DistCC cluster.
#DISTCC_HOSTS=""
#
#-- Specify a directory for package building.
#BUILDDIR=/tmp/makepkg

#########################################################################
# GLOBAL PACKAGE OPTIONS
#   These are default values for the options=() settings
#########################################################################
#
# Default: OPTIONS=(!strip docs libtool staticlibs emptydirs !zipman !purge !debug)
#  A negated option will do the opposite of the comments below.
#
#-- strip:      Strip symbols from binaries/libraries
#-- docs:       Save doc directories specified by DOC_DIRS
#-- libtool:    Leave libtool (.la) files in packages
#-- staticlibs: Leave static library (.a) files in packages
#-- emptydirs:  Leave empty directories in packages
#-- zipman:     Compress manual (man and info) pages in MAN_DIRS with gzip
#-- purge:      Remove files specified by PURGE_TARGETS
#-- debug:      Add debugging flags as specified in DEBUG_* variables
#
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug)

#-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
INTEGRITY_CHECK=(md5)
#-- Options to be used when stripping binaries. See `man strip' for details.
STRIP_BINARIES="--strip-all"
#-- Options to be used when stripping shared libraries. See `man strip' for details.
STRIP_SHARED="--strip-unneeded"
#-- Options to be used when stripping static libraries. See `man strip' for details.
STRIP_STATIC="--strip-debug"
#-- Manual (man and info) directories to compress (if zipman is specified)
MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
#-- Doc directories to remove (if !docs is specified)
DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
#-- Files to be removed from all packages (if purge is specified)
PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
#-- Directory to store source code in for debug packages
DBGSRCDIR="/usr/src/debug"

#########################################################################
# PACKAGE OUTPUT
#########################################################################
#
# Default: put built package and cached source in build directory
#
#-- Destination: specify a fixed directory where all packages will be placed
#PKGDEST=/home/packages
#-- Source cache: specify a fixed directory where source files will be cached
#SRCDEST=/home/sources
#-- Source packages: specify a fixed directory where all src packages will be placed
#SRCPKGDEST=/home/srcpackages
#-- Log files: specify a fixed directory where all log files will be placed
#LOGDEST=/home/makepkglogs
#-- Packager: name/email of the person or organization building packages
#PACKAGER="John Doe <john@doe.com>"
#-- Specify a key to use for package signing
#GPGKEY=""

#########################################################################
# COMPRESSION DEFAULTS
#########################################################################
#
COMPRESSGZ=(gzip -c -f -n)
COMPRESSBZ2=(bzip2 -c -f)
COMPRESSXZ=(xz -c -z -)
COMPRESSLRZ=(lrzip -q)
COMPRESSLZO=(lzop -q)
COMPRESSZ=(compress -c -f)

#########################################################################
# EXTENSION DEFAULTS
#########################################################################
#
# WARNING: Do NOT modify these variables unless you know what you are
#          doing.
#
PKGEXT='.pkg.tar.xz'
SRCEXT='.src.tar.gz'

$ cat ~/.makepkg.conf

PACKAGER=gowtham@ferryfair.com
OPTIONS+=(debug strip)

Offline

#15 2018-08-15 04:51:57

necktwi
Member
Registered: 2018-07-12
Posts: 20

Re: [solved]how to install sources and debug symbols with pacman

It's the same even after i tried modifing /etc/makepkg.conf options to

OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge debug)
and
OPTIONS=(strip docs !libtool staticlibs emptydirs zipman purge debug)

Is it a bug?

Last edited by necktwi (2018-08-15 05:12:48)

Offline

#16 2018-08-16 03:04:54

necktwi
Member
Registered: 2018-07-12
Posts: 20

Re: [solved]how to install sources and debug symbols with pacman

Eschwartz, did I make any silly mistake with my makepkg configuration? I am afraid u r praying for my conf to rest in peace!

Offline

#17 2018-08-16 05:32:37

seth
Member
Registered: 2012-09-03
Posts: 49,985

Re: [solved]how to install sources and debug symbols with pacman

1. stop stripping the binary?
2. the pam PKGBUILD has an options key. idk whether that will shadow or overlay the one in makepkg.conf, but would suggest you add "!strip debug" there and leave the global makepkg configs alone.

Offline

#18 2018-08-17 14:05:50

necktwi
Member
Registered: 2018-07-12
Posts: 20

Re: [solved]how to install sources and debug symbols with pacman

Neither not-stripping the binary nor deleting the options key in PKGBUILD has any effect: no sources in the pkg. I couldn't reply soon, vmware recent update on windows hit by a bug, it flared up the community. I had to make a fresh arch install on my mac. huh! these bugs!

Offline

#19 2018-08-17 14:13:48

seth
Member
Registered: 2012-09-03
Posts: 49,985

Re: [solved]how to install sources and debug symbols with pacman

This is only about debug symbols. You just downloaded "the sources". I'm not sure how or why you want to package them, but doubt that the PKGBUILD will do that. You'll just have to copy over everything you want to some path in the $pkgdir, but again: the source files reside in path where you built the package and that's fine for any kind of debugging.
I'm not sure though whether and which PKGBUILD instruction will add gdwarf option to gcc (what you seem to be after??)

Offline

#20 2018-08-17 15:14:29

necktwi
Member
Registered: 2018-07-12
Posts: 20

Re: [solved]how to install sources and debug symbols with pacman

In the above, Eschwarthz's pkg build has packed sources inside them. Again, as Eschwartz has mentioned, my debug package is not even including debug symbols. Yet again I tried debugging including sources at $pkgdir with a hope that if there are debug symbols then there might be a chance that they point to the source files in the $pkgdir but the debugger didn't step into those source files.

Offline

#21 2018-08-18 03:16:03

necktwi
Member
Registered: 2018-07-12
Posts: 20

Re: [solved]how to install sources and debug symbols with pacman

Its working! I don't know what exactly set the things right, here are the things I've done.

pacman -Syu base-devel linux-headers
echo "en_US.UTF-8" >> /etc/local.gen
sudo locale-gen

Offline

#22 2018-08-19 14:26:50

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

Re: [solved]how to install sources and debug symbols with pacman

seth wrote:

1. stop stripping the binary?
2. the pam PKGBUILD has an options key. idk whether that will shadow or overlay the one in makepkg.conf, but would suggest you add "!strip debug" there and leave the global makepkg configs alone.

It's completely fine to strip the binary, since that information is, or should be, simply extracted and stored in the detached debugging package...

And the options key in the PKGBUILD will append to and override the one in makepkg.conf, but given that it only overrides the "emptydirs" option, it won't override the strip/debug options... hence why I could build a debug package just fine.

Global makepkg configs exist in order to change makepkg settings for *all* packages instead of hardcoding them in a single PKGBUILD for frivolous reasons...

seth wrote:

This is only about debug symbols. You just downloaded "the sources". I'm not sure how or why you want to package them, but doubt that the PKGBUILD will do that. You'll just have to copy over everything you want to some path in the $pkgdir, but again: the source files reside in path where you built the package and that's fine for any kind of debugging.
I'm not sure though whether and which PKGBUILD instruction will add gdwarf option to gcc (what you seem to be after??)

You're completely wrong. smile

See https://git.archlinux.org/pacman.git/tr … v5.1.0#n79

It's one of the major new features of makepkg 5.1.x -- it will in fact very much package source files in debug packages, and passes special gcc CFLAGS to ensure the resulting debug info tries to look for source files in /usr/src/debug.

necktwi wrote:

Its working! I don't know what exactly set the things right, here are the things I've done.

Great! I have no idea why it did not work before, but I guess we can chalk this one down to gremlins.

If your problem is solved, please edit your first post and prepend the word "[Solved]" to the thread title.
(I guess "it works now even if I've got no idea why it didn't before" counts as solved, right? big_smile)


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

Offline

Board footer

Powered by FluxBB