Bug 201248 - security/p5-Crypt-RHash fails to build on arm6
Summary: security/p5-Crypt-RHash fails to build on arm6
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: arm Any
: --- Affects Only Me
Assignee: freebsd-perl (Nobody)
URL: http://chips.ysv.freebsd.org/data/11a...
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-01 13:19 UTC by Mikael Urankar
Modified: 2016-03-21 14:04 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (perl)


Attachments
armv6 fix (626 bytes, patch)
2015-07-01 13:19 UTC, Mikael Urankar
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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