Page MenuHomeFreeBSD

security/vuls: Update to 0.4.0
ClosedPublic

Authored by ultima on Sep 1 2017, 6:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jun 5, 5:22 PM
Unknown Object (File)
Wed, Jun 5, 5:16 PM
Unknown Object (File)
Wed, Jun 5, 5:16 PM
Unknown Object (File)
Wed, Jun 5, 5:16 PM
Unknown Object (File)
Mon, Jun 3, 8:06 AM
Unknown Object (File)
Apr 30 2024, 4:18 AM
Unknown Object (File)
Apr 19 2024, 12:45 PM
Unknown Object (File)
Apr 3 2024, 5:31 PM
Subscribers

Details

Summary

Update to 0.4.0, reordered tuple alphabetically for sanity and cleanup fixed items upstream

PR\: 221868
Submitted by\: Alexandru Ciobanu (maintainer)
Reviewed by\: lifanov (mentor), matthew (mentor)
Approved by\: lifanov (mentor), matthew (mentor)
Differential Revision\: https://reviews.freebsd.org/DXXXXX

Test Plan

portlint:
WARN: Makefile: for new port, make $FreeBSD$ tag in comment section empty, to make SVN happy.
0 fatal errors and 1 warning found.

poudriere:
103i386
103amd64
110i386
110amd64
12i386
12amd64

Diff Detail

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

Event Timeline

security/vuls/files/patch-commands_configtest.go
18 ↗(On Diff #32598)

Careful now -- looks like you've lost the %%ETCDIR%% substitution to adapt the port to variant $PREFIX settings.

This is a flaw in what make makepatch does -- any post-patch substitution step tends to get wiped out.

security/vuls/files/patch-commands_report.go
10 ↗(On Diff #32598)

%%ETCDIR%% again here

security/vuls/files/patch-commands_scan.go
10 ↗(On Diff #32598)

and %%ETCDIR%% here as well?

security/vuls/files/patch-commands_configtest.go
18 ↗(On Diff #32598)

Yeah I noticed this before I submitted, was it okay to have these values hardcoded or is this the preferred method? or does it matter? I just forgot to remove the REINPLACE_CMD.

security/vuls/files/patch-commands_configtest.go
18 ↗(On Diff #32598)

Hard-coding is a no-no. You are always meant to be able to use a custom $PREFIX.

Patching in a replaceable token and then substituting in the current value of $PREFIX is a well known pattern.

security/vuls/files/patch-commands_configtest.go
18 ↗(On Diff #32598)

I must be getting some use case mixed up for something like /var/db or /var/log.

The /var/db and /var/log stuff is OK to have hardcoded, but anything under /usr/local (like ETCDIR) is not.

This revision is now accepted and ready to land.Sep 3 2017, 3:09 PM
This revision was automatically updated to reflect the committed changes.