Vova Uralsky
2009-11-10 08:07:05 UTC
Hi All!
Собираю libtool-base, вродк всё сделал как написано вот здесь:
http://blogs.sun.com/jperkin/entry/pkgsrc_on_solaris... Вылетает на
патче. Если сказать bmake -dl видно следующее:
=> Applying pkgsrc patches for libtool-base-1.5.26nb2
set -e; fail=;
patches=/usr/pkgsrc/devel/libtool-base/../libtool/patches/patch-\*;
patch_wa
rning() { echo
"**************************************"; echo "$1";
echo
"**************************************"; };
for i in $patches; do
test -f "$i" || continue;
case "$i" in
*.orig|*.rej|*~)
echo "=>" "Ignoring patchfile $i";
continue; ;;
/usr/pkgsrc/devel/libtool-base/../libtool/patches/patch-local-*)
;;
/usr/pkgsrc/devel/libtool-base/../libtool/patches/patch-
*|/usr/pkgsrc/devel/libtool-base/../libtool/patches/emul-*-patch-*)
if test ! -f /usr/pkgsrc/devel/libtool-ba
se/../libtool/distinfo; then patch_warning "Ignoring patch file $i:
distinfo not found"; continue;
fi; echo >/dev/null
'***' "Verifying $i"; if /usr/bin/env
DIGEST=/usr/pkg/bin/digest CAT=/usr/bin/cat ECHO=echo
SED=/usr/pkg/bin/nbsed TEST=test
/usr/pkg/bin/pdksh
/usr/pkgsrc/mk/checksum/checksum -p /usr/pkgsrc/devel/libtool-b
ase/../libtool/distinfo $i >/dev/null 2>&1; then cksum_result=0;
else
cksum_result=$?; fi;
case "$cksum_result" in 0) ;;
2) patch_warning "Ign
oring patch file $i: no checksum found"; continue ;;
1) patch_warning "Ignoring patch file
$i: invalid checksum"; fail="$fail $i"; continue
;; esac;
;;
esac;
echo >/dev/null '***' "Applying pkgsrc patch $i";
fuzz_flags=;
if /usr/pkg/bin/nbpatch -v >/dev/null 2>&1; then
fuzz_flags=-F0;
fi; if
/usr/pkg/bin/nbpatch $fuzz_flags -d /usr/pkgsrc/devel/libtool-
base/work/libtool-1.5.26 --forward --quiet -E -p0 -V simple -z .orig <
$i; then echo "$i" >> /usr/pkgsrc/devel/lib
tool-base/work/.patch; else
echo "Patch $i failed";
fail="$fail $i"; fi;
done; if test
-n "$fail"; then
echo 1>&2 "ERROR:" "Patching failed due to modified or broken
patch file(s):"; for i in $fail; do
echo 1>&2 "ERROR:" " $i";
done;
if test -n "" ||
test -n "" -a -d /devel/libtool-base; then echo
1>&2 "ERROR:"
"==========================================================================";
echo 1>&2 "ERROR:";
echo 1>&2 "ERROR:"
"Some of the selected build options and/or local patc
hes may be incompatible."; echo 1>&2 "ERROR:" "Please try building with
fewer options or patches."; echo 1>&2 "ERROR:";
echo 1>&2
"ERROR:" "==============================================
============================"; fi; exit 1;
fi
patch: **** too many file arguments
Patch /usr/pkgsrc/devel/libtool-base/../libtool/patches/patch-aa failed
patch: **** too many file arguments
Patch /usr/pkgsrc/devel/libtool-base/../libtool/patches/patch-ab failed
patch: **** too many file arguments
Patch /usr/pkgsrc/devel/libtool-base/../libtool/patches/patch-ac failed
patch: **** too many file arguments
Patch /usr/pkgsrc/devel/libtool-base/../libtool/patches/patch-ad failed
ERROR: Patching failed due to modified or broken patch file(s):
ERROR: /usr/pkgsrc/devel/libtool-base/../libtool/patches/patch-aa
ERROR: /usr/pkgsrc/devel/libtool-base/../libtool/patches/patch-ab
ERROR: /usr/pkgsrc/devel/libtool-base/../libtool/patches/patch-ac
ERROR: /usr/pkgsrc/devel/libtool-base/../libtool/patches/patch-ad
*** Error code 1
Stop.
Гугление дает единственную ссылку:
http://mail-index.netbsd.org/pkgsrc-users/2009/10/13/msg010972.html
Ручками патчи прекрасно прикладываются. После touch .patch_done
собирается дальше. Но нехорошо это как-то... Вопросы, как обычно, "Что
делать и кто виноват?"
Vova
Собираю libtool-base, вродк всё сделал как написано вот здесь:
http://blogs.sun.com/jperkin/entry/pkgsrc_on_solaris... Вылетает на
патче. Если сказать bmake -dl видно следующее:
=> Applying pkgsrc patches for libtool-base-1.5.26nb2
set -e; fail=;
patches=/usr/pkgsrc/devel/libtool-base/../libtool/patches/patch-\*;
patch_wa
rning() { echo
"**************************************"; echo "$1";
echo
"**************************************"; };
for i in $patches; do
test -f "$i" || continue;
case "$i" in
*.orig|*.rej|*~)
echo "=>" "Ignoring patchfile $i";
continue; ;;
/usr/pkgsrc/devel/libtool-base/../libtool/patches/patch-local-*)
;;
/usr/pkgsrc/devel/libtool-base/../libtool/patches/patch-
*|/usr/pkgsrc/devel/libtool-base/../libtool/patches/emul-*-patch-*)
if test ! -f /usr/pkgsrc/devel/libtool-ba
se/../libtool/distinfo; then patch_warning "Ignoring patch file $i:
distinfo not found"; continue;
fi; echo >/dev/null
'***' "Verifying $i"; if /usr/bin/env
DIGEST=/usr/pkg/bin/digest CAT=/usr/bin/cat ECHO=echo
SED=/usr/pkg/bin/nbsed TEST=test
/usr/pkg/bin/pdksh
/usr/pkgsrc/mk/checksum/checksum -p /usr/pkgsrc/devel/libtool-b
ase/../libtool/distinfo $i >/dev/null 2>&1; then cksum_result=0;
else
cksum_result=$?; fi;
case "$cksum_result" in 0) ;;
2) patch_warning "Ign
oring patch file $i: no checksum found"; continue ;;
1) patch_warning "Ignoring patch file
$i: invalid checksum"; fail="$fail $i"; continue
;; esac;
;;
esac;
echo >/dev/null '***' "Applying pkgsrc patch $i";
fuzz_flags=;
if /usr/pkg/bin/nbpatch -v >/dev/null 2>&1; then
fuzz_flags=-F0;
fi; if
/usr/pkg/bin/nbpatch $fuzz_flags -d /usr/pkgsrc/devel/libtool-
base/work/libtool-1.5.26 --forward --quiet -E -p0 -V simple -z .orig <
$i; then echo "$i" >> /usr/pkgsrc/devel/lib
tool-base/work/.patch; else
echo "Patch $i failed";
fail="$fail $i"; fi;
done; if test
-n "$fail"; then
echo 1>&2 "ERROR:" "Patching failed due to modified or broken
patch file(s):"; for i in $fail; do
echo 1>&2 "ERROR:" " $i";
done;
if test -n "" ||
test -n "" -a -d /devel/libtool-base; then echo
1>&2 "ERROR:"
"==========================================================================";
echo 1>&2 "ERROR:";
echo 1>&2 "ERROR:"
"Some of the selected build options and/or local patc
hes may be incompatible."; echo 1>&2 "ERROR:" "Please try building with
fewer options or patches."; echo 1>&2 "ERROR:";
echo 1>&2
"ERROR:" "==============================================
============================"; fi; exit 1;
fi
patch: **** too many file arguments
Patch /usr/pkgsrc/devel/libtool-base/../libtool/patches/patch-aa failed
patch: **** too many file arguments
Patch /usr/pkgsrc/devel/libtool-base/../libtool/patches/patch-ab failed
patch: **** too many file arguments
Patch /usr/pkgsrc/devel/libtool-base/../libtool/patches/patch-ac failed
patch: **** too many file arguments
Patch /usr/pkgsrc/devel/libtool-base/../libtool/patches/patch-ad failed
ERROR: Patching failed due to modified or broken patch file(s):
ERROR: /usr/pkgsrc/devel/libtool-base/../libtool/patches/patch-aa
ERROR: /usr/pkgsrc/devel/libtool-base/../libtool/patches/patch-ab
ERROR: /usr/pkgsrc/devel/libtool-base/../libtool/patches/patch-ac
ERROR: /usr/pkgsrc/devel/libtool-base/../libtool/patches/patch-ad
*** Error code 1
Stop.
Гугление дает единственную ссылку:
http://mail-index.netbsd.org/pkgsrc-users/2009/10/13/msg010972.html
Ручками патчи прекрасно прикладываются. После touch .patch_done
собирается дальше. Но нехорошо это как-то... Вопросы, как обычно, "Что
делать и кто виноват?"
Vova