Pacman

Historical bug tracker for the Pacman package manager.

The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues

This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
Tasklist

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
Task Type Bug Report
Category makepkg
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version 3.4.2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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

Closed by  Allan McRae (Allan)
Saturday, 19 February 2011, 00:48 GMT
Reason for closing:  Fixed
Comment by Allan McRae (Allan) - Monday, 31 January 2011, 22:35 GMT
The $srcdir check is fixed in commit f2296aab. This is probably detecting references in the debugging symbols that are not being stripped...

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.
Comment by Alexander F. Rødseth (xyproto) - Tuesday, 01 February 2011, 10:10 GMT
What about the bogus "Package contains reference to $srcdir"?
Comment by Allan McRae (Allan) - Tuesday, 01 February 2011, 10:44 GMT
Read the first line in my comment...
Comment by Alexander F. Rødseth (xyproto) - Wednesday, 02 February 2011, 12:55 GMT
Ah, missed that, sorry. Thanks for prompt answers.
Comment by Søren Poulsen (nikor) - Saturday, 19 February 2011, 00:37 GMT
As the oracle predicted, the bug has magically fix itself. At least for me :)

Loading...