Bug 230990 - [PATCH] dns/dhisd: update to 5.5
Summary: [PATCH] dns/dhisd: update to 5.5
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Vinícius Zavam
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2018-08-29 02:29 UTC by Vinícius Zavam
Modified: 2018-11-12 10:25 UTC (History)
4 users (show)

See Also:


Attachments
[PATCH] dns/dhisd: update to 5.5 (22.27 KB, patch)
2018-08-29 02:29 UTC, Vinícius Zavam
no flags Details | Diff
use-local-distfiles (22.10 KB, text/plain)
2018-10-24 00:19 UTC, Koichiro Iwao
no flags Details
[PATCH] dns/dhisd: update to 5.5, reviewed (23.42 KB, patch)
2018-10-24 07:02 UTC, Vinícius Zavam
no flags Details | Diff
[LOG] 11amd64 (17.51 KB, text/plain)
2018-10-24 07:17 UTC, Vinícius Zavam
no flags Details
[LOG] 12amd64 (17.51 KB, text/plain)
2018-10-24 07:17 UTC, Vinícius Zavam
no flags Details
[PATCH] dns/dhisd: update to 5.5, reviewed and fixed (23.07 KB, patch)
2018-11-05 11:10 UTC, Vinícius Zavam
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vinícius Zavam freebsd_committer freebsd_triage 2018-08-29 02:29:27 UTC
Created attachment 196661 [details]
[PATCH] dns/dhisd: update to 5.5

