ghc-deps.sh: correctly map library id to internal package .conf

eg map libHSpandoc-3.0.1-9rZJwJUtmvf8o1sPc2tHH1-xml-light_p.a
to z-pandoc-z-xml-light
epel9
Jens Petersen 1 year ago
parent 42479e3691
commit 10d6e38a6f

@ -46,8 +46,9 @@ for i in $files; do
done done
;; ;;
*/libHS*_p.a) */libHS*_p.a)
pkgver=$(basename "$(dirname "$i")") conf=$(echo $(basename "$i") | sed -e "s%libHS%$BUILDROOT$PKGCONFDIR/%" -e 's%_p.a%.conf%')
ids=$($GHC_PKG field "$pkgver" "$field" | sed -e "s/\(^\| \)rts\( \|$\)/ /" -e "s/bin-package-db-[^ ]\+//") name=$(grep "^name: " "$conf" | sed -e "s/name: *//")
ids=$($GHC_PKG field "$name" "$field" | sed -e "s/\(^\| \)rts\( \|$\)/ /" -e "s/bin-package-db-[^ ]\+//")
for d in $ids; do for d in $ids; do
case $d in case $d in
*-*-internal) ;; *-*-internal) ;;

Loading…
Cancel
Save