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)
Sep 24 2024, 9:35 AM
Unknown Object (File)
Sep 20 2024, 2:55 PM
Unknown Object (File)
Sep 19 2024, 3:02 PM
Unknown Object (File)
Sep 19 2024, 12:35 AM
Unknown Object (File)
Sep 18 2024, 9:48 AM
Unknown Object (File)
Sep 17 2024, 7:37 PM
Unknown Object (File)
Sep 16 2024, 8:24 PM
Unknown Object (File)
Sep 16 2024, 10:06 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