[Bug 104940] alternatives doesn't update link when installing

bugzilla at redhat.com bugzilla at redhat.com
Thu Apr 3 18:31:32 UTC 2008


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug report.

Summary: alternatives doesn't update link when installing


https://bugzilla.redhat.com/show_bug.cgi?id=104940


ville.skytta at iki.fi changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |ASSIGNED
  Status Whiteboard| bzcl34nup                  |bzcl34nup




------- Additional Comments From ville.skytta at iki.fi  2008-04-03 14:31 EST -------
Still happens with Fedora 8, chkconfig-1.3.36-1.x86_64.

Reproducer:

# rpm -e genisoimage
# ln -s /foo/bar /usr/bin/mkisofs
# rpm -i genisoimage-1.1.6-6.fc8.x86_64.rpm
# ls -l /usr/bin/mkisofs
lrwxrwxrwx 1 root root 8 2008-04-03 21:28 /usr/bin/mkisofs -> /foo/bar

Expected result:

# ls -l /usr/bin/mkisofs
lrwxrwxrwx 1 root root 25 2008-04-03 21:29 /usr/bin/mkisofs ->
/etc/alternatives/mkisofs



# rpm -q --scripts genisoimage
postinstall scriptlet (using /bin/sh):
link=`readlink /usr/bin/mkisofs`
if [ "$link" == "genisoimage" ]; then
        rm -f /usr/bin/mkisofs
fi

/usr/sbin/alternatives --install /usr/bin/mkisofs mkisofs \
                /usr/bin/genisoimage 50 \
        --slave /usr/share/man/man1/mkisofs.1.gz mkisofs-mkisofsman \
                /usr/share/man/man1/genisoimage.1.gz \
        --slave /usr/bin/mkhybrid mkisofs-mkhybrid /usr/bin/genisoimage
preuninstall scriptlet (using /bin/sh):
if [ $1 = 0 ]; then
        /usr/sbin/alternatives --remove mkisofs /usr/bin/genisoimage
fi


-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




More information about the fedora-triage-list mailing list