Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#1543 - .install scripts and ld.so.conf editing

Attached to Project: Arch Linux
Opened by Jan de Groot (JGC) - Tuesday, 28 September 2004, 07:23 GMT
Last edited by Judd Vinet (judd) - Tuesday, 28 September 2004, 07:38 GMT
Task Type Bug Report
Category Packages: Current
Status Closed
Assigned To Judd Vinet (judd)
Architecture not specified
Severity Low
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

This is not just one package I'm filing the bug against, some examples are:
mozilla
gnome-common

probably much more packages are affected by this "bug":
on postinstall, a grep action is done on /etc/ld.so.conf to find out if already listed. In case of mozilla, it grep -v's /etc/ld.so.conf into a new file to get rid of it and add it again with echo. Then copy the /tmp file to /etc/ld.so.conf and chmod it. This could be insecure, because the /tmp file has a known name.

The pre/post_remove does the same thing with grep to get rid of the entry and also creates a file in /tmp, which could be insecure. Sed can do this, without creating new files, while having less lines in the install script:

pre_remove() {
sed -i '/\/opt\/mozilla\/lib\/firefox/d' etc/ld.so.conf
sbin/ldconfig -r .
}

this is what I have in the firefox package to get rid of the firefox library path in /etc/ld.so.conf.
This task depends upon

Closed by  Jan de Groot (JGC)
Friday, 07 January 2005, 21:08 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in most things now. Will fix others if we notice them.

Loading...