Page MenuHomeFreeBSD

dns/mdnsd: Updating to the current revision
ClosedPublic

Authored by yuri on Dec 23 2017, 11:10 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 19, 2:03 PM
Unknown Object (File)
Apr 3 2024, 6:55 PM
Unknown Object (File)
Apr 3 2024, 6:55 PM
Unknown Object (File)
Mar 15 2024, 3:25 PM
Unknown Object (File)
Feb 10 2024, 7:50 PM
Unknown Object (File)
Jan 25 2024, 6:14 AM
Unknown Object (File)
Jan 15 2024, 4:13 PM
Unknown Object (File)
Jan 1 2024, 8:55 AM
Subscribers

Details

Summary

One other port bundled mdnsd, so I first thought that this port needed to be a dependency.
But as it turned out, this port doesn't install headers/lib, so it isn't useful for the original purpose.
Updating it anyway, once I am here.
I notified the upstream maintainer to install headers/libs.

I changed EPOCH because github version number isn't compatible with the previous one, as per portlint.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dns/mdnsd/Makefile
6 ↗(On Diff #36952)

This version number makes no sense. If the next release is 0.8G, or 0.7H, then PORTEPOCH gets bumped again.

Perhaps setting DISTVERSION to 0.7G.107 would make more sense.

$ pkg version -t 0.7H 0.7G-107
<
$ pkg version -t 0.7H 0.7G.107
>
25 ↗(On Diff #36952)

Why CONFIGURE_WRKSRC?

yuri added inline comments.
dns/mdnsd/Makefile
6 ↗(On Diff #36952)

Sorry, typo...

I actually meant it this way:

DISTVERSION=    0.7
DISTVERSIONSUFFIX=      G-107-gf4aee59

Package version is `0.7```.

0.7G-107-gf4aee59``` is what ```git describe tags``` gives.

It doesn't fetch it with:

DISTVERSION= 0.7G.107
DISTVERSIONSUFFIX= -gf4aee59

yuri marked an inline comment as done.

.

yuri added inline comments.
dns/mdnsd/Makefile
6 ↗(On Diff #36952)

The original revision was 0.7G. When I keep it as 0.7G, portlint still complains:

FATAL: Makefile: mdnsd-0.7.g < mdnsd-0.7G_1. Choose another PORTVERSION or bump PORTEPOCH.

I think this is possibly some bug.

25 ↗(On Diff #36952)

Because files are built there?

dns/mdnsd/Makefile
6 ↗(On Diff #36952)

Right. You'd have to set DISTNAME as well. But it would avoid this, and future, PORTEPOCH bumps.

6 ↗(On Diff #36952)

Yes. You're also switching from PORTVERSION to DISTVERSION. And if you do what you're intending, then yes 0.7 < 0.7G.

We don't have to use bizarre version strings just because upstream does. I think you'll be better off in the long run by using a normal-ish version string.

25 ↗(On Diff #36952)

Ah. Because of cmake:outsource. Got it.

yuri marked an inline comment as done.Dec 24 2017, 1:07 AM
yuri added inline comments.
dns/mdnsd/Makefile
6 ↗(On Diff #36952)

Your suggestion, if I understand it correctly, is this:

PORTNAME=       mdnsd
DISTVERSIONPREFIX=      v
DISTVERSION=    0.7G.107
DISTVERSIONSUFFIX=      -gf4aee59
CATEGORIES=     dns
DISTNAME=       ${GH_ACCOUNT}-${PORTNAME}-${DISTVERSIONPREFIX}0.7G-107${DISTVERSIONSUFFIX}

But portlint still complains:

FATAL: Makefile: mdnsd-0.7.g.107 < mdnsd-0.7G_1. Choose another PORTVERSION or bump PORTEPOCH

yuri marked an inline comment as done.Dec 24 2017, 9:53 PM

I think, `DISTVERSION`` should be set to 0.7, `PORTEPOCH` should be changed once. Later, if they keep updating the letter, this should be handled with `PORTREVISION``.

In D13600#284637, @yuri wrote:

I think, DISTVERSION should be set to 0.7, PORTEPOCH should be changed once. Later, if they keep updating the letter, this should be handled with PORTREVISION.

The problem is that DISTVERSION should change when the actual port version changes. If the next version is 0.7H, the actual port version has changed but DISTVERSION remains the same. Things like patch levels are appropriate for DISTVERSIONSUFFIX, but putting major pieces of the version string into that variable just aren't in spirit with the design.

mat requested changes to this revision.Dec 27 2017, 2:32 PM
mat added inline comments.
dns/mdnsd/Makefile
8 ↗(On Diff #36953)

Not needed.

6 ↗(On Diff #36952)
DISTVERSIONPREFIX=      v
DISTVERSION=    0.7G-107
DISTVERSIONSUFFIX=      -gf4aee59

And remove the DISTNAME processing.

This revision now requires changes to proceed.Dec 27 2017, 2:32 PM
yuri marked 2 inline comments as done.

Followed mat's advice in DISTVERSION.

yuri marked an inline comment as done.Dec 28 2017, 8:47 AM
yuri marked 3 inline comments as done.
dns/mdnsd/files/patch-libmdnsd_1035.c
5 ↗(On Diff #37127)

whith "WTF?"-y patches like these, it's sometimes good to include some explanation at the top :)

ala "this is the error without this" or "this is done because"

As long as the others are fine with it, this is ok.

Also, did you ask the MAINTAINER?

This revision is now accepted and ready to land.Jan 10 2018, 2:41 PM
yuri retitled this revision from dns/mdnsd: Updating to the current revision to dns/mdnsd: Updating to the current revision {PENDING maintainer's approval, see bug#225114}.Jan 12 2018, 5:54 PM
yuri retitled this revision from dns/mdnsd: Updating to the current revision {PENDING maintainer's approval, see bug#225114} to dns/mdnsd: Updating to the current revision.Jan 27 2018, 8:09 PM
This revision was automatically updated to reflect the committed changes.