LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-09-2017, 08:54 AM   #1
someone named bert
LQ Newbie
 
Registered: Nov 2013
Distribution: Slackware64 14.2
Posts: 17

Rep: Reputation: Disabled
Post install-info, doinst.sh, Info dir file not up to date


Hello dear people,
yesterday I wanted to read the Info manual for diff, and got a bit hung up on the way. While typing `info diff` in a terminal brings up the manual, in Emacs chording `C-h i m diff` results in the error message "Info file diff does not exist". The culprit is an entry in /usr/info/dir that names the respective info file as "diff". (The first line here:)
Code:
$ grep '(diff' /usr/info/dir
* Diff: (diff).                 Comparing and merging files.
* cmp: (diffutils)Invoking cmp.                 Compare 2 files byte by byte.
* diff: (diffutils)Invoking diff.               Compare 2 files line by line.
* diff3: (diffutils)Invoking diff3.             Compare 3 files line by line.
* patch: (diffutils)Invoking patch.             Apply a patch to a file.
* sdiff: (diffutils)Invoking sdiff.             Merge 2 files side-by-side.
             Comparing and merging files.
E.g. by typing diff3 instead of diff, I can get to the manual.

I don't remember at which Slackware version I last did a clean install, as opposed to an upgrade, but
Code:
$ grep '^usr/info/d' /var/log/removed_packages/diffutils-*
diffutils-3.0-x86_64-1-upgraded-2012-11-08,15:00:47:usr/info/diff.info.gz
diffutils-3.2-x86_64-1-upgraded-2013-11-18,20:39:36:usr/info/diffutils.info.gz
diffutils-3.3-x86_64-1-upgraded-2016-08-17,19:13:05:usr/info/diffutils.info.gz
So I started looking into how this dir file is modified upon installation, and found it is by calling `install-info` in doinst.sh (logically).
I did not find any documentation on what happens on package removal with regards to the doinst.sh, besides the note at the bottom of the doinst.sh SBo template: "When upgradepkg is used, doinst.sh gets run twice. So don't put anything here that takes a long time to run." If anyone knows of such documentation, please point me there.
So, I suspect there is some magic in `removepkg` to deal with doinst.sh, but did it (a) fail only for me or is it (b) generally not equipped to handle changing names of the info files of a package, or (c) doesn't remove listings from the dir file at all?
In case (a) I would just remove the line in my `dir` file and be done with it.
In case (b), I see that you ideally would need to call `install-info --remove` with the old info file as an argument.

That's all, folks

Last edited by someone named bert; 10-09-2017 at 09:00 AM. Reason: typos
 
Old 10-09-2017, 03:13 PM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,882

Rep: Reputation: 567Reputation: 567Reputation: 567Reputation: 567Reputation: 567Reputation: 567
removepkg does not 'undo' all of what the doinst.sh does. install-info is not called by removepkg.
 
  


Reply

Tags
info, package management


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
info on: make install is up to date MargNat Mandriva 1 01-17-2009 03:07 PM
Info's 'dir' file getting wrecked in -current? etrumbo Slackware 6 11-17-2008 03:04 PM
Gnome/Nautilus issues Beagle-Tracker, file transfer info, replace file info, popup. Mysticle31 Linux - Software 0 01-08-2008 06:30 PM
How to restore /usr/share/info/dir file ptmono Linux - General 3 03-26-2006 05:58 PM
info problem "info: dir: No such file or directory" EAD Linux - Software 0 03-22-2006 03:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration