The texinfo package builds without problem, but there is a problem in the install phase. It looks like it tries to use the install-sh script, but this is not executable.

$ gzip -cd texinfo-4.7.tar.gz |tar tvf -|grep install-sh
blocksize = 256
-rw-rw-rw-  1001/0     9505 Apr  2 14:59:52 2004 texinfo-4.7/install-sh



Fixed by adding a chmod at the start of the install phase:

%install
   chmod u+x install-sh
   ...



Install log:

Executing(%install): env -i /tmp/openpkg/lib/openpkg/bash --norc --noprofile --posix -e /tmp/openpkg/RPM/TMP/rpm-tmp.743
+ cd /tmp/openpkg/RPM/TMP
+ cd texinfo-4.7
+ rm -rf /tmp/openpkg/RPM/TMP/texinfo-4.7-root
+ /tmp/openpkg/bin/make --no-print-directory install AM_MAKEFLAGS=DESTDIR=/tmp/openpkg/RPM/TMP/texinfo-4.7-root
Making install in intl
if { test "texinfo" = "gettext-runtime" || test "texinfo" = "gettext-tools"; } \
&& test 'yes' = yes; then \
/bin/sh .././mkinstalldirs /tmp/openpkg/RPM/TMP/texinfo-4.7-root/tmp/openpkg/lib /tmp/openpkg/RPM/TMP/texinfo-4.7-root/tmp/openpkg/include; \
.././install-sh -c -m 644 libintl.h /tmp/openpkg/RPM/TMP/texinfo-4.7-root/tmp/openpkg/include/libintl.h; \
@LIBTOOL@ --mode=install \
.././install-sh -c -m 644 libintl.a /tmp/openpkg/RPM/TMP/texinfo-4.7-root/tmp/openpkg/lib/libintl.a; \
if test "@RELOCATABLE@" = yes; then \
dependencies=`sed -n -e 's,^dependency_libs=\(.*\),\1,p' < /tmp/openpkg/RPM/TMP/texinfo-4.7-root/tmp/openpkg/lib/libintl.la | sed -e "s,^',," -e "s,'\$,,"`; \
if test -n "$dependencies"; then \
rm -f /tmp/openpkg/RPM/TMP/texinfo-4.7-root/tmp/openpkg/lib/libintl.la; \
fi; \
fi; \
else \
: ; \
fi
if test "texinfo" = "gettext-tools" \
&& test 'yes' = no; then \
/bin/sh .././mkinstalldirs /tmp/openpkg/RPM/TMP/texinfo-4.7-root/tmp/openpkg/lib; \
@LIBTOOL@ --mode=install \
.././install-sh -c -m 644 libgnuintl.a /tmp/openpkg/RPM/TMP/texinfo-4.7-root/tmp/openpkg/lib/libgnuintl.a; \
rm -f /tmp/openpkg/RPM/TMP/texinfo-4.7-root/tmp/openpkg/lib/preloadable_libintl.so; \
.././install-sh -c -m 644 /tmp/openpkg/RPM/TMP/texinfo-4.7-root/tmp/openpkg/lib/libgnuintl.so /tmp/openpkg/RPM/TMP/texinfo-4.7-root/tmp/openpkg/lib/preloadable_libintl.so; \
@LIBTOOL@ --mode=uninstall \
rm -f /tmp/openpkg/RPM/TMP/texinfo-4.7-root/tmp/openpkg/lib/libgnuintl.a; \
else \
: ; \
fi
if test 'yes' = yes; then \
test no != no || /bin/sh .././mkinstalldirs /tmp/openpkg/RPM/TMP/texinfo-4.7-root/tmp/openpkg/lib; \
temp=/tmp/openpkg/RPM/TMP/texinfo-4.7-root/tmp/openpkg/lib/t-charset.alias; \
dest=/tmp/openpkg/RPM/TMP/texinfo-4.7-root/tmp/openpkg/lib/charset.alias; \
if test -f /tmp/openpkg/RPM/TMP/texinfo-4.7-root/tmp/openpkg/lib/charset.alias; then \
orig=/tmp/openpkg/RPM/TMP/texinfo-4.7-root/tmp/openpkg/lib/charset.alias; \
sed -f ref-add.sed $orig > $temp; \
.././install-sh -c -m 644 $temp $dest; \
rm -f $temp; \
else \
if test no = no; then \
orig=charset.alias; \
sed -f ref-add.sed $orig > $temp; \
.././install-sh -c -m 644 $temp $dest; \
rm -f $temp; \
fi; \
fi; \
/bin/sh .././mkinstalldirs /tmp/openpkg/RPM/TMP/texinfo-4.7-root/tmp/openpkg/share/locale; \
test -f /tmp/openpkg/RPM/TMP/texinfo-4.7-root/tmp/openpkg/share/locale/locale.alias \
&& orig=/tmp/openpkg/RPM/TMP/texinfo-4.7-root/tmp/openpkg/share/locale/locale.alias \
|| orig=./locale.alias; \
temp=/tmp/openpkg/RPM/TMP/texinfo-4.7-root/tmp/openpkg/share/locale/t-locale.alias; \
dest=/tmp/openpkg/RPM/TMP/texinfo-4.7-root/tmp/openpkg/share/locale/locale.alias; \
sed -f ref-add.sed $orig > $temp; \
.././install-sh -c -m 644 $temp $dest; \
rm -f $temp; \
else \
: ; \
fi
mkdir /tmp/openpkg/RPM/TMP/texinfo-4.7-root
mkdir /tmp/openpkg/RPM/TMP/texinfo-4.7-root/tmp
mkdir /tmp/openpkg/RPM/TMP/texinfo-4.7-root/tmp/openpkg
mkdir /tmp/openpkg/RPM/TMP/texinfo-4.7-root/tmp/openpkg/lib
/bin/sh: .././install-sh: cannot execute
mkdir /tmp/openpkg/RPM/TMP/texinfo-4.7-root/tmp/openpkg/share
mkdir /tmp/openpkg/RPM/TMP/texinfo-4.7-root/tmp/openpkg/share/locale
/bin/sh: .././install-sh: cannot execute
if test "texinfo" = "gettext-tools"; then \
/bin/sh .././mkinstalldirs /tmp/openpkg/RPM/TMP/texinfo-4.7-root/tmp/openpkg/share/gettext/intl; \
.././install-sh -c -m 644 VERSION /tmp/openpkg/RPM/TMP/texinfo-4.7-root/tmp/openpkg/share/gettext/intl/VERSION; \
.././install-sh -c -m 644 ChangeLog.inst /tmp/openpkg/RPM/TMP/texinfo-4.7-root/tmp/openpkg/share/gettext/intl/ChangeLog; \
dists="COPYING.LIB-2.0 COPYING.LIB-2.1 Makefile.in config.charset locale.alias ref-add.sin ref-del.sin gmo.h gettextP.h hash-string.h loadinfo.h plural-exp.h eval-plural.h localcharset.h relocatable.h xsize.h printf-args.h printf-args.c printf-parse.h wprintf-parse.h printf-parse.c vasnprintf.h vasnwprintf.h vasnprintf.c os2compat.h libgnuintl.h.in bindtextdom.c dcgettext.c dgettext.c gettext.c finddomain.c loadmsgcat.c localealias.c textdomain.c l10nflist.c explodename.c dcigettext.c dcngettext.c dngettext.c ngettext.c plural.y plural-exp.c localcharset.c relocatable.c localename.c log.c printf.c osdep.c os2compat.c intl-compat.c"; \
for file in $dists; do \
.././install-sh -c -m 644 ./$file \
/tmp/openpkg/RPM/TMP/texinfo-4.7-root/tmp/openpkg/share/gettext/intl/$file; \
done; \
chmod a+x /tmp/openpkg/RPM/TMP/texinfo-4.7-root/tmp/openpkg/share/gettext/intl/config.charset; \
dists="plural.c"; \
for file in $dists; do \
if test -f $file; then dir=.; else dir=.; fi; \
.././install-sh -c -m 644 $dir/$file \
/tmp/openpkg/RPM/TMP/texinfo-4.7-root/tmp/openpkg/share/gettext/intl/$file; \
done; \
dists="xopen-msg.sed linux-msg.sed po2tbl.sed.in cat-compat.c COPYING.LIB-2 gettext.h libgettext.h plural-eval.c libgnuintl.h"; \
for file in $dists; do \
rm -f /tmp/openpkg/RPM/TMP/texinfo-4.7-root/tmp/openpkg/share/gettext/intl/$file; \
done; \
else \
: ; \
fi
Making install in m4
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
Making install in lib
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
Making install in info
/tmp/openpkg/bin/make DESTDIR=/tmp/openpkg/RPM/TMP/texinfo-4.7-root install-am
test -z "/tmp/openpkg/bin" || /bin/ksh ../mkinstalldirs "/tmp/openpkg/RPM/TMP/texinfo-4.7-root/tmp/openpkg/bin"
mkdir /tmp/openpkg/RPM/TMP/texinfo-4.7-root/tmp/openpkg/bin
.././install-sh -c 'ginfo' '/tmp/openpkg/RPM/TMP/texinfo-4.7-root/tmp/openpkg/bin/info'
/bin/ksh: .././install-sh: cannot execute
make[3]: *** [install-binPROGRAMS] Error 1
make[2]: *** [install-am] Error 2
make[1]: *** [install] Error 2
make: *** [install-recursive] Error 1
error: Bad exit status from /tmp/openpkg/RPM/TMP/rpm-tmp.743 (%install)



RPM build errors: Bad exit status from /tmp/openpkg/RPM/TMP/rpm-tmp.743 (%install)

______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   [EMAIL PROTECTED]

Reply via email to