Re: dpkg install-info bug

Max Horn <[email protected]>
Newsgroups gmane.os.apple.fink.core
Message-ID <[email protected]>
On 01.08.2012, at 05:10, Daniel Macks wrote:

> On Mon, 30 Jul 2012 17:13:15 +0200, Max Horn <[email protected]> wrote:
> Hi Daniel, all,
>> 
>> On 30.07.2012, at 12:26, Daniel Macks wrote:
>>>> I think the install-info backup location has long been weird and 
>> nobody > could tell me why when I asked years ago, but inertia and 
>> usual "other > stuff is more important to fix" left it by the wayside. 
>> 
>> Aye. 
> 
> And now having had time to experiment with it, bug:( Any time 
> install-info tries to make its backup at the new location... 
> 
> cp: /sw/var/backups/infodir.bak: No such file or directory
> install-info(/sw/share/info/grep.info): couldn't backup 
> /sw/share/info/dir in /sw/var/backups/infodir.bak: Inappropriate ioctl 
> for device

Ouch! OK, so you list three alternatives to tackle this:


1) Create %p/var/backups from base-files:

> Apparently /var/backups exists by default on OS X (?), but 
> %p/var/backups does not and install-info doesn't check for it before 
> trying to write a file into it. The stub dir file is in the base-files 
> package, so if we're going to bless this new dir that would be a good 
> place to create it (and make sure it has I guess owner=root perms=700 
> like /var/backups does?), with dpkg's dependency on it versioned 
> accordingly.

2) Create %p/var/backups from install-info

> Or else have install-info create it as necessary

3) Change install-info to use an existing dir, e.g. the infodir itself.

> ? Or have 
> install-info use the info dir itself (backup file adjacent to the 
> "live" file, the same way text editors, dpkg, and other programs do), 
> since apparently a centralized backups dir isn't commonly used on OS X?


Another option would be:

4) Change install-info to not make / use backups at all. As far as I can tell, that's how the install-info from GNU texinfo works. Since /var/backups is actually a somewhat dated concept (it is not part of the FHS anymore, for example), and since /var/backups is readable only by root, that has some merits, too.


Anyway, I think for now I am for option 3 or 4. THose are the easiest and least invasive to implement. We should soon switch from this ancient install-info that from texinfo anyway, so I wouldn't want to modify base-files for this!



Cheers,
Max
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
fink-core mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.apple.fink.core
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-core
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.