Bug 193085 - [stage] dns/dnscheckengine: add stage support and request maintainership
Summary: [stage] dns/dnscheckengine: add stage support and request maintainership
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: John Marino
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-28 00:54 UTC by Chris Hutchinson
Modified: 2014-09-08 23:08 UTC (History)
2 users (show)

See Also:


Attachments
[maintainer] STAGE LICENSE svn diff (2.11 KB, patch)
2014-08-28 00:54 UTC, Chris Hutchinson
no flags Details | Diff
dns/dnscheckengine build stage session (149.47 KB, text/plain)
2014-08-28 00:56 UTC, Chris Hutchinson
no flags Details
dns/dnscheckengine [request maintainer] STAGE LICENSE ... with QA log (4.99 KB, patch)
2014-09-05 23:02 UTC, Chris Hutchinson
no flags Details | Diff
dns/dnscheckengine - QA log for 2014-09-05.diff, also attached (16.17 KB, text/plain)
2014-09-05 23:05 UTC, Chris Hutchinson
no flags Details
dns/dnscheckengine STAGE cleanup (4.86 KB, patch)
2014-09-08 13:40 UTC, Chris Hutchinson
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Hutchinson 2014-08-28 00:54:20 UTC
Created attachment 146426 [details]
[maintainer] STAGE LICENSE svn diff

dns/dnscheckengine

ADDED
MAINTAINER
LICENSE
STAGE

see svn diff, attached
see also dns-dnscheckengine-out -- make stage deinstall clean session

Thank you for all your time, and consideration.

--Chris
Comment 1 Chris Hutchinson 2014-08-28 00:56:54 UTC
Created attachment 146427 [details]
dns/dnscheckengine build stage session

The attached; dns-dnscheckengine-out
is simply the output of the build stage clean session.

--Chris
Comment 2 John Marino freebsd_committer freebsd_triage 2014-08-28 07:47:27 UTC
you know I need to see poudriere logs.  redports logs are nice but insufficient for staging.
Comment 3 John Marino freebsd_committer freebsd_triage 2014-08-28 21:01:11 UTC
This is not ready.

For example "@${INSTALL_DATA} ${DOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR}"

The "@" masks the command.  This is not allowed in install targets. (Remove the "@" on every command except maybe $MKDIR commands)


Worse (and hard to believe since I knocked on this a few days ago), none of the man pages are staged.

MAN1 and MAN3 are defined in makefile and not defined in pkg-plist.


This one is not close at all.
Comment 4 Chris Hutchinson 2014-08-28 21:05:36 UTC
(In reply to John Marino from comment #3)
> This is not ready.
> 
> For example "@${INSTALL_DATA} ${DOCS:S|^|${WRKSRC}/doc/|}
> ${STAGEDIR}${DOCSDIR}"
> 
> The "@" masks the command.  This is not allowed in install targets. (Remove
> the "@" on every command except maybe $MKDIR commands)
> 
> 
> Worse (and hard to believe since I knocked on this a few days ago), none of
> the man pages are staged.
> 
> MAN1 and MAN3 are defined in makefile and not defined in pkg-plist.
> 
> 
> This one is not close at all.

Thanks, and sorry.
I'll run it through poudriere, and fix it as required --
complete with logs/reports.

--Chris
Comment 5 Chris Hutchinson 2014-09-05 23:02:54 UTC
Created attachment 146893 [details]
dns/dnscheckengine [request maintainer] STAGE LICENSE ... with QA log

dns/dnscheckengine

adds STAGEDIR, LICENSE, MAINTAINER
modifies pkg-plist
includes requisite QA log (dns-dnscheckengine-output), also attached

See 2014-09-05.diff, attached.

--Chris
Comment 6 Chris Hutchinson 2014-09-05 23:05:37 UTC
Created attachment 146895 [details]
dns/dnscheckengine - QA log for 2014-09-05.diff, also attached

dns/dnscheckengine

Requisite QA log (dns-dnscheckengine-output), attached.
Please see 2014-09-05.diff, also attached.

--Chris
Comment 7 John Marino freebsd_committer freebsd_triage 2014-09-08 13:04:19 UTC
everything looks ok except I recommend new lines 52-55 be deleted.  I don't see what purpose they serve.
Comment 8 Chris Hutchinson 2014-09-08 13:40:02 UTC
Created attachment 147063 [details]
dns/dnscheckengine STAGE cleanup

dns/dnscheckengine

Adds nothing to previous diff.
Removes unnecessary lines, as per JM. :)

