pck-update (-a6): minor fixes
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
parent
574225f2cf
commit
c8909a86fb
@ -18,6 +18,14 @@ Changes in version 1.9.3
|
|||||||
Fix make clean target: the files in the root directory generated from .in
|
Fix make clean target: the files in the root directory generated from .in
|
||||||
files must be removed too.
|
files must be removed too.
|
||||||
|
|
||||||
|
* pck-update - Davide Madrisan:
|
||||||
|
Action 6: correctly parse self-provided build requirements containing a '='
|
||||||
|
character followed by a version number.
|
||||||
|
|
||||||
|
* pck-update - Davide Madrisan:
|
||||||
|
Action 6: do not display the rpm message "no package provides...": it
|
||||||
|
will be a duplicate entry in the list of unresolved build requirements.
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
Changes in version 1.9.2
|
Changes in version 1.9.2
|
||||||
|
@ -2365,7 +2365,12 @@ $pck-$pck_rpmversion-$pck_rpmrelease$DISTRO_rpm.$target_cpu.rpm"
|
|||||||
# look for RPMs provides
|
# look for RPMs provides
|
||||||
local pcks_provides=(
|
local pcks_provides=(
|
||||||
$(rpm -p -q --provides ${pcks_list[*]} 2>/dev/null | sort -u | \
|
$(rpm -p -q --provides ${pcks_list[*]} 2>/dev/null | sort -u | \
|
||||||
while read line; do echo "${line// /}"; done) )
|
while read line; do
|
||||||
|
# [[ "$line" =~ ^pkgconfig\(.* ]] && \
|
||||||
|
# notify.debug "ignoring pck provide: $line" || \
|
||||||
|
# echo "${line// /}"
|
||||||
|
echo "${line// /}"
|
||||||
|
done) )
|
||||||
notify.debug "pcks_provides = [${pcks_provides[*]}]"
|
notify.debug "pcks_provides = [${pcks_provides[*]}]"
|
||||||
|
|
||||||
# display all the build requirements
|
# display all the build requirements
|
||||||
@ -2377,9 +2382,9 @@ $pck-$pck_rpmversion-$pck_rpmrelease$DISTRO_rpm.$target_cpu.rpm"
|
|||||||
req="$(echo "$line" | sed "s, ,,g;s,<.*,,;s,>.*,,;s,=.*,,")"
|
req="$(echo "$line" | sed "s, ,,g;s,<.*,,;s,>.*,,;s,=.*,,")"
|
||||||
if [ -n "$(for p in ${pcks_provides[*]}; do
|
if [ -n "$(for p in ${pcks_provides[*]}; do
|
||||||
# self-provided requirement
|
# self-provided requirement
|
||||||
[ "$p" = "${req}" ] && echo "$p"
|
[ "${p//=*/}" = "${req}" ] && echo "$p"
|
||||||
done)" ]; then
|
done)" ]; then
|
||||||
:
|
notify.debug "self-provided requirement: $line"
|
||||||
elif [ "${req:0:1}" = "/" ]; then
|
elif [ "${req:0:1}" = "/" ]; then
|
||||||
# file requirement; ignore
|
# file requirement; ignore
|
||||||
:
|
:
|
||||||
@ -2441,9 +2446,9 @@ $(echo $solibpath | sed "s|-[0-9.]*\.so|.so|")"
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [ "$solibpath_catch" ]; then
|
if [ "$solibpath_catch" ]; then
|
||||||
eval buildreq="\
|
rpm --qf %{name} -qf $solibpath_catch &>/dev/null &&
|
||||||
$(rpm --qf %{name} -qf $solibpath_catch 2>/dev/null)" 2>/dev/null
|
buildreq="$(rpm --qf %{name} -qf $solibpath_catch)" ||
|
||||||
[ -z "$buildreq" -o $? -ne 0 ] && echo "\
|
echo "\
|
||||||
#$req: $solibpath_catch: file not owned by any package"
|
#$req: $solibpath_catch: file not owned by any package"
|
||||||
else
|
else
|
||||||
echo "#$req: .so link not found"
|
echo "#$req: .so link not found"
|
||||||
@ -2454,10 +2459,9 @@ $(rpm --qf %{name} -qf $solibpath_catch 2>/dev/null)" 2>/dev/null
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# unidentified requirement
|
# unidentified requirement
|
||||||
buildreq="$(\
|
rpm -q --qf %{name} --whatprovides "$req" &>/dev/null &&
|
||||||
rpm -q --qf %{name} --whatprovides $req 2>/dev/null)"
|
buildreq="$(rpm -q --qf %{name} --whatprovides "$req")" ||
|
||||||
[ -z "$buildreq" -o $? -ne 0 ] &&
|
echo "#$req: unidentified build requirement"
|
||||||
echo "#$req: not found; what is this?"
|
|
||||||
fi
|
fi
|
||||||
if [ -n "$buildreq" \
|
if [ -n "$buildreq" \
|
||||||
-a "${buildreq/%-devel/}" = "$buildreq" ]; then
|
-a "${buildreq/%-devel/}" = "$buildreq" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user