Bug 208216

Summary: net-mgmt/cdpd: runtime broken on armv6
Product: Ports & Packages Reporter: Mikael Urankar <mikael>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Many People CC: marino, pi
Priority: --- Flags: bugzilla: maintainer-feedback? (sem)
Version: Latest   
Hardware: arm   
OS: Any   
URL: https://lists.freebsd.org/pipermail/freebsd-arm/2016-March/013464.html
Attachments:
Description Flags
fix for armv6
none
bump portrevision none

Description Mikael Urankar freebsd_committer freebsd_triage 2016-03-22 18:44:49 UTC
Created attachment 168508 [details]
fix for armv6

Hi,

cdpd does not work on armv6, see https://lists.freebsd.org/pipermail/freebsd-arm/2016-March/013464.html for details.
The attached patch fixes the issue (getopt returns an 'int' not a 'char', char is unsigned on arm eabi)
Comment 1 Mikael Urankar freebsd_committer freebsd_triage 2016-03-23 09:12:44 UTC
Created attachment 168526 [details]
bump portrevision
Comment 2 Mikael Urankar freebsd_committer freebsd_triage 2016-03-23 15:31:50 UTC
Response from Scott (freebsd-lists-5 at thismonkey.com)

Hi!

Thanks for the quick reply.  That patch worked perfectly, thanks.

Just for my education: did the truss output assist at all?  If so, what was
the relevant line(s) that led to the patch?
Comment 3 Rene Ladan freebsd_committer freebsd_triage 2016-08-21 11:21:05 UTC
maintainer reset
Comment 4 commit-hook freebsd_committer freebsd_triage 2016-08-23 01:52:07 UTC
A commit references this bug:

Author: marino
Date: Tue Aug 23 01:51:21 UTC 2016
New revision: 420640
URL: https://svnweb.freebsd.org/changeset/ports/420640

Log:
  net-mgmt/cdpd: Fix runtime on armv6

  While here, pet portlint and define the 2-clause BSD license

  PR:		208216
  Submitted by:	Mikael Urankar (gmail)

Changes:
  head/net-mgmt/cdpd/Makefile
  head/net-mgmt/cdpd/files/patch-cdpd.c