Description of problem: GOLANG-BUILT-PKG-debuginfo.rpm will contain references to source files in the rpmbuild directory. Version-Release number of selected component (if applicable): rpm-build-4.12.0.1-6.fc22.x86_64 How reproducible: Always. Steps to Reproduce: echo 'package main; func main () {}' >main.go go build -a main.go /usr/lib/rpm/debugedit -b `dirname $PWD` -d /usr/src/debug main readelf -wl main|grep main.go Actual results: 1 0 0 0 /home/jkratoch/redhat/gdb-clean/gdb/testsuite/gdb.go/main.go Expected results: 1 0 0 0 /usr/src/debug/gdb.go/main.go Additional info: This is a tracking Bug for the Tools team.
Created attachment 989164 [details] Fix golang does not produce DW_AT_comp_dir and debugedit ignored .debug_line in such case (despite golang .debug_line contains absolute filenames). before: $ gdb etcd (gdb) l 16 /home/jkratoch/redhat/fedora/etcd/master/etcd-2.0.0/src/github.com/coreos/etcd/main.go: No such file or directory. after: $ gdb etcd (gdb) l 16 // (located at github.com/coreos/etcd/etcdmain) to ensure that etcd is still 17 // "go getable"; e.g. `go get github.com/coreos/etcd` works as expected and 18 // builds a binary in $GOBIN/etcd 19 // 20 // This package should NOT be extended or modified in any way; to modify the 21 // etcd binary, work in the `github.com/coreos/etcd/etcdmain` package. 22 // 23 24 package main 25 (gdb) info source Current source file is /usr/src/debug/etcd-2.0.0/src/github.com/coreos/etcd/main.go Located in /usr/src/debug/etcd-2.0.0/src/github.com/coreos/etcd/main.go Contains 32 lines. Source language is unknown. Compiled with DWARF 2 debugging format. Does not include preprocessor macro info.
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle. Changing version to '22'. More information and reason for this action is here: https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22
ping
rpm-4.12.0.1-9.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/rpm-4.12.0.1-9.fc22
Also fixed in rawhide as rpm-4.12.0.1-14.fc23
Hi Florian, thanks for the fix. Can we fix this for f20 and f21 too? Regards Jan
rpm-4.12.0.1-6.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/rpm-4.12.0.1-6.fc21
rpm-4.11.3-3.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/rpm-4.11.3-3.fc20
rpm-4.12.0.1-6.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.
rpm-4.12.0.1-9.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
rpm-4.11.3-3.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.