Please find 2014-09-07.diff, attached.

Thanks.

FWIW MANCOMPRESSED does work. But turns out, not as documented. :)

--Chris
Comment 9 John Marino freebsd_committer freebsd_triage 2014-09-08 21:03:02 UTC
I'm making several tweaks, but I did notice ALL the post-install commands are masked.  I know they were masked before, but it is correct to fix them now.
Comment 10 John Marino freebsd_committer freebsd_triage 2014-09-08 21:05:36 UTC
1) the TMPPLIST line (from before) is absurd, that needs to be in pkg-plist.
2) the POST-INSTALL line is obsolete now, it should have been deleted
Comment 11 John Marino freebsd_committer freebsd_triage 2014-09-08 21:12:00 UTC
I suspect the MYSQL option wasn't tested, it doesn't look like it will pass check-plist to me (but untested)
Comment 12 John Marino freebsd_committer freebsd_triage 2014-09-08 21:17:42 UTC
You have pkg-message in SUB_FILES, and later in post-install you are SED'ing pkg-message which should be entirely doing nothing (should be removed)
Comment 13 John Marino freebsd_committer freebsd_triage 2014-09-08 21:40:40 UTC
MYSQL is not optional, look at this failed log:

===>  Configuring for dnscheckengine-1.1_2
Warning: prerequisite DBD::mysql 0 not found.
Warning: prerequisite DBI 0 not found.
Warning: prerequisite Net::IP 1.25 not found.
Checking if your kit is complete...
Looks good


The Makefile.PL says the same that, it DBI mysql is expected.

There also seems to be a missing dependency.

I have to remove the MYSQL option and make it required.  Otherwise it will build differently depending on what is on the live system.
Comment 14 John Marino freebsd_committer freebsd_triage 2014-09-08 22:12:15 UTC
I am going to remove pkg-install and pkg-deinstall.  It seems these were created to stop the daemon.   It's not necessary, plus it's failing plist-check and it's more complex.  Let's make this simpler.
Comment 15 John Marino freebsd_committer freebsd_triage 2014-09-08 22:22:19 UTC
Your ${LN} -s line is wrong.  It's linking back to ${STAGEDIR} instead of where the file is supposed to be installed.  Look at that line, it should be obvious what's wrong if you think about it.
Comment 16 commit-hook freebsd_committer freebsd_triage 2014-09-08 22:52:54 UTC
A commit references this bug:

Author: marino
Date: Mon Sep  8 22:34:58 UTC 2014
New revision: 367708
URL: http://svnweb.freebsd.org/changeset/ports/367708

Log:
  Stage dns/dnscheckengine and assign maintainership to submitter

  PR:		193085
  Submitted by:	Chris Hutchinson
  Reworked by:	marino

Changes:
  head/dns/dnscheckengine/Makefile
  head/dns/dnscheckengine/files/pkg-deinstall.in
  head/dns/dnscheckengine/files/pkg-install.in
  head/dns/dnscheckengine/pkg-descr
  head/dns/dnscheckengine/pkg-plist
Comment 17 Chris Hutchinson 2014-09-08 22:57:05 UTC
All your notes above are, of course, are correct.
Let me try, and clean this up myself. I hate that you're laboring over
stuff _I_ should be doing, myself. I'm a big enough pain, as it is.
Without you're doing my work for me. I'll never get this stuff right,
if I don't work through it myself.

But I _do_ appreciate your pointers. :) That includes ones I don't
like hearing, too. ;)

Thanks, John!

--Chris
Comment 18 Chris Hutchinson 2014-09-08 22:59:43 UTC
OOPS! I had a mid-air-collision.

Looks like I spoke too late. :(

Thanks, a million, John.

I'll take a close look at your changes. For my future work. So you don't
have to continue doing this sort of thing.

Thanks again, John, and sorry for the bother.

--Chris
Comment 19 Chris Hutchinson 2014-09-08 23:02:32 UTC
Just took a look at your wrok. Looks beautiful!
Can't wait till I start producing stuff more like that. :)

Thanks again!

--Chris
Comment 20 John Marino freebsd_committer freebsd_triage 2014-09-08 23:08:02 UTC
This was another "famous" Hutchinson PR though.  I had to do a lot of iterations.    I don't have poudriere handy atm (I'm in a hotel) but it passed redports in the end.  Anyway, I hoped it would be quick but it wasn't.  Most of that wasn't the staging work, the original port was bad.