firefox packaging bug

Dimi Paun dimi at lattica.com
Mon Mar 20 17:47:42 UTC 2006


Hi folks,

This may have already been fixed, but I figured I should note it
anyhow. It seems the RPM for
    firefox-1.0.6-1.2.fc4.i386
gets rid of the file
    /usr/lib/firefox-1.0.6/firefox-rebuild-databases.pl
before it is invoked in the %postun script:

[root at dimi ~]# rpm -e firefox-1.0.6-1.2.fc4
/var/tmp/rpm-tmp.83719: line 5:
/usr/lib/firefox-1.0.6/firefox-rebuild-databases.pl: No such file or
directory
error: %postun(firefox-1.0.6-1.2.fc4.i386) scriptlet failed, exit status 127

Of course, if you recreate it for fun:

[root at dimi ~]# mkdir /usr/lib/firefox-1.0.6
[root at dimi ~]# vim /usr/lib/firefox-1.0.6/firefox-rebuild-databases.pl
[root at dimi ~]# touch /usr/lib/firefox-1.0.6/firefox-rebuild-databases.pl
[root at dimi ~]# chmod +x /usr/lib/firefox-1.0.6/firefox-rebuild-databases.pl

The same thing will happen:

[root at dimi ~]# rpm -e firefox-1.0.6-1.2.fc4
/var/tmp/rpm-tmp.18065: line 5:
/usr/lib/firefox-1.0.6/firefox-rebuild-databases.pl: No such file or
directory
error: %postun(firefox-1.0.6-1.2.fc4.i386) scriptlet failed, exit status 127

Sure enogh the file (and dir) is gone again:

[root at dimi ~]# ll /usr/lib/firefox-1.0.6/firefox-rebuild-databases.pl
ls: /usr/lib/firefox-1.0.6/firefox-rebuild-databases.pl: No such file or
directory

Only this gets rid of the package:

[root at dimi ~]# rpm -e --noscripts firefox-1.0.6-1.2.fc4

-- 
Dimi Paun <dimi at lattica.com>
Lattica, Inc.




More information about the fedora-devel-list mailing list