Bug 203972

Summary: [patch] net/uriparser: Update to 0.8.4
Product: Ports & Packages Reporter: Torsten Zühlsdorff <ports>
Component: Individual Port(s)Assignee: Ed Schouten <ed>
Status: Closed FIXED    
Severity: Affects Some People Keywords: patch
Priority: --- Flags: bugzilla: maintainer-feedback? (ed)
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 203949    
Attachments:
Description Flags
Patch with update to version 0.8.4
none
poudriere log none

Description Torsten Zühlsdorff 2015-10-23 08:34:14 UTC
Created attachment 162377 [details]
Patch with update to version 0.8.4

Hello,

attached a patch to bump the library to the newest version. While there i defined the License too.

Attention: i needed to create a patch in order to make the port compiling. But my C experience is quite old, therefore please have a closer look at what i had done :D

As side-result portlint is now happy:
# portlint -C
looks fine.

Greetings,
Torsten
Comment 1 Torsten Zühlsdorff 2015-10-23 08:34:38 UTC
Created attachment 162378 [details]
poudriere log
Comment 2 Ed Schouten freebsd_committer freebsd_triage 2015-10-26 19:32:52 UTC
Hi Torsten,

Thanks for the patch! I just took a look at it. I can also reproduce the build failure. Looking at the compiler error, I think we can simplify the patch slightly. We only need to #include <sys/socket.h> to get AF_INET/AF_INET6.

I just sent out a code review to bapt@, as I typically run patches past him.

https://reviews.freebsd.org/D4001
Comment 3 commit-hook freebsd_committer freebsd_triage 2015-10-27 07:34:17 UTC
A commit references this bug:

Author: ed
Date: Tue Oct 27 07:33:47 UTC 2015
New revision: 400218
URL: https://svnweb.freebsd.org/changeset/ports/400218

Log:
  Update uriparser to version 0.8.4.

  It looks like the latest release doesn't build because of a missing
  #include. The source file depends on AF_INET and AF_INET6, which of
  course requires <sys/socket.h>.

  Submitted by: Torsten Z?hlsdorff
  PR: 203972
  Differential Revision:	https://reviews.freebsd.org/D4001

Changes:
  head/net/uriparser/Makefile
  head/net/uriparser/distinfo
  head/net/uriparser/files/
  head/net/uriparser/files/patch-tool_uriparse.c
  head/net/uriparser/pkg-plist
Comment 4 Ed Schouten freebsd_committer freebsd_triage 2015-10-27 07:35:01 UTC
Committed as r400218. Thanks!