FS#27522 - [binutils] can not repackage

Attached to Project: Arch Linux
Opened by Roman Beslik (beroal) - Saturday, 10 December 2011, 18:10 GMT
Last edited by Allan McRae (Allan) - Sunday, 25 December 2011, 08:44 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Allan McRae (Allan)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Steps to reproduce:
* $ cd /var/abs/local/binutils
* $ rm -R pkg src
* $ makepkg
* $ makepkg --repackage -f

Description:
"makepkg --repackage" aborts because of absent symbols in "libbfd." IMO this is due to that "libbfd" is compiled with "CFLAGS" including "-fvisibility=hidden", thus object files of "libbfd" are inappropriate for compiling "libiberty." I remedied this problem as follows:
* compile "libbfd" without "-fvisibility=hidden"
* compile "libiberty"
* compile "libbfd" with "-fvisibility=hidden"
You can look at remedied PKGBUILD at https://aur.archlinux.org/packages/bi/binutils-tune-bfd-hash/PKGBUILD , specifically, look at the function "package".

Additional info:
binutils 2.22-1
This task depends upon

Closed by  Allan McRae (Allan)
Sunday, 25 December 2011, 08:44 GMT
Reason for closing:  Fixed
Additional comments about closing:  on svn trunk
Comment by Allan McRae (Allan) - Sunday, 11 December 2011, 09:53 GMT
I think those sections should be moved to the build() function... no building should be done during package().
Comment by Roman Beslik (beroal) - Monday, 12 December 2011, 12:03 GMT
I agree.
Comment by Roman Beslik (beroal) - Wednesday, 21 December 2011, 10:21 GMT
I tried to move compilation from "package()" to "build()" in my AUR package. Unsuccessfully, because it yields errors. Would you share your progress?
Comment by Allan McRae (Allan) - Sunday, 25 December 2011, 08:44 GMT

Loading...