Page MenuHomeFreeBSD

pkgbase: hide duplicate METALOG directory warnings under verbose
ClosedPublic

Authored by emaste on May 1 2023, 5:28 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 8, 7:59 PM
Unknown Object (File)
Mon, May 6, 9:45 PM
Unknown Object (File)
Mon, Apr 22, 2:21 PM
Unknown Object (File)
Mar 15 2024, 11:21 AM
Unknown Object (File)
Mar 15 2024, 11:21 AM
Unknown Object (File)
Mar 8 2024, 2:26 AM
Unknown Object (File)
Mar 8 2024, 2:22 AM
Unknown Object (File)
Mar 8 2024, 2:21 AM
Subscribers

Details

Summary
Creating directories multiple times is an inherent side effect of the
way installation is done.  Hide warnings from duplicate directory
entries (with identical metadata) under verbose mode.

PR:             244596
Sponsored By:   The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

emaste requested review of this revision.May 1 2023, 5:28 PM
emaste created this revision.

Rework so that non-dir duplicates can be errors

It looks like there are three right now - once those are fixed they will be changed to errors

warning: ./boot/loader.help.bios file repeated with same meta: line 26843,26846,26851
warning: ./boot/loader.help.efi file repeated with same meta: line 26867,26870,26874
warning: ./boot/loader.help.userboot file repeated with same meta: line 26821,26825

Prefix error with error: and add a comment about why we're making it just a warning for now

Rework so that non-dir duplicates can be errors

It looks like there are three right now - once those are fixed they will be changed to errors

warning: ./boot/loader.help.bios file repeated with same meta: line 26843,26846,26851
warning: ./boot/loader.help.efi file repeated with same meta: line 26867,26870,26874
warning: ./boot/loader.help.userboot file repeated with same meta: line 26821,26825

I believe this duplication comes from the different loader variants, e.g. loader_lua.efi, loader_forth.efi, and loader_simp.efi all use the loader.help.efi filename. I am not sure what we should do to handle this better.

PR271178 for the multiply-installed files

Rework so that non-dir duplicates can be errors

It looks like there are three right now - once those are fixed they will be changed to errors

warning: ./boot/loader.help.bios file repeated with same meta: line 26843,26846,26851
warning: ./boot/loader.help.efi file repeated with same meta: line 26867,26870,26874
warning: ./boot/loader.help.userboot file repeated with same meta: line 26821,26825

I believe this duplication comes from the different loader variants, e.g. loader_lua.efi, loader_forth.efi, and loader_simp.efi all use the loader.help.efi filename. I am not sure what we should do to handle this better.

we've had similaar issues in the past for man pages. when the tree was update to have more unique help files, this problem crept in with that.

One typo, LGTM otherwise

tools/pkgbase/metalog_reader.lua
400
This revision is now accepted and ready to land.May 1 2023, 7:04 PM