Bug 201425

Summary: [patch] graphics/png fails to build on arm64
Product: Ports & Packages Reporter: Andrew Turner <Andrew>
Component: Individual Port(s)Assignee: Antoine Brodin <antoine>
Status: Closed FIXED    
Severity: Affects Some People CC: Andrew, emaste, portmgr
Priority: --- Flags: bugzilla: maintainer-feedback? (portmgr)
Version: Latest   
Hardware: arm64   
OS: Any   
URL: http://dirty.ysv.freebsd.org/data/11aarch64-default/2015-07-02_15h38m49s/logs/errors/png-1.6.17.log
Bug Depends on:    
Bug Blocks: 201763    
Description Flags
Fix for arm64
Use gnu configure instead of cmake none

Description Andrew Turner freebsd_committer 2015-07-08 16:33:10 UTC
Created attachment 158531 [details]
Fix for arm64

On arm64 png fails as png_init_filter_functions_neon is missing. This appears to be a bug with the cmake config missing arm/arm_init.c and arm/filter_neon_intrinsics.c. The attached patch fixes this for me such that the tests pass.

As both these files check if they should be used it is safe to build them on non-arm platforms.
Comment 1 Andrew Turner freebsd_committer 2015-07-15 12:52:36 UTC
Were there any problems with this? It would be nice to get this in as it blocks 2610 ports on arm64.
Comment 2 Antoine Brodin freebsd_committer 2015-07-27 19:02:17 UTC
Created attachment 159316 [details]
Use gnu configure instead of cmake

Could you try attached patch?

It switches build system from cmake to gnu configure which seems aware of arm64
Comment 3 Andrew Turner freebsd_committer 2015-07-28 14:27:01 UTC
(In reply to Antoine Brodin from comment #2)

That patch works for me, with no test failures.
Comment 4 Antoine Brodin freebsd_committer 2015-07-28 14:33:13 UTC
Comment 5 commit-hook freebsd_committer 2015-07-29 06:08:17 UTC
A commit references this bug:

Author: antoine
Date: Wed Jul 29 06:07:59 UTC 2015
New revision: 393143
URL: https://svnweb.freebsd.org/changeset/ports/393143

  Switch build system from cmake to GNU configure
  There are 2 benefits:
  - Reduced number of build dependencies (0 now)
  - This fixes build on arm64,  as configure/Makefile are more updated than
    CMakeLists.txt (CMakeLists.txt doesn't know about the arm/arm_init.c
    and arm/filter_neon_intrinsics.c files)

  PR:		201425
  Tested by:	Andrew Turner (on arm64)

Comment 6 Antoine Brodin freebsd_committer 2015-07-29 06:09:20 UTC
Patch committed