On Sun, Jul 17, 2022 at 2:58 PM Vincent Bernat <ber...@debian.org> wrote:
>
> On 2022-07-17 20:40, Jonathon Reinhart wrote:
>
> > This Debian package likely needs to re-generate the indices before shipping.
>
> It's already the case. However, the file can change unexpectedly (for
> example, when the user is running update-ieee-data). It seems that
> update-ieee-data will execute hooks in /var/lib/ieee-data/update.d. We
> could install such a hook. But, we would also need to add a symlink for
> the indexes to a directory controlled by the netaddr package.
>
> If you want to try to do that, you are welcome to submit a patch.
>
> In the meantime, you can run python3
> /usr/lib/python3/dist-packages/netaddr/eui/ieee.py as root to fix the
> issue. This is not really "clean" (as you erase package-owned data), but
> it would work.

Thanks, Vincent. I can confirm that your suggestion works (for now, of
course). I can also confirm that running update-ieee-data "broke" it,
and re-running ieee.py "fixed" it again, as expected.

Further, I can confirm that a hook
/var/lib/ieee-data/update.d/99-dummy is executed with
"/var/lib/ieee-data/" and {"oui.txt", "iab.txt", "oui.cvs",
"iab.cvs"}. Those last two appear to be a typo (s/cvs/csv/). Seems
like its own bug to be reported. Although, it's not clear exactly what
the point is of invoking the hooks multiple times, for different
filenames.

Are you suggesting that python3-netaddr would need its own directory
somewhere under /var for the updated index files? (Because /usr
shouldn't change, and /var/lib/ieee-data isn't controlled by
python3-netaddr)

Reply via email to