FreeBSD Bugzilla – Attachment 222275 Details for
Bug 253354
Mk/Scripts/depends-list.sh: flavors are not processed properly when dependency is absolute path
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix the issue.
p.diff (text/plain), 1.27 KB, created by
Maxim Sobolev
on 2021-02-08 19:12:00 UTC
(
hide
)
Description:
Patch to fix the issue.
Filename:
MIME Type:
Creator:
Maxim Sobolev
Created:
2021-02-08 19:12:00 UTC
Size:
1.27 KB
patch
obsolete
>diff --git a/Mk/Scripts/depends-list.sh b/Mk/Scripts/depends-list.sh >index 8b90d45f5bdc..ba9bc698756a 100644 >--- a/Mk/Scripts/depends-list.sh >+++ b/Mk/Scripts/depends-list.sh >@@ -54,6 +58,31 @@ if [ ${missing} -eq 1 ]; then > existing=$(${dp_PKG_INFO} -aoq|paste -d ' ' -s -) > fi > >+proc_flv() { >+ local f >+ >+ d=${1} >+ case "${d}" in >+ *@*/*) >+ return 1 # Ignore @ in the path which would not be a flavor >+ ;; >+ *@*) >+ f=${d##*@} >+ d=${d%@*} >+ ;; >+ *) >+ return 1 >+ ;; >+ esac >+ if [ -f ${d}/Makefile ]; then >+ if [ -n ${f} ]; then >+ export FLAVOR=${f} >+ fi >+ return 0 >+ fi >+ return 1 >+} >+ > check_dep() { > local _dep wrkdir show_dep > >@@ -65,24 +94,16 @@ check_dep() { > IFS=${myifs} > > case "${2}" in >- /*) d=${2} ;; >- *) for overlay in ${dp_OVERLAYS} ${PORTSDIR}; do >- d=${overlay}/${2} >- f= >- case "${d}" in >- *@*/*) ;; # Ignore @ in the path which would not be a flavor >- *@*) >- f=${d##*@} >- d=${d%@*} >- ;; >- esac >- if [ -f ${d}/Makefile ]; then >- if [ -n $f ]; then >- export FLAVOR=$f >+ /*) >+ proc_flv ${2} || true ;; >+ *) >+ for overlay in ${dp_OVERLAYS} ${PORTSDIR}; do >+ if proc_flv ${overlay}/${2} >+ then >+ break > fi >- break >- fi >- done >+ done >+ ;; > esac > > if [ ${flavors} -eq 1 -a -n "${FLAVOR:-}" ]; then
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 253354
: 222275