Page MenuHomeFreeBSD

Mk/Scripts: Add qa warning while installing man pages is ${PREFIX}/man
ClosedPublic

Authored by bofh on Feb 29 2024, 1:34 PM.
Referenced Files
Unknown Object (File)
Sat, Apr 20, 8:25 PM
Unknown Object (File)
Mar 5 2024, 6:52 PM
Unknown Object (File)
Mar 4 2024, 3:22 AM
Subscribers

Details

Reviewers
antoine
arrowd
Group Reviewers
portmgr
Summary

As we are approaching a stage when we can no longer allow installing manpages in ${PREFIX}/man so add proper qa for checking this. For now this is a warn and once we move all ports into ${PREFIX}/share/man we will convert this into err. Or we can even do this now.

Test Plan

I have just built a port which has not ben converted and this is the result:
https://pkg.bofh.network/data/132-default/2024-02-29_14h28m20s/logs/nmsg-1.1.2.log

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

bofh requested review of this revision.Feb 29 2024, 1:34 PM
bofh created this revision.
arrowd added a subscriber: arrowd.

LGTM.

Mk/Scripts/qa.sh
1041

find seems to return 0 when nothing is found and 1 otherwise. Maybe it is better to check an exit code there?

This revision is now accepted and ready to land.Feb 29 2024, 1:38 PM
Mk/Scripts/qa.sh
1041

That is another way of doing that indeed but with that we cannot list the files which are problematic. So if we want to go for a warning only without the file lists we can do that way. Either way is good for me. So the question is should we print the list of problematic files or not?

Mk/Scripts/qa.sh
1041

So the question is should we print the list of problematic files or not?

I think yes, certainly.

bofh marked an inline comment as done.Feb 29 2024, 2:16 PM
bofh added inline comments.
Mk/Scripts/qa.sh
1041

Then we cannot go for the exit code method. That is good when we just want a binary check.

bofh marked an inline comment as done.

Not sure why but somehow I believe I failed to add this as the review in my commit message. This has already landed.