Bug 193615 - [maintainer] update port: www/libevhtp 8.4-RELEASE breakage
Summary: [maintainer] update port: www/libevhtp 8.4-RELEASE breakage
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Some People
Assignee: Bartek Rutkowski
URL:
Keywords:
: 193614 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-09-13 18:22 UTC by Jingfeng Yan
Modified: 2014-10-01 13:16 UTC (History)
3 users (show)

See Also:


Attachments
SVN diff same 146878 content, but load from file, not paste (1.10 KB, patch)
2014-09-13 18:22 UTC, Jingfeng Yan
no flags Details | Diff
svn diff (1.10 KB, patch)
2014-09-13 18:25 UTC, Jingfeng Yan
no flags Details | Diff
final patch file looks like this (817 bytes, text/plain)
2014-09-13 18:27 UTC, Jingfeng Yan
no flags Details
svn diff (1.06 KB, patch)
2014-09-13 18:31 UTC, Jingfeng Yan
no flags Details | Diff
re-gen svn diff (1.07 KB, patch)
2014-09-30 02:41 UTC, Jingfeng Yan
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jingfeng Yan 2014-09-13 18:22:46 UTC
Created attachment 147279 [details]
SVN diff same 146878 content, but load from file, not paste

Last commit intends to add sys/types.h for FreeBSD 8.4. However, the trick is over-played. 

"#ifdef SO_ACCEPT... " location of the patch file has problem, which causes the sys/types is not included finally. 

In the original test patch on 8.4, #ifdef SO_ACCEPTFILTER is placed at the end of #include section.  This helps to pass the test because SO_ACCEPTFILTER is defined in sys/socket.h and the socket.h is included before. In such case, sys/types.h is included.  When committing and generate the diff for SVN, I adjust its location. 

When #ifdef SO_ACCEPTFILTER listed before socket.h, this test return false.  Then, the types.h will not included. 

Overall, it is not necessary to use this test, and sys/types.h can be include more blindly.
Comment 1 Jingfeng Yan 2014-09-13 18:25:57 UTC
Created attachment 147281 [details]
svn diff
Comment 2 Jingfeng Yan 2014-09-13 18:27:49 UTC
Created attachment 147282 [details]
final patch file looks like this
Comment 3 Jingfeng Yan 2014-09-13 18:31:32 UTC
Created attachment 147283 [details]
svn diff
Comment 4 Jingfeng Yan 2014-09-13 18:32:34 UTC
the diff link does not display 2nd file correctly, ODD!
Comment 5 Jingfeng Yan 2014-09-14 04:13:37 UTC
*** Bug 193614 has been marked as a duplicate of this bug. ***
Comment 6 Marcus von Appen freebsd_committer freebsd_triage 2014-09-17 16:47:19 UTC
Am I right with the assumption that https://bugs.freebsd.org/bugzilla/attachment.cgi?id=147283 (svn diff from 2014-09-13 18:31 UTC, the last diff) is the one, you'd like to see applied? Are the others obosolete?
Comment 7 Jingfeng Yan 2014-09-17 17:19:32 UTC
(In reply to Marcus von Appen from comment #6)
> Am I right with the assumption that
> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=147283 (svn diff from
> 2014-09-13 18:31 UTC, the last diff) is the one, you'd like to see applied?
> Are the others obsolete?


Yes.  147283 is the one.  The other attachments are there because when I loaded first diff, it does not show me the patch-evhtp.c file diff.
Comment 8 Marcus von Appen freebsd_committer freebsd_triage 2014-09-17 17:37:52 UTC
Thanks for clarifying. The patch looks good, moving to Patch Ready.
Comment 9 Jingfeng Yan 2014-09-17 22:39:11 UTC
(In reply to Marcus von Appen from comment #8)
> Thanks for clarifying. The patch looks good, moving to Patch Ready.

Thank you for your service and efforts.
Comment 10 Bartek Rutkowski freebsd_committer freebsd_triage 2014-09-29 21:36:43 UTC
Hi,

Your patch fails to apply to 'files/patch-evhtp.c' in revision 368121. Can you please update your ports, create and test new diff and upload it?
Comment 11 Jingfeng Yan 2014-09-30 01:58:10 UTC
Okay. Will post in an hour.
Comment 12 Jingfeng Yan 2014-09-30 02:41:16 UTC
Created attachment 147816 [details]
re-gen svn diff

Not sure what happens for patching failure.  The method I did is as same as last time expect the version maybe:

  570  svn co https://svn0.us-west.FreeBSD.org/ports/head/www/libevhtp@368121
  571  cd libevhtp
  572  patch -p0 -i ../libevhtp-1.2.9_2.diff

$ patch -p0 -i ../libevhtp-1.2.9_2.diff
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: Makefile
|===================================================================
|--- Makefile	(revision 369567)
|+++ Makefile	(working copy)
--------------------------
Patching file Makefile using Plan A...
Hunk #1 succeeded at 2.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: files/patch-evhtp.c
|===================================================================
|--- files/patch-evhtp.c	(revision 369567)
|+++ files/patch-evhtp.c	(working copy)
--------------------------
Patching file files/patch-evhtp.c using Plan A...
Hunk #1 succeeded at 1.
done

Please let me whether this patch works.  Thank you.
Comment 13 commit-hook freebsd_committer freebsd_triage 2014-10-01 13:14:58 UTC
A commit references this bug:

Author: robak
Date: Wed Oct  1 13:14:11 UTC 2014
New revision: 369725
URL: https://svnweb.freebsd.org/changeset/ports/369725

Log:
  www/libevhtp: fix build for 8.4 systems

  PR:		193615
  Submitted by:	Jingfeng Yan <yan_jingfeng@yahoo.com>
  Approved by:	mentors (implicit)

Changes:
  head/www/libevhtp/Makefile
  head/www/libevhtp/files/patch-evhtp.c
Comment 14 Bartek Rutkowski freebsd_committer freebsd_triage 2014-10-01 13:16:19 UTC
Committed, thanks for your work!