Logo
Explore Help
Sign In
kenmirrors/asterisk
1
0
Fork 0
You've already forked asterisk
mirror of https://github.com/asterisk/asterisk.git synced 2025-09-20 20:44:20 +00:00
Code Issues Packages Projects Releases Wiki Activity
Files
00a7e4b51df0202ab4168963b16ee51a5b69fb15
asterisk/tests/CI/findLibdir.sh

15 lines
151 B
Bash
Raw Normal View History

CI: New way to determnine libdir We were using the presence of /usr/lib64 to determine where shared libraries should be installed. This only existed on Redhat based systems and was safe. If it existed, use it, otherwise use /usr/lib. Unfortunately, Ubuntu 19 decided to create a /usr/lib64 BUT NOT INCLUDE IT IN THE DEFAULT ld.so.conf. So if anything is installed there, it won't work. The new method, just looks for $ID in /etc/os-release and if it's centos or fedora, uses /usr/lib64 and if ubuntu, uses /usr/lib. NOTE: This applies only to the CI scripts. Normal asterisk build and install is not affected. Change-Id: Iad66374b550fd89349bedbbf2b93f8edd195a7c3
2019-06-19 10:58:39 -06:00
#!/usr/bin/env bash
source /etc/os-release
case $ID in
centos)
echo /usr/lib64
;;
fedora)
echo /usr/lib64
;;
ubuntu)
echo /usr/lib
esac
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.5 Page: 181ms Template repo/view: 13ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API