Bug 192771

Summary: [maintainer] fix net/nmsg build on FreeBSD 8.x amd64
Product: Ports & Packages Reporter: Don Lewis <truckman>
Component: Individual Port(s)Assignee: William Grzybowski <wg>
Status: Closed FIXED    
Severity: Affects Some People CC: marino, wg
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch to unbreak net/nmsg build on FreeBSD 8.x amd64 none

Description Don Lewis freebsd_committer freebsd_triage 2014-08-17 23:09:30 UTC
Created attachment 145945 [details]
patch to unbreak net/nmsg build on FreeBSD 8.x amd64

net/nmsg fails to build on amd64 machines running FreeBSD 8.x because the version of binutils in base in FreeBSD 8 does not understand the crc32 instructions that this code uses on amd64.  Only in this particular corner case, set USE_GCC=yes as a big club to get the ports version of gcc, which will use a more capable version of binutils from ports.
Comment 1 John Marino freebsd_committer freebsd_triage 2014-08-17 23:35:10 UTC
technically it needs to check ${OPSYS} == FreeBSD whenever ${OSVERSION} is used.  In this case, it won't hurt dragonfly because the value is never less than 900000.
Comment 2 William Grzybowski freebsd_committer freebsd_triage 2014-08-18 12:59:28 UTC
Is 8.x still supported? IIRC 8.x support has been officially dropped some time ago, no?
Comment 3 John Marino freebsd_committer freebsd_triage 2014-08-18 13:01:15 UTC
8.4 is still supported.
Comment 4 commit-hook freebsd_committer freebsd_triage 2014-08-18 14:29:13 UTC
A commit references this bug:

Author: wg
Date: Mon Aug 18 14:28:36 UTC 2014
New revision: 365313
URL: http://svnweb.freebsd.org/changeset/ports/365313

Log:
  net/nmsg: fix build for FreeBSD 8.x

  PR:		192771
  Submitted by:	maintainer

Changes:
  head/net/nmsg/Makefile