FS#22688 - makepkg: has problems with apps written in Go
Attached to Project:
Pacman
Opened by Alexander F. Rødseth (xyproto) - Monday, 31 January 2011, 21:11 GMT
Last edited by Allan McRae (Allan) - Saturday, 19 February 2011, 00:48 GMT
Opened by Alexander F. Rødseth (xyproto) - Monday, 31 January 2011, 21:11 GMT
Last edited by Allan McRae (Allan) - Saturday, 19 February 2011, 00:48 GMT
|
Details
Description:
makepkg seems to have problems with applications written in Go. If I use makepkg with this PKGBUILD: http://aur.archlinux.org/packages/addinclude/addinclude/PKGBUILD ...there are two problems: Firstly, makepkg gives the following output, unless options=(!strip) is in the PKGBUILD: -> Stripping unneeded symbols from binaries and libraries... BFD: usr/bin/st1ZlhDc: The first section in the PT_DYNAMIC segment is not the .dynamic section /usr/bin/strip:usr/bin/st1ZlhDc[.interp]: Bad value BFD: usr/bin/st1ZlhDc: The first section in the PT_DYNAMIC segment is not the .dynamic section /usr/bin/strip:usr/bin/st1ZlhDc: Bad value I understand that this is primarily a problem with strip, but it's still makepkg-related. Secondly (and this is the main issue), I get a: ==> WARNING: Package contains reference to $srcdir Even though I can not find any such references in the source code or the binary. "addinclude" is a good test-case for this, as it's a small application. (On an completely unrelated note, "clyde" does not manage to install Go-based packages at all). Additional info: * package version(s) Name : go Version : 2010_09_29-1 In case the PKGBUILD changes in the future, this is for version 0.7 of addinclude Steps to reproduce: wget http://aur.archlinux.org/packages/addinclude/addinclude/PKGBUILD makepkg |
This task depends upon
I'd say the strip issue is due to a minor incompatibility between the current binutils and go packages. It will probably "magically" fix itself when I package gcc-go with the gcc-4.6 update or even updating the go package. In any case, this is not a makepkg issue.