FreeBSD Bugzilla – Attachment 152872 Details for
Bug 197542
Mk/Scripts/find-lib.sh: Doesn't find libiconv library
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to resolve multiple-level symlinks
file_197542.txt (text/plain), 1.22 KB, created by
cgreen
on 2015-02-11 18:26:45 UTC
(
hide
)
Description:
Patch to resolve multiple-level symlinks
Filename:
MIME Type:
Creator:
cgreen
Created:
2015-02-11 18:26:45 UTC
Size:
1.22 KB
patch
obsolete
>--- /usr/ports/Mk/Scripts/find-lib.sh.old 2015-02-09 12:16:43.000000000 -0500 >+++ /usr/ports/Mk/Scripts/find-lib.sh 2015-02-11 13:19:51.000000000 -0500 >@@ -15,23 +15,31 @@ > dirs="${LIB_DIRS} `cat ${LOCALBASE}/libdata/ldconfig/* 2>/dev/null || :`" > > resolv_symlink() { >- local file tgt >+ local file tgt count > file=${1} >- if [ ! -L ${file} ] ; then >- echo ${file} >- return >- fi >- >- tgt=`readlink ${file}` >- case $tgt in >- /*) >- echo $tgt >- return >- ;; >- esac >+ count=0 > >- file=${file%/*}/${tgt} >- absolute_path ${file} >+ while [ -L ${file} ] >+ do >+ >+ count=`expr ${count} + 1` >+ if [ ${count} -gt 10 ]; then >+ break >+ fi >+ >+ tgt=`readlink ${file}` >+ >+ case $tgt in >+ /*) >+ file=$tgt;; >+ *) >+ file=${file%/*}/${tgt} >+ file=`absolute_path ${file}` >+ ;; >+ esac >+ done >+ >+ echo ${file} > } > > absolute_path() {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 197542
: 152872