[MacPorts] #63662: diffutils: /opt/local/share/info/dir not updated
MacPorts
noreply at macports.org
Wed Oct 27 14:59:16 UTC 2021
#63662: diffutils: /opt/local/share/info/dir not updated
------------------------+-------------------------
Reporter: pietvo | Owner: Schamschula
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: | Keywords:
Port: diffutils |
------------------------+-------------------------
Comment (by pietvo):
OK, it seems `info diffutils` works if `diffutils.info` is found, even if
its isn't in the `dir` file. However, for `emacs` you need the entry in
the `dir` file. Also, the subordinate info nodes won't be found without
the entries in the `dir file` (like `info diff`, `info diff3` etc.).
Some ports, `math/gsl`, `www/bbdb`, `textproc/aspell` and
`textproc/lookup` have a `post-activate` section that does the `install-
info`. It must be done after `destroot` has been moved to the final
location in `/opt/local`, not in `destroot` itself.
`bbdb` has the best implementation, because it also has the `pre-
deactivate` code to remove the entries again. I think all ports with an
info file should do it this way.
This is the code from `bbdb`. I think all ports with an info file should
do it this way.
{{{
post-activate {
system "${prefix}/bin/install-info ${prefix}/share/info/bbdb.info
${prefix}/share/info/dir"
}
pre-deactivate {
system "${prefix}/bin/install-info --delete
${prefix}/share/info/bbdb.info ${prefix}/share/info/dir"
}
}}}
--
Ticket URL: <https://trac.macports.org/ticket/63662#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list