POMdev wrote: > This was not working for me for the longest time. I was getting the > following error: > > Code: -------------------- > > NOTE: Running task 587 of 1140 (ID: 5, /home/squeezeos/poky/meta-squeezeos/packages/images/squeezeos-image.bb, do_configure) > NOTE: package squeezeos-image-1.0: started > NOTE: package squeezeos-image-1.0-r1: task do_configure: started > fatal: Not a git repository (or any parent up to mount parent /home) > Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). > ERROR: function do_configure failed > ERROR: log data follows (/home/squeezeos/poky/build/tmp-baby/work/baby-none-linux-gnueabi/squeezeos-image-1.0-r1/temp/log.do_configure.29941) > | /home/squeezeos/poky/build/tmp-baby/work/baby-none-linux-gnueabi/squeezeos-image-1.0-r1/temp/run.do_configure.29941: line 202: syntax error near unexpected token `>>' > NOTE: Task failed: /home/squeezeos/poky/build/tmp-baby/work/baby-none-linux-gnueabi/squeezeos-image-1.0-r1/temp/log.do_configure.29941 > NOTE: package squeezeos-image-1.0-r1: task do_configure: failed > ERROR: TaskFailed event exception, aborting -------------------- > > > > Looking at > /home/squeezeos/poky/build/tmp-baby/work/baby-none-linux-gnueabi/squeezeos-image-1.0-r1/temp/run.do_configure.29941, > the following function was defined on line 199: > > Code: -------------------- > > squeezeos_version() { > echo "7.8.0 r15953" > /home/squeezeos/poky/build/tmp-baby/rootfs/etc/squeezeos.version > echo `whoami`@`hostname` `date` >> /home/squeezeos/poky/build/tmp-baby/rootfs/etc/squeezeos.version > echo "Base build revision: " <unknown> >> /home/squeezeos/poky/build/tmp-baby/rootfs/etc/squeezeos.version > } -------------------- > > > Aha, the above "<unknown>" abuses echo too much, causing the ">>" to > fail. This "run.do_configure.#" is created by > /poky/meta-squeezeos/classes/squeezeos-upgrade-image.bbclass > > Code: -------------------- > > squeezeos_version() { > echo "${DISTRO_RELEASE} r${@squeezeos_squeezeplay_revision(d)}" > ${IMAGE_ROOTFS}/etc/squeezeos.version > echo `whoami`@`hostname` `date` >> ${IMAGE_ROOTFS}/etc/squeezeos.version > echo "Base build revision: " ${METADATA_REVISION} >> ${IMAGE_ROOTFS}/etc/squeezeos.version > } -------------------- > > > Where ${METADATA_REVISION} is generated in > poky/meta/classes/base.bbclass base_detect_revision, which returns > "<unknown>". The problem here is that this string, if not quoted, > interferes with echo in the do_configure step. I did two things: > quoted the shell variable in the echo statement, and (unnecessarily) > changed the return values of this and the base_detect_branch function > to "(unknown)", then it all worked after removing "-ltinfo" per the > 'original instructions' > (https://github.com/naguirre/squeezeos/tree/dev/nae/docker/docker). > > Code: -------------------- > > echo "Base build revision: " "${METADATA_REVISION}" >> ${IMAGE_ROOTFS}/etc/squeezeos.version -------------------- > > adding quotes to make the minimum change. > This works for my environment, for now. Perhaps the sources might be > updated?
I don't have this issue in my build VM, so I can't reproduce. Could you provide a diff, so I can investigate adding your changes? Thanks, Ralphy *1*-Touch, *5*-Classics, *3*-Booms, *2*-UE Radio 'Squeezebox client builds' (https://sourceforge.net/projects/lmsclients/files/) 'donations' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=LL5P6365KQEXN&lc=CA&item_name=Squeezebox%20client%20builds¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted) always appreciated. ------------------------------------------------------------------------ ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484 View this thread: http://forums.slimdevices.com/showthread.php?t=111663 _______________________________________________ Radio mailing list Radio@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/radio