Re: git: c8ace2f4ca96 - main - */*: Switch from misc/getopt to devel/util-linux

From: Po-Chuan Hsieh <sunpoet_at_freebsd.org>
Date: Sun, 03 Nov 2024 11:57:26 UTC
On Sun, Nov 3, 2024 at 5:29 AM Michael Osipov <michaelo@freebsd.org> wrote:

> On 2024-11-02 21:38, Vladimir Druzenko wrote:
> > 02.11.2024 19:59, Daniel Engberg пишет:
> >>
> >>
> >>     Hello!
> >>
> >>
> >>
> >>
> >>
> >>     Installing util-linux-2.39.4_2...
> >>
> >>
> >>     pkg-static: util-linux-2.39.4_2 conflicts with e2fsprogs-
> >>     libblkid-1.47.1
> >>
> >>
> >>     (installs files into the same place). Problematic file:
> >>
> >>
> >>     /usr/local/include/blkid/blkid.h
> >>
> >>
> >>
> >>
> >>
> >>     $ cat /var/db/ports/devel_util-linux/options
> >>
> >>
> >>     # This file is auto-generated by 'make config'.
> >>
> >>
> >>     # Options for util-linux-2.39.4_2
> >>
> >>
> >>     _OPTIONS_READ=util-linux-2.39.4_2
> >>
> >>
> >>     _FILE_COMPLETE_OPTIONS_LIST=CAL FLOCK GETOPT HARDLINK UUID
> >>
> >>
> >>     OPTIONS_FILE_UNSET+=CAL
> >>
> >>
> >>     OPTIONS_FILE_UNSET+=FLOCK
> >>
> >>
> >>     OPTIONS_FILE_SET+=GETOPT
> >>
> >>
> >>     OPTIONS_FILE_UNSET+=HARDLINK
> >>
> >>
> >>     OPTIONS_FILE_UNSET+=UUID
> >>
> >>
> >>
> >>
> >>
> >>     $ pkg info -r e2fsprogs-libblkid-1.47.1
> >>
> >>
> >>     e2fsprogs-libblkid-1.47.1:
> >>
> >>
> >>             e2fsprogs-core-1.47.1
> >>
> >>
> >>
> >>
> >>
> >>     --
> >>
> >>
> >>     Best regards,
> >>
> >>
> >>     Vladimir Druzenko
> >>
> >>
> >>
> >>
> >> Hi,
> >>
> >> Unrelated, submit a PR
> >>
> >> Best regards,
> >> Daniel
> >
> > Related: after this commit you can't install textproc/xmlto if you have
> > installed sysutils/fusefs-ext2 or sysutils/e2fsprogs.
>
> This very similar to what I have explained in the PR: it is not a
> drop-in replacement:
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281625#c3. I am not
> happy with this replacement.
>
> M
>

As I said in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281934#c2, I
don't mean to remove misc/getopt.

I have made the following changes:
1. Re-added the misc/getopt port.
2. Change it to use util-linux repo.
3. Move all ports back to use it.

That means it does not bring unnecessary dependencies from devel/util-linux
to getopt's dependent ports.
It should fix all issues.

Regards,
sunpoet