nmh-workers
[Top] [All Lists]

Re: [nmh-workers] Unnecessary dependency on vi???

2018-03-12 20:43:25
Ralph wrote:

Weak dependencies are a recentish addition to RPM specs AIUI.

Thanks.  These don't seem to be widely used; of the 2,945 packages
on my Fedora 27 system, only 78 have a recommendation or
suggestion, and some of those are related packages.

But it'll have to wait for Fedora 29.  The Fedora 28 ship has
sailed, and I don't think it's worth cranking out updates for
Fedora 26-28 just for this.

Looking at https://src.fedoraproject.org/rpms/nmh/blob/master/f/nmh.spec
I'd say /usr/sbin/sendmail, libcurl, and w3m are similarly weak?

libcurl is there so that nmh configures and builds with OAUTH
support.  It doesn't need to be an explicit Requires; rpmbuild
notices that it's used, due to the BuildRequires, and implicitly
includes the run-time requirement.  And, libdb and readline don't
need explicit BuildRequires because their -devel packages require
their presence.

w3m is used (on Fedora) for these:
    mhbuild-convert-text/html: charset="%{charset}"; /usr/bin/w3m -dump 
${charset:+-I} ${charset:+"$charset"} -O utf-8 -T text/html %F  | fmt | sed 
's/^\(.\)/> \1/; s/^$/>/;'
    mhfixmsg-format-text/html: charset="%{charset}"; /usr/bin/w3m -dump 
${charset:+-I} ${charset:+"$charset"} -O utf-8 -T text/html %F
    mhshow-show-text/html: charset="%{charset}"; %l/usr/bin/w3m -dump 
${charset:+-I} ${charset:+"$charset"} -T text/html %F

The net result is that I'm thinking of these changes to the spec:

-Requires:      /usr/bin/vi
-Requires:      /usr/sbin/sendmail
+Suggests:      /usr/bin/vi
+Suggests:      /usr/sbin/sendmail

-Requires:      libcurl
-BuildRequires: libdb
-BuildRequires: readline

An aside: Does any package other than vim provide /usr/bin/vi?  I think
the command might be `dnf provides /usr/bin/vi'.

Doesn't look like it:

    $ dnf whatprovides /usr/bin/vi
    vim-minimal-2:8.0.1187-1.fc27.x86_64 : A minimal version of the VIM editor
    Repo        : @System
    Matched from:
    Filename    : /usr/bin/vi

(I excised updates of vim-minimal from the output.)

I expect it's a bunch of different sized vim-based packages.

Other packages provide derivatives with slightly different names, e.g.,
/usr/bin/vim, and /usr/bin/nvi and /usr/bin/vile as you found.

David

-- 
nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>