Berkeley CSUA MOTD:Entry 33198
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/24 [General] UID:1000 Activity:popular
5/24    

2004/8/28-29 [Computer/SW/WWW/Browsers, Computer/SW/OS/FreeBSD] UID:33198 Activity:nil
8/28    Has anybody ever used /etc/libmap.conf (FreeBSD) to map .so deps
        to a newer/older revision number?  It looks like it avoids that
        nasty business of adding 30 new symlinks everytime you pkg_add
        firefox.
        http://www.freebsdchina.org/utils/phpMan.php/man/libmap.conf/5
Cache (1036 bytes)
www.freebsdchina.org/utils/phpMan.php/man/libmap.conf/5
so1 allows dynamic object depen- dencies to be mapped to arbitrary names. The configuration file consists of two whitespace separated columns; the left hand side containing the mapping candidate and the right hand side containing the mapping. Dependencies are matched against candidates and replaced with the mappings. Constrained mappings may be specified by enclosing the name of the exe- cutable or library in brackets. All mappings following a constraint will only be evaluated for that constraint. Currently, constraints are matched literally so that an executable with a fully qualified pathname will only match the same constraint. This means that /usr/bin/foo will not match a constraint for foo and vise-versa. Constrained mappings must never appear first in the configura- tion file. While there is a way to specify the default'' constraint, its use is not recommended. The most common use at the date of writing is for allowing multiple POSIX threading libraries to be used on a system without relinking or changing symlinks.