From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-la0-x229.google.com ([2a00:1450:4010:c03::229]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1Y6DDf-0002CK-04 for ptxdist@pengutronix.de; Wed, 31 Dec 2014 07:57:25 +0100 Received: by mail-la0-f41.google.com with SMTP id hv19so13617537lab.28 for ; Tue, 30 Dec 2014 22:57:17 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: Date: Wed, 31 Dec 2014 01:57:17 -0500 Message-ID: From: Jon Ringle Subject: Re: [ptxdist] targetinstall fails Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0222475288==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: "ptxdist@pengutronix.de" --===============0222475288== Content-Type: multipart/alternative; boundary=089e014943023b974d050b7d9e70 --089e014943023b974d050b7d9e70 Content-Type: text/plain; charset=UTF-8 Changing the /bin/sh link to point to bash instead of dash fixed this for me On Tue, Dec 30, 2014 at 2:02 PM, Jon Ringle wrote: > I'm setting up a new machine with Ubuntu-14.04 where I'll be doing ptxdist > builds. I'm running into a problem where the targetinstall step fails on > all packages with something like the following (I added 'set -x' to the > fakeroot script for debugging purposes): > > ------------------------------- > target: mtd-utils.targetinstall > ------------------------------- > > install_init: preparing for image creation of 'mtd-utils'... > install_init: @ARCH@ -> armel > install_init: @PACKAGE@ -> mtd-utils > install_init: @VERSION@ -> 1.5.0 > install_init: @DEPENDS@ -> zlib > install_init: preinst not available > install_init: postinst not available > install_init: prerm not available > install_init: postrm not available > install_fixup: @PRIORITY@ -> optional ... done. > install_fixup: @SECTION@ -> base ... done. > install_fixup: @AUTHOR@ -> "Robert Schwebel " > ... done. > install_fixup: @DESCRIPTION@ -> missing ... done. > xpkg_finish: collecting license (GPLv2+) ... done. > xpkg_finish: creating opkg package ... > + local -a fake_args > + '[' -f > /home/jringle/code/gpec/ec1k-rootfs/platform-EC1K/state/mtd-utils.fakeroot > ']' > + fake_args[${#fake_args[@]}]=-u > + export pkg_binconfig_glob pkg_build_deps pkg_build_dir pkg_cflags > pkg_conf_dir pkg_conf_dir_abs pkg_conf_env pkg_conf_opt pkg_conf_tool > pkg_config pkg_cppflags pkg_cxxflags pkg_deprecated_autoconf > pkg_deprecated_builddir pkg_deprecated_cmake pkg_deprecated_compile_env > pkg_deprecated_env pkg_deprecated_makevars pkg_dir pkg_env pkg_extract_dir > pkg_fake_env pkg_install_opt pkg_label pkg_ldflags pkg_license pkg_make_env > pkg_make_opt pkg_make_par pkg_md5 pkg_opkg_tmp pkg_path pkg_pkg pkg_pkg_dev > pkg_pkg_dir pkg_run_deps pkg_src pkg_stage pkg_stamp pkg_strip_level > pkg_subdir pkg_sysroot_dir pkg_tags_opt pkg_type pkg_url pkg_version > pkg_wrapper_blacklist pkg_xpkg pkg_xpkg_cmds pkg_xpkg_conffiles > pkg_xpkg_control pkg_xpkg_control_dir pkg_xpkg_install_deps > pkg_xpkg_license pkg_xpkg_license_file pkg_xpkg_map pkg_xpkg_perms > pkg_xpkg_tmp pkg_xpkg_version ptx_conf_env_cross ptx_conf_env_host > ptx_conf_env_target ptx_conf_opt_autoconf_cross > ptx_conf_opt_autoconf_cross_sysroot ptx_conf_opt_autoconf_host > ptx_conf_opt_autoconf_host_sysroot ptx_conf_opt_autoconf_target > ptx_conf_opt_cmake_host ptx_conf_opt_cmake_host_sysroot > ptx_conf_opt_cmake_target ptx_conf_opt_qmake_target ptx_extract_dir_cross > ptx_extract_dir_host ptx_extract_dir_target ptx_image_dir > ptx_ipkg_extra_args ptx_lib_dir ptx_nfsroot ptx_nfsroot_dbg > ptx_opkg_extra_args ptx_path_cross ptx_path_host ptx_path_rules > ptx_path_target ptx_pkg_dev_dir ptx_pkg_dir ptx_state_dir ptx_xpkg_type > + fakeroot -u -- ptxd_make_opkg_finish_impl > + > FAKEROOT_PREFIX=/home/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-host > + > FAKEROOT_BINDIR=/home/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-host/bin > + USEABSLIBPATH=0 > + LIB=libfakeroot.so > + > PATHS=/home/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-host/lib/fakeroot:/home/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-host/lib64/libfakeroot:/home/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-host/lib32/libfakeroot > + > FAKED=/home/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-host/bin/faked > + FAKED_MODE=unknown-is-root > + export FAKED_MODE > + libfound=no > + getopt --version > + GETOPTEST=getopt from util-linux 2.25 > + getopt -l lib: -l faked: -l unknown-is-real -l fd-base: -l version -l > help -- +l:f:i:s:ub:vh -u -- ptxd_make_opkg_finish_impl > + FAKE_TEMP= -u -- 'ptxd_make_opkg_finish_impl' > + test 0 -ne 0 > + eval set -- -u -- 'ptxd_make_opkg_finish_impl' > + set -- -u -- ptxd_make_opkg_finish_impl > + FAKEDOPTS= > + PIPEIN= > + WAITINTRAP=0 > + test X-u != X-- > + FAKEDOPTS= --unknown-is-real > + FAKED_MODE=unknown-is-real > + shift > + test X-- != X-- > + shift > + ABSLIB= > + [ -n > /home/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-host/lib/fakeroot:/home/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-host/lib64/libfakeroot:/home/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-host/lib32/libfakeroot > ] > + echo > /home/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-host/lib/fakeroot:/home/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-host/lib64/libfakeroot:/home/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-host/lib32/libfakeroot > + sed s/:/ /g > + test -r > /home/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-host/lib/fakeroot/libfakeroot.so > + libfound=yes > + > ABSLIB=/home/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-host/lib/fakeroot/libfakeroot.so > + test -r > /home/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-host/lib64/libfakeroot/libfakeroot.so > + test -r > /home/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-host/lib32/libfakeroot/libfakeroot.so > + test yes = no > + test -n > + unset FAKEROOTKEY > + eval > /home/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-host/bin/faked > --unknown-is-real > + /home/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-host/bin/faked > --unknown-is-real > + KEY_PID=733999142:2079 > + echo 733999142:2079 > + cut -d: -f1 > + FAKEROOTKEY=733999142 > + echo 733999142:2079 > + cut -d: -f2 > + PID=2079 > + [ 0 -eq 0 ] > + trap kill -s TERM 2079 EXIT INT > + test -z 733999142 > + test -z 2079 > + test 0 -ne 0 > + test -n > + test -n > + export FAKEROOT_FD_BASE > + test -z ptxd_make_opkg_finish_impl > + FAKEROOTKEY=733999142 > LD_LIBRARY_PATH=/home/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-host/lib/fakeroot:/home/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-host/lib64/libfakeroot:/home/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-host/lib32/libfakeroot > LD_PRELOAD=libfakeroot.so ptxd_make_opkg_finish_impl > /home/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-host/bin/fakeroot: > 178: > /home/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-host/bin/fakeroot: > ptxd_make_opkg_finish_impl: not found > + RESULT=127 > + exit 127 > + kill -s TERM 2079 > + set +x > done. > finished target mtd-utils.targetinstall > > > --089e014943023b974d050b7d9e70 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Changing the /bin/sh link to point to bash instead of dash= fixed this for me

On Tue, Dec 30, 2014 at 2:02 PM, Jon Ringle &l= t;jon@ringle.org>= ; wrote:
I'm = setting up a new machine with Ubuntu-14.04 where I'll be doing ptxdist = builds. I'm running into a problem where the targetinstall step fails o= n all packages with something like the following (I added 'set -x' = to the fakeroot script for debugging purposes):

--------------------= -----------
target: mtd-utils.targetinstall
-------------------------= ------

install_init:=C2=A0=C2=A0 preparing for image creation of = 9;mtd-utils'...
install_init:=C2=A0=C2=A0 @ARCH@ -> armel
inst= all_init:=C2=A0=C2=A0 @PACKAGE@ -> mtd-utils
install_init:=C2=A0=C2= =A0 @VERSION@ -> 1.5.0
install_init:=C2=A0=C2=A0 @DEPENDS@ -> zlib=
install_init:=C2=A0=C2=A0 preinst not available
install_init:=C2=A0= =C2=A0 postinst not available
install_init:=C2=A0=C2=A0 prerm not availa= ble
install_init:=C2=A0=C2=A0 postrm not available
install_fixup:=C2= =A0 @PRIORITY@ -> optional ... done.
install_fixup:=C2=A0 @SECTION@ -= > base ... done.
install_fixup:=C2=A0 @AUTHOR@ -> "Robert Sch= webel <r.schwebel\@p= engutronix.de>" ... done.
install_fixup:=C2=A0 @DESCRIPTION@= -> missing ... done.
xpkg_finish:=C2=A0=C2=A0=C2=A0 collecting licen= se (GPLv2+) ... done.
xpkg_finish:=C2=A0=C2=A0=C2=A0 creating opkg packa= ge ...
+ local -a fake_args
+ '[' -f /home/jringle/code/gpec= /ec1k-rootfs/platform-EC1K/state/mtd-utils.fakeroot ']'
+ fake_a= rgs[${#fake_args[@]}]=3D-u
+ export pkg_binconfig_glob pkg_build_deps pk= g_build_dir pkg_cflags pkg_conf_dir pkg_conf_dir_abs pkg_conf_env pkg_conf_= opt pkg_conf_tool pkg_config pkg_cppflags pkg_cxxflags pkg_deprecated_autoc= onf pkg_deprecated_builddir pkg_deprecated_cmake pkg_deprecated_compile_env= pkg_deprecated_env pkg_deprecated_makevars pkg_dir pkg_env pkg_extract_dir= pkg_fake_env pkg_install_opt pkg_label pkg_ldflags pkg_license pkg_make_en= v pkg_make_opt pkg_make_par pkg_md5 pkg_opkg_tmp pkg_path pkg_pkg pkg_pkg_d= ev pkg_pkg_dir pkg_run_deps pkg_src pkg_stage pkg_stamp pkg_strip_level pkg= _subdir pkg_sysroot_dir pkg_tags_opt pkg_type pkg_url pkg_version pkg_wrapp= er_blacklist pkg_xpkg pkg_xpkg_cmds pkg_xpkg_conffiles pkg_xpkg_control pkg= _xpkg_control_dir pkg_xpkg_install_deps pkg_xpkg_license pkg_xpkg_license_f= ile pkg_xpkg_map pkg_xpkg_perms pkg_xpkg_tmp pkg_xpkg_version ptx_conf_env_= cross ptx_conf_env_host ptx_conf_env_target ptx_conf_opt_autoconf_cross ptx= _conf_opt_autoconf_cross_sysroot ptx_conf_opt_autoconf_host ptx_conf_opt_au= toconf_host_sysroot ptx_conf_opt_autoconf_target ptx_conf_opt_cmake_host pt= x_conf_opt_cmake_host_sysroot ptx_conf_opt_cmake_target ptx_conf_opt_qmake_= target ptx_extract_dir_cross ptx_extract_dir_host ptx_extract_dir_target pt= x_image_dir ptx_ipkg_extra_args ptx_lib_dir ptx_nfsroot ptx_nfsroot_dbg ptx= _opkg_extra_args ptx_path_cross ptx_path_host ptx_path_rules ptx_path_targe= t ptx_pkg_dev_dir ptx_pkg_dir ptx_state_dir ptx_xpkg_type
+ fakeroot -u = -- ptxd_make_opkg_finish_impl
+ FAKEROOT_PREFIX=3D/home/jringle/code/gpe= c/ec1k-rootfs/platform-EC1K/sysroot-host
+ FAKEROOT_BINDIR=3D/home/jring= le/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-host/bin
+ USEABSLIBPATH= =3D0
+ LIB=3Dlibfakeroot.so
+ PATHS=3D/home/jringle/code/gpec/ec1k-ro= otfs/platform-EC1K/sysroot-host/lib/fakeroot:/home/jringle/code/gpec/ec1k-r= ootfs/platform-EC1K/sysroot-host/lib64/libfakeroot:/home/jringle/code/gpec/= ec1k-rootfs/platform-EC1K/sysroot-host/lib32/libfakeroot
+ FAKED=3D/home= /jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-host/bin/faked
+ FA= KED_MODE=3Dunknown-is-root
+ export FAKED_MODE
+ libfound=3Dno
+ g= etopt --version
+ GETOPTEST=3Dgetopt from util-linux 2.25
+ getopt -l= lib: -l faked: -l unknown-is-real -l fd-base: -l version -l help -- +l:f:i= :s:ub:vh -u -- ptxd_make_opkg_finish_impl
+ FAKE_TEMP=3D -u -- 'ptxd= _make_opkg_finish_impl'
+ test 0 -ne 0
+ eval set --=C2=A0 -u -- = 'ptxd_make_opkg_finish_impl'
+ set -- -u -- ptxd_make_opkg_finis= h_impl
+ FAKEDOPTS=3D
+ PIPEIN=3D
+ WAITINTRAP=3D0
+ test X-u != =3D X--
+ FAKEDOPTS=3D --unknown-is-real
+ FAKED_MODE=3Dunknown-is-re= al
+ shift
+ test X-- !=3D X--
+ shift
+ ABSLIB=3D
+ [ -n /h= ome/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-host/lib/fakeroot:/= home/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-host/lib64/libfake= root:/home/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-host/lib32/l= ibfakeroot ]
+ echo /home/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sy= sroot-host/lib/fakeroot:/home/jringle/code/gpec/ec1k-rootfs/platform-EC1K/s= ysroot-host/lib64/libfakeroot:/home/jringle/code/gpec/ec1k-rootfs/platform-= EC1K/sysroot-host/lib32/libfakeroot
+ sed s/:/ /g
+ test -r /home/jri= ngle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-host/lib/fakeroot/libfaker= oot.so
+ libfound=3Dyes
+ ABSLIB=3D/home/jringle/code/gpec/ec1k-rootf= s/platform-EC1K/sysroot-host/lib/fakeroot/libfakeroot.so
+ test -r /home= /jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-host/lib64/libfakeroot= /libfakeroot.so
+ test -r /home/jringle/code/gpec/ec1k-rootfs/platform-E= C1K/sysroot-host/lib32/libfakeroot/libfakeroot.so
+ test yes =3D no
+= test -n
+ unset FAKEROOTKEY
+ eval /home/jringle/code/gpec/ec1k-roo= tfs/platform-EC1K/sysroot-host/bin/faked --unknown-is-real
+ /home/jring= le/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-host/bin/faked --unknown-is-= real
+ KEY_PID=3D733999142:2079
+ echo 733999142:2079
+ cut -d: -f= 1
+ FAKEROOTKEY=3D733999142
+ echo 733999142:2079
+ cut -d: -f2+ PID=3D2079
+ [ 0 -eq 0 ]
+ trap kill -s TERM 2079 EXIT INT
+ te= st -z 733999142
+ test -z 2079
+ test 0 -ne 0
+ test -n
+ test= -n
+ export FAKEROOT_FD_BASE
+ test -z ptxd_make_opkg_finish_impl+ FAKEROOTKEY=3D733999142 LD_LIBRARY_PATH=3D/home/jringle/code/gpec/ec1k-= rootfs/platform-EC1K/sysroot-host/lib/fakeroot:/home/jringle/code/gpec/ec1k= -rootfs/platform-EC1K/sysroot-host/lib64/libfakeroot:/home/jringle/code/gpe= c/ec1k-rootfs/platform-EC1K/sysroot-host/lib32/libfakeroot LD_PRELOAD=3Dlib= fakeroot.so ptxd_make_opkg_finish_impl
/home/jringle/code/gpec/ec1k-root= fs/platform-EC1K/sysroot-host/bin/fakeroot: 178: /home/jringle/code/gpec/ec= 1k-rootfs/platform-EC1K/sysroot-host/bin/fakeroot: ptxd_make_opkg_finish_im= pl: not found
+ RESULT=3D127
+ exit 127
+ kill -s TERM 2079
+ s= et +x
done.
finished target mtd-utils.targetinstall



--089e014943023b974d050b7d9e70-- --===============0222475288== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============0222475288==--