Bug 201248

Summary: security/p5-Crypt-RHash fails to build on arm6
Product: Ports & Packages Reporter: Mikael Urankar <mikael>
Component: Individual Port(s)Assignee: freebsd-perl (Nobody) <perl>
Status: Closed FIXED    
Severity: Affects Only Me CC: freebsd-arm, pi
Priority: --- Flags: bugzilla: maintainer-feedback? (perl)
Version: Latest   
Hardware: arm   
OS: Any   
URL: http://chips.ysv.freebsd.org/data/11armv6-default/2015-06-25_17h58m24s/logs/errors/p5-Crypt-RHash-0.91_1.log
Attachments:
Description Flags
armv6 fix none

Description Mikael Urankar freebsd_committer freebsd_triage 2015-07-01 13:19:25 UTC
Created attachment 158220 [details]
armv6 fix

Hi,

p5-Crypt-RHash fails to build on armv6:

===>  Building for p5-Crypt-RHash-0.91_1
/nxb-bin/usr/bin/cc -c  -Ilibrhash  -O2 -pipe -mfloat-abi=softfp  -fno-strict-aliasing -O2 -pipe -mfloat-abi=softfp -fno-strict-aliasing    -DVERSION=\"0.91\"  -DXS_VERSION=\"0.91\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.20/mach/CORE"   _torrent.c
In file included from _torrent.c:23:
librhash/byte_order.h:59:3: error: "Can't detect CPU architechture"
# error "Can't detect CPU architechture"
  ^
1 error generated.

The attached patches fixes that.

build log:
http://mikael.urankar.free.fr/FreeBSD/arm/build_logs/p5-Crypt-RHash-0.91_1.log
Comment 1 Mathieu Arnold freebsd_committer freebsd_triage 2015-07-01 14:35:04 UTC
Have you submitted the patch upstream ?
Comment 2 Mikael Urankar freebsd_committer freebsd_triage 2015-07-01 14:36:03 UTC
(In reply to Mathieu Arnold from comment #1)
No
Comment 3 Kurt Jaeger freebsd_committer freebsd_triage 2015-07-01 17:51:25 UTC
Bugreport upstream at

https://sourceforge.net/p/rhash/bugs/51/

that points to this bug report.
Comment 4 Mathieu Arnold freebsd_committer freebsd_triage 2016-03-21 13:26:22 UTC
Committed. Thanks!
Comment 5 commit-hook freebsd_committer freebsd_triage 2016-03-21 14:04:43 UTC
A commit references this bug:

Author: mat
Date: Mon Mar 21 14:04:21 UTC 2016
New revision: 411564
URL: https://svnweb.freebsd.org/changeset/ports/411564

Log:
  Fix build on arm6.

  PR:		201248
  Submitted by:	mikael urankar gmail com
  Sponsored by:	Absolight

Changes:
  head/security/p5-Crypt-RHash/files/patch-librhash__rhash_torrent.h
  head/security/p5-Crypt-RHash/files/patch-librhash_byte__order.h
  head/security/p5-Crypt-RHash/files/patch-librhash_rhash__torrent.h