[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [nmh-workers] Unnecessary dependency on vi???
From: |
David Levine |
Subject: |
Re: [nmh-workers] Unnecessary dependency on vi??? |
Date: |
Mon, 12 Mar 2018 21:43:06 -0400 |
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
- Re: [nmh-workers] Unnecessary dependency on vi???, (continued)
- Re: [nmh-workers] Unnecessary dependency on vi???, Ken Hornstein, 2018/03/20
- Re: [nmh-workers] Unnecessary dependency on vi???, Andy Bradford, 2018/03/20
- Re: [nmh-workers] Unnecessary dependency on vi???, Paul Vixie, 2018/03/20
- Re: [nmh-workers] Unnecessary dependency on vi???, Robert Elz, 2018/03/19
- Message not available
- Re: [nmh-workers] Unnecessary dependency on vi???, Ken Hornstein, 2018/03/18
- Re: [nmh-workers] Unnecessary dependency on vi???, Andy Bradford, 2018/03/18
- Re: [nmh-workers] Unnecessary dependency on vi???, Ralph Corderoy, 2018/03/19
- Re: [nmh-workers] Unnecessary dependency on vi???, Bakul Shah, 2018/03/16
- Re: [nmh-workers] Unnecessary dependency on vi???,
David Levine <=
- Re: [nmh-workers] Unnecessary dependency on vi???, Ralph Corderoy, 2018/03/13
- Re: [nmh-workers] Unnecessary dependency on vi???, Ralph Corderoy, 2018/03/13
Re: [nmh-workers] Unnecessary dependency on vi???, Jon Steinhart, 2018/03/11
Re: [nmh-workers] Unnecessary dependency on vi???, Ralph Corderoy, 2018/03/11
Re: [nmh-workers] Unnecessary dependency on vi???, David Levine, 2018/03/11