I also would like to adopt the port, so MAINTAINER info was changed.
Comment 1 Koichiro Iwao freebsd_committer freebsd_triage 2018-10-23 09:37:17 UTC
Take.
Comment 2 Vinícius Zavam freebsd_committer freebsd_triage 2018-10-23 11:35:54 UTC
(In reply to Koichiro Iwao from comment #1)

thank you Koichiro, very appreciated.

I am not quite sure if this one I should have pushed to any queue before - as I am still under mentorship process; added my mentors here to check/approve the commit before we go further.

KR,
Comment 3 Koichiro Iwao freebsd_committer freebsd_triage 2018-10-23 13:08:35 UTC
(In reply to Vinícius Zavam from comment #2)

Oh, I didn't aware you've become ports committer. Welcome!
Then, try it yourself. 

First of all, merge your bugzilla accounts. 
https://www.freebsd.org/doc/en_US.ISO8859-1/articles/committers-guide/bugzilla.html

See you later on bugzilla as your FreeBSD.org account!
Comment 4 Rene Ladan freebsd_committer freebsd_triage 2018-10-23 18:28:36 UTC
Hi,

some comments:

- Makefile: There is no NETBSD_PKGSRC (from PR 230989 which was rejected).

- patch-Makefile: use CC=${CC} instead of hardcoding it to "clang" for GCC compatibility.
- patch-Makefile: use PREFIX instead of hardcoding "/usr/local" in MYSQL_INCLUDE (yes, this is indeed part of the "old" patch)
- patch-Makefile: better use WFLAGS+= (with a plus) instead of setting it unconditionally so that users can add their own warnings. But this might cause problems too (again old patch)
- patch-Makefile: do not hardcode /usr/local in CFLAGS and LDFLAGS

- pkg-descr: this file reads a bit as a change log, but could be fixed later (beat/araujo?)
Comment 5 Rene Ladan freebsd_committer freebsd_triage 2018-10-23 18:55:35 UTC
'make check-sanity' and 'portlint -AC' look mostly fine.
Comment 6 Koichiro Iwao freebsd_committer freebsd_triage 2018-10-24 00:19:10 UTC
Created attachment 198526 [details]
use-local-distfiles

Since upstream dist site is down right now, you can use local-distfiles instead using NetBSD CDN directly. You don't need to create new NETBSD_PKGSRC.
https://www.freebsd.org/doc/en/books/porters-handbook/slow-sources.html

I put the tarball in my local dist. Use LOCAL/meta instead. See attached patch.
Comment 7 Vinícius Zavam freebsd_committer freebsd_triage 2018-10-24 06:07:55 UTC
thank you Koichiro, thank you René! I will work this all out, and should report back later on.

very appreciated for all your time and concern here.

KR,
Comment 8 Vinícius Zavam freebsd_committer freebsd_triage 2018-10-24 07:02:06 UTC
Created attachment 198533 [details]
[PATCH] dns/dhisd: update to 5.5, reviewed


new version of the patch/diff,
with updates and changes recommended by previous comments.

also took care of 'pkg-descr'
Comment 9 Vinícius Zavam freebsd_committer freebsd_triage 2018-10-24 07:17:07 UTC
Created attachment 198534 [details]
[LOG] 11amd64
Comment 10 Vinícius Zavam freebsd_committer freebsd_triage 2018-10-24 07:17:27 UTC
Created attachment 198535 [details]
[LOG] 12amd64
Comment 11 Rene Ladan freebsd_committer freebsd_triage 2018-10-24 19:29:38 UTC
Almost there, somehow files/dhisd.in now duplicates itself.
Comment 12 Koichiro Iwao freebsd_committer freebsd_triage 2018-10-25 01:08:39 UTC
BTW, in most cases, you don't need to attach the build log if the build succeeded. That is a waste of a disk on the server. Just comment "build passed on (environment)" is enough. When I was a novice, I was also told the same :)

If the build fails, it is worth to share the cause of failure.
Comment 13 Vinícius Zavam freebsd_committer freebsd_triage 2018-11-01 04:26:28 UTC
thank you all for the feedback. appreciated! I will take of this last issue and should update the current patch asap.

kr,
Comment 14 Vinícius Zavam freebsd_committer freebsd_triage 2018-11-03 03:16:00 UTC
(In reply to Rene Ladan from comment #11)

Hi René,

I did run the tests again and did not get the issue regarding 'dhisd.in' you mentioned before. 

# diff 230990_my.diff ports_r482878_PATCH__dns_dhisd.diff

# svn patch ports_r482878_PATCH__dns_dhisd.diff
U         dns/dhisd/Makefile
U         dns/dhisd/distinfo
D         dns/dhisd/files/INSTALL.bsd
A         dns/dhisd/files/dhisd.in
D         dns/dhisd/files/dhisd.sh
D         dns/dhisd/files/patch-INSTALL
D         dns/dhisd/files/patch-MODULES
U         dns/dhisd/files/patch-Makefile
D         dns/dhisd/files/patch-README
D         dns/dhisd/files/patch-dhisd.h
D         dns/dhisd/files/pkg-message.in
U         dns/dhisd/pkg-descr
U         dns/dhisd/pkg-plist

# echo $?
0

# ls -1 dns/dhisd/files/
dhisd.in
patch-Makefile

also, my 'bulk -I' jail did not list a duplicated file.

root@localhost:~ # ll /usr/local/etc/rc.d/
total 5
-r-xr-xr-x  1 root  wheel  666 Nov  3 03:00 dhisd*

maybe there was some old file there you tested from previous patch I sent? I also ran a 'revert' on my ports tree here before applying the patch.
Comment 15 Rene Ladan freebsd_committer freebsd_triage 2018-11-03 22:11:11 UTC
I mean if you type `cat files/dhisd.in` you will see its contents twice.
Comment 16 Vinícius Zavam freebsd_committer freebsd_triage 2018-11-05 11:10:31 UTC
Created attachment 198960 [details]
[PATCH] dns/dhisd: update to 5.5, reviewed and fixed

nice catch; updated the patch!

I really have no idea how I missed that one. sorry though.
Comment 17 Rene Ladan freebsd_committer freebsd_triage 2018-11-11 18:24:30 UTC
Approved for commit.
Comment 18 commit-hook freebsd_committer freebsd_triage 2018-11-12 09:15:58 UTC
A commit references this bug:

Author: egypcio
Date: Mon Nov 12 09:15:39 UTC 2018
New revision: 484793
URL: https://svnweb.freebsd.org/changeset/ports/484793

Log:
  dns/dhisd: update to 5.5

    * while here, adopt the port;

    * files/patch-Makefile;
        use CC=${CC} for clang and GCC compatibility;
        use PREFIX instead of hardcoding "/usr/local";
        better use WFLAGS+= (with a plus).

    * also updated 'pkg-descr' with a longer description about the port.

  PR:		230990
  Submitted by:	egypcio
  Approved by:	rene (mentor)

Changes:
  head/dns/dhisd/Makefile
  head/dns/dhisd/distinfo
  head/dns/dhisd/files/INSTALL.bsd
  head/dns/dhisd/files/dhisd.in
  head/dns/dhisd/files/dhisd.sh
  head/dns/dhisd/files/patch-INSTALL
  head/dns/dhisd/files/patch-MODULES
  head/dns/dhisd/files/patch-Makefile
  head/dns/dhisd/files/patch-README
  head/dns/dhisd/files/patch-dhisd.h
  head/dns/dhisd/files/pkg-message.in
  head/dns/dhisd/pkg-descr
  head/dns/dhisd/pkg-plist