[DRBD-user] drbd-utils-8.9.1-3: after rpm upgrade manpages missing

Vladislav Bogdanov bubble at hoster-ok.com
Mon Aug 11 13:26:42 CEST 2014

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


11.08.2014 14:00, Lars Ellenberg wrote:
> On Mon, Aug 11, 2014 at 12:29:33PM +0200, Roland Friedwagner wrote:
>> Hello,
>>
>> after upgrade drbd-utils from 8.4.4-7 to 8.9.1-3 the
>> man pages are missing in default location ...
>>
>> $ rpm -qa "drbd*" | sort
>> drbd-km-2.6.32_431.11.2.el6.x86_64-8.4.4-7.el6.x86_64
>> drbd-km-2.6.32_431.17.1.el6.x86_64-8.4.4-7.el6.x86_64
>> drbd-km-2.6.32_431.23.3.el6.x86_64-8.4.4-7.el6.x86_64
>> drbd-km-2.6.32_431.5.1.el6.x86_64-8.4.4-7.el6.x86_64
>> drbd-km-2.6.32_431.el6.x86_64-8.4.4-7.el6.x86_64
>> drbd-udev-8.4.4-7.el6.x86_64
>> drbd-utils-8.4.4-7.el6.x86_64
>> $ rpm -Uvh drbd-utils-8.9.1-3.el6.x86_64.rpm drbd-udev-8.9.1-3.el6.x86_64.rpm
> 
> Hmmm.
> Apparently the postinst scriptlet is run first,
> and only then the cleanup of the previous package is run?
> 
> I'm pretty sure "reinstall" will help.
> 
> Alternatively, the postinst may need an ln -sf.
> 
> drbd-utils 8.9 delivers man pages from 8.3, 8.4 and 9,
> the postinst symlinks 8.4 as "default" (non-versioned) instance.
> 
> If I do a clean install, that seems to work fine.
> 
> With debian, we have a "debconf" question.
> 
> Any better ideas?

On RHEL and Fedora - update-alternatives(8).

MTA packagess (sendmail, exim, postfix) seem to be most known users of that.

> 
> 
> There is a way during build to include these symlinks into the package.
> In which case the postinst scriptlet is not helping.
> Was that a linbit-provided package, or a self built?
> 
> 
>> Preparing...                ########################################### [100%]
>>    1:drbd-utils             warning: /etc/drbd.d/global_common.conf created as /etc/drbd.d/global_common.conf.rpmnew
>> ########################################### [ 50%]
>> ln: creating symbolic link `/usr/share/man/man8/drbd.8.gz': File exists
> ...
>> warning: %post(drbd-utils-8.9.1-3.el6.x86_64) scriptlet failed, exit status 1
>>    2:drbd-udev              ########################################### [100%]
>>
>> $ ls -l /usr/share/man/man8/drbd.8.gz /usr/share/man/man8/drbdadm.8.gz /usr/share/man/man8/drbdmeta.8.gz /usr/share/man/man8/drbdsetup.8.gz /usr/share/man/man5/drbd.conf.5.gz
>> ls: cannot access /usr/share/man/man8/drbd.8.gz: No such file or directory
> 
>> FIX?:
>> for f in drbd drbdadm drbdmeta drbdsetup; do
>>     ln -s $f-8.4.8.gz /usr/share/man/man8/$f.8.gz
>> done
> 
> 




More information about the drbd-user mailing list