Re: Please add GNU id-utils to Fedora

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, May 11, 2012 at 10:14 AM, Jim Meyering <jim@xxxxxxxxxxxx> wrote:
> Miloslav Trmač wrote:
>> On Thu, May 10, 2012 at 9:49 PM, Greg McGary <greg.mcgary@xxxxxxxxx> wrote:
>>> Minor conflict: the name of one of id-utils main commands "lid" is also the
>>> same as an existing command, though installed in a different place.  id-utils
>>> has /usr/bin/lid, while libuser has /usr/sbin/lid.
>>
>> Yeah, that's come up before.  There's no great solution I'm afraid,
>> one or the other will have to change
>
> Technically there is no need to change a name.
> In Debian, one can have two lid programs installed, one in /usr/bin
> and the other in /usr/sbin[*], so why not in Fedora?

Apart from being confusing, it effectively overrides libuser's use of lid.

> Sure, a different solution would be better, but renaming a command like
> idutils' lid (in use by some for >15 years) does not seem reasonable.
Right.

> Any opinions on whether this issue is big enough to NAK
> a review request or addition of the package to Fedora?
I'm pretty sure that naming conflicts in /usr/bin have happened before
in Fedora, I'm not sure how they were resolved.

>> and the only data I've seen is
>> debian's popcon, which indicated that libuser is used more widely.
>
> That counts how often the package is installed.  Note that libuser
> is installed primarily for its library, whereas idutils is installed
> solely for the use of its programs.
True.

>>> This conflict is exceedingly minor since /usr/sbin/lid is only usable by root.
>>> Ordinary users who try it get this:
>>>
>>>    $ lid foo
>>>    Error initializing libuser: could not open configuration file
>>> /etc/default/useradd': Permission denied.
>>
>> Ordinary users can set up a different configuration to run
>> unprivileged (in particular, to manage a LDAP user database).
>
> My guess is that unprivileged use of libuser's "lid" is unusual.

Anecdotal evidence from bug reports is that if people use the libuser
command-line tools at all, they use them mainly for LDAP.


Anyway, we can't please both sets of users at the same time.  If the
above-mentioned reference to previous naming conflicts in Fedora does
not result in a generally-acceptable solution, what about the
following?

lid is renamed in both packages to lid-libuser and lid-idutils (or
something), respectively.  Both packages ship an alias script
somewhere in /etc.  A new package is created, providing a /usr/bin/lid
script, that instructs the user to add the alias to their ~/.bashrc,
and fails.[1]
    Mirek

[1] The script could also automatically run one of the lid's, if there
were only one installed - but then merely installing a new package
could break user's workflow, which I think is undesirable.
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux