[yocto] oe-publish-sdk fails for remote publishing

Jeremy Thien jeremy.thien at adtecdigital.net
Wed Dec 14 06:16:30 PST 2016


I am running Ubuntu 16.04 and poky (?) v2.2. I am working my way through
eSDK setup. When I use oe-publish-sdk I get this error. My default shell is
dash.

ubuntu at myhost:fsl-community-bsp/build$ oe-publish-sdk tmp/deploy/sdk/
poky-glibc-x86_64-core-image-minimal-cortexa7hf-neon-toolchain-ext-2.2.sh
${ESDK_HOST}:/sdkdata/
INFO: Copying the SDK to destination
poky-glibc-x86_64-core-image-minimal-cortexa7hf-neon-toolchain-ext-2.2.sh

    100%  305MB 152.4MB/s   00:02
INFO: Unpacking SDK
Poky (Yocto Project Reference Distro) Extensible SDK installer version 2.2
==========================================================================
The directory "/sdkdata" already contains a SDK for this architecture.
If you continue, existing files will be overwritten! Proceed[y/N]? Y
Extracting SDK.................done
Setting it up...
Extracting buildtools...
done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to
source the environment setup script e.g.
 $ . /sdkdata/environment-setup-cortexa7hf-neon-poky-linux-gnueabi
INFO: Successfully unpacked /sdkdata/
poky-glibc-x86_64-core-image-minimal-cortexa7hf-neon-toolchain-ext-2.2.sh to
/sdkdata/
bash: -c: line 1: syntax error: unexpected end of file
/bin/sh: 2: *.pyo > .gitignore; fi; git add -A .; git config user.email
oe at oe.oe && git config user.name OE && git commit -q -m "init repo" ||
true; git update-server-info: not found
ERROR: Failed to set up layer git repo

This diff is my correction. I modified "pyc\n" to "pyc\\\n".

diff --git a/scripts/oe-publish-sdk b/scripts/oe-publish-sdk
index 4fe8974..c6b83be 100755
--- a/scripts/oe-publish-sdk
+++ b/scripts/oe-publish-sdk
@@ -116,7 +116,7 @@ def publish(args):
     if not is_remote:
         cmd = 'set -e; mkdir -p %s/layers; cd %s/layers; if [ ! -e .git ];
then git init .; mv .git/hooks/post-update.sample .git/hooks/post-update;
echo "*.pyc\n*.pyo" > .gitignore; fi; git add -A .; git config user.email
"oe at oe.oe" && git config user.name "OE" && git commit -q -m "init repo" ||
true; git update-server-info' % (destination, destination)
     else:
-        cmd = "ssh %s 'set -e; mkdir -p %s/layers; cd %s/layers; if [ ! -e
.git ]; then git init .; mv .git/hooks/post-update.sample
.git/hooks/post-update; echo '*.pyc\n*.pyo' > .gitignore; fi; git add -A .;
git config user.email 'oe at oe.oe' && git config user.name 'OE' && git commit
-q -m \"init repo\" || true; git update-server-info'" % (host, destdir,
destdir)
+        cmd = "ssh %s 'set -e; mkdir -p %s/layers; cd %s/layers; if [ ! -e
.git ]; then git init .; mv .git/hooks/post-update.sample
.git/hooks/post-update; echo '*.pyc\\\n*.pyo' > .gitignore; fi; git add -A
.; git config user.email 'oe at oe.oe' && git config user.name 'OE' && git
commit -q -m \"init repo\" || true; git update-server-info'" % (host,
destdir, destdir)
     ret = subprocess.call(cmd, shell=True)
     if ret == 0:
         logger.info('SDK published successfully')

I am happy to correct my environment if I am using the tool wrong or to
submit the change according to the documentation. (In that case, should I
submit to openembedded-devel? Should I create a bug first?)

Thanks!
Jeremy
-- 
Jeremy Thien
Adtec Digital
adtecdigital.com
jeremy.thien at adtecdigital.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20161214/e358f235/attachment.html>


More information about the yocto mailing list